.quiz-container {
    position: absolute;
    width: 30%;
    height: 43%;
    top: 20%;
    border-radius: 15px;
    color: white;
}

/* Tablet adjustments */
@media (max-width: 768px) {
  .quiz-container {
    width: 90%;
    height: 70%;
  }
  .card {
    font-size: 1.1em; /* bump card text */
  }
  .def-card {
    font-size: 0.9em;
  }
  .instr {
    font-size: 2.5vh;
  }
  .summary {
    font-size: 3vh;
  }
}

/* Phone adjustments */
@media (max-width: 480px) {
  .quiz-container {
    width: 95%;
    height: 80%;
  }
  .card {
    font-size: clamp(0.9em, 4vw, 1.2em); /* auto scales */
    padding: 5px;
  }
  .def-card {
    font-size: clamp(0.8em, 3.5vw, 1em);
  }
  .instr {
    font-size: clamp(0.9em, 3.5vw, 1.2em);
    padding: 0 10px;
  }
  .summary {
    font-size: clamp(1em, 4vw, 1.4em);
  }
  .start {
    font-size: clamp(1em, 4vw, 1.2em);
  }
}

.start {
    position: absolute;
    height: 30%;
    top: 100%;;
    font-size: 4vh;
    color: black;
    background-color: white;
    height: 15%;
    padding: 5px;
    font-weight: 900;
    border-radius: 10px;
}
.start:hover {
    animation: pop 0.1s linear forwards;
    cursor: url(imgs/cursorButton.png) 20 20, auto;
}
@keyframes pop {
    100% { transform: scale(1.1); }
}

.instr {
    position: absolute;
    left: 0;
    bottom: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3vh;
    text-align: center;
    width: 100%;
    height: 100%;
    flex-direction: column;
}

.matching-container {
    position: absolute;
    height: 100%;
    width: 40%;
    display: none;
}

.terms {
    left: 0;
    z-index: 1000;
}
.definitions {
    right: 0;
}

.card {
    position: absolute;
    background-color: white;
    color: black;
    height: 30%;
    width: 100%;
    border-radius: 15px;
    font-weight: 900;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: url(imgs/cursorButton.png) 20 20, auto;
    user-select: none;
}
.term-card { left: 0; touch-action: none;}
.def-card {
    background-color: rgb(187, 187, 187);
    font-size: 0.7em;
    touch-action: none;
}
.term1 { top: 0%; }
.term2 { top: 35%; }
.term3 { bottom: 0; }

.summary {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    font-size: 3.5vh;
    display: none;
}
.summary-text { margin-top: 10%; text-shadow: 0px 0px 10px aqua;}
.grade {
    font-family: 'Passero One', cursive;
    color: rgb(0, 255, 0);
    background-color: black;
    border: solid 1px aqua;
}

.restart {
    background-color: aqua;
    color: black;
    border-radius: 15px;
    margin-top: 20%;
}
.restart:hover {
    animation: pop 0.1s linear forwards;
    cursor: url(imgs/cursorButton.png) 20 20, auto;
}
