img{
    user-select: none;
    -webkit-user-drag:none;
}
/*MODAL*/
.modal{
    position: fixed;
    top:0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999999;
    backdrop-filter: blur(8px);
    animation: background-opacity .5s;
}
@keyframes background-opacity {
    0%{
        backdrop-filter: blur(0px);
   }
    12.5%{
        backdrop-filter: blur(1px);
   }
    25%{
        backdrop-filter: blur(2px);
   }
    37.5%{
        backdrop-filter: blur(3px);
   }
    50%{
        backdrop-filter: blur(4px);
   }
    62.5%{
        backdrop-filter: blur(5px);
   }
    75%{
        backdrop-filter: blur(6px);
   }
    82.5%{
        backdrop-filter: blur(7px);
   }
    100%{
        backdrop-filter: blur(8px);
   }
}
.modal form{
    max-width: 400px;
    width: 100%;
    max-height: 600px;
    height: 100%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    row-gap: 20px;
    font-size: 1.5rem;
    filter: drop-shadow(30px 15px 5px #00000021);
    background: var(--background);
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}
.modal label{
    text-transform: uppercase;
    color: var(--text);
}
.modal input{
    background: var(--white);
    color: var(--black);
    height: 40px;
    display: flex;
    font-size: 1.2rem;
    outline: #0000;
    border-radius: 5px;
    border: 1px solid #0000;
    padding: 5px;
}
.modal textarea{
    background: var(--white);
    color: var(--black);
    height: 200px;
    font-size: 1.2rem;
    padding: 5px;
    outline: #0000;
    border-radius: 5px;
    border: 1px solid #0000;
    resize: none;
}
.modal input[type=submit]{
    color: var(--white);
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    justify-content: center;
    font-size: 1.3rem;
    background-color: var(--accent);
    transition: filter .5s;
}
.modal input[type=submit]:hover{
    filter: brightness(120%);
}

.modal i{
    position: absolute;
    right: 0;
    top: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(10px) translateY(-10px);
    color: var(--text);
    cursor: pointer;
    background-color: var(--background);
    border-radius: 50%;
    border: 2px solid black;
}
/*media width*/
@media(max-width:400px){
    .modal form{
        margin-inline: 20px;
        padding: 20px;
   }
}
/*DARK MODE*/
.dark_mode{
    position: fixed;
    bottom: 50px;
    right: 50px;
    border-radius: 50%;
    width: 3rem;
    aspect-ratio: 1/1;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: var(--background);
    background: var(--text);
    cursor: pointer;
    z-index: 9999999991 
}
@keyframes rotation {
    from{
        transform: rotate(0deg);
   }
    to{
        transform: rotate(360deg);
   }
}
/*media width*/
@media (max-width:450px){
    .dark_mode{
        bottom: 10px;
        right: 10px;
   }
}
#caricamento {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121212;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid #e6e6e6;
    border-top-color: #4CAF50;
    animation: spin 1s infinite linear;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
   }
}

