
:root
{
    --c1: #EBD3F8;
    --c2: #AD49E1;
    --c3: #561777;
    --c4: #2E073F;
    --c5: rgba(235, 211, 248, 0.15);
}

@font-face
{
    font-family: "font";
    src: url("./font/letters/MondaySans.ttf");
}

@font-face
{
    font-family: "Comfortaa";
    src: url("./font/letters/Comfortaa-Regular.ttf");
}

@font-face
{
    font-family: "bit";
    src: url("./font/numbers/bit.ttf");
}

body, html
{
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;

    font-family: 'Comfortaa', 'font';
    /* font-family: sans-serif; */
    cursor: url(hand.cur);
}

body
{
    background: rgb(24, 24, 24);
    color: var(--c1);
}

.bgVideo
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -999;
    overflow: hidden;
    opacity: 0.3;
}

.bgVideo.intro
{
    opacity: 1;
}

#navbar.intro
{
    visibility: hidden !important;
    display: none !important;
}

#navbarBasso.intro
{
    display: none !important;
    visibility: hidden !important;
}

#spaceVideo
{
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.content
{
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding: 20px;
}

#ripple
{
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);

    z-index: -1;
}




#navbar
{
    position: fixed;
    top: 0; bottom: 0; left: 0; width: 6rem;
    background: rgba(235, 211, 248, 0.15);
    backdrop-filter: blur(3px);

    display: flex;
    align-items: center;

    transition: width 0.5s;
    overflow: hidden;

    z-index: 9999999;
}

#navbar:hover
{
    width: 12rem
}

#navbar .contenitoreIcone
{
    width: 6rem;
    height: 20rem;

    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: space-between;

    transition: transform 0.5s;
}

#navbar .sezione
{
    display: flex;
    flex-direction: row;
    width: 12rem;

    justify-content: left;
    transition: justify-content 1s;
    padding: 1rem 0;

}

#navbar .contenitoreIcone span
{
    display: flex;
    color: var(--c1);
    font-size: 1.2rem;
    align-items: center;
}

#navbar .icona
{
    width: 2.5rem;
    cursor: pointer;
}

#navbar .contenitoreIcona
{
    display: flex;
    width: 6rem;

    position: relative;

    justify-content: center;
    transition: width 0.5s;
}

#navbar:hover .contenitoreIcona
{
    width: 4.5rem;
}

#navbar .sezione:hover
{
    background: rgba(235, 211, 248, 0.15);
    cursor: pointer;
}


#userIcon
{
    width: 4rem;
    height: 4rem;

    background: rgba(235, 211, 248, 0.15);
    border-radius: 100%;

    position: fixed;
    top: 1.5rem;
    right: 1.5rem;

    overflow: hidden;
    cursor: pointer;

    z-index: 99;
}

#userIcon img
{
    width: 4rem;
    border-radius: 100%;
}

