* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
}

/* Main classes */
.header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background-color: rgba(85, 49, 49, 0.719);
}

.header #main-title {
    color: white;
    font-size: 25px;
}

.main-container {
    margin: 25px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}


/* Filters */
#filters,
#help {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#filters h2,
#help h2 {
    text-decoration: underline;
}

#filters .filters-list li {
    list-style-type: none;
}

/* Timelines */
.timelines-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timelines-container section {
    border: 2px solid;
    border-radius: 20px;
    height: 504px;
    max-height: 504px;
}

.timelines-container section .message {
    font-size: 25px;
    text-align: center;
    margin-top: 230px;
}

/* Dates and age range */
.dates-container.desktop {
    display: none;
}

.dates-container .input-div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.range-wrap {
    display: none;
    position: relative;
    margin: 0 20px 3rem;
}

.range-wrap input {
    width: 100%;
}


.range-wrap output {
    border: 2px solid black;
    border-radius: 15px;
    margin-top: 22px;
    padding: 4px 12px;
    position: absolute;
    border-radius: 4px;
    left: 0;
    transform: translateX(-50%);
}

/* Large screen */
@media (min-width: 1040px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    .main-container {
        margin: 50px 200px;
    }

    #filters .filters-list {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .timelines-container {
        flex-direction: row;
        align-items: center;
    }

    .timelines-container section {
        width: 100%;
    }

    .dates-container.mobile {
        display: none;
    }

    .dates-container.desktop {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
}