@import url("./header.css");
@import url("./footer.css");
@import url("./font.css");

.search {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  width: 100%;
  margin-top: 70px;
  background-color: #221F1F;
  color: #FFF;
}

.search__contain {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
}

.search__form {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
}

.genre {
  border-radius: 6px;
  color: #FFF;
  background-color: #333;
  width: 114px;
  height: 36px;
  border: 0;
  outline: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: 0;
  text-align: left;
  padding-left: 12px;
}

.option {
  color: #221F1F;
  background-color: #A9A9A9;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}

.radio {
  display: flex;
  gap: 32px;
}

.inp__radio {
  height: 0;
  width: 0;
  opacity: 0;
  position: absolute;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}

.custom__radio {
  position: relative;
  display: inline-block;
  height: 20px;
  width: 20px;
  background-color: #221F1F;
  border: solid 1px #FFF;
  border-radius: 50%;
  margin-right: 12px;
  vertical-align: sub;
}

.custom__radio::before {
  content: " ";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-image: url("../img/check__radio.svg");
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: .2s ease-in;
}

.inp__radio:checked+.custom__radio::before {
  transform: translate(-50%, -50%) scale(1);
}

.checkbox {
  display: flex;
  gap: 32px;
}

.inp__check {
  height: 0;
  width: 0;
  opacity: 0;
  position: absolute;
  font-size: 14px;
  font-weight: 400;
}

.custom__check {
  position: relative;
  display: inline-block;
  height: 20px;
  width: 20px;
  background-color: #221F1F;
  border: solid 1px #FFF;
  border-radius: 6px;
  margin-right: 12px;
  vertical-align: sub;
}

.custom__check::before {
  content: " ";
  display: inline-block;
  width: 15px;
  height: 15px;
  background-image: url("../img/check__black.svg");
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-top: 2px;
  transform: translate(-50%, -50%) scale(0);
  transition: .2s ease-in;
}

.inp__check:checked+.custom__check::before {
  transform: translate(-50%, -50%) scale(1);
}

.inp__search {
  width: 342px;
  height: 36px;
  padding-left: 46px;
  border: none;
  outline: 0;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  float: left;
}

.inp__search {
  background-image: url("../img/search.svg");
  background-position: left 12px center;
  background-repeat: no-repeat;
}

.search__button {
  width: 75px;
  height: 36px;
  padding: 13px, 20px;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  border: none;
  background-color: #EF4934;
  color: #FFF;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  float: left;
}

.main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 160px);
  width: 100%;
  min-width: 400px;
}

.contain {
  margin-top: 180px;
  width: 90%;
}

.content {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 100px;
}

.text__heading {
  margin-top: 0;
  color: #221F1F;
  font-size: 48px;
  line-height: 32px;
  font-weight: 700;
}

.game__cod2 {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  background-color: #ECECEC;
  padding: 12px 12px 22px;
  border-radius: 12px;
}

.cod2__general {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.cod2__general--image {
  height: 90px;
  width: 90px;
  border-radius: 9px;
  object-fit: cover;
}

.cod2__general--desc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 149px;
}

.cod2__general--desc h3 {
  font-size: 18px;
  margin: 0;
}

.cod2__general--desc p {
  font-size: 14px;
  margin: 0;
}

.cod2__description {
  font-size: 14px;
  text-align: start;
  padding: 0;
  margin: 0;
}

.cod2__description li b {
  font-weight: 700;
}

.cod2__description li {
  font-weight: 400;
  list-style-type: none;
  margin-top: 12px;
  margin-bottom: 12px;
  margin-left: 22px;
}

.cod2__description li:last-child {
  margin-bottom: 0;
}

.cards-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 25px;
  padding-left: 0;
}

@keyframes loadingAnimation {

  0% {
    content: "Loading";
  }

  25% {
    content: "Loading.";
  }

  50% {
    content: "Loading..";
  }

  75% {
    content: "Loading...";
  }
}

[data-type="cards-container"]:empty::before {
  content: "Loading...";
  animation: loadingAnimation 1s infinite;
}

