* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.header {
    background: linear-gradient(to right, #c41e3a 0%, #1a1a1a 50%);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #c41e3a;
    position: relative;
    z-index: 100;
}

.header h1 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    flex: 1;
    text-align: center;
}

.menu-toggle {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
    margin-right: 20px;
}

.menu-toggle:hover {
    color: #c41e3a;
}

.dropdown-menu {
    position: fixed;
    top: 85px;
    left: 0;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-right: 3px solid #c41e3a;
    border-bottom: 3px solid #c41e3a;
    flex-direction: column;
    display: none;
    z-index: 99;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.dropdown-menu.active {
    display: flex;
}

.dropdown-menu a {
    color: #fff;
    text-decoration: none;
    padding: 15px 25px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid #333;
    transition: all 0.3s ease;
    align-self: center;
}

.dropdown-menu a:hover {
    background: #c41e3a;
    padding-left: 35px;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}



.main-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}



.container {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 1400px;
    width: 100%;
    height: 100%;
}

.left-sidebar {
    width: 200px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 2px solid #333;
}

.sidebar-text h2 {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.timeline-label {
    font-size: 0.85rem;
    color: #999;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #c41e3a;
}

.sidebar-credits {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.6;
    text-align: left;
}

.sidebar-credits p {
    margin: 0;
}

.content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    padding: 20px 40px;
    position: relative;
}

.content-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
    border: 2px solid #555;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #999;
    position: relative;
}

.image-placeholder:last-of-type {
    border: 8px solid #d4a574;
}

.posterimg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 2px;
}

.obamaimg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 2px;
}

.center-subtitle {
    position: relative;
    z-index: 10;
    width: auto;
    text-align: center;
    padding: 30px 20px;
    white-space: nowrap;
    transform: none !important;
    left: auto !important;
    top: auto !important;
}

.center-subtitle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: #c41e3a;
}

.center-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: #1e5ba8;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.6;
    color: #fff;
}

.timeline-container {
    width: 100%;
    background: #0f0f0f;
    padding: 30px 20px;
    border-top: 3px solid #c41e3a;
    margin-top: auto;
}

.timeline {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    position: relative;
    padding: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    bottom: 60px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(to right, #c41e3a, #444, #c41e3a);
    z-index: 1;
}

.timeline-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    background: #c41e3a;
    border-radius: 50%;
    margin: 0 auto 15px;
    box-shadow: 0 0 8px rgba(196, 30, 58, 0.5);
}

.timeline-button-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.timeline-year {
    font-size: 1.6rem;
    font-weight: 600;
    color: #c41e3a;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.timeline-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.timeline-btn {
    background: linear-gradient(135deg, #c41e3a 0%, #a01729 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.timeline-btn:hover {
    background: linear-gradient(135deg, #e63946 0%, #c41e3a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.5);
}

.timeline-btn.active {
    background: linear-gradient(135deg, #e63946 0%, #c41e3a 100%);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.5);
}

.dropdown-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.dropdown-container.active {
    display: flex;
}

.dropdown-content {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border: 2px solid #c41e3a;
    border-radius: 4px;
    padding: 40px;
    max-width: 600px;
    max-height: 70vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #c41e3a;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #e63946;
    transform: rotate(90deg);
}

.dropdown-content h2 {
    color: #c41e3a;
    font-size: 1.6rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown-content p {
    color: #ddd;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.dropdown-content ul {
    margin-left: 20px;
    color: #ddd;
    line-height: 1.8;
}

.dropdown-content li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

body.summary .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
     background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

body.summary .content-section {
    max-width: 900px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
}

body.summary .content-section p,
body.summary .content-section ul {
    text-align: left;
    font-size: 1rem;
    color: #ddd;
}

#keypoints {
    display: flex;
    flex-direction: column;
    align-self: flex-start; 
}






@media (max-width: 1200px) {
    .menu-toggle {
        display: block;
    }

    .left-sidebar {
        width: 150px;
        padding: 30px 15px;
    }

    .sidebar-text h2 {
        font-size: 1.1rem;
    }

    .image-placeholder {
        max-width: 280px;
    }

    .content {
        padding: 20px;
        gap: 15px;
    }

    .subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 960px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .main-wrapper {
        flex-direction: column;
    }

    .container {
        flex-direction: column;
    }

    .left-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #333;
        flex-direction: row;
        gap: 30px;
        align-items: flex-start;
    }

    .sidebar-text {
        flex: 1;
    }

    .sidebar-credits {
        flex: 1;
    }

    .content {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }

    .content-section {
        width: 100%;
    }

    .image-placeholder {
        max-width: 100%;
    }

    .center-subtitle {
        margin: 20px 0;
    }

    .timeline {
        flex-wrap: wrap;
        gap: 30px;
    }

    .timeline-item {
        flex: 0 1 calc(50% - 15px);
    }

    .timeline::before {
        display: none;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 15px 20px;
    }

    .header h1 {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }


    .left-sidebar {
        flex-direction: column;
        gap: 20px;
    }

    .sidebar-text h2 {
        font-size: 1rem;
    }

    .sidebar-credits {
        font-size: 0.7rem;
    }

    .content {
        grid-template-columns: 1fr;
        padding: 20px 10px;
    }

    .timeline-item {
        flex: 0 1 100%;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .dropdown-content {
        padding: 30px;
        max-width: 90vw;
    }
}

