/* MAIN STYLE */

/* Last color: #948979 */

* {
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  user-select: none;
  touch-action: manipulation;
}

html, body {
  overflow: hidden;
  position: fixed;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

.comic-relief-regular {
  font-family: "Comic Relief", system-ui;
  font-weight: 400;
  font-style: normal;
}

.comic-relief-bold {
  font-family: "Comic Relief", system-ui;
  font-weight: 700;
  font-style: normal;
}

body {
    background-color: #222831;
    color: #DFD0B8;
    font-family: "Comic Relief", "system-ui";
    margin: 0;

    transition: background-color 500ms ease;
}

.red-bg {
    background-color: #532626;
}

.container {
    margin: auto;
    text-align: center;
    height: 100vh;
}

.home-container h1 {
    margin: 0;
    font-size: 100px;
}

.home-container button, #play-btn {
    width: 300px;
    height: 100px;
    background-color: #6bff75;

    font-family: "Comic Relief", "system-ui";
    font-weight: 700;
    font-size: 50px;
    color: #191d24;
    border-radius: 20px;
    border: 5px solid #191d24;

    transition: transform 250ms ease;
}

.home-container button:hover {
    cursor: pointer;
}

.home-container button:active {
    transform: scale(.9);
}

.game-container {
    display: none;
    width: 100%;
}

/* OPTIONS STYLE */

.game-options-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.game-options-container h1 {
    margin: 0;
    font-size: 60px;
}

.game-options-container h1 p {
    margin: 0;
    font-size: 20px;
}

.game-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 500px;
    background-color: #191d24;
    padding: 20px;
    border-radius: 20px;
}

.game-options button {
    flex: 1 1 calc(33.333% - 10px);
    box-sizing: border-box;
    padding: 10px;
    font-size: 28px;
    border-radius: 18px;
    background-color: #516075;
    color: #DFD0B8;
    font-weight: 700;
    font-family: "Comic Relief", "system-ui";
    border: 5px solid #101216;
}

/* GAME STYLE */

.game-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.game-header h3 {
    font-size: 38px;
    margin: 0;
}

.game-word {
    background-color: #191d24;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 10px;
    width: fit-content;
    height: fit-content;
    padding: 10px;
    border-radius: 20px;

    font-family: "Roboto Condensed", "system-ui";
    font-size: 50px;
}

.game-skip-btn {
    padding: 10px;
    font-size: 28px;
    border-radius: 18px;
    background-color: #6b8eff;
    color: #191d24;
    font-weight: 700;
    font-family: "Comic Relief", "system-ui";
    border: 5px solid #191d24;

    transition: transform 250ms ease;
}

.game-skip-btn:hover {
    cursor: pointer;
}

.game-skip-btn:active {
    transform: scale(.9);
}

.game-correct-btn {
    margin-top: 100px;
    padding: 10px;
    font-size: 68px;
    border-radius: 50%;
    background-color: #6bff75;
    color: #191d24;
    font-weight: 700;
    font-family: "Comic Relief", "system-ui";
    border: 5px solid #191d24;
    aspect-ratio: 1;

    transition: transform 250ms ease;
}

@media only screen and (max-height: 500px) {
    .game-correct-btn {
        margin-top: 10px;
        font-size: 40px;
    }
    .game-skip-btn {
        font-size: 20px;
    }
    .game-header h3 {
        display: none;
    }
    .game-word {
        margin-top: 75px;
        font-size: 34px;
    }
}

.game-correct-btn:hover {
    cursor: pointer;
}

.game-correct-btn:active {
    transform: scale(.9);
}

.progress-bar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 75vw;
    height: 25px;
    background-color: #1f242c;
    border-radius: 15px;
    border: 4px solid #191d24;
}

.progress-bar div {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 0%;
    height: 100%;
    border-radius: 15px;

    background-color: #6b8eff;

    transition: width 1000ms linear;
}

.restart-game-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 10px;
    font-size: 20px;
    border-radius: 18px;
    background-color: #ff706b;
    color: #191d24;
    font-weight: 700;
    font-family: "Comic Relief", "system-ui";
    border: 5px solid #191d24;

    transition: transform 250ms ease;
}

.restart-game-btn:hover {
    cursor: pointer;
}

.restart-game-btn:active {
    transform: scale(.9);
}

/* TEAM STYLE */

.team-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.team-container h4 {
    font-size: 30px;
    margin: 0;
}

.team-container span {
    font-family: monospace;
    font-size: 64px;
    width: 75px;
    height: 75px;
    background-color: #191d24;
    border-radius: 20px;
}

.score-btn {
    width: 50px;
    height: 50px;
    max-width: 50px;
    max-height: 50px;
    border-radius: 25px;
    background-color: #191d24;
    aspect-ratio: 1;
    color: #DFD0B8;
    font-size: 40px;
    border: 3px solid #DFD0B8;
}

.team1 {
    width: fit-content;
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.team2 {
    width: fit-content;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

/* LOSE CONTAINER STYLE */

.lose-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #191d24;
    padding: 20px;
    border-radius: 20px;
    z-index: 20;
}

.lose-container-darken {
    display: none;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #000000c4;
    z-index: 15;
}

.lose-container h1 {
    margin: 0;
    font-size: 48px;
    color: #ff706b;
}

.lose-container-subtext {
    margin: 0;
    font-size: 28px;
}

.lose-container-maintext {
    width: 80%;
    margin: auto;
    margin-top: 10px;
    margin-bottom: 30px;
    font-size: 20px;
    background-color: #222831;
    padding: 10px;
    border-radius: 20px;
}

.lose-container button {
    width: 150px;
    height: 50px;
    font-size: 24px;
    border-radius: 12px;
    background-color: #6bff75;
    color: #191d24;
    font-weight: 700;
    font-family: "Comic Relief", "system-ui";
    border: 5px solid #101216;
}