@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,200;1,200&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caveat&display=swap');



#main{
    background-image: url("../immagini/home.jpg");
    /* background-position-y: -350px; */
}

#cont-scritta {
    color: #fff;
    width: auto;
    display: flex;
    margin-top: 30vh;
    margin-left: 5%;
    font-family: "Roboto Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
}

#cont-scritta span, #cont-scritta p{
    font-size: calc(.2em + 3vw);
    font-weight: 900;
}

#cont-scritta p{
    margin-left: -50vh;
    margin-top: 14vh;
}


#cursore{
    border-right: 4px solid black;
    height: calc(.7em + 3vw);
    margin-top: 13vh;
    animation: blink 1s infinite;
}

#men{
    color: rgb(15, 15, 15);
    background-color: #fee5b3;
    width: 50vw;
    margin-left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    margin-top: -26vh;
    height: fit-content;
    padding: 4vh;
    position: absolute;
    border-radius: 10px;
    transform-origin: 50% 50%;
    border: none;
    box-shadow: 0 0 30px 0px rgba(0, 0, 0, 0.604);
}

#descr{
    display: flex;
    align-items: center;
    justify-content:space-around;
    margin-top: 8vh;
}

#descr div{
    border-radius: 100%;
    width: 30vw;
    height: 30vh;
    background-size: cover;
    background-position: -4vh;
    transition: transform  0.5s ease;
    text-align: center;
}

#descr div:hover{
    transform: scale(1.1);
}

@keyframes blink {
    0% { border-color: black; }
    50% { border-color: transparent; }
    100% { border-color: black; }
}


#presentazione{
    margin-top: 50vh;
    width: 100%;
    background-color: #fdf0d5;
    color: rgb(15, 15, 15);
}

#presentazione p{
    width: 70%;
    text-align: justify;
}






#grid{
    display: flex;
    flex-wrap: wrap;
    height: 200%;
    display: flex;
    text-align: center;
    justify-content: space-around;
}

.mainConteiner{
    margin: 3vh;
    position: relative;
    width: 50vh;
    height: 60vh;
}
.carta{
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: all 2s ease;
    background-color: transparent;
    cursor: pointer;
    border-radius: 10px;
    
}

.fronte{
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    color: #333;
    background: #c1121f;
    color: #ddd;
    display: grid;
    align-items: center;
    text-align: center;
    font-size: calc(1em + .3vh);
    border-radius: 10px;
}
.fronte p{
    font-size: calc(0.6em + .2vh) !important;
    margin: 2vh;
}
.retro{
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    color: #333;
    background: rgb(7, 7, 199);
    color: #ddd;
    transform: rotateY(180deg);
    border-radius: 10px;
    display: block;
    text-align: justify;
    overflow-y: scroll;
    font-size: calc(.7em + .3vh);
}

.retro::-webkit-scrollbar {
    width: 3px;
}
.retro::-webkit-scrollbar-track {
    background-color: #ccc;
    border-radius: 10px;
}
.retro::-webkit-scrollbar-thumb {
    background-color: #0066ce;
    border-radius: 10px;
}








@keyframes toUp { /*Animation used by the little articles rectangle*/
    from{
        opacity: 0;
        top: 60px;
    }
    to{
        opacity: 1;
        top: 0px;
    }
}


@keyframes toRight {
    from{
        opacity: 0;
        right: 60px;
    }
    to{
        opacity: 1;
        right: 0px;
    }
}



#men #descr > *{
    opacity: 0;
    position: relative;
}






























.cont{
    margin-left: 50%;
    transform: translateX(-50%);
    width: 70%;
    margin-top: 5vh;
    background-color: #fdf0d5;
    padding: 5vh;
    color: black;
}

#cont-del-cont{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    grid-gap: 50px;
    column-gap: 10px;
}


.galleria{
    display: grid;
    grid-template-columns: 1fr 1fr !important; /*1fr 1fr*/
    gap: 30px;
    margin-top: 5vh;
}




.galleria img{
    width: 100%;
    display: block;
}

#polaroid{
    width: 70%;
    padding: 19px 19px 25px 19px;
    background: rgb(255, 222, 173);
    background-size: cover;
    color: black;
    font-family: "Caveat", cursive;
    font-weight: 400;
    font-size: 25px;
    position: relative;
  
}

#polaroid:before{
    content: "";
    position: absolute;
    height: 30px;
    width: 100px;
    background-color: rgba(102, 102, 102, 0.6);
}
#polaroid:before{
    top: -2vh;
    left: 50%;
    transform: translateX(-50%);
}

.cont a{
    text-decoration: none !important;
}

#non-vis{
    display: none;
}

/* @keyframes scala {
    0%{
        scale: 1.02;
    }
    50%{
        scale: 1;
    }
    100%{
        scale: 1.02;
    }
} */


@media (max-width: 1405px) {
    #cont-scritta p{
        margin-left: -20vh;
    }
}


@media (max-width: 700px) {

    #presentazione{
        margin-top: 150vh;
    }
    #cont-scritta p{
        margin-left: -20vh;
        margin-top: 8vh;
    }

    #cursore{
        margin-top: 8vh;
    }

    #cont-scritta {
        margin-top: 40vh;
    }

    #cont-scritta span, #cont-scritta p{
        font-size: calc(1em + 1vw);
    }

    #men{
        margin-top: 0vh;
        width: 86vw;
        border-radius: 0px;
    }

    #descr{
        display: block;
        
    }

    #descr div {
        width: 100%;
        text-align: center;
    }

    #descr div img{
        width: 20vh;
    }

    .cont{
        width: 75%;
        margin-left: 50%;
        transform: translateX(-50%);
    }

    #main{
        background-position-y: 0;
    }
}


@media (max-width: 720px) {
    /* #polaroid{
        width: 50%;
        font-size: 120%;
    } */

    #polaroid::before{
        width: 60%;
    }


}

/* @media (max-width: 530px){
    #polaroid{
        width: 70%;
        font-size: 25px;
    }
} */