@font-face {
    font-family: 'Brasika Display';
    src: url('../fonts/brasika.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    font-family: 'Brasika Display', sans-serif;
    color: white;
    overflow: hidden;
}

body {
    background-image: url('../img/sfondo.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#logo {
    width: 600px;
    max-width: 80%;
    margin-top: 40px;
    z-index: 10;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.incoming {
    font-size: 5rem;
    margin-bottom: 10px;
}

#timer {
    font-size: 6rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.img-corner {
    position: absolute;
    width: 200px;
}

#sorella {
    top: 20px;
    right: 20px;
}

#fratello {
    bottom: 20px;
    left: 20px;
}

#footer {
    padding-bottom: 20px;
    font-size: 1.2rem;
    opacity: 0.8;
    z-index: 5;
}

/* --- OTTIMIZZAZIONE MOBILE --- */
@media (max-width: 768px) {
    body {
        padding-top: 0 !important;
        margin: 0 !important;
    }

    #logo {
        width: 85%;
        margin-top: 10px !important;
        display: block;
    }

    .main-content {
        justify-content: center;
        padding: 0;
        margin: 0;
    }

    .incoming {
        font-size: 2.2rem;
        margin-top: 0;
    }

    #timer {
        font-size: 2.5rem;
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .img-corner {
        width: 80px;
    }

    #sorella {
        top: 10px;
        right: 10px;
    }

    #fratello {
        bottom: 60px;
        left: 10px;
    }

    #footer {
        font-size: 0.8rem;
        padding-bottom: 10px;
        position: absolute;
        bottom: 0;
        width: 100%;
        text-align: center;
    }
}
