html,
body {
    font-family: Neue-Montreal;
    background-color: rgb(0, 255, 0);
    margin: 0;
    padding: 0 5px;
    padding-top: 0px;
}


#javaani {
  width: 100%;
  /* Your specific height requirement */
  height: calc(100vh - 145px); 
  position: relative;
  display: block;
  overflow: hidden;
  
}

canvas {
    display: block;
 
    /* Essential to remove the 4px bottom gap */
}

::-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;
    padding-top: 10px;
    background-color: rgb(0, 255, 0);
}


.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;

}

.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;


}



hr {
    border: 1px solid black;
}







/*RESPONSIVE */
/*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;

    }




    .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;
    }


}