/* Reset and basic setup */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* latin-ext */
@font-face {
    font-family: 'Press Start 2P';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/press-start-2p/latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Press Start 2P';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/press-start-2p/latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html {
    width: 100%;
    height: 100%;
    position: relative; /* Positioning context for background */
}

body {
    width: 100%;
    min-height: 100vh;
    /* Mario World sky gradient */
    background: linear-gradient(to bottom, #8bd6f6 0%, #b6e6fc 60%, #f7e3b0 100%);
    background-attachment: fixed;
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align content to the top */
    flex-direction: column;
    padding: 20px;
    overflow-x: hidden; /* Prevent horizontal scroll from clouds */
    position: relative;
}

/* Background Elements */
.background-elements {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Mario World Clouds */
.cloud {
    position: absolute;
    width: 120px; height: 40px;
    background: #fff;
    border-radius: 40px / 20px;
    box-shadow: 0 0 0 4px #e0f6ff;
    opacity: 0.95;
}
.cloud:before, .cloud:after {
    content: '';
    position: absolute;
    background: #fff;
    border-radius: 50%;
}
.cloud:before {
    width: 50px; height: 50px;
    left: -30px; top: -10px;
}
.cloud:after {
    width: 40px; height: 40px;
    right: -25px; top: 0;
}
/* Mario World cloud lines */
.cloud .cloud-line {
    position: absolute;
    width: 6px; height: 18px;
    background: #d1eaff;
    border-radius: 3px;
    top: 12px;
}
.cloud .cloud-line.left { left: 32px; }
.cloud .cloud-line.right { left: 70px; }

/* Mario World Hills */
.hill {
    position: absolute;
    bottom: 80px;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background: #7ec4e3;
    box-shadow: 0 8px 0 #5a9ec6;
    z-index: 1;
}
.hill.hill-1 {
    left: 5vw;
    width: 220px; height: 120px;
    background: #7ec4e3;
}
.hill.hill-2 {
    left: 22vw;
    width: 140px; height: 70px;
    background: #b6e6fc;
    z-index: 2;
}
.hill.hill-3 {
    right: 10vw;
    width: 180px; height: 100px;
    background: #b6e6fc;
    z-index: 2;
}
.hill-dot {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: 0.5;
}
.hill-1 .hill-dot { width: 16px; height: 16px; left: 60px; top: 40px; }
.hill-1 .hill-dot-2 { width: 10px; height: 10px; left: 140px; top: 60px; }
.hill-2 .hill-dot { width: 12px; height: 12px; left: 40px; top: 20px; }
.hill-3 .hill-dot { width: 14px; height: 14px; left: 80px; top: 30px; }

/* Mario World Ground */
.mario-ground {
    position: fixed;
    left: 0; bottom: 0;
    width: 100vw;
    height: 80px;
    background: #d18c5b;
    border-top: 6px solid #a04f00;
    z-index: 10;
    box-shadow: 0 -4px 0 #a04f00;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
}
.ground-pattern {
    width: 100vw;
    height: 100%;
    background-image: repeating-linear-gradient(90deg, #e1a679 0 16px, #d18c5b 16px 32px);
    opacity: 0.5;
}

/* Mario-themed container */
.mario-container {
    width: 100%;
    max-width: 980px;
    text-align: center;
    padding-top: 20px;
    position: relative; /* Ensure it stays on top of the background */
    z-index: 20;
}

h1 {
    color: #fff;
    font-size: 2.5rem;
    line-height: 1.4;
    margin-bottom: 40px;
    /* Classic Mario text effect */
    text-shadow:
        3px 3px 0 #000,
        -3px -3px 0 #000,
        3px -3px 0 #000,
        -3px 3px 0 #000,
        0 3px 0 #000,
        0 -3px 0 #000,
        3px 0 0 #000,
        -3px 0 0 #000;
}

/* Wishlist styles - "? Blocks" */
.wishlist {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.wishlist-item {
    flex: 1 1 200px;
    max-width: 220px;
    background-color: #fbd000; /* ? Block yellow */
    color: #000;
    text-decoration: none;
    padding: 20px;
    border-radius: 8px;
    border: 4px solid #a04f00; /* Brown border */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease-out, opacity 0.3s ease;
    text-shadow: none;
    opacity: 0;
    transform: translateY(20px);
    min-height: 150px;
    position: relative;
    box-shadow: 0 6px 0 #a04f00;
}

.wishlist-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.wishlist-item::before {
    content: '?';
    position: absolute;
    font-size: 3.5rem; /* Slightly smaller '?' */
    color: rgba(0,0,0,0.06); /* More transparent */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* New rivet styles */
.rivet {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #a04f00;
    border-radius: 50%;
    z-index: 0;
}
.rivet.top-left { top: 10px; left: 10px; }
.rivet.top-right { top: 10px; right: 10px; }
.rivet.bottom-left { bottom: 10px; left: 10px; }
.rivet.bottom-right { bottom: 10px; right: 10px; }

.wishlist-item:hover {
    transform: translateY(-8px); /* Bump up */
}

.wishlist-item-label, .wishlist-item-details {
    position: relative;
    z-index: 1;
}

.wishlist-item-label {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.wishlist-item-details {
    font-size: 0.75rem;
    line-height: 1.4;
    color: #333;
    flex-grow: 1;
}

/* Footer styles */
.footer-text h1 {
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.footer-title {
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
    font-family: 'Press Start 2P', cursive;
    letter-spacing: 1px;
}

.imprint-link {
    font-size: 0.8rem;
    color: #fff !important;
    text-decoration: underline;
    text-shadow: 1px 1px 0 #000;
}

.imprint-link:hover {
    color: #fbd000 !important;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    h1 {
        font-size: 1.8rem;
    }
    .wishlist {
        gap: 20px;
    }
    .wishlist-item::before {
        font-size: 3rem;
    }
    .footer-text h1 {
        font-size: 1.2rem;
    }
    .mario-ground {
        height: 50px;
    }
    .hill {
        bottom: 50px;
    }
}

