*,

*::before,
*::after {
    box-sizing: border-box;
}
/* Custom font declaration */
@font-face {
    font-family: 'MV Boli';
    src: url('mvboli.ttf') format('truetype');
    /* If you have multiple formats, add them: */
    /* src: url('mvboli.woff2') format('woff2'),
            url('mvboli.woff') format('woff'),
            url('mvboli.ttf') format('truetype'); */
    font-display: swap; /* Improves loading performance */
}

html {
    height: 100%;
}

body {
    margin: 0;
    font-family: sans-serif;
    background-color: #5A79AF;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
    padding: 20px;
    margin: 20px auto;
    max-width: 900px;
}

/* === NAVIGATION & ARROWS === */
.grid-navigation {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.arrow-container {
    display: flex;
    justify-content: center;
    gap: 5%;
    position: relative;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 5;
    margin: 0;
}

.nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.nav-arrow:hover {
    transform: scale(1.1);
}

.nav-arrow:active {
    transform: scale(0.95);
}

.arrow-image {
    width: 100px;
    height: 60px;
    object-fit: contain;
    display: block;
}

/* Hide side arrows on mobile/tablet by default */
.grid-navigation > .nav-arrow-left,
.grid-navigation > .nav-arrow-right {
    display: none !important;
}

/* === HEADER === */
.site-header {
    background-color: #5A79AF;
    position: relative;
    min-height: 150px;
    height: auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url('header.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

/* NEW: Header layout for GIF and speech bubble */
.header-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    position: relative; /* For absolute positioning */
}

.header-gif {
    margin-top: -10px;
    margin-bottom: -40px;
    margin-left: 0; /* Remove left margin since it's now centered */
    max-width: 60%;
    height: auto;
    display: block;
}

/* NEW: Speech bubble music player */
.speech-bubble {
    position: absolute; /* Position absolutely to not affect centering */
    left: 10%; /* Position on the left side */
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-top: -10px;
    margin-bottom: -40px;
}

.speech-bubble:hover {
    transform: scale(1.1)
}

/* Tooltip for speech bubble */
.speech-bubble::after {
    content: 'PRODUCED BY NOJACKPLEASE';
    position: absolute;
    top: 82%;
    left: 95%;
    transform: translateX(-90%);
    background-color: rgba(0, 0, 0, 0);
    font-family: 'MV Boli', cursive, sans-serif;
    font-weight: bold;
    color: white;
    padding: 2px 2px;
    border-radius: 2px;
    font-size: 4px;
    text-shadow: 0 0 5px #fff;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: none;
    z-index: 100;
    pointer-events: none;
}

.speech-bubble:hover::after {
    opacity: 1;
    visibility: hidden;
}

/* Mobile touch feedback */
.speech-bubble:active::after {
    opacity: 1;
    visibility: visible;
}

/* Mobile tooltip timer class */
.speech-bubble.show-tooltip::after {
    opacity: 1 !important;
    visibility: visible !important;
}

.speech-bubble-img {
    width: 50px;
    height: auto;
    display: block;
}

.play-button {
display:none
}

/* === IMAGE GRID === */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    margin-top: -25px;
    margin-bottom: 1%;
    gap: 3.5%;
}

.grid-image {
    width: 105%;
    height: auto;
    display: block;
    margin: 0;
}

.frame-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    line-height: 0;
}

.frame-wrapper .grid-image {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
    height: auto;
}

.frame-wrapper::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background-image: url('frame.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    pointer-events: none;
}

.single-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 400px;
    order: 1;
    margin: 30px;
}

