/* Reset and font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

@font-face {
    font-family: 'AlbertusMTStd';
    src: url('fonts/AlbertusMTStd.woff2') format('woff2'),
         url('fonts/AlbertusMTStd.woff') format('woff'),
         url('fonts/AlbertusMTStd.ttf') format('truetype');
    font-display: swap;
    font-weight: normal;
    font-style: normal;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: fixed;
}

body {
    background-image: url('images/plastic-wrap.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    font-family: 'AlbertusMTStd', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, serif;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: -0.05em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    text-align: center;
    width: 90%;
    max-width: 500px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 95vh;
    position: relative;
}

.numeral {
    font-size: clamp(40px, 8vw, 45px);
    margin-top: 10px;
    font-weight: normal;
    text-align: center;
    width: 100%;
}

.menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.menu-item:not(:first-child) {
    display: none;
}

.menu-item:first-child {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 20px;
}

.number {
    font-size: clamp(8px, 3vw, 14px);
    font-weight: normal;
}

.text {
    font-size: clamp(8px, 3vw, 14px);
    cursor: pointer;
    font-weight: normal;
    text-decoration: none;
    color: inherit;
}

a.text {
    display: inline-block;
}

footer {
    margin-top: auto;
    padding-bottom: 10px;
    font-size: clamp(14px, 2.5vw, 14px);
    letter-spacing: -0.05em;
}

/* Overlay styles */
.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    display: none;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
}

.image-overlay.active {
    pointer-events: auto;
}

.image-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay.active {
    display: block;
    opacity: 1;
}

.text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 2;
    pointer-events: none;
}

.text-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.text-content {
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'AlbertusMTStd', sans-serif;
    line-height: 1.6;
}

.close-text {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 3;
}

.header-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.header-image {
    width: 80vw;
    max-width: 1200px;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: block;
}

.header-image:hover {
    transform: scale(1.02);
}

.text-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    letter-spacing: -0.05em;
}

.text-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

.spotify-link {
    display: inline-block;
    background: #1DB954;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.spotify-link:hover {
    background: #1ed760;
}

/* Mobile-specific overlay adjustments */
@media screen and (max-width: 768px) {
    .image-overlay {
        height: 100vh;
        width: 100vw;
        position: fixed;
        top: 0;
        left: 0;
        margin: 0;
        padding: 0;
    }

    .image-overlay img {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        margin: 0;
        padding: 0;
    }
    
    .text-content {
        padding: 20px;
        font-size: 14px;
    }
    
    .text-content h2 {
        font-size: 20px;
    }
    
    .close-text {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
    
    .header-container {
        width: 100%;
        margin-left: 0;
        margin-bottom: 15px;
    }
    
    .header-image {
        width: 90%;
        max-width: 90%;
    }
}

.footer-text {
    cursor: pointer;
}

/* Hover effects only for non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .text:hover {
        transform: scale(1.05);
    }
}

/* Mobile styles (screens smaller than 768px) */
@media screen and (max-width: 768px) {
    .footer-text {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .footer-line {
        display: block;
    }
}

/* Desktop styles (screens larger than 768px) */
@media screen and (min-width: 769px) {
    .footer-line {
        display: inline;
    }
    
    .footer-line:first-child::after {
        content: " ";
    }
}

/* Dark mode toggle styles */
body.dark-mode {
    background-image: url('images/dark-streaks.jpg');
    color: white;
}

body.dark-mode .numeral,
body.dark-mode .text,
body.dark-mode .number,
body.dark-mode footer {
    color: white;
}

body.dark-mode .text {
    color: white;
}

/* Conceptual Entertainment overlay */
.conceptual-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 1001;
    pointer-events: none;
    background: transparent;
}

.conceptual-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.conceptual-text {
    font-family: 'AlbertusMTStd', sans-serif;
    font-size: clamp(12px, 4vw, 18px);
    letter-spacing: -0.05em;
    color: inherit;
    text-align: center;
    font-weight: normal;
}

/* Dark mode text color for conceptual overlay */
body.dark-mode .conceptual-text {
    color: white;
}

/* Producer text overlay */
.producer-text-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 1001;
    pointer-events: none;
    background: transparent;
}

.producer-text-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.producer-text {
    font-family: 'AlbertusMTStd', sans-serif;
    font-size: clamp(12px, 4vw, 18px);
    letter-spacing: -0.05em;
    color: inherit;
    text-align: center;
    font-weight: normal;
}

/* Dark mode text color for producer overlay */
body.dark-mode .producer-text {
    color: white;
}

/* Everything hover transformations */
.everything-hover .numeral {
    font-size: clamp(12px, 4vw, 18px);
    color: black;
}

.everything-hover footer {
    color: black;
}

/* Dark mode - white text when hovering everything */
body.dark-mode.everything-hover .numeral {
    color: white;
}

body.dark-mode.everything-hover footer {
    color: white;
}

/* No transitions - sharp instant switch */

/* Adjustments for very small screens */
@media screen and (max-height: 600px) {
    .numeral {
        margin-top: 10px;
    }
    
    footer {
        padding-bottom: 10px;
    }
}