/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Tiny5&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #ddd;
    cursor: none;
    user-select: none;
    /* cambia lo spazio verticale tra due righe dello stesso testo */
    line-height: 1.4;
}
.tiny5-regular {
    font-family: "Tiny5", sans-serif;
    font-weight: 400;
    font-style: normal;
}  
.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}
body{
    font-family: "Ubuntu", sans-serif;
    font-weight: 400;
    font-style: normal;
    background-color: #111;
    text-wrap: balance;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}
.bodyDiv{
    position: relative;
    width: 1400px;
    border-left-width: 2px;
    border-left-style:solid;
    border-right-width: 2px;
    border-right-style:solid;
    border-image: linear-gradient(to bottom, #111, #aaa, #111) 1; 
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px); /* Effetto sfocatura */
    padding: 1rem; 
}
.clickable-animated{
    cursor: none;
}
.clickable-box:hover{
    scale: 1.1;
}
.clickable-box-mini:hover{
    scale: 0.6;
}

/* cursore */
@media (hover: hover) and (pointer: fine) {
    :root {
        --cursor-size: 28px;
        --bg: #FAF7EE;
    }
    #cursor {
        position: fixed;
        top: calc(var(--cursor-size) * -0.5);
        left:  calc(var(--cursor-size) * -0.5);
        pointer-events: none;
        mix-blend-mode: difference;  
        filter: url(#goo);
    } 
    .cursor-circle {
        position: absolute;
        top: 0;
        left: 0;
        width: var(--cursor-size);
        height: var(--cursor-size);
        border-radius: var(--cursor-size);
        background: var(--bg);
        transform-origin: center center;
    }
}
.goo {
    display: none;
}

/* header */
header{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.title{
    position: absolute;
    text-align: center;
    width: 100%;
    margin-top: 1rem;
}
.title h1{
    font-size: 3rem;
}
.LangBtnDiv{
    position: absolute;
    width: 100%;
    text-align: right;
}
.LangBtnDiv button{
    background-color: #222;
    border: none;
    height: 2rem;
    width: 3rem;
    border-radius: 5px;
    margin-right: 1rem;
}
.LangBtnDiv button:hover{
    background-color: #333;
}

/* nav */
nav{
    display: flex;
    flex-direction: row;
    gap : 3rem;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}
nav a{
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 1rem;
}
nav a::after{
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: #ddd;
    transition: transform 0.2s ease-in-out;
    transform: scale(0);
}
nav a:hover::after{
    transform: scale(1);
}

/* sezioni pagina */
.section{
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    margin-left: 1rem;
}
.section h3{
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.section h4{
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}
.section h5{
    font-weight: lighter;
    color: #aaa;
    margin-top: -0.2rem;
    margin-bottom: 0.5rem;
}
.section p{
    margin-bottom: 0.2rem;
    margin-left: 0.5rem;
}
.section ul{
    list-style-type: none;
    padding: 0.5rem 0;
}
.section ul li{
    margin-left: 0.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}
.section ul li span{
    scale: 0.6;
}
.subSection{
    margin-left: 2rem;
}
.brAfter{
    padding-bottom: 0.5rem;
}
.GitHubSection,
.PlayStoreSection{
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: 1rem;
}
.GitHubSection svg{
    scale: 0.8;
}
.GitHubSection a,
.PlayStoreSection a{
    color: #aaa;
}
.contact{
    text-align: center;
    padding: 2rem 0;
}
.contactBtn{
    display: flex;
    align-items: center;
    justify-content: center;
    color:#ddd;
}
.contactBtn a{
    margin:0;
    padding: 0;
    scale: 0.5;
}
.mailBtn{
    scale: 1.3;
}
.instaBtn{
    scale: 1.1;
}
.text_plus_img{
    width: 100%;
    display: flex;
    gap: 2rem;
}
.text_plus_img_reverse{
    width: 100%;
    display: flex;
    gap: 2rem;
    flex-direction: row-reverse;
    margin-bottom: 2rem;
}
.text_plus_img_reverse p {
    margin-left: 0;
}
.imgDiv{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 2rem;
    pointer-events: none;
}
.imgDiv img{
    border: #aaa 3px solid;
    border-radius: 10%;
    height: 200px;
    width: 200px;
    margin-top: 2rem;
}
.imgDiv1{
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}
.imgDiv1 img{
    border: #aaa 3px solid;
    border-radius: 10%;
    height: 200px;
    width: 200px;
    margin-top: 2rem;
}
.OutThinkSection{
    width: 100%;
    display: flex;
    gap: 2rem;
    margin-left: 2rem;
    margin-bottom: 2rem;
}
.OutThinkSection p{
    margin-left: 0;
}
.BlackJackSection{
    width: calc(100% - 4rem);
    display: flex;
    gap: 2rem;
    margin-left: 2rem;
    margin-bottom: 2rem;
}
.BlackJackSection p{
    margin-left: 0;
}
.imgDiv2{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 4rem;
    margin-top: 2rem;
    pointer-events: none;
}
.imgDiv2 img{
    height: 200px;
    width: 100px;
}
.screenshotOT{
    display: flex;
    border: #aaa 3px solid;
    border-radius: 20px;
}
.firstImgOT{
    border-right: #aaa 3px solid;
}
.firstImgOT img{
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}
.secondImgOT{
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}
.imgDiv3{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 2rem;
    pointer-events: none;
}
.imgDiv3 img{
    border: #aaa 3px solid;
    border-radius: 10%;
    height: 200px;
    width: 200px;
    margin-top: 2rem;
}
.seemore{
    margin-top: 2rem;
}

/* gestione responsive */
@media screen and (max-width: 1400px){
    .bodyDiv{
        width: 100%;
        border: none;
    }
}

@media screen and (max-width: 800px){
    .text_plus_img{
        flex-direction: column;
    }
    .imgDiv{
        margin-right: 0;
    }
    .imgDiv img{
        margin-top: 0;
    }

    .OutThinkSection{
        flex-direction: column;
        margin-left: 0;
    }
    .BlackJackSection{
        width: 100%;
        flex-direction: column;
        margin-left: 0;
    }
    .imgDiv2{
        margin-right: 0;
        margin-top: 0;
    }

    .text_plus_img_reverse{
        flex-direction: column;
    }
    .imgDiv3{
        margin-left: 0;
    }
    .imgDiv3 img{
        margin-top: 0;
    }
}

@media screen and (max-width: 500px){
    body{
        font-size: 90%;
    }
    .title{
        text-align: left;
        margin-left: 2rem;
    }
    nav{
        justify-content: left;
        margin-left: 2rem;
    }
}

@media screen and (max-width: 380px){
    body{
        font-size: 90%;
    }
    .title{
        text-align: left;
        margin-left: 2rem;
    }
    .title h1{
        font-size: 2.6rem;
    }
    nav{
        justify-content: left;
        margin-left: 2rem;
    }
    nav a{
        font-size: 0.8rem;
    }
}

/* animazione sfondo */
#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Assicurati che sia sotto il contenuto principale */
    background: rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

.matrix-column {
    position: absolute;
    top: 0;
    width: 40px; /* Aumenta la larghezza della colonna */
    height: 100%;
    overflow: hidden;
    animation: fall linear infinite;
}

.matrix-column span {
    display: block;
    font-family: monospace;
    font-size: 40px; /* Aumenta la dimensione del font */
    color: #fff;
    opacity: 0;
    animation: fade 1s linear infinite;
}

@keyframes fall {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes fade {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}
