* {
    box-sizing: border-box;
    margin: 0;
    cursor: url('/assets/cursors/Rainbow.cur'), auto;
}

@font-face {
    font-family: 'Main';
    src: url('/assets/fonts/W95FA.woff');
}

@font-face {
    font-family: 'Heading';
    src: url('/assets/fonts/Mario-Kart-DS.ttf');
}

body {
    background-image: url('/assets/art/Background\ 18\ \(Mar\ 29\,\ 2026\).png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Main', serif;
    font-size: 18px;
    color: blueviolet;
    overflow: hidden;
}

.site-grid {
    display: grid;
    grid-template-rows: 100px 1fr 100px;
    height: 100dvh;
}

.dashboard {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 30px;
}

@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.dashboard a {
    animation: popIn 0.8s ease-out forwards;
    opacity: 0;
}

/* Stagger the timing for each box */
.dashboard a:nth-child(1) {
    animation-delay: 0.5s;
}

.dashboard a:nth-child(2) {
    animation-delay: 0.6s;
}

.dashboard a:nth-child(3) {
    animation-delay: 0.7s;
}

.dashboard a:nth-child(4) {
    animation-delay: 0.8s;
}

.dashboard a:nth-child(5) {
    animation-delay: 0.9s;
}

.dashboard a:nth-child(6) {
    animation-delay: 1.0s;
}

.dashboard a {
    cursor: url('/assets/cursors/HelpSelect.png'), pointer !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
    border: 7px outset blueviolet;
    outline: 7px double white;
    box-shadow: 0 0 10px black;
    border-radius: 20px;
}

.dashboard a:hover {
    box-shadow: inset 0 0 20px white;
    filter: brightness(1.1) saturate(1.2);
    cursor: url('/assets/cursors/HelpSelect.png'), pointer !important;
}

.box-label {
    position: absolute;
    bottom: 0;
    left: 0;
    /* Minimum 12px, Preferred 2.5vw, Maximum 22px */
    font-size: clamp(12px, 2.5vw, 22px); 
    width: fit-content;
    min-width: 30%;
    max-width: 95%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 0.2em 15% 0.2em 0.5em; 
    
    font-weight: bold;
    font-family: 'Heading', serif;
    text-transform: uppercase;
    clip-path: polygon(0% 0%, 85% 0%, 100% 100%, 0% 100%);
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Make the label grow on hover without breaking the clip-path */
.dashboard a:hover .box-label {
    padding-right: 25%;
    background: white;
}

/* Specific fix for your giant Red Banner box */
.box-red .box-label {
    font-size: clamp(24px, 5vw, 3.5rem);
}

.box-red {
    grid-column: 1 / 3;
    grid-row: 1 / 4;
    background-image: url('/assets/art/SugarStarluxe\ Banner\ 2B\ \(Jan\ 22\,\ 2026\).png');
    background-size: cover;
    background-position: center;
}

.box-red:hover {
    border-color: red;
    color: red;
}

.box-blue-wide {
    grid-column: 3 / 5;
    grid-row: 1 / 2;
    background-image: url('/assets/art/Andy 10 (Oct 8, 2025).png');
    background-size: 400px;
    background-position: center;
}

.box-blue-wide:hover {
    border-color: dodgerblue;
    color: dodgerblue;
}

.box-green-row-1-L:hover,
.box-green-row-1-R:hover,
.box-green-row-2-L:hover,
.box-green-row-2-R:hover {
    border-color: lime;
    color: limegreen;
}

.box-green-row-1-L {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    background-image: url('/assets/graphics/thumbnails/Buttons.PNG');
    background-position: center;
    background-size: contain;
}

.box-green-row-1-R {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
    background-image: url('/assets/graphics/thumbnails/Guestbook.PNG');
    background-position: center;
    background-size: contain;
}

.box-green-row-2-L {
    grid-column: 3 / 4.5;
    grid-row: 3 / 4;
}

.box-green-row-2-R {
    grid-column: 4.5 / 5;
    grid-row: 3 / 4;
}

.marquee-lane {
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: url('/assets/art/Background\ 9C\ \(Jan\ 24\,\ 2026\).gif');
    background-size: 1200px;
}

/* 1. Define the "Slide Down" for the top */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* 2. Define the "Slide Up" for the bottom */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* 3. Apply them to your existing classes */
.marquee-top {
    border-bottom: 5px solid blueviolet;
    animation: slideDown 0.8s ease-out forwards;
}

.marquee-bottom {
    border-top: 5px solid blueviolet;
    animation: slideUp 0.8s ease-out forwards;
}

.marquee-content {
    display: flex;
    gap: 10px;
    animation: scroll-left 120s linear infinite;
    /* Slower for less eye strain */
}

.reverse {
    animation: scroll-right 120s linear infinite;
}

.marquee-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

.marquee-content:hover {
    animation-play-state: paused;
}

.main-content {
    display: flex;
    flex-direction: row;
    padding: 30px;
    height: 100%;
    gap: 30px;
    position: relative;
}

.doll-container {
    flex: 0.5;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: -10px;
}

#page-doll {
    position: absolute;
    height: 100%;
    filter: drop-shadow(4px 4px 0px white);
    pointer-events: none;
}

.box-locked {
    filter: grayscale(0.8) brightness(0.5);
    cursor: not-allowed;
    background: black;
    position: relative;
    overflow: hidden;
    border-style: dashed !important;
}

.box-locked:hover {
    border-color: white;
    color: black;
}

.glitch-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff0044;
    font-family: monospace;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 2px;
    opacity: 0;
    pointer-events: none;
}

.box-locked:hover .glitch-text {
    opacity: 1;
    animation: alertFlicker 0.2s infinite;
}

@keyframes alertFlicker {
    0% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

@media (max-width: 900px) {

    .site-grid {
        grid-template-rows: 65px 1fr 65px;
    }
    .main-content {
        flex-direction: row;
        overflow-x: hidden;
    }

    .dashboard {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .dashboard a {
        flex: 1;
        height: -webkit-fill-available;
    }

    .box-label {
        font-size: 20px !important;
    }

    #page-doll {
        z-index: -1;
    }

    .marquee-img {
        max-height: 50px;
    }
}