@font-face {
    font-family: 'Luckiest Guy';
    src: url('../font/LuckiestGuy-Regular.ttf') format('woff2');
    font-weight: normal;
    font-style: normal;
}


* {
    font-family: 'Luckiest Guy', sans-serif;
    font-weight: 100;
}


html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: linear-gradient(180deg, rgba(255, 136, 0, 1) 0%, rgba(120, 42, 0, 1) 100%);
}


body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url(../img/BG/BG-IMAGE.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    font-family: 'Luckiest Guy', sans-serif;
}


h1 {
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px #000000;
    text-transform: uppercase;
    margin-bottom: 18px;
    font-size: 64px;
}


a {
    text-decoration: none;
    color: black;
    transition: all 0.25s ease-in-out;
}


a:hover {
    color: white;
}


.important-text-style{
    color: #ffe100;
}


.startContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
}


.start-img-bg {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-radius: 6px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 1);
    width: 720px;
    height: 480px;
    background-image: url(../img/9_intro_outro_screens/start/startscreen_2.png);
    background-position: center;
    background-size: contain;
    background-position-y: 0.3px;
    max-height: 100vh;
}


.start-BTN {
    flex: 1;
    padding: 32px 28px;
    border: none;
    outline: none;
    background: linear-gradient(180deg, rgb(21, 105, 141) 0%, rgba(107, 197, 235) 100%);
    color: rgb(255, 255, 255);
    text-transform: uppercase;
    font-weight: 100;
    font-size: 28px;
    transition: all 0.25s ease-in-out;
    display: inline-block;
    position: relative;
    overflow: hidden;
    border-radius: 6px 6px 0px 0px;
}


.start-BTN::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: #0087c6;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-in-out;
}


.start-BTN:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}


.start-BTN:hover {
    color: rgb(222, 222, 222);
    box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}


.secondery-bg {
    background: linear-gradient(180deg, rgba(255, 136, 0, 1) 0%, rgba(120, 42, 0, 1) 100%);
    padding: 27px;
    border-radius: 0px;
    font-size: 18px;
}


.secondery-bg::after {
    background-color: #ff8800;
}


.end-menu {
    display: none;
}


.end-container {
    display: flex;
    justify-content: spa;
    align-items: center;
    min-height: 90px;
}


.end-img-bg {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 1);
    width: 720px;
    height: 480px;
    background-color: #000000;
    background-image: url(../img/9_intro_outro_screens/game_over/you_won.jpg);
    background-position: center;
    background-size: cover;
    max-height: 100vh;
}


.end-BTN {
    flex: 1;
    padding: 16px;
    margin-top: 128px;
    border: none;
    outline: none;
    background: linear-gradient(180deg, rgb(36, 151, 200) 0%, rgba(107, 197, 235) 100%);
    color: rgb(255, 255, 255);
    text-transform: uppercase;
    font-weight: 100;
    font-size: 18px;
    transition: all 0.25s ease-in-out;
    display: inline-block;
    position: relative;
    overflow: hidden;
}


.end-BTN::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: #0087c6;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-in-out;
}


.end-BTN:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}


.end-BTN:hover {
    color: rgb(222, 222, 222);
    box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}


.lost-menu {
    display: none;
}


.lost-container {
    display: flex;
    justify-content: spa;
    align-items: center;
    min-height: 90px;
}


.lost-img-bg {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 1);
    width: 720px;
    height: 480px;
    background-color: #000000;
    background-image: url(../img/9_intro_outro_screens/game_over/you_lost.jpg);
    background-position: center;
    background-size: cover;
    max-height: 100vh;
}


.restart-icon {
    display: none;
}


.canvas-container {
    position: relative;
    display: inline-block;
}


.restart-icon {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 420px;
    left: 33px;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease-in-out;
    font-size: 16px;
}


.restart-icon:hover {
    opacity: 0.7;
}


.restart-text {
    opacity: 0.7;
    background-color: #0087c6;
    padding: 3px;
    border-radius: 6px;
    font-weight: 700;
    position: absolute;
    color: rgb(0, 0, 0);
    font-size: 16px;
    z-index: 10;
    top: 443px;
    left: 63px;
}


.mobile-icons-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    display: none;
    z-index: 999;
}


.mobile-icons {
    border-radius: 50px;
    align-self: center;
    width: 50px;
    height: 50px;
    pointer-events: auto;
    position: absolute;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    user-select: none;
    pointer-events: auto;
    touch-action: none;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}


.mobile-icons:hover {
    opacity: 0.7;
    transform: scale(0.95);
}


