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

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Merienda:wght@300..900&display=swap');
/*---------------------------GENERAL--------------------------------------------------*/

p {
    font-family: 'Ubuntu Sans Mono', monospace !important;
}

body{
    margin-top:20px;
    font-family: 'Ubuntu Sans Mono', monospace;
}


p{
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
    font-family: 'Ubuntu Sans Mono', monospace;
}

nav{
    /*background-color: #b25825;*/
    background-image: url(img/cartello.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    display: flex;
    position: fixed;
    justify-content: space-between;
    padding: 1%;
    /*border-radius: 20px;*/
    width: 55%;
    height: 17%;
    align-items: center;
    margin-top: 10px;
    top: 70px;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: auto;
    z-index: 10;
}


/*-----------------------NAV-BAR------------------------------------------------------*/
.flex{
    width: 50px;
    display: flex;
    flex-direction: row-reverse;
}



.title{
    /*font-family: "Poetsen One", sans-serif;*/
    /*font-family: "Great Vibes", cursive !important;*/
    font-family: "Merienda", cursive !important;
    font-weight: 600;
    font-size: 4vw;
    font-weight: 800;
    color: rgb(0, 0, 0);
    margin-top: 15px;
    margin-bottom: 0px;
    text-transform: uppercase;
    font-family: cursive;
}

/*-----------------------CONTANER-POST-IT--------------------------------------------------*/

.externalContainer{
    width: auto;
    margin: auto;
}

.container {
    display: flex;
    gap: 32px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    /* margin-top: 200px; */
    /*border: solid #252422;*/
}

/*-----------------------POST-IT------------------------------------------------*/


.contenitore{
    width: 300px;
    height: 300px;
    position: relative;
}

.quadrato {
    text-align: center;
    width: 300px;
    height: 300px;
    box-shadow: 0 2px 2px rgba(204, 197, 185, 0.5);
    background-color: #60773d;
    color: #252422;
    position: relative;
    z-index: 1;
    padding: 10px;
    box-sizing: border-box;
}


.ombra:before {
    width: 300px;
    height: 340px;
    background-image: url("http://static.tumblr.com/i21wc39/coTmrkw40/shadow.png");
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    bottom: -17%;
    left: -10%;
    content: "";
    /*display: block;*/
    position: absolute;
    /*right: 0;
    top: 0;*/
    z-index: -1;
}


.testo{
    padding-top: 10px;
    text-align: center;
    font-size: 1.5em;
    font-weight: 600;
    line-height: 1.2em;
    color: #252422;
    overflow: hidden;
    overflow-wrap: anywhere;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 9;

}

/*-------------------------------TEXT-AREA------------------------------------------------------*/

textarea{
    resize: none;
}

#storia{
    font-family: 'Ubuntu Sans Mono', monospace;
    height: 200px;
    width: 95%;
    font-size: 20px;
    text-align: start;
    color: black;
}


/*---------------------BOTTONE-AGGIUNGI-STORIA---------------------------------------------------------------*/
/* .btn_storia{
    position: fixed;
    right: 50px;
    bottom: 115px;
    background-color: rgba(100, 100, 100, 0.2);
    border: 0;
    outline: none;
    cursor: pointer;
    font-size: 50px;
    font-weight: 700;
    height: 60px;
    width: 60px;
    border-radius: 30px 30px;
    text-align: center;
    box-shadow: 0 8px 8px #252422;
    color: white;
    z-index: 99;
} */

/*---------------------------FINESTRA-AGGIUGi-STORIA----------------------------------------------------------*/

.cont_popup_storia{
    position: fixed;
    width: 700px;
    display: flex;
    flex-direction: row;
    /*text-align: center;
    justify-content: center;
    align-items: center;*/
    background-color: rgba(0,0,0,0);
    visibility: hidden;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(0);
}

.colonna_colori{
    position: relative;
    width: 100px;
    height: inherit;
    background-color: rgba(0,0,0,0);
    display: flex;
    flex-direction: column;
    align-items: center;
    /*text-align: center;*/
    justify-content: center;
    
}

.scelta_colore{
    position: relative;
    height: 50px;
    width: 50px;
    border: 0;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 5px 5px #252422;
}

