/* Impostazione pagina */

@font-face{
    font-family: Ubuntu;
    src: url(../fonts/Ubuntu-Light.ttf)
}

@font-face{
    font-family: UbuntuReg;
    src: url(../fonts/Ubuntu-Regular.ttf)
}

::selection{
    background-color: #83ba43;
    color: white;
    
}

::-webkit-scrollbar {
    width: 10px;
}
  
::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    border-radius: 10px;
}
  
::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 50px;
}

/* Stile elementi generici */

html{
    -moz-osx-font-smoothing: grayscale;
}

*, ::after, ::before{
    box-sizing: content-box !important;
}

*{
    padding: 0;
    margin: 0;
    border: 0;
    font-family: Ubuntu;
    -webkit-tap-highlight-color: transparent;
}

a{
    color: white;
    text-decoration: none;
}

button{
    padding: 15px 30px 15px 30px;
    background-color: #83ba43;
    color: white;
    font-size: 15px;
    font-weight:bold;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: all 0.5s;
}

button:hover{
    background-color: #608c2e;
    filter: drop-shadow(0px 0px 7px #83ba43);
}

button:disabled{
    filter: grayscale(100%);
}

input[type=range]{
    width: 200px;
    transform: scale(1.8);
}
 

input,input[type=range]{
    accent-color: #5c8b2798;
    filter: brightness(120%);
}

input[type="range"]::-moz-range-progress{
    border-radius: 10px;
    background-color: #83ba43;
    filter: none;
    height: 7px;
}

input[type="range"]::-moz-range-thumb {
    background-color: #83ba43;
    border: 0;
    outline: none;
}

input[type="range"]::-moz-range-track {
    border-radius: 10px 10px 10px 10px;
    border: 1px solid #00000051;
    height: 7px;
}

nav{
    background-color: #222222;
    font-size: 16px;
    gap: 20px;
    width: 100vw;
    z-index: 10;
    justify-content: center;
    position: fixed !important;
}

footer{
    background-color: #2C2E31;
    height: 320px;
    display: flex;
    justify-content: center;
}

footer h4, h1{
    color: white;
}

footer p{
    color: #999999;
    font-size: 12px;
    line-height: 20px;
}

h1{
    font-size: 47px;
    font-weight: 100;
}

h5, h2, h4{
    font-weight: lighter;
    color: black;
}

pre{
    overflow: scroll;
    border: 1px solid #ccc;
    padding: 10px;
    font-family: Courier,Open Sans,sans-serif;
    font-size: 14px;
}

pre span{
    color: #83ba43;
    font-family: Courier,Open Sans,sans-serif;
}


hr{
    width: 0px;
    height: 3px;
    background-color: #83ba43;
    transition: width 0.5s;
    margin: auto 0px;
    align-self: center;
}

ul{
    gap: 20px;
}

nav button{
    outline: none !important;
}
/* Classi generiche */

.flexColumn{
    display: flex;
    flex-direction: column;
}

.flexRow{
    display: flex;
    flex-direction: row;
}

.pointer:hover{
    cursor: pointer;
}

/* Stile elementi specifici */

.navbar-collapse, .collapse {
    max-height: none;
}

.hCell{
    white-space: nowrap;
    height: 50px;
    min-width: 50px;
    color: white;
    text-align: center;
}

.imgCell{
    height: 23px;
    background-repeat: no-repeat;
    background-size: 27px;
    display: block;
    background-position: center;
    user-select: none;
}

nav > div{
    justify-content: center;
}

#sGrigio{
    height: 405px;
    width: 100%;
    background-color: #2C2E31;
    padding-top: 100px;
    text-align: center;
    color: white;
    align-items: center;
    gap: 20px;
}

#sGrigio p{
    font-size: 18px;
}

#sGrigio a{
    color: #0088AA;
    text-shadow: inherit;
}

