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

body {
    background: #fff;
    color: #000;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    max-width: 100vw;
}

main {
    max-width: 600px;
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

pre {
    font-family: 'Courier New', Courier, monospace;
    text-shadow:
        1px 1px 2px #fff,
        -1px -1px 2px #fff,
        1px -1px 2px #fff,
        -1px 1px 2px #fff,
        0 0 3px #fff;
}


.footer-line {
    white-space: pre;
    overflow-x: auto;
    margin: 20px 0;
}

.content {
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: left;
}

.contacts {
    white-space: pre;
    text-align: center;
}

a {
    color: #000;
    text-decoration: underline;
    text-shadow:
        1px 1px 2px #fff,
        -1px -1px 2px #fff,
        1px -1px 2px #fff,
        -1px 1px 2px #fff,
        0 0 3px #fff;
}

a:hover {
    background: #000;
    color: #fff;
    text-shadow: none;
}

.name-highlight {
    background: #000;
    color: #fff;
    padding: 0 4px;
    text-shadow: none;
}

.netherlands {
    font-weight: bold;
    background: linear-gradient(to bottom,
        #AE1C28 0%, #AE1C28 33.33%,
        #fff 33.33%, #fff 66.66%,
        #21468B 66.66%, #21468B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 2px 4px;
    position: relative;
    display: inline-block;
}

.netherlands::before {
    content: 'The Netherlands';
    position: absolute;
    left: 0;
    top: 0;
    padding: 2px 4px;
    background: #f0f0f0;
    z-index: -1;
    -webkit-text-fill-color: #f0f0f0;
    color: #f0f0f0;
}

.alba {
    color: #8B4513;
    font-weight: bold;
    cursor: default;
}

.highlight {
    background: #ffeb3b;
    color: #000;
    padding: 0 2px;
    text-shadow: none;
}

.tech {
    color: #CC342D;
    font-weight: bold;
}


.sticker {
    position: absolute;
    width: 150px;
    height: auto;
    opacity: 0.9;
    animation: float 6s ease-in-out infinite;
}

/* Define the subtle, rapid vibration or "buzz" movement */
@keyframes buzz-animation {
    0% { transform: translate(3px, 3px) rotate(1deg); }
    15% { transform: translate(-3px, 0px) rotate(-1deg); }
    30% { transform: translate(3px, -3px) rotate(1deg); }
    45% { transform: translate(-3px, 3px) rotate(-1deg); }
    60% { transform: translate(3px, 0px) rotate(1deg); }
    75% { transform: translate(-3px, -3px) rotate(-1deg); }
    90% { transform: translate(3px, 3px) rotate(1deg); }
    100% { transform: translate(0px, 0px) rotate(0deg); }
}

/* Define a utility class that applies the buzzing animation */
.is-buzzing {
    /* Set the animation to repeat quickly (e.g., 0.1s) and for a few iterations (e.g., 5 times) */
    animation: buzz-animation 0.1s ease-in-out 5; /* 0.1s duration, 5 times = 0.5s total buzz time */
    transform: translate3d(0, 0, 0);
    animation-delay: 0s !important;
}


/* =========================================
   SMOOTH TRANSITION SETUP
   ========================================= */

/* 1. Set up the BODY to transition smoothly whenever its background changes */
body {
    /* This means: take 1 second to change background color smoothly */
    transition: background-color 1s ease-in-out;
}

/* 2. Set up the HTML element to transition smoothly for the 'Void' effect */
html {
    /* Transition filters (invert) and transforms (scale/rotate) smoothly over 1.5s */
    transition: filter 1.5s ease-in-out, transform 1.5s ease-in-out;
    height: 100%; /* Ensures the effect covers the whole screen */
    background-color: #fff; /* Ensure a base color to invert against */
}


/* =========================================
   THE ACTIVE STATES
   ========================================= */

/* LEVEL 1 STATE: The class just sets the color. The 'body' rule above handles the fade. */
.is-golden {
   background-color: #ffd700 !important;
}

.do-barrel-roll {
    transition: rotate 1s ease-in-out;
    rotate: 1turn; /* 360 degrees */
}


/* LEVEL 3 STATE: The class sets the inverted properties. The 'html' rule handles the transition. */
.is-voided {
    filter: invert(1) hue-rotate(180deg); /* hue-rotate keeps colors looking funky, not just negative grayscale */
    transform: scale(0.98); /* Slight shrink effect */
    overflow: hidden; /* Prevents scrollbars during the shrink */
}
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(var(--rotation));
    }
    50% {
        transform: translateY(-20px) rotate(var(--rotation));
    }
}

@keyframes bark {
    0%, 100% {
        transform: translateY(0px) rotate(var(--rotation)) scale(1);
    }
    25% {
        transform: translateY(-10px) rotate(calc(var(--rotation) + 5deg)) scale(1.1);
    }
    75% {
        transform: translateY(-10px) rotate(calc(var(--rotation) - 5deg)) scale(1.1);
    }
}

.sticker-1 {
    top: 15%;
    left: 15%;
    --rotation: -15deg;
    animation-delay: 0s;
}

.sticker-2 {
    top: 20%;
    right: 18%;
    --rotation: 12deg;
    width: 130px;
    animation-delay: 1.5s;
}

.sticker-3 {
    bottom: 25%;
    left: 12%;
    --rotation: 8deg;
    width: 140px;
    animation-delay: 3s;
}

.sticker-4 {
    bottom: 20%;
    right: 15%;
    --rotation: -10deg;
    width: 120px;
    animation-delay: 4.5s;
}

@media (max-width: 600px) {
    body {
        font-size: 14px;
        padding: 10px;
        padding-top: 5px;
        overflow-x: hidden;
        align-items: flex-start;
        min-height: auto;
    }

    main {
        max-width: 100%;
    }

    .content {
        white-space: pre-line;
    }

    .footer-line {
        font-size: 11px;
        margin: 15px 0;
    }

    .sticker {
        display: block;
        opacity: 1;
        width: 100px;
    }

    .sticker-1 {
        top: 15%;
        left: 10%;
        --rotation: -15deg;
    }

    .sticker-2 {
        top: 20%;
        right: 10%;
        --rotation: 12deg;
        width: 90px;
    }

    .sticker-3 {
        bottom: 25%;
        left: 8%;
        --rotation: 8deg;
        width: 95px;
    }

    .sticker-4 {
        bottom: 20%;
        right: 8%;
        --rotation: -10deg;
        width: 85px;
    }
}
