/* Reset and base */
* {
    box-sizing: border-box;
}

html {
    image-rendering: pixelated;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 20px;
    font-family: "Gloria Hallelujah", cursive;
    background: linear-gradient(135deg, #d0ead0 0%, #b9e3b9 100%);
    color: #2f5d2f;
    position: relative;
    min-height: 100vh;
    cursor: url("data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjMyIiB3aWR0aD0iMzIiIHZpZXdCb3g9IjAgMCA0OCA0OCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNDIuNTggOS4xMmMtNC44OC00LjgtMTIuNzItNC44LTE3LjYgMEwyNCAxMC4wOGwtMS4wOC0xLjA4Yy00Ljg4LTQuOC0xMi43Mi00LjgtMTcuNiAwLTQuOCA0LjgtNC44IDEyLjcyIDAgMTcuNmwxOC42OCAxOC42OCAxOC42OC0xOC42OGM0LjgtNC44IDQuOC0xMi43MiAwLTE3LjZ6IiBmaWxsPSIjZmY2OWI0Ii8+PC9zdmc+"),
        auto;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-family: "Press Start 2P", cursive;
    font-size: 2.4rem;
    color: #3c7a3c;
    text-shadow:
        1px 1px 0 #c7efc7,
        3px 3px 6px rgba(0, 0, 0, 0.1);
    margin: 0 0 20px 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #b3e8b3 0%, #9cdb9c 100%);
    padding: 10px 0;
    user-select: none;
}

/* Main content layout */
.main-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 0px;
    min-height: 500px;
}

.left-content,
.right-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 350px;
    flex-shrink: 0;
}

/* Navigation */
.nav-links {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    user-select: none;
    position: relative;
    min-height: 400px;
}

.nav-links a {
    background: linear-gradient(145deg, #8dd28d, #74be74);
    border-radius: 14px;
    padding: 14px 28px;
    text-decoration: none;
    font-family: "Press Start 2P", cursive;
    font-size: 0.75rem;
    color: #184218;
    border: 3px solid #4a854a;
    box-shadow: 3px 3px 10px rgba(97, 164, 97, 0.5);
    text-align: center;
    width: 160px;
    position: relative;
    overflow: hidden;
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links a::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    transition: all 0.7s ease;
    pointer-events: none;
    filter: drop-shadow(1px 1px 0 rgba(255, 255, 255, 0.6));
    border-radius: 14px;
}

.nav-links a:hover::before {
    left: 125%;
}

.nav-links a:hover {
    background: #9edb9e;
    box-shadow:
        0 0 20px #a2d7a2,
        inset 0 0 10px #a2d7a2;
    color: #1e4e1e;
}

/* Notes */
.note {
    background: linear-gradient(145deg, #c3edc3, #a2d9a2);
    border: 3px dashed #729972;
    box-shadow: 5px 5px 15px rgba(70, 130, 70, 0.25);
    border-radius: 16px;
    padding: 16px;
    font-size: 1rem;
    line-height: 1.4;
    position: relative;
    color: #285228;
    user-select: text;
}

.note::before,
.note::after {
    content: "♥";
    font-family: "Press Start 2P", cursive;
    position: absolute;
    color: #58a858;
    font-size: 18px;
    user-select: none;
}

.note::before {
    top: 8px;
    left: 10px;
    filter: drop-shadow(1px 1px 0 #2e582e);
}

.note::after {
    bottom: 8px;
    right: 10px;
    filter: drop-shadow(1px 1px 0 #2e582e);
}

/* Status box */
.status-box {
    background: #fff7e6;
    border: 3px dotted #d4a857;
    border-radius: 14px;
    padding: 16px;
    font-family: "Gloria Hallelujah", cursive;
    box-shadow: 3px 3px 10px rgba(212, 168, 87, 0.2);
    text-align: center;
}

.status-box h2 {
    font-family: "Press Start 2P", cursive;
    font-size: 1rem;
    color: #c07f00;
    margin-bottom: 10px;
}

#current-status {
    font-size: 1rem;
    font-style: italic;
    color: #624c16;
}

/* Music box */
.music-box {
    background: #f0f0f0;
    border: 4px solid #888;
    border-radius: 18px;
    box-shadow:
        inset 0 0 12px #ccc,
        4px 4px 15px rgba(0, 0, 0, 0.2);
    padding: 14px;
    user-select: none;
    font-family: "Press Start 2P", cursive;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.music-info-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.album-cover {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    background-image: url(strange_albumcover.jpg);
    background-size: contain;
    box-shadow: 0 0 10px rgba(100, 100, 100, 0.3);
    flex-shrink: 0;
}

.music-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 96px;
    background: #e3e3e3;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: inset 0 0 5px #aaa;
}

.music-info .song-title {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
    user-select: text;
}

.music-info p {
    margin: 0;
    font-size: 0.7rem;
    line-height: 1.3;
    color: #555;
}

/* Controls bar */
.controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #d9e6d9;
    border: 3px solid #888;
    border-radius: 14px;
    padding: 8px 12px;
    box-shadow: inset 0 0 5px #aaa;
    user-select: none;
}

/* Buttons */
.control-button {
    background: linear-gradient(145deg, #c2c2c2, #f7f7f7);
    border: 2px solid #888;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.control-button:hover {
    background: linear-gradient(145deg, #e6e6e6, #ffffff);
}

.control-button svg {
    width: 16px;
    height: 16px;
    fill: #444;
    user-select: none;
}

/* Progress bar container */
.progress-container {
    flex: 1;
    margin: 0 12px;
    height: 12px;
    background: #b5d1b5;
    border-radius: 10px;
    box-shadow: inset 0 0 6px #8fbb8f;
    cursor: pointer;
    position: relative;
}

/* Progress fill */
.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #ff69b4 0%, #db3672 100%);
    border-radius: 10px 0 0 10px;
    width: 0%;
    transition: width 0.2s linear;
}

/* Hide native audio controls */
.music-box audio {
    display: none;
}

/* Guest log */
.guest-log {
    background: #e6f5e6;
    border: 3px dashed #88bb88;
    border-radius: 16px;
    padding: 20px;
    font-family: "Gloria Hallelujah", cursive;
    box-shadow: 4px 4px 12px rgba(70, 130, 70, 0.2);
}

.guest-log h2 {
    font-family: "Press Start 2P", cursive;
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #2f5d2f;
}

#guest-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#guest-form input,
#guest-form textarea {
    border: 2px solid #88bb88;
    border-radius: 10px;
    padding: 10px;
    font-size: 1rem;
    font-family: "Gloria Hallelujah", cursive;
}

#guest-form button {
    background: #b4e4b4;
    border: 2px solid #88bb88;
    padding: 10px;
    border-radius: 12px;
    font-family: "Press Start 2P", cursive;
    cursor: pointer;
}

#guest-entries {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guest-entry {
    background: #ffffff;
    border: 2px solid #88bb88;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 2px 2px 8px rgba(97, 164, 97, 0.2);
}

