/* Global Reset and Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background-color: #f4f6f8;
}

/* Header Styling */
header {
    background-color: #1a252f;
    color: #ffffff;
    padding: 3rem 1rem;
    text-align: center;
    border-bottom: 5px solid #3498db;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Navigation Menu */
#navbar {
    background-color: #2c3e50;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-btn {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid transparent;
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    border-color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

.nav-btn.active {
    background-color: #3498db;
    border-color: #3498db;
}

/* Main Content Area */
#main-content {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.page {
    display: none;
    background: #ffffff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    animation: fadeIn 0.4s ease-in;
}

.page.active {
    display: block;
}

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

/* Typography inside pages */
h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ecf0f1;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

strong {
    color: #2980b9;
}

/* Media and Images */
img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.hero-img {
    margin: 2rem 0;
    max-height: 400px;
    object-fit: cover;
}

.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Special Elements */
.thesis-box {
    background-color: #e8f4f8;
    border-left: 6px solid #2980b9;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 0 8px 8px 0;
}

.thesis-box h3 {
    margin-bottom: 1rem;
    color: #2980b9;
}

.thesis-box p {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0;
}

.quote-graphic {
    background-color: #2c3e50;
    color: white;
    padding: 2rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.2rem;
    font-style: italic;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Works Cited MLA Formatting (Hanging Indents) */
.works-cited p {
    padding-left: 3rem;
    text-indent: -3rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

/* Responsive Design for smaller screens */
@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: 1fr;
    }
    .page {
        padding: 1.5rem;
    }
    
    /* Mobile Navigation Fix */
    #navbar {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 10px;
        -webkit-overflow-scrolling: touch; /* Ensures smooth swiping on iOS */
    }
    
    .nav-btn {
        white-space: nowrap; /* Prevents text from breaking onto multiple lines */
        flex-shrink: 0; /* Prevents buttons from squishing */
    }
}