#app
{
    position: fixed;
    top: 0; bottom: 0; right: 0; left: 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

#titoloSezione
{
    font-size: 3rem;
    letter-spacing: 0.3rem;
    position: absolute;
    top: 3rem;
    left: 50%;

    transform: translateX(-50%);
}



.scroll::-webkit-scrollbar
{
    width: 15px;
    height: 15px;

    transform: translateY(10px);
}

.scroll::-webkit-scrollbar-thumb
{
    background-color: #888;
    border-radius: 1rem;
}

.scroll::-webkit-scrollbar-track
{
    /* background-color: #f1f1f1; */
    border-radius: 5rem;
}

.scroll::-webkit-scrollbar-thumb:hover
{
    cursor: grab;
}

.scroll::-webkit-scrollbar-thumb:active
{
    background-color: #5c5c5c;
    cursor: grabbing !important;
}

::-webkit-scrollbar-corner
{
    background: transparent;
}


.green
{
    color: rgb(11, 212, 11);
}

.red
{
    color: rgb(255, 0, 0);
}


.placeholder-icon
{
    position: absolute;
    left: 1rem;
    top: 0.5rem;
    height: 30px;
}

/* #contenitoreForm input, */
#cercaTitolo
{
    width: 13rem;
    padding: 0.8rem;
    padding-left: 3.3rem;

    border: 2px solid var(--c1);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2.5rem;

    /* margin-bottom: 1rem; */
    color: var(--c1);
    font-family: 'font';
    font-size: 1.2rem;
}

.campo
{
    position: relative;
    display: flex;
    align-items: center;
}

input::placeholder
{
    color: var(--c1);
}

#cercaTitolo:focus
{
    outline: none;
    border: 2px solid var(--c2);
}

.preferito
{
    width: 2rem;
}

.esteso
{
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90% !important;
    height: 90% !important;
    z-index: 9999;
}

body.graficoEsteso *:not(.bgVideo)
{
    display: none;
}

body.graficoEsteso .bgVideo *, #contenitoreData *
{
    display: flex !important;
}

.visibile
{
    display: flex !important;
}

.nascosta
{
    display: none !important;
}

body.esteso #contenitoreGrafico.esteso
{
    display: flex;
}

/* Telefono */
#navbarBasso
{
    display: none;
}

#contenitoreData
{
    background: #38343c;
    position: fixed;
    bottom: 1rem; right: -17rem;
    width: 20rem;
    padding: 1rem;
    display: none;
    justify-content: space-between;
    align-items: center;

    border-radius: 2rem 0 0 2rem;
    transition: right 0.5s ease-out, left 0.5s ease-out;
    cursor: pointer;
    user-select: none;
}

#contenitoreData.dentro
{
    right: 0;
}

#contenitoreData img
{
    height: 3rem;
    border: 2px solid white;
    border-radius: 100%;
}

#data
{

    height: 2rem;
    width: 15rem;

    font-size: 2rem;
    letter-spacing: 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "bit";
}

#data .data
{
    font-size: 1.3rem;
}

.dotsLoading
{
    letter-spacing: 0.3rem;
}

.adv
{
    min-height: 12rem !important;
    width: 12rem;
    min-width: 12rem;

    background: rgba(235, 211, 248, 0.15);
    border-radius: 1.5rem;

    display: flex;
    flex-direction: column;
    justify-content: space-around;

    padding: 1rem 2rem;
    box-sizing: border-box;

    /* font-size: 1.4rem; */
    font-size: 1.2rem;
    border: 2px solid;

    margin: 0.8rem;
    transform: translateX(10px);
    transition: transform 0.5s, box-shadow 0.5s, border 0.5s;

    box-shadow: 0rem 0.4rem 0rem 0.1rem rgba(235, 211, 248, 0.15);
    /* box-shadow: 0.4rem 0rem 0rem 0.1rem white; */

}

.adv span:last-child
{
    width: 6.5rem;
    padding: 0.7rem;
    text-align: center;
    border-radius: 10px;
    color: white !important;

    /* border: 1px solid; */
}

.adv:hover
{
    cursor: pointer;
    /* transform: translateY(-1rem); */
    transform: translate(0.6rem, -0.5rem) !important;

    box-shadow: 0rem 0.9rem 0rem 0.1rem rgba(235, 211, 248, 0.15);
    border: 2px solid var(--c2)
    /* box-shadow: 0rem 0.9rem 0rem 0.1rem white; */
}

.selezionabile
{
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    /* margin: 20rem !important; */
}

.selezionabile:hover
{
    background: rgba(235, 211, 248, 0.15);
}

.selezionato
{
    background: rgba(235, 211, 248, 0.4) !important;
}

#navbar.tutorial
{
    pointer-events: none;
}

.introjs-tooltip
{
    /* background-color: #222 !important; */
    background-color: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
}

.introjs-tooltip a
{
    font-family: "Comfortaa";
    font-weight: bold;
}

.introjs-arrow.bottom
{
    border-top-color: rgba(0, 0, 0, 0.8) !important;
}

.introjs-arrow.top
{
    border-bottom-color: rgba(0, 0, 0, 0.8) !important;
}

.introjs-arrow.right,
.introjs-arrow.right-bottom,
.introjs-arrow.right-top
{
    border-left-color: rgba(0, 0, 0, 0.8) !important;
}

.introjs-arrow.left,
.introjs-arrow.left-bottom,
.introjs-arrow.left-top
{
    border-right-color: rgba(0, 0, 0, 0.8) !important;
}

.introjs-tooltiptext
{
    font-family: "font" !important;
    font-size: 1.3rem;
    text-align: center;
    line-height: 1.5rem;;
}
.introjs-helperLayer
{
    /* background: rgba(0, 0, 0, 0.6) !important; */
    /* display: none !important; */
    pointer-events: none !important;
}

.max-height
{
    /* background: rgba(0, 0, 0, 0.6) !important; */
    /* display: none !important; */
    height: calc(100% - 39rem) !important;
}

.introjs-overlay
{
    pointer-events: none !important;
}

.introjs-skipbutton
{
    background: rgba(0, 0, 0, 0.8) !important;
    color: rgb(255, 0, 0) !important;
    font-family: "font" !important;
    font-size: 2rem !important;
}

.tooltip-centrato
{
    transform: translateX(-50%) !important;
    left: 50% !important;
}


.tooltip-centrato .introjs-arrow
{
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.tooltip-large
{
    max-width: 500px !important;
    min-width: 500px !important;
    font-size: 16px;
    padding: 1rem;
}

.tooltip-large *
{
    text-align: left !important;
}

.tooltip-list li
{
    text-align: left !important;
    padding-top: 1rem;
}

.tooltip-large li
{
    padding-top: 1rem;
}

.introjs-tooltipReferenceLayer * 
{
    font-family: "Comfortaa" !important;
}

.interagibile
{
    pointer-events: auto !important;
}

.errato
{
    border: 2px solid rgb(167, 3, 3) !important;
    animation: shake 0.3s ease;
}

.pulse
{
    animation: pulsazione 0.8s ease;
    animation-iteration-count: infinite;
}

.trema
{
    animation: shake 0.3s ease;
}

@keyframes shake
{
    0%   { transform: translateX(0); }
    25%  { transform: translateX(-5px); }
    50%  { transform: translateX(5px); }
    75%  { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

@keyframes pulsazione
{
    0%   { transform: scale(1); opacity: 1; }
    50%  { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}


@media (max-width: 1288px)
{
    #navbar:hover
    {
        width: 6rem
    }

    #navbar:hover .contenitoreIcona
    {
        width: 6rem;
    }

    #titoloSezione
    {
        font-size: 2.5rem;
        letter-spacing: 0.25rem;
    }

}

@media (max-width: 944px)
{
    #titoloSezione
    {
        font-size: 2rem;
        letter-spacing: 0.2rem;
    }

    #contenitoreData
    {
        bottom: 6rem;
    }

    #navbar
    {
        display: none !important;
    }

    #navbarBasso
    {
        position: fixed;
        bottom: 0; left: 0; right: 0; height: 5rem;
        background: rgba(235, 211, 248, 0.15);
        backdrop-filter: blur(5px);
        width: 100%;
        display: flex;
        align-items: center;

        transition: width 0.5s;
        overflow: hidden;
        z-index: 9999999;
    }

    .contenitoreIcone
    {
        width: 100%;
        height: 4rem;

        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;

        transition: transform 0.5s;
        }


    #navbarBasso .contenitoreIcone
    {
        height: 4rem;
        height: 100%;

        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        transition: transform 0.5s;
    }

    #navbarBasso .sezione
    {
        display: flex;
        flex-direction: row;
        width: 12rem;
        justify-content: center;
        transition: justify-content 1s;
        padding: 1rem 0;

    }

    #navbarBasso .icona
    {
        height: auto;
        width: auto;
        cursor: pointer;
        margin: 6px;
    }

    #navbarBasso .contenitoreIcona
    {
        display: flex;
        height: 3rem;

        position: relative;
        
        justify-content: center;
        transition: width 0.5s;
    }

    #app
    {
        left: 0 !important; bottom: 2rem;
    }

    #userIcon
    {
        top: 2rem;
    }

    #app
    {
        overflow: hidden;
        bottom: 0;
        margin-bottom: 5rem;
    }
}

@media (max-width: 576px)
{
    #app
    {
        position: fixed;
        top: 0; bottom: 0; right: 0; left: 0rem;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    #contenitoreData
    {
        background: #38343c;
        position: fixed;
        bottom: unset; top: 1.5rem; left: -17rem; right: unset;
        width: 20rem;
        padding: 1rem;
        display: none;
        justify-content: space-between;
        align-items: center;

        border-radius: 0 2rem 2rem 0;
        transition: right 0.5s ease-out, left 0.5s ease-out;
        cursor: pointer;
        user-select: none;
    }

    #contenitoreData.dentro
    {
        left: 0;
    }

    #contenitoreData img
    {
        height: 3rem;
        border: 2px solid white;
        border-radius: 100%;
        order: 2;
    }

    /* #contenitoreData
    {
        transform: scale(0.85);
        transform-origin: right;
        width: 23rem;
    } */
}


.punizione-overlay
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* sfondo scuro trasparente */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}
  
.punizione
{
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    color: white;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px rgba(109, 43, 137, 0.8);
    font-family: "Comfortaa";
    display: flex;
    flex-direction: column;
    justify-content: center;
}
  
.punizione h2
{
    color: #c088ff; /* tono di viola più chiaro */
    margin-bottom: 15px;
}

.punizione p
{
    font-size: 1.1rem;
}
  
.punizione button
{
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #6d2b89;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-family: "Comfortaa";
}
  
.punizione button:hover {
    background-color: #8533aa;
}


.loadingIntro
{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
}