/* Footer */
.footer {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.footer-text {
    flex: 1;
    background: linear-gradient(145deg, #c3edc3, #a2d9a2);
    border: 3px dashed #729972;
    box-shadow: 5px 5px 15px rgba(70, 130, 70, 0.25);
    border-radius: 16px;
    padding: 16px;
    font-size: 1rem;
    line-height: 1.4;
    color: #285228;
    position: relative;
}

.footer-text::before,
.footer-text::after {
    content: "♥";
    font-family: "Press Start 2P", cursive;
    position: absolute;
    color: #58a858;
    font-size: 18px;
    user-select: none;
}

.footer-text::before {
    top: 8px;
    left: 10px;
    filter: drop-shadow(1px 1px 0 #2e582e);
}

.footer-text::after {
    bottom: 8px;
    right: 10px;
    filter: drop-shadow(1px 1px 0 #2e582e);
}

.footer-gifs {
    flex: 2;
    display: flex;
    gap: 14px;
    justify-content: center;
    background: #dff4df;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 5px 5px 15px rgba(97, 164, 97, 0.3);
}

.footer-gifs img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 1px 1px 6px rgba(97, 164, 97, 0.4);
    transition: transform 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.footer-gifs img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 18px #a5dba5;
}

/* Floating icons */
.icon {
    position: absolute;
    top: 0;
    font-size: 2rem;
    z-index: -1;
    user-select: none;
    pointer-events: none;
    animation-timing-function: linear;
    color: darkgreen;
    opacity: 0; /*start invisible */
}

/* Move from right (100vw) to left (-3rem) */
@keyframes moveLeft {
    0% {
        transform: translateX(100vw);
        opacity: 0;
    }

    2% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateX(-3rem);
        opacity: 0;
    }
}

/* Different delays and vertical positions for variety */
.icon1 {
    top: 2vh;
    animation: moveLeft 15s linear infinite;
    animation-delay: 0s;
}

.icon2 {
    top: 10vh;
    animation: moveLeft 20s linear infinite;
    animation-delay: 5s;
}

.icon3 {
    top: 15vh;
    animation: moveLeft 12s linear infinite;
    animation-delay: 2s;
}

.icon4 {
    top: 20vh;
    animation: moveLeft 18s linear infinite;
    animation-delay: 7s;
}

.icon5 {
    top: 25vh;
    animation: moveLeft 18s linear infinite;
    animation-delay: 0s;
}

.icon6 {
    top: 30vh;
    animation: moveLeft 12s linear infinite;
    animation-delay: 5s;
}
.icon7 {
    top: 35vh;
    animation: moveLeft 20s linear infinite;
    animation-delay: 2s;
}

.icon8 {
    top: 40vh;
    animation: moveLeft 15s linear infinite;
    animation-delay: 7s;
}

.icon9 {
    top: 45vh;
    animation: moveLeft 12s linear infinite;
    animation-delay: 0s;
}
.icon10 {
    top: 50vh;
    animation: moveLeft 18s linear infinite;
    animation-delay: 5s;
}
.icon11 {
    top: 55vh;
    animation: moveLeft 20s linear infinite;
    animation-delay: 2s;
}
.icon12 {
    top: 60vh;
    animation: moveLeft 15s linear infinite;
    animation-delay: 7s;
}
.icon13 {
    top: 65vh;
    animation: moveLeft 12s linear infinite;
    animation-delay: 3s;
}
.icon14 {
    top: 70vh;
    animation: moveLeft 18s linear infinite;
    animation-delay: 1s;
}
.icon15 {
    top: 75vh;
    animation: moveLeft 20s linear infinite;
    animation-delay: 0s;
}
.icon16 {
    top: 80vh;
    animation: moveLeft 15s linear infinite;
    animation-delay: 4s;
}
.icon17 {
    top: 85vh;
    animation: moveLeft 12s linear infinite;
    animation-delay: 5s;
}
.icon18 {
    top: 90vh;
    animation: moveLeft 18s linear infinite;
    animation-delay: 6s;
}
.icon19 {
    top: 95vh;
    animation: moveLeft 15s linear infinite;
    animation-delay: 2s;
}
.icon20 {
    top: 100vh;
    animation: moveLeft 20s linear infinite;
    animation-delay: 3s;
}

/* Sparkle trail style */
.sparkle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #ffea44;
    box-shadow:
        0 0 6px #fde065,
        0 0 12px #fae782;
    border-radius: 2px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.9;
    animation: sparkle-fade 0.6s linear forwards;
}

@keyframes sparkle-fade {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.5);
        opacity: 0;
    }
}

