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


:root{
    --spaziatura: 1;
    
    /* 
    --bg-html: #f5f5f5;
    --color-text-html: black;
    --bg-contenuto: white;
    --bg-codice: gray;
    --color-codice: whitesmoke;
    --bg-notifica: lightgray;
    */
    
    --bg-html: rgb(28, 27, 34);
    --color-text-html: whitesmoke;
    --bg-contenuto: rgb(32, 34, 35);
    --bg-codice: rgb(40, 44, 52);
    --color-codice: #abb2bf;
    --bg-notifica: rgb(43, 42, 51);
    --border-welcome: linear-gradient(red,red);
}

html{
    background: var(--bg-html);
    color: var(--color-text-html);
}


.btn{
    height: 35px;
    width: 100px;
    font-size: 20px;
    border-radius: 10px;
    margin-bottom: 1%;
    transition: transform 0.7s;
}


.btn:hover{
    background-color: rgb(110, 110, 110);
    font-weight: 200;
    transform: scale(1.1);
}


.contenuto{
    width: 60%;
    background: var(--bg-contenuto);
    text-align: left;
    
    color: var(--color-text-html);
    border-radius: 10px;
    padding: 15px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    
    overflow: hidden;
    
    border: 1px solid;
    transition: 1s margin-top;
    
}

#contenuto{
    position: relative;
    z-index: 1;
    
    /* margin-top:-1px; */
    
}

.btWelcome {
    display: flex;
    width: 30%;
    justify-content: space-evenly;
    align-items: center;
}

.centro{
    display: flex;
    flex-direction: column; 
    align-items: center;
}

.passami-sopra{
    color: rgb(0, 122, 255);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-decoration: underline;
    cursor: pointer;
    transition: font-size 0.7s;
}


.passami-sopra:hover{ font-size: 22px; }

li {
    margin-bottom: 1%;
}

ul.row li {
    display: flex;
    flex-direction: row;
}   

ul.row li::before {
    content: '•'; 
    position: absolute;
    margin-left: -1em;
}

ul.row li div {
    flex: 1;
}
ul.row li b {
    flex:unset;
}

#titolo {
    text-align: center;
    font-weight: 700;
    font-size: 35px;
    
}


#codice{
    font-family: Consolas, monospace;
    font-size: 16px;
    font-weight: 600;
    
    background: var(--bg-codice);
    color: var(--color-codice);
    
    border-radius: 5px;
    padding: 1px 5px 1px 5px;
    
}


code {
    display: flex;
    padding: 16px;
    
    max-width: 90vw;
    
    background: var(--bg-codice);
    color: var(--color-codice);
    border-radius: 8px;
    
    overflow: auto;
    margin-bottom: 16px;
    margin-top: 16px;
    font-family: Consolas, monospace;
    
    font-size: 16px;
    font-weight: 600;
    
    text-overflow: ellipsis;
    white-space: nowrap;
}

code ol{
    margin:0;
}
code li {
    margin:0
}


#spazio {
    display:inline-block;
    height: 1px;
    width: calc(2.2em * var(--spaziatura));
    /* width: 25px; */
}

.bottonetornaindietro{
    display: block;
    border-top: 20px;
    border-radius: 15px;
    margin: 0 0 0 auto;
    position: absolute;
    top: 10px;
    left: 15px;
    float: left;
    transition: transform 0.7s;
}


.bottonetornaindietro:hover{ transform: scale(1.2); }


#visualizza{
    color: rgb(0, 122, 255);
    transition: font-size 0.7s;
}


#visualizza:hover{ font-size: 23px; }


#sezione-titolo{
    padding-left: 20px;
    /* font-size: 20; */
}


#sezione-testo{ padding-left: 40px; }


.img-border{
    border-radius: 10px;
    max-width: 50vw;
    /* border: 3px solid #000; */
    border: 1px solid white;
    image-rendering: auto;
}


#social{
    position: absolute;
    left: 50%;
    background: var(--bg-notifica);
    padding-left: 10px;
    padding-right: 10px;
    transform:  translate(-50%);
    z-index: 0;
    
    border: 1px solid;
    border-radius: 10px;
    
    width: max-content;
    max-width: 80%;
    user-select: none;
    
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5vw;
}

#social div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#social img {
    border-radius: 50%;
    image-rendering: auto;
}

.socialText {
    color: whitesmoke;
    font-size: 20px;
    font-family: "PlaywriteAUSA";
}

.welcome {
    position: relative;
    color: red; 
    background: var(--bg-notifica);
    font-size: 50px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    padding-top: 1%;
    margin-top:-1%;
    user-select: none;
    
    /* overflow: hidden; */
    
    background-clip: padding-box;
    
}

.welcome::after {
    position: absolute;
    
    top: -1px; bottom: -1px;
    left: -2px; right: -2px;
    
    background: var(--border-welcome);
    content: '';
    z-index: -1;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}

.coming-soon {
    background: linear-gradient(130deg, red 20%, blue 50%, red 90%) padding-box text; 
    background-size: 200% 200%;
    -webkit-text-fill-color: transparent;
    
    animation: ComingSoon 5s ease infinite;
}

.coming-soon-border {
    position: relative;
    display: inline-block;
    /* padding: 10px 20px; */
    font-size: 20px;
    font-weight: bold;
    color: black;
    border: none; 
    
    &::before {
        content: "";
        position: absolute;
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
        z-index: -1;
        border-radius: 5px; 
        background: linear-gradient(130deg, red 20%, blue 50%, red 90%);
        background-size: 200% 200%;
        animation: borderAnimation 3s ease infinite;
    }
}

iframe {
    max-width: 80vw;
    width: 50vw;
    /* max-width: 100vw;
    width: 80vw;
    */
    aspect-ratio: 16/9;
}

@keyframes ComingSoon { 
    0%{background-position:10% 0%}
    50%{background-position:91% 100%}
    100%{background-position:10% 0%}
}


@keyframes borderAnimation {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}


@keyframes scendi {
    0%{ top: 0px; }
    50%{ top: calc(var(--altezza)/2); }
    100%{ top: var(--altezza); }
}


@keyframes sali {
    0%{ top: var(--altezza); }
    50%{ top: calc(var(--altezza)/2); }
    100%{ top: 0px; }
}


@media only screen and (max-width: 600px) {
    .welcome {
        margin-top: -2.5vw;
    }
    .btWelcome {
        width: auto;
        padding: 5%;
    }
    
    #bevnenutoTitle {
        font-size: 10vw;
    }
    
    .btn{
        height: auto;
        width: auto;
        font-size: 1.25rem;
        padding: 0 5%;
        border-radius: 10px;
        margin-bottom: 1%;
        transition: transform 0.7s;
    }
    
    .contenuto {
        width: auto;
        max-width: 90%;
        overflow-x: hidden;
    }
    
    .img-border{
        width: 100%;
        max-width: 100vw;
        aspect-ratio: 16/9;
    }
    
    
    ul.row li b {
        flex: 0;
        text-align: center;
    }
    
    iframe {
        width: 100vw;
    }
    
    #social {
        justify-content: space-around;
    }
    
}

@media (prefers-color-scheme: light) {
    :root{
        --bg-html: #f5f5f5;
        --color-text-html: black;
        --bg-contenuto: white;
        --bg-codice: gray;
        --color-codice: whitesmoke;
        --bg-notifica: lightgray;
    }
    
    .socialText{
        color: black;
    }
    
    code {
        color:#1f2937;
    }
    
}
