*, *::after, *::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Architects Daughter", Tahoma, sans-serif;
    user-select: none;
}

:root {
    --standard-shadow: 1px 1px 3px 1px black;
    --scorebar-text: clamp(1rem, 2vh, 2.5rem);
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(rgba(0, 75, 255, 0.2),rgba(0,75,255,0.7));
}

.canvas-container {
    position: relative;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* filter: url("#turbulence") */
}
#background {
    height: 100%;
    width: 100%;
    object-fit: cover;
    overflow: hidden;
    /* filter: url("#turbulence"); */
}
.menu-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    /* background-color: lightblue; */
    /* box-shadow: var(--standard-shadow); */
    width: 60%;
    max-width: 435px;
    height: 60%;
    border-radius: 8px;
}
.pre-menu {
    color: white;
    position: absolute;
    font-size: 2rem;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
}
.pre-menu span {
    position: relative;
    width: fit-content;
    height: fit-content;
}
.pre-menu img {
    position: absolute;
    width: 90%;
    height: auto;
}
.main-menu, .topic-menu, .ready-screen, .settings-menu, .info-screen {
    position: absolute;
    height: 100%;
    width: 100%;
}
.main-menu-header, .main-menu-footer, .topic-menu-header, .topic-menu-footer, .ready-screen-header, .ready-screen-footer, .settings-menu-header, .settings-menu-footer, .info-screen-header, .info-screen-footer {
    height: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.main-menu-body, .topic-menu-body, .ready-screen-body, .settings-menu-body, .info-screen-body {
    height: 80%;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
.main-menu-body, .settings-menu-body, .info-screen-body {
    flex-direction: column;
}
.settings-menu-body {
    justify-content: flex-start;
}
.topic-menu-body {
    flex-wrap: wrap;
    height: 75%;
    margin-bottom: 5%;
    gap: 10px;
    padding: 0% 10% 0% 10%;
    overflow-y: scroll;
}
.topic-menu-button {
    color: white;
    height: 30%;
    max-height: 50px;
    width: fit-content;
    min-width: 100px;
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: var(--standard-shadow);
    border-radius: 8px;
    padding-left: 3px;
    padding-right: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    cursor: pointer;
    
}
.main-menu-button {
    color: white;
    height: 30%;
    width: 100%;
    /* background-color: lightgreen; */
    /* box-shadow: var(--standard-shadow); */
    /* border-radius: 10px; */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
}
.main-menu-button span {
    position: absolute;
}
.main-menu-button img {
    width: 80%;
    height: auto;
    max-height: 90%;
}
.ready-screen-start {
    position: relative;
    height: 50%;
    width: 80%;
    /* border-radius: 10px; */
    /* box-shadow: var(--standard-shadow); */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 2rem;
    cursor: pointer;
}
.ready-screen-start span {
    position: absolute;
    color: white;
}
.ready-screen-start img {
    position: absolute;
    width: 100%;
}

.main-menu-close, .topic-menu-close, .ready-screen-close, .settings-menu-close, .info-screen-close {
    width: 30%;
    height: 90%;
    /* box-shadow: var(--standard-shadow); */
    /* border-radius: 8px; */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
}
.player-select-title, .bubble-size-title {
    height: 10%;
    color: white;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.settings-menu-button, .info-screen-button {
    position: absolute;
    right: 5%;
    height: 15%;
    width: 15%;
    cursor: pointer;
}
.info-screen-button {
    left: 5%;
}
.settings-menu-button img, .info-screen-button img {
    height: 85%;
    width: auto;
}
.player-select, .settings-bubble-size {
    width: 90%;
    height: 30%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.settings-bubble-size {
    height: 20%;
}
.player-select-arrow, .bubble-size-button {
    height: 100%;
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.player-select-arrow img, .bubble-size-button img {
    width: 80%;
    height: auto;
    cursor: pointer;
}
.player-select-image, .bubble-size-display {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.bubble-size-display {
    color: white;
    font-size: 2rem;
}
.player-select-image img {
    width: 100%;
    height: auto;
}
.settings-audio {
    width: 100%;
    height: 20%;
    display: flex;
}
.audio-on, .audio-off {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.audio-on img, .audio-off img {
    height: 75%;
    width: auto;
    cursor: pointer;
}
.audio-on.disabled, .audio-off.disabled {
    filter: grayscale(75%);
}

.info-1, .info-2, .info-4, .info-6 {
    width: 80%;
    height: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-size: 1.1rem;
}
.info-6 {
    font-size: 0.9rem;
}
.info-3, .info-5 {
    width: 100%;
    height: 20%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    cursor: pointer;
}
.info-link-images {
    height: 100%;
}
.info-3 img, .info-link-images img {
    box-shadow: 1px 1px 3px 1px black;
    border-radius: 10px;
    padding: 2px;
    height: 90%;
    width: auto;
}
#canvas1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
    height: 100%;
    filter: url("#turbulence");
}
#canvas2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.startup-images {
    display: none;
}
.in-game-hud {
    position: absolute;
    top: 2%;
    left: 0;
    width: 100%;
    height: 10%;
    max-height: 10vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 5%;
    padding-right: 5%;
    transform: translateY(-200%);
    transition: transform 300ms ease-in-out;
    pointer-events: none;
}
.in-game-hud.show-in-game-hud {
    transform: translateY(0%);
}
.scorebar-container {
    position: relative;
    height: 100%;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.scorebar-text {
    position: absolute;
    width: fit-content;
    max-width: 80%;
    height: fit-content;
    text-wrap: balance;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: translateX(-15%);
    font-weight: bold;
    color: white;
    font-size: var(--scorebar-text);
}
.hbar-container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25%;
}
.hud-back-image {
    width: 100%;
    height: auto;
    max-height: 100%;
}
#scorebardisplay {
    height: 60%;
}
.hud-settings-menu-button {
    width: 10%;
    position: initial;
    height: 50%;
    width: auto;
    pointer-events: all;
}
.hud-settings-menu-button img {
    height: 100%;
    width: auto;
    max-width: 100%;
}
.settings-restart, .settings-mainmenu {
    position: absolute;
    top: 80%;
    height: 12%;
    width: auto;
    cursor: pointer;
}
.settings-restart img, .settings-mainmenu img {
    height: 100%;
    width: auto;
    max-width: 100%;
}
.settings-restart {
    left: 8%;
}
.settings-mainmenu {
    right: 8%;
}
.game-over-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-2000px);
    height: 60%;
    width: 60%;
    transition: transform 500ms ease-in-out;
}
.game-over-display.show-game-over {
    transform: translate(-50%,-50%);
}
.game-over-display-background, .menu-background {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}
.menu-background {
    pointer-events: none;
}
.game-over-text {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: fit-content;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 2rem;
}
.game-over-button {
    position: absolute;
    top: 70%;
    height: 10%;
    min-height: 10vh;
    width: auto;
    cursor: pointer;
}
.game-over-restart {
    left: 20%;
}
.game-over-continue {
    height: 15%;
    min-height: 15vh;
    width: auto;
    left: 50%;
    top: 75%;
    transform: translateX(-50%)
}
.game-over-menu {
    right: 20%;
}
.game-over-button img {
    width: 100%;
    height: 100%;
}
@media (orientation: portrait) {
    .menu-container, .game-over-display {
        width: 90%;
    }
    .main-menu-body {
        flex-direction: column;
    }
    .main-menu-button {
        width: 80%;
        height: 20%;
    }
    .scorebar-container {
        width: 60%;
    }
    .hbar-container {
        width: 30%;
    }
    .game-over-restart {
        left: 10%;
    }
    .game-over-continue {
        top: 80%;
    }
    .game-over-menu {
        right: 10%;
    }
}
/* @media (max-width: 800px) {
    .scorebar-text {
        font-size: 1rem;
    }
}
@media (max-width: 600px) {
    .scorebar-text {
        font-size: 0.7rem;
    }
} */

.behind {
    display: none;
    z-index: -200;;
}