* {
    margin: 0;
    padding: 0;
    user-select: none;
}

body {
    width: 100%;
}

.header {
    width: 100%;
    margin: 20px auto;
    border-bottom: 1px solid #f4f1de;
    box-shadow: 0 2px 5px #f4f1de;
    transform: translateY(-100px);
    opacity: 0;
    transition: 1s;
}

.header header {
    width: 90%;
    margin: 20px auto;
    display: flex;
    justify-content: space-around;
    font-family: 'Courier New', Courier, monospace;
}

.logo {
    position: relative;
    padding:5px 17px;
}

.top {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 3px;
    background-color: #6a040f;
}
.right {
    position: absolute;
    top: 3px;
    right: 0;
    width: 3px;
    height: 10px;
    background-color: #6a040f;
}

.bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 3px;
    background-color: #ffcc2a;
}

.left {
    position: absolute;
    bottom: 3px;
    left: 0;
    width: 3px;
    height: 10px;
    background-color: #ffcc2a;
}

.logo h1 {
    color: #6a040f;
}

.logo h1 span {
    color: #ffcc2a;
}

header ul li {
    display: inline-block;
    font-size: 20px;
    margin: 10px;
}

header ul li a {
    display: inline-block;
    text-decoration: none;
    color: #ffcc2a;
    font-weight: bold;
    transition: .7s;
    position: relative;
}

header li a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background-color: #ffcc2a;
    transition: .7s;
}

header li a:hover::before{
    width: 100%;
    background-color: #6a040f;
}

header li a:hover {
    transform: scale(1.1);
    color: #6a040f;
}

.cart {
    background-color: #fff;
    font-family: 'Courier New', Courier, monospace;
    padding: 5px 10px;
    font-weight: bold;
    border-radius: 10px;
    color: #6a040f;
    border: 2px solid #6a040f;
    transition: .7s;
}

.cart:hover {
    transform: scale(1.1);
    background-color: #6a040f;
    color: #fff;
    box-shadow: 0 2px 5px #6a040f;
    cursor: pointer;
}

.body {
    width: 80%;
    margin: 0 auto;;
}

.text-side {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0;
}

#container {
  transform: translateX(-100px);
  opacity: 0;
  transition: 1s;
}

#container h1 {
    font-family: cursive;
    font-size: 50px;
    color: #6a040f;
}

#container h2 {
    font-family: 'Courier New', Courier, monospace;
    color: #ffcc2a;
    font-size: 30px;
    margin: 8px 0;
}

#container p {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: #444;
}

.show {
  transform: translateX(0) ;
  opacity: 1;
}

#start-img {
  transform: translateX(100px);
  opacity: 0;
  transition: 1s;
}

.article {
  animation: text-appear both;
  animation-timeline: view();
  animation-range: entry 20% cover 100vh;
  transition: 1s;
  
}

