* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    color-scheme: only light !important;
}

html {
    background: #ffff00;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(to bottom, #ffff00 75%, #ffff80 100%) !important;
    color: #000000 !important;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: background 0.5s ease, color 0.5s ease;
    -webkit-text-size-adjust: 100%;
}

body.dark-mode {
    background: #111111 !important;
    color: #ffff00 !important;
}

html:has(body.dark-mode) {
    background: #111111;
}

.content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 15vh; 
}

.content {
    padding: 2rem;
}

h1 {
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 2.5rem;
    font-weight: 600;
}

.links {
    list-style: none;
}

.links li {
    margin-bottom: 0.65rem;
}

.links a {
    color: inherit !important;
    text-decoration: none;
    font-size: 0.85rem;
    transition: opacity 0.2s ease;
}
.links a.link-item {
    color: #000000 !important;
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.5s ease;
}

body.dark-mode .links a.link-item {
    color: #ffff00 !important;
}

.links a:hover {
    opacity: 0.6;
}

/* Footer e Icone */
footer {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

#footer-text {
    font-size: 0.685rem;
    font-weight: 400;
}

.icon-container svg {
    display: block;
}

@keyframes heatHaze {
    0% {
        transform: translateY(0) scaleY(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-5px) scaleY(1.02);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scaleY(1);
        opacity: 0.8;
    }
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30vh;
    background: linear-gradient(to top, rgba(255, 255, 128, 0.5), transparent) !important;
    filter: blur(8px); /* Sfocatura per l'effetto calore */
    animation: heatHaze 2s infinite ease-in-out;
    pointer-events: none;
    z-index: -1;
}

body.dark-mode::after {
    background: linear-gradient(to top, rgba(17, 17, 17, 0.8), transparent);
}

@media (max-width: 768px) {
    .content-wrapper {
        padding-top: 5vh;
    }
    h1 {
        font-size: 0.85rem;
        padding: 0 1rem;
    }
}