:root {
    --primary-color: #4a90e2;
    --bg-color: #f0f2f5;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-main: #2d3436;
    --sidebar-width: 250px;
    --transition-speed: 0.3s;
}

body {
    flex-grow: 1;
    font-family: "Noto Sans", Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    height: auto;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
}

select {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    outline: none;
}

select:focus {
    border-color: #0056b3;
}

.container {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#timer {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0056b3;
    margin-top: 1rem;
}

/* Side Navigation */
.sidenav {
    height: 100vh;
    width: 220px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #f9c22e;
    padding-top: 20px;
}

.sidenav h2 {
    color: black;
    text-align: center;
}

.sidenav a {
    display: block;
    color: black;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: bold;
}

.sidenav a:hover {
    background-color: #e0aa1f;
}

/* Mobile styles */
@media (max-width: 768px) {
    .sidenav {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .sidenav.active {
        transform: translateX(0);
    }

    .main {
        margin-left: 0;
    }

    .menu-toggle {
        display: block !important;
        background-color: none;
    }
}

/* Burger button */
.menu-toggle {
    font-family: "Noto Sans", Arial, sans-serif;
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    background-color: #f9c22e;
    color: black;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 1001;
    border-radius: 8px;
}

.top-bar {
    height: 50px;
    width: 100%;
    background-color: #f9c22e;
    color: #333 !important;
    position: fixed;
    top: 0;
    left: 0;
    /* box-shadow: 0 4px 15px rgba(0,0,0,0.1); */
}

/* --- About Page Specific Styling --- */

.about-container {
    max-width: 600px; /* Limit width for better readability */
    text-align: left; /* Text is easier to read left-aligned */
}

.about-container h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.content-text p {
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: #555;
}

hr {
    border: 0;
    height: 1px;
    background: rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.milestones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 1rem;
}

.milestone-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.milestone-item span {
    font-size: 1.5rem;
}

.milestone-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-main);
}

.compact-timer {
    font-size: 1.5rem !important; /* Smaller than the home page */
    margin-bottom: 2rem;
    background: rgba(74, 144, 226, 0.1); /* Light blue tint */
    padding: 10px;
    border-radius: 12px;
    display: inline-block;
}

/* Ensure it looks good inside the left-aligned About text */
.about-container #timer {
    text-align: center;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}