/* Educational Antisemitism Awareness Page Styles */

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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #333;
    min-height: 100vh;
    line-height: 1.6;
}

header {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

header p {
    color: #7f8c8d;
    font-size: 1.2rem;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.flowchart-container {
    background: #2c3e50;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    min-height: 800px;
}

/* Connection lines - SVG overlay */
.connections-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.connection-line {
    stroke: #ecf0f1;
    stroke-width: 2;
    opacity: 0.7;
}

.flowchart-container svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.start-box {
    background: #34495e;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    margin: 0 auto 2rem;
    width: 300px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ecf0f1;
    position: relative;
    z-index: 10;
}

.start-box:hover {
    background: #4a6741;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.level-1, .level-2, .level-3 {
    display: flex;
    justify-content: space-around;
    margin: 3rem 0;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.box {
    background: #34495e;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 1rem;
    width: 280px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ecf0f1;
    position: relative;
    z-index: 5;
}

.box:hover {
    background: #e74c3c;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
}

.box p {
    font-weight: bold;
    margin: 0;
}

/* Avatar styling */
.avatar-container {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
}

.avatar-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #ecf0f1;
    background: #8b0000;
    object-fit: cover;
    transition: all 0.3s ease;
}

.box:hover .avatar-image {
    border-color: #ffffff;
    transform: scale(1.1);
}

.conclusion {
    background: #e74c3c;
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

.educational-note {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.educational-note h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.educational-note p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Popup Styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

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

.popup-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #e74c3c;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #c0392b;
}

#popup-body h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 0.5rem;
}

#popup-body p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

#popup-body .warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 1rem;
    margin: 1rem 0;
    color: #856404;
}

#popup-body .educational-tip {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 5px;
    padding: 1rem;
    margin: 1rem 0;
    color: #0c5460;
}

#popup-body .special-note {
    background: #f8f9fa;
    border: 2px solid #6c757d;
    border-left: 5px solid #6f42c1;
    border-radius: 5px;
    padding: 1rem;
    margin: 1rem 0;
    color: #495057;
    font-style: italic;
}

#popup-body .special-note a {
    color: #6f42c1;
    text-decoration: underline;
    font-weight: 500;
}

#popup-body .special-note a:hover {
    color: #5a32a3;
    text-decoration: none;
}

/* Footer styles */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9em;
}

footer p {
    margin: 0;
    font-style: italic;
}

footer a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #bdc3c7;
    text-decoration: underline;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateY(-50px) scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@media (max-width: 768px) {
    .level-1, .level-2, .level-3 {
        flex-direction: column;
        align-items: center;
    }
    
    .box {
        width: 100%;
        max-width: 400px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .popup-content {
        margin: 1rem;
        padding: 1.5rem;
    }
}