@font-face {
    font-family: "FX_LED";
    src: url("fonts/FX-LED.TTF");
}

@font-face {
    font-family: "hack";
    src: url("fonts/Hack-Bold.ttf");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'hack';
}

body {
    background-color: #2c2c2c;
    color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.section {
    text-align: center;
    padding: 20px;
}

#chronometer {
    height: 10%;
    background-color: #1a1a1a;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

#countdown {
    background-color: #000;
    transition: background-color 0.5s ease;
}

#nextPilot {
    height: 15%;
    background-color: #1a1a1a;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.chronometerDisplay {
    font-family: "FX_LED";
    color: red;
    font-size: 3rem;
    margin-bottom: 20px;
}

.countdownDisplay {
    font-family: "FX_LED";
    font-size: 30rem;
    margin-bottom: 20px;
}

.side-menu {
    position: fixed;
    left: 0;
    top: 0;
    width: 45%;
    height: 100%;
    background-color: #333;
    color: white;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
    overflow-y: hidden;
}

.side-menu.active {
    transform: translateX(0);
}

.menu-toggle {
    position: fixed;
    left: 10px;
    top: 10px;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    line-height: 60px;
    text-align: center;
    cursor: pointer;
    background-color: #ff0000;
    color: white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    border: none;
    outline: none;
    transition: background-color 0.2s ease;
}

.menu-toggle:hover {
    background-color: #f00000;
}

.side-menu table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.7rem;
}

.side-menu th, 
.side-menu td {
    padding: 6px;
    border: 1px solid #555;
    line-height: 1.2;
}

.side-menu tbody {
    display: block;
    max-height: calc(6 * 30px);
    overflow-y: auto;
}

.side-menu thead,
.side-menu tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.highlight {
    background-color: blue;
    transition: background-color 0.5s ease;
}

@media (max-width: 768px) {
    .side-menu {
        width: 80%;
    }

    .countdownDisplay {
        font-size: 20rem;
    }

    .chronometerDisplay {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .side-menu {
        width: 100%;
    }

    .countdownDisplay {
        font-size: 15rem;
    }

    .chronometerDisplay {
        font-size: 1.5rem;
    }
}