:root {
    --primary-color: #2d3436;
    --accent-color: #0984e3;
    --bg-color: #ffffff;
    --text-color: #2d3436;
    --secondary-bg: #f5f6fa;
}
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #e6f3ff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    width: 100%;
    background: white;
    padding: 0 20px;
    border-radius: 10px;
    margin: auto;
    margin-top: 20px;
}
nav {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 20px; /* Adds padding to both left and right sides */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
}


nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2.5rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-right: 10px;
}

nav a:hover {
    color: var(--accent-color);
}


h1 {
    text-align: center;
    color: #0984e3;
    margin-bottom: 1.5rem;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: start;
}
.controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
#simulateBtn {
    margin-top: 20px;
    align-self: center;
}
.results {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin-bottom: 20px;
}
.results h2 {
    margin-bottom: 10px;
    color: var(--primary-color);
    text-align: center;
}
.results p {
    margin: 5px 0;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1a4b8c;
    font-weight: 600;
}

input[type="range"] {
    width: 100%;
    margin: 0.5rem 0;
    appearance: none;
    height: 8px;
    background: #1a4b8c;
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

input[type="range"]:hover {
    opacity: 1;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #0984e3;
    border-radius: 50%;
    cursor: pointer;
}

#simulationCanvas {
    width: 100%;
    border: 2px solid #1a4b8c;
    border-radius: 10px;
    background-color: #f0f0f0;
}

#simulateBtn {
    display: block;
    width: 100%;
    padding: 10px 20px;
    background: #1a4b8c;
    color: #fff;
    border: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background 0.3s ease;
    cursor: pointer;
    margin-bottom: 1rem;
}

#simulateBtn:hover {
    background: #123666;
}

.text-sm {
    color: #1a4b8c;
    font-weight: 600;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* Time Slider Controls Styling */
.time-slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.time-slider-container input[type="range"] {
    flex-grow: 1;
    margin: 0 10px;
}

.time-slider-container button {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 40px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.time-slider-container button:hover {
    background-color: #e0e0e0;
}

.time-slider-container button:disabled {
    background-color: #f9f9f9;
    color: #cccccc;
    cursor: not-allowed;
}

.time-slider-container button:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}