

@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap');

html,body{
    margin:0;
    width: 100%;
    height: 100%;
    color: #5A6772;
    font-size: 18px;
    background-color: #ffffff;
    font-family: Titillium Web;
}

header{
    position: relative;
    /* border-color: #26272d;
    border-style: solid;
    border-width: 4px; */
    /* height: 10%; */
    height: 3.5rem;
    /* width: calc(100% - 8px); */
    width: 100%;
    padding-top: 4%;
    background-color: #015081;
    /* background-image: url();
    background-position: center;
    background-size: cover; */
}

#menu{
    display: none;
}

#homelogo{
    margin: 0;
    margin-left: 1%;
    margin-top: -1.5%;
    margin-right: 0.5%;
    height: 120%;
    width: auto;
}

#title{
    position: absolute;
    /* top: 2.7rem; */
    top: 40%;
    color: hsla(0,0%,100%,.87);
    font-family: Titillium Web, sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 1.6rem;
}

.navButton{
    display: none;
    width: 5%;
    position:fixed;
    top: 2px;
    right:3px;
}

nav{
    position: fixed;
    text-align: end;
    width: inherit;
    width: calc(100%-2px);
    height: 1.2rem;
    padding: 0.1rem;
    background-color: #2a3036;
    box-shadow: 0px 2px 3px lightblue;
    z-index: 3;
}

#navmenu {
    z-index: 2;
    position: sticky;
    top: 25px;
    background-color: #b2b8bd;
    list-style-type: none;
    color: black;
    font-family: Titillium Web, sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 0.9rem;
    width: 100%;
    height: 1.5rem;
}

.navbtn {
    padding-right: 1.5rem;
    display: inline-block;
    width: fit-content;
    background-image: url("/arrowhead-down.png");
    background-size: 1.3rem;
    background-position: 100% 40%;
    background-repeat: no-repeat;
    text-align:left;
    margin-left: 0.7rem;
}

.navbtn:hover {
    cursor: pointer;
    /* -webkit-box-shadow: 0 6px 4px -4px aqua;
    -moz-box-shadow: 0 6px 4px -4px aqua;
    box-shadow: 0 6px 4px -4px aqua; */
}

.menu{
    top:1.5rem;
    padding-left: 0;
    position: absolute;
    background-color: white;
    border-width: 2px;
    border-style: solid;
    border-color: #eeeeee;
    width: 15%;
    margin:0;
    margin-left: -0.7rem;
    z-index: 2;
    list-style-type: none;
    clip-path: inset(0 0 100% 0);
}

#homebtn{
    background-image: none;
}

.menubtn{
    height: 2.4rem;
    padding-top: 0.8rem;
    padding-left: 5%;
    position: relative;
}

.menubtn::before{
    content: url("arrowhead-right.png");
    zoom: 2.5%;
    display: inline-block;
    position: relative;
    top: 3%; /* Adjust this value to move the content down */
}

.mefhead{
    color: white;
    position: absolute;
    left: 1.5%;
    bottom: 1%;
    top: 1%; 
}

#lognav{
    display: inline-flex;
    justify-content: space-between;
    position: relative;
    right: 1%;
    bottom: 15%;
}

#logout{
    position: relative;
    color: yellow;
    right: 4%;
}

#logdata span{
    color: white;
    padding: 0.2rem;
}

a{
    margin: 0 5px;
    color: #015081;
    text-decoration-line: none;
}

a:hover{
    color: #0066cc;
    cursor: pointer;
}

/* button{
    background-color: #612fbe;
    color: white;
    border-radius: 5px;
    box-shadow: 0px 3px 4px rgb(25, 25, 26);
} */

button{
    border-width: 0;
    font-family: Titillium Web;
    font-size: 1.1rem;
    font-weight: bold;
    color: #015081;
}

button:hover{
    background-color: #d1e7ff;
    cursor: pointer;
    /* border-bottom-width: 0.2rem;
    border-color: #0066cc;
    /* box-shadow: none; */
}

.hidden{
    display: none !important;
}

.modal-background{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
}

.modal-background.active {
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

#modal-window {
    border-width: 4px;
    border-style: solid;
    border-color: black;
    background: white;
    border-radius: 9px;
    width: 30%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

#modal-title {
    text-align: center;
    font-weight: 700;
    padding: 1rem;
    border-bottom: 1px solid black;
    border-radius: 2px;
    color: black;
    box-shadow: 0 4px 2px -1px rgba(0, 0, 0, 0.2); 
}

#senddata{
    margin: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
}

#modaldata{
    margin: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-bottom: 0.5rem;
}

.lighten{
    background-color: yellow;
    animation: lightenAnim 1s ease-in-out;
}

@keyframes lightenAnim {
    0% {
        background-color: white; /* Colore iniziale */
    }
    50% {
        background-color: yellow; /* Colore giallo a metà */
    }
    100% {
        background-color: white; /* Colore finale (ritorna al normale) */
    }
}

#err_code{
    text-align: center;
}

/* width */
::-webkit-scrollbar {
width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
background: #f1f1f1; 
}

/* Handle */
::-webkit-scrollbar-thumb {
background: #888; 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #555; 
}

/* @media (max-width: 500px){
    html{
        font-size: 15px;
    }

    #menu{
        font-size: 3vw;
        display: inline;
        position: absolute;
        top: 0.2rem;
        right: 0.4rem;
        color: #010147;
    }

    .navButton{
        display: block;
        width:8%;
        margin-top: 1rem;
        margin-right: 0.1rem;
        z-index: 2;
    }

    nav{
        display: none;
        top:40px;
        right:0;
        max-height: 0;
        height: fit-content;
        width: fit-content;
        text-align: center;
        border-radius: 3px;
    }

    nav a{
        display: block;
        visibility:hidden;
        padding: 10px 2px;
        background-color: #484fb9;
    }

    nav a:focus{
        background-color: #774d8f;
    }

    #navButtonAnimUp{
        animation-name: navButtonUp;
        animation-duration: 0.2s;
        animation-timing-function: linear;
        animation-fill-mode: forwards;
    }

    #navButtonAnimDown{
        animation-name: navButtonDown;
        animation-duration: 0.2s;
        animation-timing-function: linear;
        animation-fill-mode: forwards;
    }

    #navOpenAnim{
        animation-name: navOpen;
        animation-duration: 0.2s;
        animation-timing-function: linear;
        animation-fill-mode: forwards;
    }

    #navCloseAnim{
        animation-name: navClose;
        animation-duration: 0.2s;
        animation-timing-function: linear;
        animation-fill-mode: forwards;
    }

    @keyframes navButtonUp {
        0% {transform: rotate(0deg);}
        100%{transform: rotate(-180deg);}
    }

    @keyframes navButtonDown {
        0% {transform: rotate(-180deg);}
        100%{transform: rotate(0deg);}
    }

    @keyframes navOpen {
        0% {}
        100% {max-height:200px;}
    }

    @keyframes navClose {
        0% {max-height:200px;}
        100% {max-height:0;}
    }

    a{
        margin:2px 2px;
    }
} */