@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Noto+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Poppins:ital,wght@0,100;0,300;0,400;0,500;0,600;0,700;1,300&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

:root {
    --color-one: #333;
    --color-two: #4CAF50;
    --color-three: #f44336;
    --color-four: #ffeb3b;
    --background-color: #f4f4f4;
    --nav-background: #000;
    --footer-background: #000;
    --footer-text: #fff;
}

* {
    margin: 0;
    padding: 0;
    outline: none;
    font-family: 'Poppins', sans-serif;
    color: var(--color-one);
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background-color: var(--background-color);
}

body {
    display: flex;
    flex-direction: column;
}

/* Nav Bar */
.navBar {
    display: flex;
    background: var(--nav-background);
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.nav-logo img {
    width: 100px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    padding: 10px;
    transition: background 0.3s, color 0.3s;
}

.nav-links a:hover {
    background: white;
    color: black;
}
/* Nav Bar End */

/* Timeline Section */
.timeline {
    text-align: center;
    margin: 20px 0;
}

.timeline h1 {
    font-family: 'Black Ops One', cursive;
    font-size: 2.5em;
    color: var(--color-two);
}

/* Canvas Display */
.displayCanvas {
    margin: 20px auto;
    max-width: 1200px;
}

canvas {
    border: 1px solid black;
    width: 100%;
    display: block;
}

/* Footer */
.footer {
    display: flex;
    flex-direction: column;
    background: var(--footer-background);
    color: var(--footer-text);
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    margin-top: auto;
}

.footer h3 {
    margin-bottom: 10px;
}

.footerLinks {
    display: flex;
    justify-content: center;
}

.footerLinks .nav-links {
    display: flex;
    list-style: none;
}

.footerLinks .nav-links li {
    margin: 0 15px;
}

.footerLinks .nav-links a {
    text-decoration: none;
    color: white;
    padding: 10px;
    transition: background 0.3s, color 0.3s;
}

.footerLinks .nav-links a:hover {
    background: white;
    color: black;
}
/* Footer End */

/* Centering the timeline controls */
.timeline-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    max-width: 1200px; /* Match the displayCanvas max-width for consistency */
    width: 100%; /* Ensure it scales down on smaller screens */
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-controls details {
    width: 100%;
    margin-bottom: 10px;
}

.timeline-controls summary {
    cursor: pointer;
    font-weight: bold;
    padding: 5px;
    font-size: 16px;
    text-align: center;
}

/* Adjust control-content to constrain button layout */
.control-content {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 100%; /* Ensure it doesn't exceed the parent */
    width: 100%; /* Take full width of the parent container */
    box-sizing: border-box; /* Include padding in width calculation */
}

/* Ensure buttons don’t stretch too wide */
.control-content button {
    margin: 5px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
    white-space: nowrap;
    flex: 0 1 auto; /* Prevent buttons from growing too wide */
}

.control-content button.active {
    background-color: var(--color-two);
    color: white;
}

/* Time range content adjustments */
.time-range-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    max-width: 100%; /* Constrain to parent width */
    width: 100%; /* Ensure it scales */
}

.time-range-content label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-range-content input {
    width: 100px;
    font-size: 14px;
}

.time-range-content button {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
}

.reset-btn {
    margin: 20px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
}

/* Centering the disclaimer section */
.disclaimer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 20px auto;
    max-width: 75%;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.disclaimer h3 {
    margin: 10px 0;
}