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

body {
    background-color: #2c3e50;
    min-height: 100vh;
    /* fill screen */
    display: flex;
    flex-direction: column;
    font-family: 'Comic Sans MS', 'Comic Sans', 'Comic Neue', cursive;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow-x: hidden;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2rem;
    margin-top: 1.5rem;
}

img {
    max-width: 90%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

footer {
    width: 100%;
    margin-top: 2rem;
    padding: 1rem;
    font-size: 1rem;
    color: #ac2222;
    text-align: center;
    background-color: #e0e0e0;
}

footer a {
    color: inherit;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 0 0 1.5rem;
}

.site-nav a,
.review-form-link {
    display: inline-block;
    min-width: 7rem;
    padding: 0.7rem 1rem;
    color: #ffffff;
    text-decoration: none;
    background-color: #ac2222;
    border-radius: 999px;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.review-form-link:hover,
.review-form-link:focus-visible {
    color: #2c3e50;
    background-color: #e0e0e0;
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

#gabibbo-popup {
    position: fixed;
    z-index: 10;
    top: 50%;
    left: 50%;
    width: min(90vw, 460px);
    padding: 1rem;
    color: #2c3e50;
    text-align: center;
    background: #e0e0e0;
    border: 6px solid #ac2222;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transform: translate(-50%, -50%);
}

#gabibbo-popup img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 8px;
}

#gabibbo-popup p {
    margin: 0.8rem 0;
    color: #ac2222;
    font-size: 1.5rem;
    font-weight: 700;
}

#close-gabibbo-popup {
    padding: 0.55rem 1rem;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font: inherit;
    background: #ac2222;
    cursor: pointer;
}

#close-gabibbo-popup:hover,
#close-gabibbo-popup:focus-visible {
    color: #2c3e50;
    background: #ffffff;
}

#dvd {
    position: absolute;
    width: 160px;
    height: 80px;
    background-image: url("media/gabibbo_steso.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: hue-rotate(0deg) saturate(200%);
    pointer-events: auto;
    cursor: pointer;
    transform-origin: center;
    transition: transform 180ms ease-out;
}

#dvd.exploding {
    pointer-events: none;
    animation: gabibbo-explode 1400ms ease-in-out forwards;
}

@keyframes gabibbo-explode {
    0% {
        opacity: 1;
        transform: scale(3.25) rotate(0deg);
    }

    45% {
        transform: scale(4.5) rotate(0deg);
    }

    52%, 60%, 68%, 76% {
        transform: scale(4.7) rotate(-4deg);
    }

    56%, 64%, 72%, 80% {
        transform: scale(4.7) rotate(4deg);
    }

    84% {
        opacity: 1;
        transform: scale(5.2) rotate(0deg);
    }

    100% {
        opacity: 0;
        filter: saturate(500%) brightness(2);
        transform: scale(7) rotate(360deg);
    }
}
