* {
  box-sizing: border-box;
}
body {
  height: 100dvh;
  overflow: hidden;
  user-select: none;
  background-blend-mode: multiply;
  background: radial-gradient(
      circle at 18% 25%,
      rgb(55, 140, 252),
      rgb(65, 132, 255),
      rgb(1, 124, 155),
      transparent
    ),
    radial-gradient(
      circle at 70% 70%,
      rgb(55, 134, 252),
      rgb(65, 217, 255),
      rgb(1, 86, 107),
      transparent
    ),
    linear-gradient(
      122deg,
      rgb(91, 55, 252),
      rgb(65, 217, 255),
      rgb(1, 136, 170),
      rgb(55, 245, 252),
      rgb(65, 217, 255),
      rgb(1, 127, 158)
    );
  font-family: "Dangrek", serif;
  color: #fff;
}

header {
  height: 10%;
  font-size: 2.5rem;
  span {
    color: wheat;
  }
}
main {
  height: 90%;
  overflow: hidden;
  .game-container {
    height: 90%;
    .quiz {
      height: 5%;
      font-size: 1.8rem;
      color: wheat;
    }
    .controls {
      height: 15;
      font-size: 1.5rem;
      > div {
        perspective: 600px;
        transform-origin: center;
        text-align: center;
        margin-bottom: 2%;
        span {
          color: wheat;
        }
        &.counter {
          span {
            color: orange;
          }
        }
      }
    }
    .play-area {
      .main-object-con {
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 10%;
        background-color: #0202026c;
        img {
          width: 85%;
          height: 85%;
        }
      }
      .attachments-con {
        height: 100%;
        .card {
          width: 33%;
          aspect-ratio: 1.2;
          position: relative;
          padding: 1rem;
          display: flex;
          justify-content: center;
          align-items: center;
          background-color: #0000006c;
          border-radius: 5%;
          img {
            width: 80%;
            height: 80%;
            transition: 0.5s;
          }
          &.right-choice::after,
          &.wrong-choice::after {
            content: "";
            position: absolute;
            top: 2%;
            right: 2%;
            width: 18%;
            height: 18%;
            background-size: 100% 100% !important;
          }
          &.right-choice::after {
            background: url("./images/game-elements/checkbox-icon.png");
          }
          &.wrong-choice::after {
            background: url("./images/game-elements/x-mark.png");
          }
        }
      }
    }

    .btn-con {
      height: 5%;
      .btn {
        font-size: 1.5rem;
      }
    }
  }
  .modal-con {
    width: 50%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0000006c;
    backdrop-filter: blur(15px);
    .result {
      font-size: 3rem;
      font-style: italic;
    }
    .categories-con {
      font-size: 1.5rem;
      p {
        font-size: 1.5rem;
        margin-bottom: 0 !important;
        translate: 0 100%;
      }
      select {
        width: 60%;
        padding-left: 2%;
        background-color: transparent;
        color: wheat;
        &:focus {
          background-color: #002050e3;
        }
      }
    }
  }
  button {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    color: #ffe8bd;
    font-size: 1.4rem;
    background-color: #1f81b9;
    border: none;
    outline: none;
    padding: 0.5rem 0;
    border-radius: 5px;
    transition: 0.5s;
    &:hover {
      background-color: #00a2ff;
    }
  }
  .instruction {
    color: wheat;
    span {
      color: orange;
    }
  }
  /* events classes */
  .close-card {
    scale: 0;
  }
  .pointer {
    cursor: pointer;
  }
}

@media (max-width: 767px) {
  header {
    font-size: 1.5rem;
  }
  main {
    * {
      font-size: 0.85rem !important;
    }
    .controls {
      > div {
        scale: 1.2;
      }
    }
    .instruction {
      scale: 1.3;
      font-size: 0.7rem !important;
    }
    .main-object-con {
      height: 25% !important;
      img {
        scale: 1.2;
      }
    }
    .attachments-con {
      height: 85% !important;
      img {
        width: 95% !important;
        height: 95% !important;
      }
    }
  }
  .modal-con {
    width: 90% !important;
    height: 55% !important;
    margin: auto;
    padding: 1rem 0;

    .result {
      font-size: 2rem !important;
    }
    select {
      width: 80% !important;
    }
  }
}