@keyframes text-appear {
  0% {
    transform: translateX(150px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* O‘ng tomondan chiqish */
.img-middle {
  animation: image-appear both;
  animation-timeline: view();
  width: 500px;
}

@keyframes image-appear {
  0% {
    opacity: 0;
    transform: translateX(-150px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.article h1 {
    font-family: cursive;
    font-size: 50px;
    color: #6a040f;
}

.article h2 {
    font-family: 'Courier New', Courier, monospace;
    color: #ffcc2a;
    font-size: 30px;
    margin: 8px 0;
}

.article p {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: #444;
}

.btn-1 {
    padding: 5px 10px;
    background: #fff;
    border: 2px solid #ffcc2a;
    color: #ffcc2a;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    border-radius: 10px;
    margin-top: 10px;
    margin-right: 10px;
    transition: .7s;
}

.btn-1:hover {
    background-color: #ffcc2a;
    color: #fff;
    transform: scale(1.1);
    cursor: pointer;
    box-shadow: 0 2px 5px #ffcc2a;
}

.btn-2 {
    padding: 5px 10px;
    background: #fff;
    border: 2px solid #6a040f;
    color: #6a040f;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    border-radius: 10px;
    margin-top: 10px;
    transition: .7s;
}

.btn-2:hover {
    background-color: #6a040f;
    color: #fff;
    transform: scale(1.1);
    cursor: pointer;
    box-shadow: 0 2px 5px #6a040f;
}

.middle-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 120px 0;
}

.middle-content img {
    width: 400px;
}

.cards {
    display: flex;
    justify-content: space-around;
    margin: 50px 0;
}

.card {
    text-align: center;
    border: 1px solid #f4f1de;
    border-radius: 15px;
    box-shadow: 0 5px 30px #f4f1de;
    padding: 30px 10px;
    transition: .4s;
    animation: cardReveal both;
    animation-timeline: view();
    margin:0 0 120px 0;
}

.card:first-child {
  animation-range: entry 20% cover 40%;
}

.card:nth-child(2) {
  animation-range: entry 40% cover 60%;
}

.card:last-child {
  animation-range: entry 60% cover 60%;
}

@keyframes cardReveal {
  0%{
    opacity: 0;
    scale: 0.95;
    transform: translateY(-170px);
  }
  100% {
    opacity: 1;
    scale: 1;
    transform: translateY(0);
  }
}

.card:hover{
    transform: scale(1.04);
    cursor: pointer;
} 

#card-first img {
    width: 300px;
    margin-top: 10px;
    margin-bottom: 30px;
}

#card-second img {
    width: 300px;
}

#card-third img {
    width: 200px;
    margin: 0 50px;
}

.image {
    position: relative;
}

.image i {
    position: absolute;
    top:30px;
    right: 30px;
    color: #ffcc2a;
    transition: .7s;
}

.image i:hover {
    color: #6a040f;
    cursor: pointer;
    transform: scale(1.06);
}

.buy {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.buy h1 {
    color: #ffcc2a;
    font-family: 'Courier New', Courier, monospace;
}

.buy button {
    font-family: 'Courier New', Courier, monospace;
    padding: 3px 10px;
    background-color: #fff;
    color: #6a040f;
    border: 2px solid #6a040f;
    border-radius: 10px;
    font-weight: bold;
    transition: .7s;
}

.buy button:hover {
    transform: scale(1.07);
    background-color: #6a040f;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 5px #6a040f;
}

.cards h2 {
    color: #6a040f;
    font-family:'Courier New', Courier, monospace;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 30px;
}

.cards h2 span {
    color: #ffcc2a;
}

.cards p {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: #444;
}

.footer {
    width: 100% ;
    border-top: 1px solid #f4f1de;
    box-shadow: 0 -2px 5px #f4f1de;
    margin-top: 40px;
}

.end {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    font-family: 'Courier New', Courier, monospace;
    padding: 10px 0;
    align-items: center;
}

.contact i{
    font-size: 22px;
    margin-right: 10px;
    color: #ffcc2a;
    transition: .3s;
}

.contact i:hover {
    transform: scale(1.07) translateY(-5px);
    color: #6a040f;
    cursor: pointer;
}

@media (max-width: 600px) {

  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  header ul {
    padding: 0;
    margin: 10px 0;
  }

  header ul li {
    display: block;
    margin: 8px 0;
  }
  header ul li a {
    margin-right: 7px;
  }
  .cart {
    margin-top: 10px;
  }

  .text-side {
    flex-direction: column;
    text-align: center;
  }

  .text-side img {
    width: 100%;
    margin-top: 20px;
  }

  .middle-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .middle-content img {
    width: 100%;
    margin-bottom: 20px;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
    margin-bottom: 20px;
  }

  .buy {
    flex-direction: column;
  }

  .buy h1 {
    margin-bottom: 10px;
  }

  .end {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .contact i {
    font-size: 26px;
  }

  .article h1 {
    font-size: 36px;
  }

  .article h2 {
    font-size: 22px;
  }

  .article p {
    font-size: 14px;
  }

  .btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  .btn-1, .btn-2 {
    margin: 8px;
  }
}

@media (max-width: 1024px) {

  header {
    flex-wrap: wrap;
    justify-content: center;
  }

  header ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .text-side {
    flex-direction: column;
    text-align: center;
  }

  .text-side img {
    width: 80%;
    margin-top: 20px;
  }

  .middle-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .middle-content img {
    width: 70%;
    margin-bottom: 20px;
  }

  .cards {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .card1, .card2, .card3 {
    width: 45%;
  }

  .buy h1 {
    font-size: 20px;
  }

  .article h1 {
    font-size: 40px;
  }

  .article h2 {
    font-size: 26px;
  }

  .article p {
    font-size: 15px;
  }

  .end {
    flex-wrap: wrap;
    text-align: center;
  }

  .contact i {
    font-size: 24px;
  }
}

#box-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    background-color: #0000001f;
    align-items: center;
    z-index: 1000;
    display: none;
}

#box {
    position: relative;
    width: 400px;
    top: 45%;
    left: 40%;
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px #00000033;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: #ff0000;
}

#close {
    padding: 7px 120px;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 10px;
    transition: .4s;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 18px;
    letter-spacing: 3px;
    margin-top: 10px;
    cursor: pointer;
    font-weight: 600;
}

#close:hover {
    background-color: #ff0000;
    border-color: #ff0000;
    color: #fff;
    transform: scale(1.03);
}