.mobile-icons:active {
    opacity: 0.5;
    transform: scale(0.9);
}


.m-left {
    bottom: 20px;
    left: 10px;
    background-color: rgb(248, 147, 103);
    border: 1px solid rgb(255, 123, 0);
}


.m-right {
    bottom: 20px;
    left: 70px;
    background-color: rgb(248, 147, 103);
    border: 1px solid rgb(255, 123, 0);
}


.m-jump {
    bottom: 20px;
    right: 70px;
    background-color: rgb(174, 214, 254);
    border: 1px solid rgb(0, 149, 255);
}


.m-bottle {
    bottom: 20px;
    right: 10px;
    background-color: rgb(178, 90, 90);
    border: 1px solid red;
}


.rotation-warning-box {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: white;
    font-size: clamp(18px, 5vw, 32px);
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 9999;
    overflow: hidden;
}


canvas {
    background-color: black;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 1);
    border-radius: 6px;
    display: block;
}


.controls-info {
    margin-top: 16px;
    text-align: center;
    align-self: center;
    width: 720px;
    background-color: rgba(201, 102, 21, 0.927);
    color: white;
    font-size: 18px;
    text-align: left;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    max-width: 720px;
    display: block;
}


.info-text {
    align-self: center;
    text-align: center;
}


.audio-controls-container {
    gap: 420px;
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    justify-content: center;
    width: 100%;
    pointer-events: none;
}


#audioToggleBTN {
    display: none;
}


.toggle-mute-btn {
    pointer-events: auto;
    padding: 6px 18px;
    border: none;
    border-radius: 6px;
    font-family: 'Luckiest Guy', sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    color: white;
    min-width: 140px;
    text-align: center;
}


.toggle-mute-btn.muted {
    background: linear-gradient(180deg, #ff4444 0%, #cc0000 100%);
}


.toggle-mute-btn.unmuted {
    background: linear-gradient(180deg, #44ff44 0%, #00cc00 100%);
}


.toggle-mute-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.4);
}


.toggle-mute-btn:active {
    transform: translateY(0);
}


.toggle-mute-btn.muted:hover {
    background: linear-gradient(180deg, #ff5555 0%, #dd0000 100%);
}


.toggle-mute-btn.unmuted:hover {
    background: linear-gradient(180deg, #55ff55 0%, #00dd00 100%);
}


.toggle-mute-btn-BG {
    pointer-events: auto;
    padding: 6px 18px;
    border: none;
    border-radius: 6px;
    font-family: 'Luckiest Guy', sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    color: white;
    min-width: 140px;
    text-align: center;
}


.toggle-mute-btn-BG.muted {
    background: linear-gradient(180deg, #ff4444 0%, #cc0000 100%);
}


.toggle-mute-btn-BG.unmuted {
    background: linear-gradient(180deg, #44ff44 0%, #00cc00 100%);
}


.toggle-mute-btn-BG:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.4);
}


.toggle-mute-btn-BG:active {
    transform: translateY(0);
}


.toggle-mute-btn-BG.muted:hover {
    background: linear-gradient(180deg, #ff5555 0%, #dd0000 100%);
}


.toggle-mute-btn-BG.unmuted:hover {
    background: linear-gradient(180deg, #55ff55 0%, #00dd00 100%);
}



@media (max-width: 720px) {
    h1 {
        display: none;
    }
    
    .controls-info {
        display: none !important;
    }
    
    .info-text {
        display: none !important;
    }
    
    .audio-controls-container {
        bottom: 90px;
    }
    
    .toggle-mute-btn {
        font-size: 16px;
        padding: 10px 20px;
        min-width: 120px;
    }
    
    canvas,
    .startContainer,
    .end-menu,
    .lost-menu {
        width: 100%;
    }
}


@media (max-width: 1080px) and (max-height: 720px) {
    .controls-info {
        display: none !important;
    }
    
    .info-text {
        display: none !important;
    }
}

@media (max-height: 720px) {
    h1 {
        display: none;
    }
}


@media only screen and (max-height: 480px) {
    canvas {
        height: 100vh;
    }
    
    .audio-controls-container {
        scale: 0.5;
        bottom: 5px;
        left: 50%;
        transform: translateX(-100%);
    }
}


@media (max-width: 480px) {
    .audio-controls-container {
        bottom: 80px;
    }
    
    .toggle-mute-btn {
        font-size: 14px;
        padding: 8px 16px;
        min-width: 100px;
    }
    
    .audio-controls button {
        font-size: 12px;
        padding: 4px 8px;
    }
}