#sGrigio span{    
    text-align: center;
    color: #909CA1;
    font-weight: bold;
    align-items: center;
    font-size: 13px;
}

#sBianco, #dPersona, #cSponsored{
    align-items: center;
    background-color: #F9F9F9;
}

#dPersona{
    height: 400px;
    width: 700px;
    margin: 5px;
    border-radius: 4px;
    transform: translateY(-50%);
    box-shadow: 0px 1px #0000001f;
    position: relative;
    overflow: hidden;
}

#cSponsored{
    width: 680px;
    border: 1px solid #ccc;
    box-shadow: 0 0 5px #ccc;
    transform: translateY(-80%);
    text-align: center;
    justify-content: center;
    gap: 17px;
    padding: 15px;
}

#cSponsored p{
    font-size: 15px;
    font-weight: 300;
    color: #666;
}

#cTesto{
    color: #666;
    width: 700px;
    transform: translateY(-5%);
    gap: 20px;
}

#cTesto h2{
    margin: 30px 0px 0px 0px;
}
#cTesto p{
    font-size: 15px;
    line-height: 30px;
}

#cTesto a, footer a{
    color: #83ba43;
    text-decoration: none;
}

#cEE{
    margin: 0px auto;
    width: fit-content;
    font-size: 12px;
    color: #00000068;
    padding-top: 60px;
}

#cFooter{
    padding-top: 40px;
    height: 260px;
    max-width: 730px;
}

#cFooter > div{
    height: inherit;
}

#cAutori, #cCpr{
    height: 200px;
    width: 350px;
}

#cAutori{
    align-items: center;
    gap: 100px;
}

.cTarga{
    color: white;
    margin-bottom: 20px;
}

#cAutori img{
    filter: grayscale(100%);
    transition: filter 0.5s;
}

#cAutori img:hover{
    filter: grayscale(0%);
}

#cCpr{
    justify-content: center;
    gap: 20px;
}

#cGenera{
    width: 700px;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 0 5px #ccc;
    padding: 20px 0 20px 0;
}

#dForm, #cLego{
    width: inherit;
    user-select: none;
}

#dForm > div{
    height: inherit;
    width: 330px;
    padding: 10px;
    text-align: center;
    font-size: 20px;
}

#dForm label{
    margin: 0 20px 0 5px;
    width: 30px;
    display: inline-block;
    text-align: left;
}

#cGender{
    display: flex;
    justify-content: flex-start;
}

#dForm input{
    transform: scale(1.3);
}

.formOr{
    width: inherit;
    height: 70px;
    justify-content: center;
    gap: 100px;
    align-items: center;
}

.formOr > h2:nth-of-type(2){
    width: 30px;
}

#dPersona > div{
    width: inherit;
    align-items: center;
    background-color: inherit;
    border-radius: inherit;
}

#cImg{
    max-height: 120px;
    border-bottom: 1px solid #ccc;
}

#cImg > span{
    min-height: 150px;
    width: 150px;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 150px;
    padding: 2px;
    transform: translateY(10%);
    background-color: inherit;
    user-select: none;
    text-align: center;
}

#dPersona span img{
    border-radius: inherit;
    width: inherit;
}

#cControlli{
    height: 250px;
    justify-content: flex-end;
    gap: 10px 120px;
    background-color: #FFFFFF;
}

#cMenu{
    height: 50px;
    width: 70%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin: 30px 0 10px 0;
}

#cControlli > h4, #cControlli > h1{
    color: #9999A6;
    font-size: 17px;
    font-family: UbuntuReg;
}

#cControlli > h1{
    color: #2C2E31;
    font-size: 38px;
    font-weight: 100;
}

.voceMenu{
    height: inherit;
    width: 40px;
    height: 60px;
    background-image: url(../img/card_icons.png);
    background-size: 470px;
    background-position-y: 60px;
    user-select: none;
}

.lego{
    text-shadow: 0 0 4px #000;
}

