body {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    background-image: url('./assets/img/background/underwater_bg.jpg');
    background-size: cover;
    font-family: LuckiestGuy;
    margin: 0;
    overflow: hidden;
}

@font-face {
    font-family: LuckiestGuy;
    src: url('./assets/fonts/Luckiest_Guy_Regular.ttf');
}

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

.btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: white;
    font-family: 'LuckiestGuy';
    font-size: 32px;
    background-color: rgba(83, 26, 130, 1);
    border: 3px solid white;
    border-radius: 16px;
    padding: 16px;
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img {
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.btn:hover {
    background-color: rgba(129, 37, 205, 1);
}

.d-none {
    display: none !important;
}

.scroll-enabled {
    overflow: auto !important;
}

.loading-screen {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    background-image: url('./assets/img/background/underwater_bg.jpg');
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loading-text {
    color: white;
    font-size: 64px;
    margin: 64px 0 0 0;
}

.nav {
    display: flex;
    position: absolute;
    top: 16px;
    right: 16px;
    gap: 8px;
}

.nav-icon {
    width: 100%;
}

.nav-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    border: none;
    border-radius: 8px;
    padding: 4px;
    width: 48px;
}

.nav-btn:hover,
.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.game-title {
    font-size: 72px;
    color: white;
    text-shadow: 0 0 8px #003eab;
    margin-bottom: 52px;
    font-weight: 100;
}

.canvas-wrapper {
    position: relative;
}

.canvas-frame-img {
    position: absolute;
    top: -88px;
    right: 0px;
    bottom: 0;
    left: -62px;
    z-index: 1;
    width: 846px;
    height: 646px;
}

canvas {
    background-color: black;
}

.fullscreen-container {
    position: relative;
}

.fullscreen {
    width: 100% !important;
    height: 100% !important;
}

.screen-message {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 64px;
    text-align: center;
}

.mobile-controller-container-left {
    position: absolute;
    bottom: 32px;
    left: 32px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

#ctrl-btn-fin-slap,
#ctrl-btn-bubble-trap,
#ctrl-btn-poison-bubble-trap {
    position: absolute;
    z-index: 2;
}

#ctrl-btn-fin-slap {
    bottom: 16px;
    right: 128px;
}

#ctrl-btn-bubble-trap {
    bottom: 64px;
    right: 80px;
}

#ctrl-btn-poison-bubble-trap {
    bottom: 112px;
    right: 32px;
}

.mobile-ctrl-btn {
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background-color: rgb(255 255 255 / 40%);
    color: white;
    text-shadow: -1px 1px 2px black;
}

.mobile-controller-x-control {
    display: flex;
    gap: 48px;
}

.ctrl-arrow-img {
    width: 26px;
    opacity: 0.8;
}

#mobile-fullscreen-btn {
    position: absolute;
    top: 8px;
    right: 120px;
    z-index: 2;
}

#mobile-mute-btn {
    position: absolute;
    top: 8px;
    right: 64px;
    z-index: 2;
}

#mobile-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

.start-screen-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: url('./assets/img/background/underwater_bg.jpg');
    background-size: cover;
    width: 100%;
    height: 100%;
}

.start-screen-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 0 64px 0;
}

.start-screen-title {
    font-size: 72px;
    color: white;
    text-shadow: 0 0 8px #003eab;
    margin: 0;
    font-weight: 100;
}

.start-screen-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.end-screen-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
}

.end-screen-header {
    margin: 0 0 64px 0;
    width: 80%;
    height: 50%;
}

.end-screen-img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.end-screen-body {
    display: flex;
    gap: 64px;
    margin-top: 64px;
}

.max-level-heading {
    font-size: 36px;
    color: white;
    margin: 0;
    text-align: center;
}

.game-over-screen-title {
    color: white;
    font-size: 72px;
    text-align: center;
    margin: 0;
}

.settings-menu-container {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 4;
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('./assets/img/background/wood_bg.jpg');
    background-size: cover;
    background-position: center;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
}

.settings-menu-heading {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.settings-menu-title {
    font-size: 56px;
    color: white;
    margin: 0;
    padding: 0 32px 0 32px;
    border-bottom: 6px solid white;
    text-shadow: 0 0 2px #000000;
}

.settings-menu-body {
    display: flex;
    flex-direction: column;
    padding-top: 32px;
    margin-bottom: 32px;
}

.settings-menu-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 16px 0 16px;
    padding: 4px 16px 4px 16px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 16px;
}

.doubled-row {
    flex-direction: column;
    align-items: unset;
}