/* Decorative elements */
body::before {
    content: "";
    position: fixed;
    top: 20px;
    right: 20px;
    width: 64px;
    height: 64px;
    background:
        radial-gradient(circle at 10px 10px, #b7e3b7 4px, transparent 5px),
        radial-gradient(circle at 30px 30px, #a2d7a2 5px, transparent 6px),
        radial-gradient(circle at 50px 50px, #b7e3b7 4px, transparent 5px),
        linear-gradient(#6bbf6b 0 0) 12px 12px / 6px 6px no-repeat,
        linear-gradient(#6bbf6b 0 0) 18px 12px / 6px 6px no-repeat,
        linear-gradient(#6bbf6b 0 0) 15px 15px / 6px 6px no-repeat;
    background-repeat: no-repeat;
    opacity: 0.6;
    filter: drop-shadow(0 0 2px #82c182);
    pointer-events: none;
    z-index: 10;
    border-radius: 6px;
}

.nav-links::before,
.nav-links::after {
    content: "";
    position: absolute;
    background-repeat: repeat;
    filter: drop-shadow(0 0 3px #a8f7a8) drop-shadow(0 0 6px #c5ffc5);
    opacity: 0.9;
    border-radius: 3px;
    pointer-events: none;
    user-select: none;
    z-index: 20;
}

.nav-links::before {
    top: 10%;
    left: -40px;
    width: 16px;
    height: 16px;
    background:
        linear-gradient(45deg, #7fd27f 25%, transparent 25%) 0 0 / 8px 8px repeat,
        linear-gradient(-45deg, #7fd27f 25%, transparent 25%) 4px 4px / 8px 8px repeat;
    animation: floatStars 4s ease-in-out infinite alternate;
}

.nav-links::after {
    top: 70%;
    left: 0px;
    width: 14px;
    height: 14px;
    background:
        linear-gradient(45deg, #7fd27f 25%, transparent 25%) 0 0 / 7px 7px repeat,
        linear-gradient(-45deg, #7fd27f 25%, transparent 25%) 3px 3px / 7px 7px repeat;
    animation: floatStarsAlt 5s ease-in-out infinite alternate;
}

@keyframes floatStars {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-8px);
    }
}

@keyframes floatStarsAlt {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(6px);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .left-content,
    .right-content {
        width: 100%;
        max-width: 400px;
    }

    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        min-height: auto;
        padding: 0;
    }

    .nav-links a {
        width: auto;
        padding: 10px 20px;
    }

    .footer {
        flex-direction: column;
        gap: 20px;
    }

    .footer-gifs {
        justify-content: space-between;
    }

    .footer-gifs img {
        width: 70px;
        height: 70px;
    }

    .nav-links::before,
    .nav-links::after,
    body::before {
        display: none;
    }
}
