
body{
font-family: "C64";
    font-size: xx-small;
    background-image: url("jungle.jpeg");
    color: antiquewhite;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    overscroll-behavior-y: contain; 
}

h1 {
    font-family: "C64";
}

#topmeny {
    font-family: "C64";
}

#poeng {
    font-family: "C64";
}


.tilbake {
    font-family: "C64";
    transform: translate(6px, 10px);
    width: 129px;
    height: 40px;
    border-radius: 4px;
    border: none;


    background: rgba(5, 122, 176, 0.386);
    backdrop-filter: blur(25px) saturate(180%);

    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;

    box-shadow:
        0 6px 25px rgba(88, 1, 82, 0.12),
        0 0 20px rgba(38, 1, 102, 0.18),
        inset 0 0 0 1px rgba(101, 25, 25, 0.14);

    cursor: pointer;
    transition: 0.25s ease;
}

.tilbake:hover {
    background-color: #ad040481;
    color: rgba(6, 168, 168, 0.473);
    box-shadow: 0 0 20px red;
    transform: translate(6px, 10px) scale(1.1);
}

.tilbake:active {
    background-color: #ad040481;
    color: rgba(4, 120, 120, 0.687);
    box-shadow: 0 0 20px rgb(105, 2, 2);
    transform: translate(6px, 10px) scale(1.03);
    border-radius:  100%;
}

@font-face {
  font-family: "C64"; /* Choose a name for your font */
  src: url("Font.otf") format("opentype"); /* Specify the path and format */
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Optional: controls how the font loads */
}

#restartGame, #fullscreenBtn {
    user-select: none;
    max-width: 100%;
    height: auto;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#restartGame:hover{
    scale: 1.12;
    opacity: 80%;
    rotate: 1deg;
}

#fullscreenBtn{
    font-family: "C64";
    font-size: xx-small;
    height: 50px;
    width: fit-content;
    color: white;
    background-color: darkgreen;
    transition: all 0.5s ease;
    margin-left: 10px;
}

#fullscreenBtn:hover{
    scale: 1.12;
    opacity: 80%;
    rotate: -1deg;
}

@media (max-width: 767px) {
    #game {
        max-width: 100vw;
        height: auto;
    }
    #restartGame, #fullscreenBtn {
        font-size: 0.8rem;
        height: 60px;
        padding: 0 20px;
    }
    #topmeny {
        font-size: 1rem;
    }
    h1 {
        font-size: 1.2rem;
    }
}

#topmeny {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;

            max-width: 600px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 15px;
            box-sizing: border-box;
        
 }
    

        #game {
            border: 3px solid #000;
            background-image: url('GFX/background.gif');
            background-size: cover;
            background-position: center;
            /* CRITICAL: Prevents scrolling/zooming while playing */
            touch-action: none; 
            user-select: none;
            -webkit-user-select: none;
            max-width: 98vw;
            height: auto;
            box-shadow: 0 4px 15px rgba(0,0,0,0.5);
        }

        .controls-hint {
            font-size: 0.8rem;
            color: #888;
            margin-top: 10px;
        }


        #restartGame{
    font-family: "C64";
    font-size: xx-small;
    height: 50px;
    width: fit-content;
    color: white;
    background-color: rgb(255, 17, 0);
    transition: all 0.5s ease;
    margin-left: 10px;
}

#restartGame:hover{
    scale: 1.12;
    opacity: 80%;
    rotate: -1deg;
}