
.dp-none-joystick {
    display: none ;
}
@font-face {
    font-family: 'LuckiestGuy-Regular';
    src: url('LuckiestGuy-Regular.ttf');
    src: local('LuckiestGuy-Regular'), url('./font/LuckiestGuy-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

body {
    color: white;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    font-family: 'LuckiestGuy-Regular', Arial, sans-serif;
    background-image: url('img/3. Background/fish-6694633_1280.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    backdrop-filter: blur(5px);
}

a {
    text-decoration: none;
}

canvas {
    width: 100%;
    height: 100%;
    background-color: black;
    display: block;
}

.canvas-content {
    position: relative;
    width: 720px;
    height: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.main-menu-background-img {
    display: flex;
    top: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #00a6df;
}

.buttons-container {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.button-to-play {
    width: 195px;
    right: 85px;
    top: 162px;
    position: relative;
    cursor: pointer;
}

.button-to-controls {
    width: 135px;
    left: 88px;
    top: 30px;
    position: relative;
    cursor: pointer;
}

.button-to-impressum {
    width: 96px;
    top: 18px;
    position: relative;
    cursor: pointer;
}

#gameMenu {
    opacity: 1;
    transition: opacity 0.8s ease;
}

#gameMenu.overlay-fade-out {
    opacity: 0;
}

.game-over-dialog {
    background-color: rgb(0 0 0 / 73%);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 10;
    gap: 30px;
}

.game-win-dialog {
    background-color: rgb(0 0 0 / 73%);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 10;
    gap: 30px;
}

.game-end-dialog p {
    font-size: 52px;
}

.game-title {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.title {
    width: 284px;
}

.bubble {
    border-radius: 50%;
    clip-path: circle(50%);
    cursor: pointer;
    display: block;
    transition: transform 0.1s ease;
}

.bubble:hover {
    box-shadow: inset 20px 11px 20px 20px rgb(0 241 243 / 93%);
    transform: scale(1.05);
}

.controls-tab-container {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    width: 400px;
    height: 300px;
    z-index: 5;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    letter-spacing: 1px;
}

.back-button {
    position: absolute;
    top: 10px;
    left: 7px;
    width: 54px;
    cursor: pointer;
    background: #00a9e4;
    border-radius: 50%;
}

.back-button:hover {
    box-shadow: inset 20px 11px 20px 20px rgb(0 241 243 / 93%);
    transform: scale(1.05);
}

.dp-none {
    display: none;
}

.impressum-tab-container {
    position: absolute;
    ;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    width: 400px;
    height: 300px;
    z-index: 5;
    text-align: center;
    letter-spacing: 1px;
}

.title-impressum {
    margin-top: 54px;
}

.title-movement-controls {
    margin-top: 54px;
}

.dp-none-win {
    display: none;
}

.character-img {
    position: absolute;
    bottom: 208px;
    left: 50%;
    width: 274px;
    height: auto;
    z-index: 3;
    transform: rotate(-16deg);
}

.game-end-btn {
    background-color: #00a6df;
    border-radius: 10px;
    padding: 6px;
    font-size: 28px;
    cursor: pointer;
    box-shadow: black 1px 1px 1px;
    z-index: 3;
}

.game-win-btn {
    position: relative;
    z-index: 2;
    gap: 17px;
    display: flex;
    top: 147px;
}

.main-menu-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.game-end-title {
    font-size: 114px;
    letter-spacing: 19px;
}

.game-win-img {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: absolute;
    z-index: 2;
}

.volume-slider-container {
    position: absolute;
    bottom: 20px;
    left: 18%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    border-radius: 10px;
    z-index: 1;
    pointer-events: auto;
}

input[type="range"]#mainMenuVolume {
    touch-action: manipulation;
    pointer-events: auto;
    user-select: auto;
    min-width: 120px;
    height: 32px;
    background: transparent;
}
@media (pointer: coarse) {
    input[type="range"]#mainMenuVolume {
        min-width: 140px;
        height: 40px;
    }
}

.rotate-device {
    font-size: 100px;
}

.rotate-text {
    font-size: 52px;
    text-align: center;
}

.landscape-mode {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 20;
    gap: 20px;
}

.d-none {
    display: none;
}

.canvas-wrapper {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    overflow: hidden;
}

.joystick {
    position: absolute;
    left: 30px;
    bottom: 30px;
    z-index: 9;
    touch-action: none;
    user-select: none;
}

.joystick-base {
    width: 90px;
    height: 90px;
    background: rgba(0, 0, 0, 0.445);
    border-radius: 50%;
    position: relative;
}

.joystick-knob {
    width: 50px;
    height: 50px;
    background: rgba(54, 54, 54, 0.897);
    border-radius: 50%;
    position: absolute;
    left: 20px;
    top: 20px;
    transition: left 0.05s, top 0.05s;
}

.dp-none-joystick {
    display: none;
}

.joystick-btn {
    position: absolute;
    bottom: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 2rem;
    z-index: 11;
    opacity: 0.85;
    box-shadow: 1px 0px 13px 10px rgb(0 0 0);
    touch-action: manipulation;
    user-select: none;
    display: block;
}

.bubble-btn {
    left: 82px;
    background: #2196f3;
}

.poison-btn {
    left: 170px;
    background: #43a047;
}

.joystick-btn:active {
    opacity: 1;
    filter: brightness(1.2);
}

.attack-buttons {
    position: absolute;
    bottom: 0;
    left: 343px;
    display: flex;
}