#new{
    margin: 0px auto;
    width: fit-content;
    background-color: #000000bd;
    color: white;
    font-weight: bold;
    padding: 10px 15px 10px 15px;
    border-radius: 3px;
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0;
}

#dPersona span:hover > #new{
    opacity: 1;
    transform: translateY(-15px);
}

.material-symbols-outlined{
    transition: all 0.5s;
    user-select: none;
    color: #2C2E31;
    margin-left: 0;
}

.cOverlay .material-symbols-outlined{
    margin-left: 10px;
    z-index: 10;
    background-color: #00000000;
    width: 40px;
    height: 50px;
    padding: 0;
    font-size: 30px;
    font-variation-settings:
    'FILL' 0,
    'wght' 700,
    'GRAD' 0,
    'opsz' 48
}

.material-symbols-outlined:hover{
    color: #83ba43;
    background-color: transparent;
}

.material-symbols-outlined:disabled{
    color: #2c2e313b;
    cursor: default;
}

.cOverlay{
    top: calc(50% - 25px);
    position: absolute;
    left: calc(50% - 350px);
    align-items: center;
    overflow: visible;
}

.cOverlay:nth-child(2){
    right: calc(50% - 350px);
    left: initial;
}

.cOverlay button{
    width: 50px;
    background-color: transparent;
}

.prevImg{
    opacity: 0;
    width: 40px;
    height: 40px;
    transform: translateX(-50px);
    transition: opacity 0.5s, transform 0.5s;
    transition-timing-function: ease-in-out;
    border-radius: 50px;
    background-size: contain;
    user-select: none;
}

.prevImg:nth-child(1){
    transform: translateX(50px);
}

.cOverlay:hover > .prevImg{
    transform: translateX(0px);
    opacity: 1;
}

#cSelect{
    position: absolute;
    top: 5px;
    right: calc(50% - 345px);
    display: none;
    border: #83ba43 3px solid;
    border-radius: 10px;
    background-color: #F9F9F9;
    z-index: 10;
    user-select: none;
}

.selImg{
    width: 30px;
    height: 30px;
    border-radius: 30px;
}

#cSelect div{
    justify-content: flex-start;
    line-height: 30px;
}

#selected > div{
    align-items: center;
}

#cSelect > div > div > div{
   gap: 10px;
   padding: 5px;
}

#cList{
    overflow-y: scroll;
    transition: height 0.5s;
    height: 0;
    overscroll-behavior: none;
}

#cErrore{
    position: fixed;
    height: 56px;
    width: calc(100% - 40px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #eb4034;
    z-index: 10;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 0 20px;
    transition: transform 0.5s;
}

#cErrore > span{
    font-weight: bold;
    color: white;
    height: inherit;
    line-height: 58px;
}

#iconaGriglia , #grigliaOverlay{
    user-select: none;
    position: absolute;
    top: 10px;
    left: calc(50% - 340px);
    transform: scale(1.2);
}

#grigliaOverlay{
    background-color: #82ba43c9;
    top: 20px;
    left: calc(50% - 330px);
    z-index: 20;
    height: 5px;
    width: 5px;
    transition: all 0.5s;
    border-radius: 100vh;
    overflow: hidden;
    backdrop-filter: blur(1px);
}

#grigliaOverlay > div{
    top: 0;
    left: 0;
    border-radius: 0;
    height: 100%;
    width: 100%;
}

#cCaselle{
    padding: 10px;
    width: calc(100% - 20px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow-y: auto;
    row-gap: 10px;
    justify-content: center;
    overscroll-behavior: none;
}

.casella{
    align-items: center;
    justify-content: center;
    width: 80%;
    height: 150px;
    background-color: #F9F9F9;
    transition: height 0.5s, width 0.5s;
    user-select: none;
    gap: 10px;
    border-radius: 10px;
    max-width: 110px;
    max-height: 150px;
    z-index: 0;
}