.settings-menu-sub-row {
    display: flex;
    gap: 16px;
}

.settings-menu-row-title {
    color: white;
    font-size: 36px;
    margin: 0;
    text-shadow: 0 0 2px #000000;
}

.settings-annotation {
    color: #2E1AB1;
    font-size: 22px;
    text-shadow: none;
}

.settings-menu-checkbox {
    width: 32px;
    height: 32px;
}

.debugLevelNr-select {
    width: 48px;
    height: 36px;
    font-weight: 700;
    font-size: 24px;
    color: #494949;
}

.help-container {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 4;
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('./assets/img/background/wood_bg.jpg');
    background-size: cover;
    background-position: center;
}

.help-header {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
    padding-top: 32px;
}

.help-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.help-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: -webkit-fill-available;
    gap: 16px;
    margin: 0 32px 32px 32px;
    padding: 0 16px 0 16px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.help-sub-row {
    display: flex;
    gap: 16px;
}

.help-last-row {
    flex-direction: column;
    align-items: center;
    padding-bottom: 16px;
}

.help-instruction {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    color: white;
    text-shadow: 0 0 2px #000000;
    text-align: center;
}

.help-img {
    width: 140px;
    object-fit: contain;
}

.help-img-key {
    width: 64px;
    object-fit: contain;
}

.help-img-sharkie {
    width: 132px;
    margin-top: -32px;
}

.help-img-puffer-fish {
    width: 96px;
    margin-top: 13px;
}

.help-img-jellyfish {
    width: 64px;
    object-fit: contain;
}

.help-img-endboss {
    width: 120px;
    margin-top: -48px;
    object-fit: contain;
}

.help-img-poison {
    width: 64px;
    margin-top: -48px;
    object-fit: contain;
}

.img-attribution {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
}

.img-attribution a {
    text-decoration: none;
}


/* Hide message when on desktops */

@media (hover: hover) {
    #landscape-message {
        display: none !important;
    }
}


/* Show message when on mobile devices */

@media (orientation: portrait) and (max-width: 992px) {
    #landscape-message {
        display: flex !important;
        padding: 16px;
    }
}

@media (orientation: landscape) and (max-width: 992px) {
    .end-screen-header {
        margin: 0 0 0 0;
    }
}

@media (orientation: landscape) and (max-height: 420px) {
    .btn {
        font-size: 16px !important;
    }
    .end-screen-header {
        margin: 0 0 0 0;
    }
    .end-screen-body {
        margin-top: 16px !important;
    }
}

@media only screen and (max-width: 480px) {
    .btn {
        font-size: 18px !important;
    }
    .end-screen-header {
        height: unset;
    }
    .end-screen-body {
        flex-direction: column;
    }
}

@media only screen and (max-width: 900px) {
    .btn {
        font-size: 24px;
    }
    .end-screen-header {
        margin: 0 0 16px 0;
    }
    .max-level-heading {
        font-size: 24px;
    }
    .end-screen-body {
        margin-top: 16px;
        gap: 32px;
    }
    .settings-menu-title {
        font-size: 36px;
    }
    .settings-menu-row-title {
        font-size: 24px;
    }
    .help-instruction {
        font-size: 24px;
    }
    .help-img-poison {
        margin-top: -32px;
    }
}

@media only screen and (max-width: 900px) and (orientation: landscape) {
    .end-screen-header {
        margin: 0 0 32px 0;
    }
    .end-screen-body {
        margin-top: 32px;
        gap: 32px;
    }
}


/* Small devices (portrait tablets and large phones, 600px and up) */

@media only screen and (min-width: 600px) {
    .settings-menu-title {
        font-size: 48px;
    }
    .settings-menu-row-title {
        font-size: 28px;
    }
    .debugLevelNr-select {
        height: 28px;
        font-size: 18px;
    }
    .help-img {
        width: 120px;
    }
    .help-img-key {
        width: 48px;
    }
    .help-img-puffer-fish {
        width: 64px;
    }
    .help-img-endboss {
        width: 100px;
    }
    .help-img-jellyfish {
        width: 46px;
    }
    .help-instruction {
        font-size: 20px;
    }
}


/* Large devices (laptops/desktops, 992px and up) */

@media only screen and (min-width: 992px) {
    .settings-menu-title {
        font-size: 56px;
    }
    .settings-menu-row-title {
        font-size: 36px;
    }
    .debugLevelNr-select {
        height: 36px;
        font-size: 24px;
    }
    .help-img {
        width: 140px;
    }
    .help-img-key {
        width: 64px;
    }
    .help-instruction {
        font-size: 32px;
    }
}