@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;400;500;600;700&display=swap');

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    background-color: #000000;
    font-family: 'Inter', sans-serif;
    caret-color: transparent;
    min-height: 100vh;
    font-weight: 600;
    min-width: 350px;
    overflow-x: auto;
}

.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    flex: 1;
    min-height: 100vh;
}

.column {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.column-filter {
    background-color: #ffffff;
    display: flex;
}

.column-card {
    background-color: #999185;
    display: flex;
    min-height: 100vh;
}

.card-container {
    margin: 12px;
    display: flex;
    align-items: stretch;
}

.card {
    background-color: #fff;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    height: 88px;
}

.full-details {
    flex: 1;
    box-shadow: 1px 4px 8px #5c5757;
}

.lateness-info {
    flex: 0 0 25%;
    background-color: #ffffff;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    border-left: 1.5px dotted #BDB7B4;
    box-shadow: 3px 4px 4px #5c5757;
}

#lateness-svg {
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3%;
}

.lateness-info-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    color: #F08627;
    font-size: 20px;
    height: 56px;
}

.train-details,
.lateness-details {
    display: flex;
    border-radius: 15px 15px 0 0;
    background-color: #EFDBB1;
    align-items: center;
}

.train-details .font {
    color: #2B1404;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    display: flex;
    align-items: center;
    font-weight: 600;

}

#train-svg {
    display: flex;
    height: 60%;
    padding: 1%;
    margin-left: 5px;
}

.train-info {
    color: #BDB7B4;
    margin-left: 12px;
    margin-bottom: 5px;
    margin-top: 8px;
    font-size: 14px;
    height: 19px;
    display: flex;
    align-items: center;
}

.train-info .arrow {

    color: #BDB7B4;
    font-weight: 100;
    margin-left: 4px;
    margin-right: 4px;
    display: inline-block;
    min-width: 12px;
    text-align: center;
}

.train-info span {
    display: inline-block;
    min-height: 19px;
}

.train-time {
    font-size: 14px;
    margin-left: 12px;
    font-weight: 600;
}

.train-time .scheduled-arrival {
    color: #BDB7B4;
    text-decoration: line-through;
}

.train-time .scheduled-departure {
    color: #BDB7B4;
}

.train-time .actual {
    color: #F08627;
    font-weight: 600;
    margin-left: 2px;
}

.train-time .canceled {
    color: #BD8985;
}

.train-time .arrow {
    color: #000000;
    font-weight: 600;
    margin-left: 2px;
    margin-right: 2px;
}

.filter-container {
    display: flex;
    flex-direction: column;
    margin: 5%;
    background-color: #ffffff;
    gap: 5px;
    align-items: center;
}

.filter-box {
    align-items: center;
    display: flex;
    flex-direction: row;
    background-color: #ffffff;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    height: 36px;
    width: 342px;
}

.radio-container {
    display: flex;
    width: 342px;
    font-size: 9px;
    margin-top: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.button-container {
    display: flex;
    gap: 42px;
    width: 342px;


}

#filter-button {
    border: 1px solid #F08627;
    background-color: #F08627;
    border-radius: 4px;
    width: 135px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}


#info {
    border: 1px solid #E0E0E0;
    background-color: #ffffff;
    border-radius: 4px;
    width: 165px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    color: #AAA19B;
    font-size: 10px;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
    font-weight: 300;

}

.filter-box label {
    background-color: #ffffff;
    font-size: 9px;
    color: #F08627;
    width: 50px;
    margin-left: 2%;
    display: flex;
    align-items: center;
}

.filter-text {
    background-color: #ffffff;
    color: #2B1404;
    font-weight: 600;
    font-size: 14px;
    border: solid #ffffff;
    cursor: pointer;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.filter-box:nth-of-type(4) {
    margin-top: 30px;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 1px;
    background: #000000;
    opacity: 0.7;
    transition: opacity .2s;
    margin-right: 3%;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #F08627;
    cursor: pointer;
    border-radius: 4px;
}

.slider:hover {
    opacity: 1;
}

output {
    position: absolute;
    z-index: 1;
    background: #F08627;
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
    font-size: 10px;
    pointer-events: none;
    width: 36px;
    text-align: center;
}

h2 {
    text-align: center;
    color: #2A1404;
    font-size: 24px;
    font-weight: bold;
    font-family: 'Inter', sans-serif;
    width: 342px;
    margin-block-end: 0;
    padding-bottom: 20px;
}

.orange-period {
    color: #EF9D2A;
}

/* Canceled trains */
.card-container[data-canceled="1"] .card {
    background-color: #FFBDBD;

}

.card-container[data-canceled="1"] .train-info {
    color: #BD8985;
}

.card-container[data-canceled="1"] .arrow {
    color: #BD8985;
    margin-left: 2px;
    margin-right: 2px;
}

.card-container[data-canceled="1"] .scheduled-departure {
    color: #BD8985;
    text-decoration: line-through;

}

.card-container[data-canceled="1"] .train-details {
    background-color: #E9585B;
}

.card-container[data-canceled="1"] .lateness-details {
    background-color: #E9585B;
}

.card-container[data-canceled="1"] .lateness {
    color: #E9585B;
    font-size: 16px;
}

/* The Modal (background) */
.modal {
    display: none;

    position: fixed;

    z-index: 1;

    left: 0;
    top: 0;
    width: 100%;

    height: 100%;

    overflow: auto;

    background-color: rgba(0, 0, 0, 0.4);

}

/* Add a new class for when the modal is shown */
.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    border-radius: 15px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #2B1404;
    margin-left: 12px;
    margin-right: 12px;

}


.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-content ul {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #2B1404;
    margin-left: 12px;
    margin-right: 12px;
}

.modal-content li {
    margin-bottom: 8px;
}


@media (min-width: 768px) {
    .container {
        flex-direction: row;
    }

    .modal-content {
        width: 50%;
    }

    .card-container {
        height: 88px;
        width: 350px
    }

    h2 {
        padding-bottom: 64px;
    }

    .button-container {
        margin-top: 24px;
    }

    .column-filter {
        width: 60%;
        padding: 2%;
        overflow-y: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: inset -3px 0px 0px 0px #88827b;
    }


    .column-card {
        width: 30%;
        overflow-y: scroll;
        max-height: 100vh;
    }

    .filter-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 400px;
    }
}