@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --hist-bg: #ffffff;
    --hist-header: #f8f9fa;
    --hist-text: #333333;
    --hist-muted: #666666;
    --hist-border: #e0e0e0;
    --hist-input-bg: #ffffff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --hist-bg: #0b0b0b;
        --hist-header: #161616;
        --hist-text: #ffffff;
        --hist-muted: #b0b0b0;
        --hist-border: #2a2a2a;
        --hist-input-bg: #2a2a2a;
    }
}

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

body {
    background-color: #5B5B5B;
    color: white;    
    font-family: 'Noto Sans', sans-serif;
    line-height: 1.5;
}

/* navbar */
.navbar {
    background-color: #2A568C;
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 25px;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    position: fixed; 
    width: 100%;
    top: 0;
    z-index: 1000;
}
.nav-logo img { 
    height: 65px;
}

.nav-container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
    justify-content: flex-start; 
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    margin-left: 20px; 
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 0 18px;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s ease;
    display: block;
    line-height: 70px; 
}

.nav-links li a:hover { 
    color: #ffffff; 
}

/* dropdown */
.dropdown { 
    position: relative; 
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    border-radius: 4px;
    top: 100%;
}

.dropdown-content a {
    color: #333 !important;
    padding: 12px 20px !important;
    display: block !important;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown:hover .dropdown-content {
    display: block; 
}

.dropbtn {
    cursor: pointer;
}

.hero-section {
    background-image: url('hero.png');
    background-size: cover;
    background-position: center;
    height: 80vh; 
    margin-top: 70px; 
    position: relative;
}

.hero-overlay {
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(0, 0, 0, 0.2) 70%, 
        #5B5B5B 100%
    ); 
    width: 100%; 
    height: 100%;
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.hero-content { 
    text-align: center; 
    padding: 20px; 
}
.hero-logo { 
    max-width: 450px; 
    margin-bottom: 20px; 
}
h1 { 
    font-size: 4rem; 
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5); 
}

.hero-status {
    background-color: rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 1.1rem;
    margin-bottom: 30px;
    border-left: 4px solid #2A568C; 
}

/* home page hero */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-title-badge {
    background-color: #6c7a89;
    padding: 10px 24px;
    border-radius: 6px;
    display: inline-block;
}

.hero-title-badge h1 {
    font-size: 2.8rem;
    margin-bottom: 0;
    text-shadow: none;
    font-weight: 700;
    color: #ffffff;
}

.hero-status-badge, 
.hero-desc-badge {
    background-color: #4a5568;
    padding: 6px 14px;
    border-radius: 4px;
    display: inline-block;
    max-width: 90%;
}

.hero-status-badge p, 
.hero-desc-badge p {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.hero-desc-badge {
    background-color: rgba(74, 85, 104, 0.85);
    font-size: 0.9rem;
}

.archive-link {
    margin-top: 15px;
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.archive-link:hover {
    opacity: 1;
}

/* some more page things */
.page-wrapper {
    padding: 120px 20px 60px 20px; 
    display: flex;
    justify-content: center;
    min-height: 80vh;
}

.content-card {
    background-color: var(--hist-bg); 
    color: var(--hist-text); 
    width: 100%;
    max-width: 1200px;
    padding: 40px;
    border-left: 8px solid #2A568C; 
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--hist-text);
    border-bottom: 1px solid var(--hist-border);
    padding-bottom: 10px;
}

.history-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--hist-input-bg);
    color: var(--hist-text);
    border: 1px solid var(--hist-border);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: #2A568C;
    color: white;
    border: none;
}

/* footer */
.footer {
    background-color: #2A568C; 
    color: #ffffff;
    padding: 60px 20px 20px 20px;
    border-top: 1px solid rgba(0,0,0,0.2);
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-col { 
    flex: 1; 
    min-width: 200px; 
}

.footer-col h4 { 
    font-size: 14px; 
    color: #ccc;
    margin-bottom: 20px; 
    text-transform: uppercase; 
}
.footer-col p, .footer-col ul li a { 
    font-size: 14px;
    color: #b0b0b0; 
    text-decoration: none; 
}
.footer-col ul {
    list-style: none; 
}
.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center; 
    margin-top: 60px; 
    padding-top: 20px; 
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 13px;
    color: #666;
}

.footer-bottom a {
    color: #888;
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom a:hover {
    color: #ffffff;
}

/* mobile stuff */
#nav-check, .nav-btn { display: none; }

@media (max-width: 768px) {
    .hero-title-badge h1 {
        font-size: 2rem;
    }

    .nav-btn { 
        display: flex; 
        flex-direction: column; 
        height: 20px; width: 28px; 
        cursor: pointer; margin-left: auto; 
        justify-content: space-between; 
    }

    .nav-btn span { 
        height: 3px; 
        width: 100%; 
        background: white; 
    }

    .nav-links {
        position: absolute;
        display: block;
        width: 100%;
        background: #111; 
        height: 0;
        overflow-y: auto; 
        top: 70px;
        left: 0;
        transition: height 0.3s ease;
    }    

    #nav-check:checked ~ .nav-links {
        height: calc(100vh - 70px); 
    }

    .nav-links li a {
        padding: 15px 25px;
        display: block;
        border-bottom: 1px solid #222;
        line-height: normal; 
        font-size: 18px; 
    } 

    .dropdown-content {
        position: static; 
        display: block;   
        background-color: #1a1a1a;
        width: 100%;
        border-radius: 0;
    }

    .dropdown-content a {
        color: #e0e0e0 !important; 
        padding: 12px 35px !important; 
        border-bottom: 1px solid #2a2a2a !important;
    }
   
    .history-controls { 
	    flex-direction: column; 
        align-items: stretch; 
     }
}