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

    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Prevents scrollbars from the padding */
}



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


}


.info {
    margin-left: 0px;
    padding-bottom: 10px;

}

hr {
    border: 1px solid black;
    display: block;
}



#javaani {
    width: 100%;
    flex-grow: 1;
    /* Fills remaining space */
    background-color: #000;
    position: relative;
    display: flex;
    /* Centering magic */
    justify-content: center;
    align-items: center;
    overflow: hidden;


    background: linear-gradient(to top,
            rgba(0, 255, 0, 0.01) -200%,
            /* Stronger green at the absolute bottom */
            /* Quickly fades to black */
            rgba(0, 0, 0, 1) 20%);
}

/* Ensure the canvas sits behind the loader */
#javaani canvas {
    position: absolute;
    z-index: 1;

}



p {
    margin: 0;
}


h1 {
    margin: 0;

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

}


::-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);
}


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

}


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

}



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;

}

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

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

}

nav {
    padding-bottom: 15px;
}


/* Make sure loader is on top and centered */
.loader-centerer {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgb(0, 255, 0);
    text-align: center;

}

.loading-text {
    margin-top: 15px;
    color: #00ff00;
    /* Assuming green based on your lights */
    font-family: 'Neue-Montreal', sans-serif;
}

.triangle-loader {
    width: 40px;
    /* Height of equilateral triangle = width * 0.866 */
    height: 34.6px;
    position: relative;
    animation: spin 1.2s linear infinite;

    /* FIX 1: The Anchor Point */
    /* 50% horizontal, 66.6% vertical is the true centroid */
    transform-origin: 50% 66.6%;
}

.dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #00ff00;
    border-radius: 50%;
}

/* Triangle Layout */
.dot:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.dot:nth-child(2) {
    bottom: 0;
    left: 0;
}

.dot:nth-child(3) {
    bottom: 0;
    right: 0;
}



.dot-anim {
    display: inline-block;
    animation: dotPulse 1.4s infinite ease-in-out;
}

.dot-anim:nth-child(1) {
    animation-delay: 0.0s;
}

.dot-anim:nth-child(2) {
    animation-delay: 0.2s;
}

.dot-anim:nth-child(3) {
    animation-delay: 0.4s;
}

/* ANIMATION KEYFRAMES */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}








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


}