
body{
    padding: 15px;
    background-image: linear-gradient(to right, rgb(244, 67, 54, 0.3) 15%, rgb(9, 121, 43, 0.3) 40%, rgb(0, 185, 255, 0.3) 65%, rgb(255, 184, 0, 0.3))
    
}
    .container-link {
        display: flex;
        flex-wrap: wrap;
        width: 600px;
        height: 600px;
        outline: 1px solid black;
        background-color: bisque;
      }
      
      .link {
        display: flex;
        width: 150px;
        height: 150px;
        outline: 1px dashed red;
        margin-right: 10px;
        background-color: blueviolet;
      }
      .box-item{
        width: 100px;
        height: 100px;
        background-color: yellow;
        outline: 1px dotted green;
        /* margin-right:10px ;
        margin-bottom:20px ; */

      }
      .box-list{
        width: 320px;
        display: flex;
        /* gap: 10px; */
        column-gap: 10px;
        row-gap: 20px;
        flex-wrap: wrap;
        background-color: lightblue;
        outline: 2px solid tomato;
      }
      /* .box-item:nth-child(3n) {
        margin-right: 0;
    } */
 .container{
  display: flex;
  gap: 8px;
  max-width:  900px;
  height: 250px;
  margin: 20px auto;
  border: 1px solid orangered;

 }
 .sidebar-1{
  flex-basis: 150px;
  background-color: bisque;


 }
 .sidebar-2{
  flex-basis: 200px;
  background-color: yellowgreen;

 }
.main{
  flex-grow: 1;
  background-color: yellow;

}


