/* Reset and prevent the page from scrolling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    overflow: hidden; 
    background: #000;
}

/* Split Screen Setup */
.split-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.split {
    flex: 1; /* Each takes up 50% */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: flex 0.4s ease; /* Smooth expansion on hover */
}

/* Colors for Contrast */
.left-side {
    background-image: url('images/peace-bg.webp'); 
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.4);
    background-blend-mode: multiply;
    color: #ffffff; 
}

.right-side {
    background-image: url('images/conflict.webp'); 
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.4);
    background-blend-mode: multiply;
    color: #ffffff; 
}

.split:hover {
    flex: 1.15; /* Expands slightly when hovered */
}

/* Sliding Drawers */
.drawer {
    position: fixed;
    top: 0;
    width: 50%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.97);
    color: #111;
    padding: 3rem;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 10;
    overflow-y: auto; /* Allows scrolling inside drawer if text is long */
}

/* Position drawers off-screen initially */
.drawer-left {
    left: 0;
    transform: translateX(-100%);
    border-right: 4px solid #3498db;
}

.drawer-right {
    right: 0;
    transform: translateX(100%);
    border-left: 4px solid #e74c3c;
}

/* This class will be added by JavaScript to slide them in */
.drawer.open {
    transform: translateX(0);
}

/* Drawer Internal Styling */
.close-btn {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    float: right;
    font-weight: bold;
    color: #555;
}

.drawer h2 {
    font-size: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
}

.content p {
    font-size: 1.25rem;
    line-height: 1.6;
}

/* Toggle Buttons for the Right Drawer */
.toggle-container {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
}

.toggle-btn {
    padding: 10px 20px;
    border: 2px solid #2c3e50;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.2s;
}

.toggle-btn.active {
    background: #2c3e50;
    color: #fff;
}

/* Controls the size of Peace, Soldier, and Refugee images all at once */
.drawer-image {
    width: 100%;
    height: 400px; /* Increase this (e.g., 400px, 450px, 500px) to make all 3 images bigger */
    object-fit: contain; 
    object-position: center; 
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* --- NEW: Center Bridge Button --- */
.bridge-btn {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    background: rgba(17, 17, 17, 0.9);
    border: 2px solid #fff;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.bridge-btn:hover {
    background: #fff;
    color: #111;
    transform: translate(-50%, -50%) scale(1.06);
}

/* --- NEW: Concluding Summary Modal Overlay --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85); /* Dark transparent background so images peek through */
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.modal-box {
    background: #1a1a1a;
    color: #f5f5f5;
    max-width: 700px;
    width: 100%;
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
    line-height: 1.7;
}

.modal-close {
    color: #bbb;
}

.modal-close:hover {
    color: #fff;
}

.modal-box h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.75rem;
}

.modal-quote {
    font-style: italic;
    font-size: 1.2rem;
    color: #dcdcdc;
    margin-bottom: 1.5rem;
    border-left: 3px solid #3498db;
    padding-left: 1rem;
}

.modal-box p {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.modal-prompt {
    margin-top: 2rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 1.15rem;
    text-align: center;
    color: #fff;
}

/* Utility Class (kept at bottom with !important so it always hides elements cleanly) */
.hidden {
    display: none !important;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .split-container {
        flex-direction: column; /* Stacks Peace on top, Conflict on bottom on phones */
    }

    .drawer {
        width: 100%; /* Drawers take up full screen on mobile */
        padding: 1.5rem;
    }

    .drawer h2 {
        font-size: 1.8rem;
    }

    .drawer-image {
        height: 220px; /* Slightly smaller image height to fit phone screens */
    }

    .modal-box {
        padding: 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }
}