* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* outline: 1px solid blue; */
}

/* coverage div */
.box {
  margin: 3px auto;
  padding: 0;
  max-width: 1450px;
  height: auto;
  width: 100%;
}

/* header */
header {
  width: 100%;
  height: 40rem;
  margin: 0;
  padding: 0;
  background-image: url("/images/k1.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  filter: brightness(110%);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px;
}

.nameSite {
  position: relative;
  top: -15vh;
  color: white;
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 6rem;
}

.btnHead {
  position: relative;
  top: 15vh;
  margin: 20px;
}

/* main */
main {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 25px 0 5px 0;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

/* go top */
#toTop {
  display: block;
  position: fixed;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  right: 20px;
  bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s;
  transform: rotate(-180deg);
}

#toTop div {
  width: 16px;
  height: 2.7px;
  position: relative;
  background-color: rgb(120, 118, 118);
  transition: ease 1.5s;
}

#toTop div:nth-child(1) {
  transform: rotate(-60deg);
  right: -4px;
}

#toTop div:nth-child(2) {
  transform: rotate(60deg);
  left: -4px;
}

#toTop:hover {
  background-color: #0c0c0cee;
  transform: rotate(0deg);
}

#cardStyle {
  width: 23rem;
  height: 35rem;
  padding: 0;
  margin: 0;
  overflow-y: hidden;
  background-color: transparent;
  border: 1px double black;
  border-radius: 10px;
  transition: ease 0.3s;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#cardStyle:hover {
  transform: scale(0.98);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.775);
}

.imgCard {
  width: 100%;
  height: 48%;
  margin: 0;
}

.imgCard img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: none;
  margin: 0;
  position: relative;
}

.tavsif {
  background-color: rgba(206, 202, 202, 0.258);
  position: relative;
  width: 100%;
  height: 28px;
  overflow: hidden;
  font-size: 16px;
  font-family: sans-serif;
}

/* Responsivlik qo‘shildi */
@media (max-width: 1200px) {
  .box {
    max-width: 95%;
  }
  header {
    height: 35rem;
  }
  .nameSite {
    font-size: 4.5rem;
  }
  main {
    gap: 15px;
  }
  #cardStyle {
    width: 20rem;
    height: auto;
  }
}

@media (max-width: 768px) {
  header {
    height: 30rem;
    flex-direction: column;
    justify-content: center;
  }
  .nameSite {
    font-size: 3.5rem;
    top: -10vh;
  }
  .btnHead {
    top: 5vh;
    margin: 10px;
  }
  main {
    flex-direction: column;
    align-items: center;
  }
  #cardStyle {
    width: 18rem;
  }
}

@media (max-width: 576px) {
  header {
    height: 25rem;
  }
  .nameSite {
    font-size: 3rem;
    top: -5vh;
  }
  .btnHead {
    top: 3vh;
  }
  #cardStyle {
    width: 16rem;
  }
}
