#top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 10px;
    color: white;
}

#times {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: center;
    text-align: center;
    margin-right: 3%;
}

#times a:link {
    color: #fc3d21;
}

#times a:visited {
    color: #27aae1;
}

#next-event {
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

#next-event > p {
    font-weight: bold;
    font-size: large;
    margin: 0%;
}

#next-event-countdown {
    font-family: 'Courier New', Courier, monospace;
    font-size: 36pt;
    color: #27aae1;
}

#next-event-met {
    color: #fc3d21
}

#updates {
    align-self: center;
}

#patch {
    margin-left: 1.5%;
}

#header-container {
    position: relative;
    width: fit-content;
    aspect-ratio: 5500 / 683;
    text-align: center;
    overflow: hidden;
    margin: -8px;
    max-width: 100vw;
}

#header-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

#timeline-container {
    position: relative;
    width: max-content;
    max-width: 100vw;
    overflow: hidden;
    background: #fff;
    margin: -8px;
}

#timeline-image {
    width: 100%;
    height: auto;
    aspect-ratio: 5500 / 666;
}

#timeline-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: red;
    opacity: 0.4;
    left: var(--progress, 0%);
    transform: translate3d(-50%, 10%, 0);
    z-index: 10;
    margin: -8px;
    height: 90%;
}

.flex-misc-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#event-list-container {
    overflow-y: auto;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border: 1px solid #444;
    margin-top: 1%;
}

.event-item {
    border-bottom: 1px solid #ddd;
    padding: 8px 0;
    color: white;
}

.event-countdown {
    font-family: 'Courier New', Courier, monospace;
    color: #27aae1; /* Distinct color for the timer */
}

.box {
    flex: 1;
    padding: 10px;
}

#glossary {
    flex-grow: 1;
    overflow: auto;
    color: white;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    margin-top: 1%;
    margin-left: 1%;
}

#streams {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: flex-start;
    flex-grow: 0;
}

td {
    padding-left: 3px;
    padding-right: 3px;
    border: 1px solid #DDD;
}

#background {
    margin: 0%;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-image: url(https://images-assets.nasa.gov/image/55199854793_6863c5998c_o/55199854793_6863c5998c_o~orig.jpg);
    background-origin: border-box;
    background-position-x: center;
    background-position-y: 2%;
    background-repeat: no-repeat;
    background-size: 100%;
};

#updates-text span {
    display: block; /* Makes each line act like a new row */
    margin-bottom: 5px;
    font-family: monospace; /* Often used for mission logs */
}

#container {
    margin: 8px;
}

a {
    font-size: larger; 
    font-weight: bold; 
    text-align: right;
}

.box > iframe {
    padding: 10px;
}

#success h2 {
    color: white;
    text-align: center;
}

#success p {
    color: white;
    text-align: center;
}