/* --- CUSTOM MOUSE CURSOR --- */
* {
    cursor: url('https://cdn.cursors-4u.net/previews/donal-duck-kingdom-hearts-15120587-32.webp') 32 32, auto !important;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center; 
    align-items: flex-end;      
    min-height: 100vh;       
    overflow: hidden;        

    background-image: url("https://files.catbox.moe/7spkmo.jpg"); 
    background-repeat: no-repeat;                 
    background-size: cover;                        
    background-position: center;                  
}

.page-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100vh;
    justify-content: space-between; 
    box-sizing: border-box;
    padding-top: 40px; 
}

/* --- TITLE BANNER --- */
.header-title-img {
    max-width: 850px;  
    width: 90%;        
    height: auto;
    user-select: none;    
    z-index: 20;          
    transition: transform 0.1s ease;
}

.header-title-img:hover {
    cursor: pointer !important;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.3));
}

/* --- CARTOON BOING ANIMATION KEYFRAMES --- */
.boing-animation {
    animation: cartoonBoing 0.4s ease-out;
}

@keyframes cartoonBoing {
    0% { transform: scale(1); }
    20% { transform: scale(1.08, 0.85); }
    50% { transform: scale(0.92, 1.15); }
    75% { transform: scale(1.02, 0.98); }
    100% { transform: scale(1); }
}

/* --- DYNAMIC INTRO MESSAGE STYLING --- */
.guidebook-intro-text {
    font-family: 'Comic Sans MS', 'Chalkboard SE', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.8);
    max-width: 700px;
    width: 85%;
    text-align: center;
    margin: -10px auto 0 auto;
    padding: 14px 20px;
    border-radius: 15px;
    border: 2px dashed #ffcc00; /* Fun comic border accent */
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 25;
    animation: fadeInIntro 0.3s ease-out forwards;
}

@keyframes fadeInIntro {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- SCROLL SYSTEM --- */
.horizontal-scroll-track {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible; 
    display: flex;
    align-items: flex-end; 
}

.button-container {
    display: flex;
    gap: 40px;
    margin-bottom: 0px; 
    align-items: flex-end; 
    padding-left: 60px;  
    padding-right: 60px; 
    overflow: visible; 
}

.model-button {
    position: relative; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none; 
    z-index: 10; 
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1); 
    
    /* Default hover text position for Donald and Louie */
    --text-position-top: -25px;
}

/* --- CHARACTERS LEVELED TO CARPET --- */
.donald-button {
    transform: translateY(115px); 
}

.louie-button {
    transform: translateY(45px); 
}

.magica-button {
    transform: translateY(-20px); 
    /* Lowers Magica's text position locally so it stays inside the viewport window bounds */
    --text-position-top: 35px; 
}

/* --- HOVER ANIMATIONS FOR CHARACTER MODELS --- */
.donald-button:hover {
    transform: translateY(115px) scale(1.05); 
}

.louie-button:hover {
    transform: translateY(45px) scale(1.05);
}

.magica-button:hover {
    transform: translateY(-20px) scale(1.05);
}

/* --- CENTERED HOVER TEXT POPUPS --- */
.model-button::after {
    content: attr(data-hover-text); 
    position: absolute;
    
    top: var(--text-position-top); 
    left: 50%;
    transform: translateX(-50%); 
    
    font-family: 'Comic Sans MS', 'Chalkboard SE', sans-serif; 
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.85); 
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    pointer-events: none; 
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
    
    opacity: 0;
    z-index: 99;
    transition: opacity 0.2s ease;
}

.model-button:hover::after {
    opacity: 1;
}

/* --- MODEL VIEWERS --- */
model-viewer {
    width: 320px;          
    height: 420px;         
}

#donald-model {
    width: 420px;  
    height: 450px; 
}

#magica-model {
    width: 480px;  
    height: 450px; 
}