/* Derelict Land - Dark brutalist aesthetic for archival photography */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --charcoal: #1a1a1a;
    --concrete: #2a2a2a;
    --steel: #4a4a4a;
    --ash: #888888;
    --paper: #e8e8e8;
    --white: #ffffff;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: var(--charcoal);
    color: var(--paper);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Page transitions */
.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.page.active {
    opacity: 1;
    visibility: visible;
}

/* Image pages */
.image-container {
    text-align: center;
    max-width: 90%;
    max-height: 90vh;
}

.archival-photo {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--steel);
    image-rendering: crisp-edges;
}

.image-caption {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--ash);
    font-style: italic;
    letter-spacing: 0.05em;
}

/* Quote page */
.quote-container {
    max-width: 700px;
    padding: 3rem;
    text-align: left;
}

.definition-term {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
    text-transform: none;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
}

.definition-body {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--paper);
    margin-bottom: 2.5rem;
    font-style: normal;
}

.attribution {
    font-size: 1.1rem;
    color: var(--ash);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.source {
    font-size: 0.9rem;
    color: var(--steel);
    font-style: italic;
}

/* Navigation buttons */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ash);
    font-size: 4rem;
    cursor: pointer;
    padding: 2rem;
    transition: color 0.3s ease, opacity 0.3s ease;
    z-index: 100;
    opacity: 0.4;
}

.nav-button:hover {
    color: var(--paper);
    opacity: 1;
}

.nav-button:active {
    color: var(--white);
}

.nav-button:disabled {
    opacity: 0.1;
    cursor: not-allowed;
}

.nav-prev {
    left: 2rem;
}

.nav-next {
    right: 2rem;
}

.arrow {
    display: block;
    line-height: 1;
    user-select: none;
}

/* Page indicator */
.page-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: var(--ash);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
    z-index: 100;
}

.current-page {
    color: var(--paper);
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .definition-term {
        font-size: 2rem;
    }
    
    .definition-body {
        font-size: 1.2rem;
    }
    
    .nav-button {
        font-size: 3rem;
        padding: 1rem;
    }
    
    .nav-prev {
        left: 1rem;
    }
    
    .nav-next {
        right: 1rem;
    }
    
    .quote-container {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .definition-term {
        font-size: 1.5rem;
    }
    
    .definition-body {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .nav-button {
        font-size: 2rem;
        padding: 0.5rem;
    }
    
    .image-caption {
        font-size: 0.75rem;
    }
}

/* Accessibility */
.nav-button:focus {
    outline: 2px solid var(--paper);
    outline-offset: 4px;
}

/* Print styles */
@media print {
    .nav-button,
    .page-indicator {
        display: none;
    }
    
    .page {
        opacity: 1 !important;
        visibility: visible !important;
        page-break-after: always;
    }
}