.scelta_colore_on{
    border: black solid 5px;
}

/*-------------------------INPUT-STORIA-----------------------------------------------*/

.popup{
    position: relative;
    width: 500px;
    height: 100%;
    background-color: rgba(0,0,0,0.65);
    color: white;
    border-radius: 6px;
    /*top: 50%;
    left: 50%;*/
    /*transform: translate(-50%,-50%) scale(0);*/
    text-align: center;
    padding: 0 30px 30px;
    color-scheme: #333;
    /*visibility: hidden;*/
    transition: transform 0.4s;
    z-index: 100;
}

.openpopup{
    visibility: visible;
    transform: translate(-50%,-50%) scale(1);
    z-index: 100;
    transition: transform 0.4s;
}

.insert_botton{
    width: 35%;
    margin-top: 50px;
    padding: 10px 0;
    background-color: rgba(90, 182, 56, 0.658);
    color: #fff;
    border: 0;
    outline: none;
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 5px #252422;
}

.popup h2{
    font-size: 40px;
    font-weight: 500;
}


/*-------------------------FONDO-SFOCATURA----------------------------------------------*/

.sfocatura{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    visibility: hidden;
}

.sfocatura_on{
    visibility: visible;
    z-index: 99;
}



/*---------------------------FINESTRA-INFO---------------------------------------------------------*/

.btn_storia{
    position: fixed;
    right: 50px;
    bottom: 40px;
    /*padding: 10px 60px;*/
    /*background-color: #b25825;*/
    background-color: rgba(100, 100, 100, 0.2);
    border: 0;
    outline: none;
    cursor: pointer;
    font-style: oblique;
    font-size: 50px;
    font-weight: 700;
    height: 60px;
    width: 60px;
    border-radius: 30px 30px;
    text-align: center;
    box-shadow: 0 8px 8px #252422;
    color: white;
    z-index: 98;
}



.info{
    position: fixed;
    width: 400px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    border-radius: 6px;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(0);
    text-align: center;
    padding: 0 30px 30px;
    color-scheme: #333;
    visibility: hidden;
    transition: transform 0.4s;
}

.openinfo{
    visibility: visible;
    transform: translate(-50%,-50%) scale(1);
    z-index: 100;
}

.testoJustify{
    text-align: justify;
}

.info h2{
    font-size: 40px;
    font-weight: 500;
    color: white;
}

.info p{
    font-size: 20px;
    font-weight: 300;
    color: white;
}

.info button{
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    font-size: 20px;
    font-weight: 400;
    background-color: white;
    border: 0;
    border-radius: 15px;
    cursor: pointer;
}


/*---------------------------PASSAGGIO-MOUSE-SU-BOTTONI--------------------------------------------------------*/
.btn_info:hover{
    background-color: rgba(255, 255, 255, 0.7);
}

.btn_storia:hover{
    background-color: rgba(255, 255, 255, 0.7);
}

.scelta_colore:hover{
    background-color: rgba(255, 255, 255, 0.7);
    border: black solid 5px;
}

/*-------------------------POST-IT-GRANDE-----------------------------------------------------------*/

.post_grande{
    padding: 25px;
    position: fixed;
    width: 50%;
    height: 60%;
    visibility: hidden;
    background-color: #b25825;
    top: 50%;
    left: 50%;
    z-index: 100;
    transform: translate(-50%,-50%) scale(0);
    transition: transform 0.4s;
    border-radius: 5px;
}

.post_grande_visibile{
    visibility: visible;
    transform: translate(-50%,-50%) scale(1);
    transition: transform 0.4s;
}

.post_grande button{
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    font-size: 20px;
    font-weight: 400;
    background-color: rgb(255, 255, 255);
    border: 0;
    border-radius: 15px;
    cursor: pointer;
}


.testo_grande{
    overflow-wrap: anywhere;
    box-sizing: border-box;
    text-align: center;
    font-size: 1.5em;
    font-weight: 600;
    line-height: 1.2em;
    justify-content: center;
    color: #252422;
    overflow: auto ;
    height: 100%;
    display: flex;
}   



