html,
body {
    height: 100%;
    margin: 0;
    padding: 5px;
    /* The 5px green border */
    box-sizing: border-box;
    font-family: Neue-Montreal;
    background-color: rgb(0, 255, 0);


    /* Layout logic: stack elements vertically */
    display: flex;
    flex-direction: column;
}

#javaani {
    width: 100%;
    flex: 1;
    /* Stretches to fill vertical space */
    background-color: black;
    overflow: hidden;
    display: block;
    /* Ensures it has dimensions immediately */
    line-height: 0;
}

canvas {
    display: block !important;
}



::-moz-selection {
    /* Code for Firefox */
    color: rgb(0, 255, 0);
    background: rgb(0, 0, 0);
}

::selection {
    color: rgb(0, 255, 0);
    background: rgb(0, 0, 0);
}


@font-face {
    font-family: Neue-Montreal;
    src: url(NeueMontreal-Medium.otf);
    font-size: medium;


}

nav {
    display: flex;
    justify-content: space-between;
}


.logo {
    display: flex;
    margin: 0;
}


.logotesto {
    margin: 0;
    margin-left: 10px;
    width: 270px;
    font-family: Neue-Montreal;
    font-size: 24px;
    text-decoration: none;
    color: black;
    font-weight: normal;

}


.logoimg {
    background-image: url(Smirkstudiologo.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 85px;

}


hr {
    width: 100%;
    z-index: 10;
    border: 1px solid black;
    /* Ensure it has a color */
    margin-bottom: 10px;
    /* Give it some breathing room */
}

.logoimg:hover {
    background-image: url(Smirkstudiologo2.png);
    background-color: black;
}

.logotesto:hover {
    background-color: black;
    color: rgb(0, 255, 0);

}

nav {
    padding-bottom: 15px;

}

a {


    margin: 0;
    font-family: Neue-Montreal;
    font-size: 24px;
    text-decoration: none;
    color: black;
    font-weight: 400;

    /* --- FIX PER IL JITTER --- */
    display: inline-block;
    /* Permette di gestire altezza e larghezza */
    line-height: 1;
    /* Forza l'altezza della riga a essere uguale al font-size */
    height: 30px;
    /* Imposta un'altezza fissa (leggermente superiore al font-size) */
    vertical-align: middle;
    /* Allinea il contenuto al centro */
    overflow: hidden;
    /* Impedisce a simboli giganti di uscire dal bordo */

}

a:hover {
    background-color: black;
    color: rgb(0, 255, 0);

}


.navigazione {
    width: 240px;
    display: flex;
    flex-direction: column;

}




 /*RESPONSIVE */
@media screen and (max-width: 768px) {


    .navigazione {
        width: 100px;
        display: flex;
        flex-direction: column;

    }


    .logotesto {
        margin: 0;
        margin-left: 10px;
        width: 140px;
        font-family: Neue-Montreal;
        font-size: 14px;
       
        line-height: 16px;
        text-decoration: none;
        color: black;
        font-weight: normal;

    }

    #javaani {
        width: 100%;
        height: 100svh;
        /* 'svh' accounts for the mobile search/URL bars */
        overflow: hidden;
        position: relative;
    }


    .logoimg {
        background-image: url(Smirkstudiologo.png);
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        width: 50px;
        height: 50px;

    }



  a {
    margin: 0;
    font-family: Neue-Montreal;
    font-size: 14px;      /* Reduced from 14px */
    text-decoration: none;
    color: black;
    font-weight: 400;
    display: inline-block;
    line-height: 1;
    height: 16px;         /* Reduced from 22px - this controls the "box" height */
    vertical-align: middle;
    overflow: hidden;
}


}