.holder{
display: flex;
flex-wrap: wrap-reverse;
flex-direction: row-reverse;
width: 600px;
height: 400px;
outline: 1px dotted black;

/* border: 5px solid black; */


}
.item{
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.item:nth-child(1){
  background-color: red;
  width: 300px;
  order: 5;
  border-left: 5px solid black;
  border-top: 5px solid black;
  border-radius: 15px 0 0 0;
  

}
.item:nth-child(2){
  width: 200px;
  background-color: blue;
  order: 2;
  border-bottom: 5px solid black;

}
.item:nth-child(3){
  width: 200px;
  background-color: blueviolet;
  order: 3;
  border-left: 5px solid black;
  border-bottom: 5px solid black;

}
.item:nth-child(4){
  width: 200px;
  background-color: green;
  order: 1;
  border-bottom: 5px solid black;
  border-right: 5px solid black;

}
.item:nth-child(5){
background-color: orange;
width: 300px;
order: 4;
border-top: 5px solid black;
border-right: 5px solid black;
border-radius: 0 15px 0 0;
}


.bg-box{
  width: 1000px;
  height: 777px;
  content: '';
  background-color: green;
  background-image: 
  url(https://www.freeiconspng.com/uploads/grass-png-images-pictures-transparent-28.png),
  url(https://www.freeiconspng.com/uploads/lamp-png-0.png),
  url(https://avatanplus.com/files/resources/mid/58eb07b830eab15b56162788.png),
  url(https://vignette.wikia.nocookie.net/mashaandthebear/images/e/e0/%D0%81%D0%B6%D0%B8%D0%BA.png/revision/latest?cb=20180209130328&path-prefix=ru),
  url(https://img.goodfon.ru/wallpaper/big/0/5b/pole-zelen-trava-dom-derevya.webp);
  background-size: 200px,50px,40px,40px,400px;
  background-repeat:repeat-x,repeat-x,repeat-y,repeat-y,no-repeat;
  background-position: bottom,top,right,left,center;
  outline: 4px dashed red;
}

.container12{
  width: 900px;
  display: flex;
  flex-wrap: wrap;
  outline:1px solid red ;
  gap: 10px;
}
.box1{
  flex-basis: calc((100% - 10px) / 2 );
}


.box1:nth-child(1){
  height: 200px;
  background-color: purple;
  background-image: url(https://www.freeiconspng.com/uploads/grass-png-images-pictures-transparent-28.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100px;


}
.box1:nth-child(2){
  height: 200px;
  background-color: teal;
  background-image: url(https://vignette.wikia.nocookie.net/mashaandthebear/images/e/e0/%D0%81%D0%B6%D0%B8%D0%BA.png/revision/latest?cb=20180209130328&path-prefix=ru);
  background-repeat: repeat-x;
  background-position: bottom;
  background-size: 50px;


}
.box1:nth-child(3){
  height: 200px;
  background-color: lightskyblue;
  background-image: url(https://3627081962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTOxx7nSUyW1jh74KR9zH%2Fuploads%2FmqeubeKEPt8zSJpaTvDZ%2F6.png?alt=media);
  background-repeat: repeat-y;
  background-position: left;

}
.box1:nth-child(4){
  height: 200px;
  background-color: blue;
  background-image: url(https://3627081962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTOxx7nSUyW1jh74KR9zH%2Fuploads%2Feg1ZIuycuCZ2Fd46ub0w%2F7.png?alt=media);

}



.overlay2{
height: 600px;
outline: 2px solid black;
background-repeat: no-repeat;
background-size: cover;
background-position: center;
background-image: linear-gradient(to right, rgba(255, 0, 0, 0.3), rgba(0, 255, 0, 0.3)),
 url(../css/images/photo.jpg);
}

.modal-html{
  width: 400px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 15px;
  background-color: teal;
  font-size: 26px;
  font-family: 'Montserrat', serif;
  color: #ffcadc;
  box-shadow: inset 0 0 16px 8px rgba(0, 0, 0, 0.3),
  0px 0px 6px #000
  ;
  outline: 1px solid black;
}
.btn-open:hover{
  background-color: palevioletred;
  color: #bbffe8 ;
}

.btn-open:hover::before{
  background-color: rosybrown;

}

.btn-open:active {
  background-color: #d89d70;
  color: #a55517;
  box-shadow: none;
}

.btn-open:active::before{
  background-color:#d89d70 ;
}







.list {
  display: flex;
}
.list-item {
  width: 250px;
  height: 300px;
  margin: 10px;
  padding: 10px;
  border-radius: 4px;
  background-color: #bbffe8;
  color: goldenrod;
  font-family: 'Montserrat', serif;
  box-shadow:
    0px 2px 3px rgba(0, 0, 0, 0.2),
    0px 2px 3px rgba(0, 0, 0, 0.14),
    0px 2px 3px rgba(0, 0, 0, 0.12);
}

.list-item::before {
  content: "";
  height: 120px;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.list-item:nth-child(1)::before {
  background-image: url(https://3627081962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTOxx7nSUyW1jh74KR9zH%2Fuploads%2FHsDkGkBnRTFodwTgpGvq%2F5.png?alt=media);
}
.list-item:nth-child(2)::before {
  background-image: url(https://3627081962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTOxx7nSUyW1jh74KR9zH%2Fuploads%2FmqeubeKEPt8zSJpaTvDZ%2F6.png?alt=media);
}
.list-item:nth-child(3)::before {
  background-image: url(https://3627081962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTOxx7nSUyW1jh74KR9zH%2Fuploads%2FOHZYGSzd9n9OKwkAUaeI%2F4.png?alt=media);
}

.card-item {
    width: 392px;
    height: 294px;
    padding: 33px;
    outline: 1px solid red;
    background-color: #1E252B;
}

.card-title-content {
    height: 66px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    flex-wrap: wrap;
    column-gap: 30px;
    outline: 1px solid red;
}

.card-title {
    margin-bottom: 3px;
    font-size: 24px;
    font-family: var(--font-family);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
}

.card-price {
    font-weight: 400;
    font-size: 18px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    color: rgba(255, 165, 55, 0.55);
}
.card-description{
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 187%;
    color: rgba(255, 255, 255, 0.55);
}
.card-link{
font-family: var(--font-family);
font-weight: 600;
font-size: 16px;
color: rgba(255, 255, 255, 0.55);
}




/*! 1.Бєк-дроп з модальним вікном */
.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.no-scroll {
    overflow: hidden;
}

.modal {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 400px;
    min-height: 300px;
    padding: 15px;
    text-align: center;
    background: linear-gradient(135deg, #00e5e6 7.29%, #00a8f7 26.04%, #9a76f9 62.5%, #cc5ec2 100%);
    transform: translate(-50%, -50%);
}
.modal .btn {
    position: absolute;
    top: 10px;
    right: 10px;
}
.box2{
  width: 300px;
  height: 300px;
  background-color: aliceblue;
  position: relative;
}
.box3{
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.box3:nth-child(1){
  position: absolute;
  top: 10%;
  left: 10%;
  z-index: 1;
  background-color: rgb(255, 0, 0);
}
.box3:nth-child(2){
  position: absolute;
  top:34%;
  left:34%;
  z-index: 2;
  background-color: rgb(0, 0, 255);
}
.box3:nth-child(3){
  position: absolute;
  bottom: 10%;
  right: 10%;
  z-index: 1;
  background-color: rgb(0, 255, 0);
}

.input-box {
    margin-bottom: 40px;
    width: 400px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    outline: 4px double tomato;
}
.input-box>label {
    outline: 1px solid grey;
}
.input-box>input:checked+label {
    background-color: #e8ffcd;
}

.list2 {
    display: flex;
    gap: 12px;
}
.item2 {
    overflow: hidden;
    position: relative;
    display: block;
    padding: 10px 20px;
    color: currentColor;
    border: 2px solid green;
    border-radius: 8px;
    /*? Анімація-1+ - початковий стан */
    transform: scale(1);
}
.item2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width:100% ;
    height: 8px;
    background-color: tomato;
    opacity: 0;
    transform: scaleX(0);
    transition:
        transform 1000ms cubic-bezier(0.83, -0.08, 0.32, 1) 500ms,
        opacity 500ms cubic-bezier(0.83, -0.08, 0.32, 1) 500ms;
        

}
.item2:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.item2:hover {
    cursor: pointer;
}

.box-4{
  width: 600px;
  height: 600px;
  display: flex;
  flex-direction: column;
  background-color: white;
  overflow: hidden;

}
.sidebar{
  width: 300px;
  height: 100%;
  background-color: #777;
  transform: translateX(-250px);
  position: relative;
  justify-content: center;
  align-items: center;
  transition: 
  transform 600ms ;
}

 .sidebar:hover{
  transform: translate(0);
}
.menu-title{
  width: 100px;
  height: 30px;
  transform: rotate(90deg);
  position: absolute;
  left: 217px;
  bottom: 275px;
  color: white;
  opacity: 1;
  transition: 
  opacity 500ms cubic-bezier(0.83, -0.08, 0.32, 1);
        
  ;
  
}
.sidebar li{
  transition:
  color 1000ms;
}


.sidebar li{
  padding: 20px 50px;
  color: white;
  font-family: Century;
  font-size: 18px;
  display: flex;
  gap: 20px;
}
.sidebar li:first-child{
  margin-top: 100px;
}
.sidebar:hover .menu-title{
  opacity: 0;
}
.sidebar li:hover{
  color: orange;
}
svg{
  transform: rotate(45deg);
}


.box5{
width: 200px;
height: 200px;
position: relative;
background-color: white;

}
.box6{
  width: 100px;
  height: 100px;
  position: absolute;
  animation: around 10s linear infinite;
}

 @keyframes around {
  0% {
    transform: translate(0);
    background-color: red;
  
  }
  25%{
    transform: translate(0, 100px);
    background-color: blue;
  }
  50%{
    transform: translate(100px, 100px);
    background-color: green;
  }
  75%{
    transform: translate(100px, 0);
     background-color: yellow;
  }
  100%{
    transform: translate(0);
     background-color: red;
  }
  }








html { scroll-behavior: smooth; }

.scroll-btn{
  position: fixed;
  right: 16px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #333;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  opacity: .85;
  z-index: 1000;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.scroll-btn:hover{ opacity:1; transform: translateY(-2px); }

.scroll-up{ bottom: 72px; }   /* кнопка ВГОРУ вище */
.scroll-down{ bottom: 16px; } /* кнопка ВНИЗ нижче */

.hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