/*------------------------------FOOTER-------------------------------------------------------*/
.container_contatti{
    position: static;
    height: 80px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0);
}

.btn_ig{
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.griglia_contatti{
    display: grid;
    grid-template-rows: auto 1fr 1fr;
    grid-template-columns: 1fr;
    font-size: 1.1em;
    font-weight: 400;
    justify-content: center;
    text-align: center;
    background-color: rgba(255, 255, 255, 0);
}

.cella_sopra{
    grid-row-start: 1;
    grid-row-end: 1;
}

.cella_sotto{
    grid-row-start: 2;
    grid-row-end: 2;
    display: flex;
    text-align: center;
    justify-content: center;
}


/*-----------------------------SCROLL-BAR------------------------------------------------*/
::-webkit-scrollbar {
    width: 1vw;
}

::-webkit-scrollbar-thumb {
    background-color: lightgray;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: lightgray;
}

::-webkit-scrollbar-thumb:hover {
    background: lightgray;
    width: 1vw;
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: transparent;
    border-radius: 10px;
}


/*---------------------------POPUP-INGRESSO--------------------------------------------------*/

.popup_ingresso{
    position: fixed;
    width: 500px;
    height: 430px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    border-radius: 6px;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(1);
    text-align: center;
    padding: 0 30px 30px;
    color-scheme: #333;
    visibility: hidden;
    z-index: 100;
}

.close_popup_ingresso{
    visibility: hidden;
    transform: translate(-50%,-50%) scale(0);
    transition: transform 0.4s;
}



/*---------------------------VISUALIZZAZIONE-DA-CELLULARE--------------------------------------------------*/

/*------------------------TELEFONO-VERTICALE--------------------------*/
@media screen and (max-width: 1000px){
    /*diminuita altezza cartello*/
    nav{
        top: 70px;
        height: 7%;
        width: 80%;
    }

    .title{
        font-size: 4em;
    }
     /*ingrandito testo*/
    .testo{
        font-size: 2.5em;
        -webkit-line-clamp: 7;
        padding-top: 20px;
    }

    #storia{
        font-size: 3em;
        height: 650px;
    }

    .popup h2{
        font-size: 55px;
        font-weight: 800;
    }


    .insert_botton{
        font-size: 35px;
    }


    .scelta_colore{
        height: 70px;
        width: 70px;
        border-radius: 35px;
    }
    
    /*ingrandito*/
    .post_grande{
        width: 80%;
        height: 70%;
    }

    /*ingrandito testo in big postIT*/
    .testo_grande{
        font-size: 3em;
    }

    /*ingrandito testo in big postIT*/
    .btn_info{
        height: 150px;
        width: 150px;
        background-color: rgba(255, 255, 255, 0.7);
    }
    .btn_storia{
        height: 150px;
        width: 150px;
        bottom: 210px;
        background-color: rgba(255, 255, 255, 0.7);
    }

    /*margini dx, sx*/
    .container{
        margin-left: 10px;
        margin-right: 10px;
    }


    .popup{
        width: 80%;
    }

    .info{
        top: 30%;
        width: 80%;
        height: 50%;
    }

    .cont_popup_storia{
        width: 90%;
    }


    .info p{
        font-size: 3em;
    }

    .info h2{
        font-size: 4em;
    }

    .quadrato{
        width: 400px;
        height: 400px;
    }

    .contenitore{
        width: 400px;
        height: 400px;
    }

    .ombra:before{
        width: 400px;
        height: 440px;
    }
}


/*------------------------TELEFONO-ORRIZONTALE--------------------------*/
@media screen and (max-height: 500px){
    nav{
        height: 110px;
        top: 60px;
    }

    .btn_info{
        height: 70px;
        width: 70px;
    }
    .btn_storia{
        height: 70px;
        width: 70px;
        bottom: 130px;
    }
    .quadrato{
        width: 300px;
        height: 300px;
    }

    .contenitore{
        width: 300px;
        height: 300px;
    }

    .ombra:before{
        width: 300px;
        height: 340px;
    }
    .testo{
        font-size: 1.5em;
        -webkit-line-clamp: 9;
    }
}