.single-image {
    max-width: 100%;
    max-height: 800px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

/* === FOOTER === */
footer {
    background-image: url('footer4.png');
    position: relative;
    min-height: 50px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    padding: 50px 20px;
    margin-top: 5%;
    color: white;
    text-align: center;
    font-size: 0.9em;
    line-height: 1;
}

.footer-hotspot {
    position: absolute;
    display: block;
    background: transparent;
    cursor: pointer;
}

#hotspot-social-1 { left: 24%; top: 60%; width: 23%; height: 15%; }
#hotspot-social-2 { left: 45%; top: 10%; width: 8%; height: 20%; }
#hotspot-social-3 { left: 65%; top: 68%; width: 8%; height: 20%; }
#hotspot-social-4 { left: 88%; top: 30%; width: 10%; height: 30%; }

/* === TABLET STYLES === */
@media (min-width: 760px) {
    .arrow-container {
        bottom: -75px;
        gap: 66%;
        margin: 0;
    }
    
    .arrow-image {
        width: 130px;
        height: 90px;
    }
    
    footer {
        margin-top: 0%;
    }
    
    .image-grid {
        width: 80%;
        margin-top: -50px;
        margin-bottom: 5%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .header-gif {
        max-width: 45%;
        margin-top: 4%;
        margin-bottom: 2%;
    }
    
    /* Tablet speech bubble adjustments */
    .speech-bubble {
        left: 20%; /* Adjust position for tablet */
    }
    
    .speech-bubble::after {
        font-size: 8px;
        padding: 10px 2px;
        bottom: -40px;
        font-family: 'MV Boli', cursive, sans-serif;
    }
    
    .speech-bubble-img {
        width: 70px;
    }
    
    .play-button {
        font-size: 16px;
    }
    
    .single-image {
        max-width: 70%;
        max-height: 600px;
    }
    
    #hotspot-social-1 { left: 43%; top: 57%; width: 5%; height: 20%; }
    #hotspot-social-2 { left: 45%; top: 8%; width: 8%; height: 20%; }
    #hotspot-social-3 { left: 54%; top: 70%; width: 4%; height: 20%; }
    #hotspot-social-4 { left: 63%; top: 25%; width: 6%; height: 35%; }
}

/* === DESKTOP STYLES === */
@media (min-width: 1920px) {
    .grid-navigation {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 50px;
        position: relative;
        min-height: 500px;
    }
    
    .arrow-container {
        display: none;
        gap: 400px;
    }
    
    /* Show side arrows on desktop */
    .grid-navigation > .nav-arrow-left,
    .grid-navigation > .nav-arrow-right {
        display: flex !important;
        z-index: 10;
        position: absolute;
        bottom: 30%;
    }
    
    /* Desktop-specific hover effects - no opacity change */
    .grid-navigation > .nav-arrow-left:hover,
    .grid-navigation > .nav-arrow-right:hover {
        opacity: 1;
        transform: scale(1.15);
    }
    
    .grid-navigation > .nav-arrow-left:active,
    .grid-navigation > .nav-arrow-right:active {
        transform: scale(1.05);
    }
    
    .grid-navigation > .nav-arrow-left {
        left: -120px;
    }
    
    .grid-navigation > .nav-arrow-right {
        right: -120px;
    }
    
    .image-grid {
        order: 1;
        width: 75%;
        margin-top: -1%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 4%;
        gap: 2% 3.5%;
    }
    
    .arrow-image {
        width: 300px;
        height: 100px;
    }
    
    .site-header {
        padding: 2px 0;
    }
    
    .site-header::before {
        height: 200px;
    }
    
    .header-content {
        max-width: 900px;
    }
    
    .header-gif {
        max-width: 45%;
        margin-top: 15px;
        margin-bottom: -2.5%;
    }
    
    /* Desktop speech bubble adjustments */
    .speech-bubble {
        left: 20%; /* Adjust position for desktop */
    }
    
    .speech-bubble::after {
        font-size: 12px;
        padding: 7px 1px;
        bottom: -45px;
        font-family: 'MV Boli', cursive, sans-serif;
    }
    
    .speech-bubble-img {
        width: 90px;
    }
    
    .play-button {
        font-size: 20px;
    }
    
    .single-image {
        max-width: 80%;
        max-height: 700px;
    }
    
    footer {
        background-size: contain;
        background-position: center bottom;
        padding: 80px 10px;
        margin-top: 1%;
    }
    
    #hotspot-social-1 { left: 44%; top: 63%; width: 6%; height: 10%; }
    #hotspot-social-2 { left: 48%; top: 22%; width: 3%; height: 13%; }
    #hotspot-social-3 { left: 53%; top: 72%; width: 2%; height: 16%; }
    #hotspot-social-4 { left: 59%; top: 33%; width: 3%; height: 24%; }
}