@media screen and (min-width: 1px) and (max-width: 768px) {

  .contain {
    width: calc(90%);
    margin-top: 130px;
  }

  .game__cod2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: center;
    justify-content: center;
    width: calc(100% - 25px);
    background-color: #ECECEC;
    padding: 12px 12px 22px;
    border-radius: 12px;
  }

  .cod2__general {
    display: grid;
    grid-template-rows: 1fr 1fr;
    align-items: center;
    justify-content: center;
  }

  .cod2__description {
    text-align: start;
  }

  .cod2__general--image {
    max-width: 100%;
    height: auto;
    width: 100%;
    max-height: 120px;
    border-radius: 9px;
    object-fit: cover;
  }

  .cod2__general--desc {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 12px;
  }

  .cod2__general--desc h3 {
    font-size: 18px;
    margin: 0;
  }

  .cod2__general--desc p {
    font-size: 14px;
    text-align: center;
  }

  .search__contain {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .cards-container {
    display: grid;
    grid-template-columns: 1fr;
    margin: 0;
  }

  .search {
    height: 220px;
    margin-top: 50px;
    background-color: #221F1FEE;
    transition: margin-top .3s ease, opacity .3s ease, max-height .3s ease;
  }

  .search-hidden {
    margin-top: -110px;
    opacity: 1;
    max-height: 220px;
  }

  .plate__h3 {
    margin-bottom: 0;
  }

  .search__form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .genre {
    width: 100px;
  }

  .inp__search {
    height: 30px;
    width: 200px;
  }

  .search__button {
    height: 30px;
    width: 70px;
  }

  .text__heading {
    text-align: center;
    font-size: 28px;
  }

  .radio {
    gap: 10px;
  }

  .custom__radio {
    height: 15px;
    width: 15px;
    border-radius: 50%;
    margin-right: 12px;
  }

  .form__radio {
    font-size: 15px;
  }

  .checkbox {
    gap: 10px;
  }

  .custom__check {
    height: 15px;
    width: 15px;
    border-radius: 6px;
    margin-right: 12px;
  }

  .form__checkbox {
    font-size: 15px;
  }
}

@media screen and (min-width: 768px) and (max-width: 930px) {

  .contain {
    width: calc(90%);
    margin-top: 150px;
  }

  .game__cod2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: calc(100% - 25px);
    background-color: #ECECEC;
    padding: 12px 12px 22px;
    border-radius: 12px;
  }

  .cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .search__contain {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .search {
    height: 220px;
    margin-top: 70px;
    background-color: #221F1FEE;
    transition: margin-top .3s ease, opacity .3s ease, max-height .3s ease;
  }

  .search__form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .search-hidden {
    margin-top: -100px;
    opacity: 1;
    max-height: 220px;
  }

  .plate h3 {
    margin-bottom: 0;
  }

  .genre {
    width: 70px;
  }

  .inp__search {
    height: 30px;
    width: 200px;
  }

  .search__button {
    height: 30px;
    width: 50px;
  }

  .text__heading {
    text-align: center;
    font-size: 38px;
  }

  .cod2__general--image {
    height: 80px;
    width: 80px;
  }

  .radio {
    gap: 10px;
  }

  .custom__radio {
    height: 15px;
    width: 15px;
    border-radius: 50%;
    margin-right: 12px;
  }

  .form__radio {
    font-size: 15px;
  }

  .checkbox {
    gap: 10px;
  }

  .custom__check {
    height: 15px;
    width: 15px;
    border-radius: 6px;
    margin-right: 12px;
  }

  .form__checkbox {
    font-size: 15px;
  }
}

@media screen and (min-width: 930px) and (max-width: 1307px) {

  .cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
  }

  .search {
    height: 55px;
    margin-top: 70px;
  }

  select[name="genre"] {
    width: 70px;
  }

  .inp__search {
    height: 30px;
    width: 200px;
  }

  .search__button {
    height: 30px;
    width: 50px;
  }

  .text__heading {
    text-align: center;
    font-size: 38px;
  }

  .cod2__general--image {
    height: 80px;
    width: 80px;
  }

  .radio {
    gap: 10px;
  }

  .custom__radio {
    height: 15px;
    width: 15px;
    border-radius: 50%;
    margin-right: 12px;
  }

  .form__radio {
    font-size: 15px;
  }

  .checkbox {
    gap: 10px;
  }

  .custom__check {
    height: 15px;
    width: 15px;
    border-radius: 6px;
    margin-right: 12px;
  }

  .form__checkbox {
    font-size: 15px;
  }

  .plate {
    display: none;
  }
}

@media screen and (min-width: 1307px) and (max-width: 1700px) {

  .cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 25px;
  }

  .plate {
    display: none;
  }

  .inp__search {
    width: 250px;
  }
}

@media screen and (min-width: 1700px) {

  .cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 25px;
  }

  .plate {
    display: none;
  }
}

@media screen and (min-width: 1900px) {

  .cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 25px;
  }

  .plate {
    display: none;
  }
}

@media screen and (min-width: 2500px) {

  .cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 25px;
  }

  .plate {
    display: none;
  }
}