h5{
    font-weight: bold;
    width: 100%;
    text-align: center;
    font-size: 60%;
}

.casella button{
    font-size: 10px;
    padding: 0;
    width: 40px;
    height: 20px;
    border: none;
    outline: none;
    cursor: pointer;
}

.casella img{
    border-radius: 10px;
    width: 65%;
}

.barra{
    height: 6px;
    width: 30px;
    border-radius: 10px;
    background-color: #83ba43;
}

.blur{
    background-color: #0000001f;
    backdrop-filter: blur(5px);
    border-radius: 10px;
    margin: 10px;
}

.casella:hover{
    cursor: grab;
}

#cNat{
    flex-wrap: wrap;
    justify-content: center;
    width: 260px;
}


#dForm span{
    transition: all 0.5s;
    font-weight: bold;
    padding: 7px;
    margin: 3px;
    min-width: 20px;
    border-radius: 10px;
    font-size: 15px;
}
.checkboxU{
    color: #83ba43;
    background-color: white;
    outline: #83ba43 2px solid;
}

.checkboxC{
    color: white;
    background-color: #83ba43;
}

#dForm span:hover{
    filter: drop-shadow(0px 0px 5px #83ba43);
}

#dForm h2{
    width: inherit;
    margin: 0;
    margin-bottom: 10px;
}

#cNat button{
    padding: 0 10px 0 10px;
    border-radius: 10px;
    margin: 3px;
    height: 32px;
    width: 118px;
}

#cGender span{
    width: 100px;
    margin: 0px auto;
    margin-top: 16px;
}

@media only screen and (max-width: 721px) {
    #dPersona{
        width: 80%;
    }

    #cMenu{
        width: 100%;
    }

    #cSponsored{
        width: 80%;
        margin-top: 10vh;
    }
    #cTesto{
        width: 90%;
        align-items: center;
    }
    #cGenera{
        width: 80%;
        height: fit-content;
    }

    #cGender{
        width: 100% !important;
    }

    #dForm{
        width: 100% !important;
        gap: 20px;
        flex-direction: column;
    }
    h2{
        width: 100%;
    }

    .formOr{
        width: 100%;
        justify-content: center;
        flex-direction: column;
        height: 100px;
        gap: 0;
    }

    .formOr > h2{
        text-align: center;
    }

    input[type=range]{
        width: 50%;
    }

    pre{
        width: 90%;
    }

    #dPersona span{
        min-height: 0 !important;
        width: fit-content;
        height: fit-content;
        padding: 0 !important;
    }

    #cControlli h1{
        font-size: 100%;
    }

    #cControlli{
        width: 100% !important;
    }

    .voceMenu{
        width: 40px;
    }

    #sGrigio > p:nth-of-type(1){
        font-size: 90%;
        width: 90%;
        margin-bottom: 15vh;
    }

    #cNat{
        width: 90% !important;
    }

    .cOverlay{
        top: calc(50% - 25px);
        position: absolute;
        left: calc(0%);
        align-items: center;
        overflow: visible;
    }
    
    .cOverlay:nth-child(2){
        right: calc(0%);
        left: initial;
    }

    #sGrigio > h1{
        font-size: 200%;
    }

    #cSelect{
        display: none;
    }

    #iconaGriglia{
        display: none;
    }
    
    footer, #cFooter{
        width: 100% !important;
        height: fit-content;
        padding-bottom: 1vh;
    }

    #cFooter > h1{
        margin: 0  0 5vh 7vw;
    }

    #cAutori, #cCpr{
        min-height: 100px;
        height: fit-content;
        gap: 10%;
        padding: 5%;
    }

    #cFooter > div{
        height: 50%;
    }

    #cSelect{
        display: none;
    }

    #iconaGriglia{
        display: none;
    }

    #cNat h2{
        width: 100%;
    }

    ul{
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
    }
}   