body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    color: #205460;
    overflow: hidden;
}

.main-container {
    display: flex;
    flex-direction: column;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
}

.header-title {
    font-size: 2.4rem;
    font-weight: 700;
}

.header-time {
    font-size: 2.6rem;
    font-weight: 700;
}

.content-container {
    display: flex;
    flex-direction: row;
    flex: 1;
    overflow: hidden;
}

.train-container {
    border-radius: 8px;
    flex: 6;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 80%;
}

.stations-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0 15px;
    padding: 15px 50px;
    background-color: white;
}

.station {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.station-code {
    font-size: 110px;
    font-weight: 700;
    color: #205460;
}

.station-name {
    font-size: 30px;
}

.path-container {
    flex-grow: 1;
    text-align: center;
    padding: 0 30px;
}

.path-container img {
    height: 60px;
    width: auto;
}

.next-train-container {
    background-color: #205460;
    color: white;
    padding: 20px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    margin: 0 25px;
    opacity: 80%;
}

.train-info {
    display: flex;
    flex-direction: column;
}

.train-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.train-subtitle {
    font-size: 2.4rem;
}

.next-departure-time {
    color: white;
    font-size: 5.5rem;
    font-weight: bold;
    text-align: right;
}

.departures-title-container {
    padding: 20px 30px;
}

.departures-title-container h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.departures-title-container p {
    font-size: 1.8rem;
    margin-top: 10px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.schedules-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px;
    flex-grow: 1;
    background-color: #205460;
    color: white;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    margin: 0 25px 35px 25px;
    position: relative;
    opacity: 80%;
}

.vertical-divider {
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: 50%;
    width: 4px;
    background-color: rgba(255, 255, 255, 0.8);
    transform: translateX(-50%);
}

.schedule-row {
    display: flex;
    justify-content: center;
    width: 50%;
    margin-bottom: 10px;
}

.time {
    font-size: 3.5rem;
    font-weight: bold;
    flex: 1;
    text-align: center;
}

.divider-container {
    height: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0.3;
}

.divider-container div {
    width: 3px;
    height: 90%;
    background-color: #8D8D8D;
}

.last-train-info {
    width: 50%;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.last-train-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.last-train-subtitle {
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.messages-container {
    display: flex;
    flex: 3;
    flex-direction: column;
    padding: 30px;
}

.information-title {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.4rem;
    font-weight: 700;
    height: 30px;
}

.messages-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
}

.information-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
}

.information-divider div {
    width: 45%;
    height: 2px;
    background-color: #8D8D8D;
}

.message-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 5%;
}

.message-divider div {
    width: 70%;
    height: 2px;
    background-color: #8D8D8D;
}

.logo-container {
    display: none;
}


/* Format portrait - 1080x1920 */
@media screen and (max-width: 1080px) and (orientation: portrait) {
    body {
        align-items: flex-start;
        height: 100vh;
    }

    .main-container {
        flex-direction: column;
        height: 100vh;
    }

    .content-container {
        flex-direction: column;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 50px;
    }

    .header-time {
        font-size: 2rem;
        margin-top: 10px;
    }

    .stations-container {
        flex-direction: row;
        margin: 10px 0 20px;
        gap: 40px;
        padding: 15px 50px;
    }

    .station {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .station-code {
        font-size: 4rem;
    }

    .station-name {
        font-size: 1.6rem;
        margin-top: 0;
    }

    .path-container img {
        height: 40px;
    }

    .next-train-container {
        padding: 20px;
        margin-bottom: 10px;
    }

    .train-title {
        font-size: 2.2rem;
    }

    .train-subtitle {
        font-size: 1.6rem;
    }

    .schedule-row {
        width: 50%;
        margin-bottom: 15px;
        align-items: center;
    }

    .time {
        font-size: 2.8rem;
    }

    .departures-title-container h2 {
        font-size: 2rem;
    }

    .departures-title-container p {
        font-size: 1.4rem;
    }

    .next-departure-time {
        font-size: 3rem;
    }

    .divider-container {
        height: auto;
        flex: 0;
        padding: 15px 25px;
        margin: 0 0 20px;
    }

    .divider-container div {
        width: 100%;
        height: 3px;
        opacity: 0.8;
        border-radius: 2px;
    }

    .train-container {
        flex: 5;
        height: auto;
        max-height: 55%;
    }

    .messages-container {
        flex: none;
        height: auto;
        min-height: 45%;
        padding: 30px 30px 40px;
    }

    .schedules-container {
        margin-bottom: 20px;
        padding: 10px;
        min-height: 200px;
    }

    .information-title {
        margin-bottom: 20px;
    }

    .messages-content {
        padding-bottom: 40px;
    }

    .message-divider {
        padding-bottom: 3%;
    }

    .logo-container {
        display: flex;
        justify-content: flex-end;
        position: fixed;
        padding-right: 20px;
        height: 10%;
        bottom: 25px;
        right: 15px;
    }

    .logo-container img{
        height: 100%;
    }

    .information-divider {
        margin-top: 0;
    }

    .information-divider div {
        width: 30%;
    }
}