:root {
    --primary-color: rgb(55, 55, 55);
    --secondary-color: rgb(66, 66, 66);
    --secondary-color-trans: rgba(66, 66, 66, 0.9);
    --light-outline: rgb(100, 100, 100);
    --accent-green: rgb(0, 128, 64);
    --accent-amber: rgb(195, 131, 1);
    --accent-red: rgb(175, 35, 35);
    --accent-nirail: #1e459f;
    --accent-enterprise: #7E1C9ABF;
}
  
body {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
    font-family: "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--primary-color);
    color: whitesmoke;
}

.background-section {
    position: relative;
    width: 100%;
    background-color: aqua;
}

#top-bg-image {
    position: relative;
    background: url('./bg-1-4k.png') center/cover no-repeat;
    overflow: hidden;
}

#top-bg-image::after {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(0.1px);
    background: linear-gradient(to top, var(--primary-color), rgba(0,0,0,0.5));
}

#top-container-inner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;

    width: 50%;
    height: 60%;
}

#header-title {
    position: absolute;
    left: 50%;
    top: 0%;
    transform: translateX(-50%);
    width: 18rem;
}

#header-description {
    position: absolute;
    left: 50%;
    top: 30%;
    transform: translateX(-50%);

    text-align: center;
    width: 75%;
}

#visit-link-btn {
    position: absolute;
    left: 50%;
    bottom: 10%;
    transform: translateX(-50%);

    width: 10rem;
    height: 3rem;
    border-radius: 10px;
    border: solid 2px var(--light-outline);
    transition: background-color 0.2s;
    font-size: 22px;
    text-decoration: none;

    display: flex;
    justify-content: center;
    align-items: center;  
}

#visit-link-btn:hover {
    cursor: pointer;
    background-color: var(--accent-green);
}

#general-info-bg-image {
    position: relative;
    background: url('./bg-service-4k.png') center/cover no-repeat;
    overflow: hidden;
}

#general-info-bg-image::after {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(0.1px);
    background: linear-gradient(
        to bottom,
        var(--primary-color) 0%,
        rgba(0, 0, 0, 0) 40%,   /* fade out to transparent */
        rgba(0, 0, 0, 0) 60%,   /* keep middle transparent */
        var(--primary-color) 100%  /* fade back in */
    );
}

.container-general-info {
    width: 22%;
    
    border: solid 2px var(--light-outline);
    background-color: var(--secondary-color-trans);
    border-radius: 15px;
    padding: 10px;
    z-index: 1;

    transition: padding 0.2s;
}

.container-general-info:hover {
    padding: 12px;
}

#live-info {
    position: absolute;
    left: 28%;
    top: 10%;
}

#service-info {
    position: absolute;
    left: 50%;
    bottom: 18%;
}

#station-info {
    position: absolute;
    right: 9%;
    top: 20%;
}

.general-info-container-header {
    height: 15%;
    width: 100%;
    border-bottom: solid 2px var(--light-outline);
    font-weight: bold;
    font-size: 20px;

    display: flex;
    align-items: center;  
}

.general-info-header-text {
    margin-bottom: 4px;
}

.general-info-description-text {
    font-size: 16px;
    margin-top: 5px;
    display: block;
}

#updates-bg-image {
    position: relative;
    background-color: var(--primary-color);
}

#updates-title {
    display: none;
}

.update-container {
    position: relative;
    top: 4rem;
    margin-top: 0px;
    margin-bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    max-width: 700px;
    height: 16rem;
    border-radius: 10px;
    border: 2px solid var(--light-outline);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1rem;
    padding-top: 0.75rem;
    box-sizing: border-box;
    background-color: var(--secondary-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease, padding 0.2s ease;
    z-index: 0;
}

.update-container::after {
    content: "";
    position: absolute;
    left: 10%;
    bottom: -5rem;
    transform: translateX(-50%);
    width: 3px;
    height: 5rem;
    background-color: var(--light-outline);
    z-index: -1;
}

.update-container:last-child::after {
    display: none;
}

.title-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid var(--light-outline);
    padding-bottom: 0.25rem;
    padding-top: -10px;
    margin-bottom: 0.5rem;
    font-size: 18px;
}

.text-container {
    flex-grow: 1;
    padding: 0.5rem;
    border-radius: 5px;
    line-height: 1.4;
}

.date {
    font-size: 14px;
}

a {
    color: whitesmoke;
}

#footer-bg {
    border-top: 2px solid var(--light-outline);
    background-color: var(--primary-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;  
    justify-content: space-between;
}

#footer-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    margin-left: 15px;
    font-size: 14px;  
}

#footer-icons {
    display: flex;
    justify-content: right;
    align-items: center;
    gap: 2px;
    margin-right: 15px;
    font-size: 24px;  
}

/* Smaller devices */

@media (max-width: 900px) {
    #top-container-inner {
        width: 95%;
        height: 75%;
    }

    #visit-link-btn {
        bottom: 30%;
    }

    .container-general-info {
        position: absolute;
        width: 70%;
        transform: translateX(-50%);
    }

    #station-info {
        bottom: initial;
        top: 0;
        left: 50%;
    }

    #live-info {
        left: 50%;
        bottom: initial;
        top: 230px;
    }

    #service-info {
        left: 50%;
        bottom: initial;
        top: 460px;
    }

    #header-description {
        top: 25%;
    }

    #updates-bg-image {
        height: 60vh; /* min height for now */
    }

    #updates-title {
        display: block;
        text-align: center;
    }

    .update-container {
        top: 3rem;
        width: 90%;
        font-size: 14px;
        height: auto;
    }

    .text-container {
        padding: 0;
    }

    #footer-bg {
        height: 8vh;;
    }
}

@media (min-width: 900px) {
        @media (max-height: 710px) {
        #service-info {
            left: 50%;
            bottom: initial;
            top: 60%;
        }
    }
}

@media (max-width: 600px) {
    #header-description {
        width: 80%;
    }

    #visit-link-btn {
        bottom: 20%;
    }

    #footer-bg {
        display: block;
    }

    #footer-text {
        margin-top: 15px;
        display: block;
    }

    #footer-icons {
        right: 50%;
        margin-bottom: 5px;
    }

    @media (max-height: 675px) {
        #visit-link-btn {
            bottom: 0%;
        }

        #header-description {
            width: 80%;
            top: 35%;
        }
        
        #station-info {
        bottom: initial;
        top: 0;
        left: 50%;
        }

        #live-info {
            left: 50%;
            bottom: initial;
            top: 180px;
        }

        #service-info {
            left: 50%;
            bottom: initial;
            top: 360px;
        }
    }
}







