/*
Colors:
Lighter Blue: #022327
Dark blue: #022327
Hover Dark Blue: #011214
Cream: #F5F5F5
Hover Dark Cream: #e8e8e8
*/

/* General Styles */
html {
    font-size: 100%;
    scrollbar-gutter: stable;
}

body {
    margin: 0px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #F5F5F5;
    position: relative;
    font-size: 1.1rem;
    color: #022327;

}

div {
    box-sizing: border-box;
}

.skip-link {
    position: absolute;
    width: 8rem;
    text-align: center;
    margin: 1rem auto;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background-color:#F5F5F5;
    border-radius: 5px;
    color:#022327;
    z-index: 30;
}

.skip-link:not(:focus) {
    transform: translateY(-4rem);    
}

header {
    position: sticky;
    top:0;
    z-index: 10;
}

#main {
    padding: 0;
    z-index: 5;
    scroll-margin-top: 4rem;
}

section {
    padding: 0rem 3rem;
}

h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-top: 3rem;
}

h3 {
    font-weight: 400;
}

.alert-card {
    border: 2px solid #022327;
    padding: 1rem;
    margin: 2rem 0%;
    border-radius: 1rem;
}

.alert-card ol {
    text-align: left;
}

.underline {
    text-decoration: underline;
}

.divider {
    padding: 0 0.5rem;
}

.hidden {
    display: none;
}

#full-screen-overlay {
    position: absolute;
    background-color:#4e4f4f;
    opacity: 0.5;
    top:0;
    width: 100%;
    height: 100%;
    z-index: 15;
    display: none;
    
}

.background-image {
    object-fit: cover;
}

/* Button Styles */
.read-more-btn {
    background-color: #022327;
    color: #F5F5F5;
    border: none;
    border-radius: 5px;
    padding: 0.8rem;
    transition: 0.3s;
}

.read-more-btn:hover {
    background-color: #011214;
}

/* Image styles */
figure {
    margin: 2rem auto;
    width: 80vw;
}

figure img {
    width: 80vw;
}

figure figcaption {
    font-size: 0.9rem;
    text-align: left;
}

hr {
    width: 80vw;
    margin: 4rem auto;
}

/* Top Bar Styles */
.top-bar {
    background-color: #022327;
    color: #F5F5F5;
    height: 9vh;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 2%;
}

.top-bar a {
    color:#F5F5F5;
    text-decoration: none;
}

.top-bar a:hover {
    text-decoration: underline;
}

/* Scrolling Alert Bar Styles */
#scrolling-banner {
    width: 100%;
    white-space: nowrap;
    background-color: #9eacad;
    overflow: hidden;
}

#scroll-items {
    white-space: nowrap;
    padding-block: 0.5rem;
    display: flex;
    flex-shrink: 0;
    width: fit-content;
    /* justify-content: space-between; */
    gap: 50px;
    align-items: center;
    animation: scroll var(--time) linear infinite;
    color:#011214;

}

#scroll-items:hover {
    animation-play-state: paused;
}

#scroll-items a {
    color:#011214;
    opacity: 1;
    text-decoration: none;
}

#scroll-items a:hover {
    text-decoration: underline;
}

@keyframes scroll {
    0% {transform: translateX(100vw)}
    100% {transform: translateX(var(--offset));}
}

/* Logo bar styles */
#logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F5F5F5;
    box-shadow: 0px 1px 1px #e8e8e8;
}

a #logo {
    width: 40vw;
}

/* Nav Bar Styles */

/* Button to toggle nav open, at top of page */
#nav-toggle {
    border: none;
    transition: 0.3s;
    background-color:#022327;
    position: fixed;
    top:0;
    z-index: 30;
    padding: 0;
    height: 9vh;
    /* width: 8vh; */
    padding: 0 2vh;
}

#nav-toggle:hover {
    background-color:#011214;
}

.button-line {
    width: 6vw;
    height: .3rem;
    margin: .3rem 0;
    background-color: #F5F5F5;

}

/* Popup nav bar */
nav #navbar {
    background-color: #022327;
    list-style: none;
    padding: 1rem 0rem;
    margin: 0;
    position:fixed;
    z-index: 20;
    top: 9vh;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    margin: 1rem;
}

nav ul li a {
    color: #F5F5F5;
    text-decoration: none;
    transition: 0.3s;
    padding: .5rem;
}

nav ul li a:hover {
    text-decoration: underline;
    text-decoration-thickness: .3rem;
}

nav ul li a.active {
    font-weight: bold;
}

/* Mission section (image with mission and customer portal button) */
#mission {
    padding: 0;
    display: flex;
    align-items: center;
}

#mission .background-image {
    width: 100%;
    aspect-ratio: 10/8;
    opacity: 0.25;
}

.foreground-text {
    text-align: center;
    position: absolute;
    /* margin: 0 5%; */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.foreground-text h2 {
    margin: 0;
    font-weight: 400;
}

#mission #mission-text-container {
    margin: 1rem 0;
}

#mission p {
    margin: 0.5rem;
}

.portal-link {
    width: fit-content;
    padding: 0.8rem;
    border: 1px solid #022327;
    transition: 0.3s;
    font-size: .9rem;
    color: #F5F5F5;
    background-color: #022327;
    text-decoration: none;
    box-sizing: border-box;
}

.portal-link:hover {
    color: #022327;
    background: none;
}

/* Operation section */
#operation {
    scroll-margin-top: 4rem;
}

#operation #image-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

#operation figure {
    width: 40%;
    margin: 0rem;
}

#operation img {
    object-fit: cover;
    width: 100%;
}

#shut-off-signs {
    width: 100%;
    border: 1px solid #022327;
    padding: 0.5rem;
    margin: auto;

}

/* environmental section */
#environmental {
    scroll-margin-top: 4rem;
}

/* Footer Styles */
footer {
    background-color: #022327;
    color: #F5F5F5;
    text-align: center;
    padding: 2%;
    margin-top: 2rem;
    font-size: 0.9rem;
}

footer h3 {
    font-weight: 600;
}

footer a {
    color: #F5F5F5;

}

/* Styles for screens bigger than 600px */
@media only screen and (min-width: 600px)  {

    section {
        text-align: center;
    }

    /* Image styles */
    figure {
        width: 60vw;

    }

    figure img {
        width: 60vw;
    }

    /* Mission section (image with mission and customer portal button) */
    #mission .background-image {
        width: 100%;
        aspect-ratio: 10/6;
    }

    /* Operation section */
    #shut-off-signs {
        width: 70%;
    }

    /* The hidden "Read more" content is showed by default on bigger screens */
    section .hidden {
        display: block;
    }

    /* Button Styles */
    .read-more-btn {
        display: none;
    }
}

/* Styles for screens bigger than 1000px */
@media only screen and (min-width: 1000px) {
    /* General Styles */
    body {
        overflow-y: visible !important;
    }

    main {
        padding: 0;
    }

    header {
        position: static;
    }

    .alert-card {
        margin: 2rem 20%;
    }

    #full-screen-overlay {
        display: none !important;
    }

    #scroll-items {
        animation-play-state: running !important;
    }

    #scroll-items:hover {
        animation-play-state: paused !important;
    }

    /* Image styles */
    figure {
        width: 30vw;
    }

    figure img {
        width: 30vw;
    }

    hr {
        width: 50vw;
        margin: 4rem auto;
    }

    /* All hidden content is showed by default on bigger screens */
    .hidden {
        display: block;
    }

    /* Top Bar Styles */
    .top-bar {
        justify-content: space-between;
    }

    .divider {
        display: none;
    }

    /* Nav bar styles */

    /* Logo bar above horizontal nav bar */
    #logo-container {
        box-shadow: none;
        position: relative;
    }

    /* Nav bar styles */
    #nav-toggle {
        display: none;
    }

    /* Visible nav bar */
    nav {
        position: sticky;
        top: 0px;
        z-index: 20;
        box-shadow: 0px 1px 1px #e8e8e8;
    }

    nav #navbar {
        background-color: #F5F5F5;
        list-style: none;
        padding: 1rem;
        margin: 0;
        position: relative;
        display: flex;
        justify-content: space-evenly;
        position: sticky;
        top:0;
    }

    nav ul li {
        margin: 0;
    }

    nav ul li a {
        color: #022327;
        transition: 0.3s;
    }

    nav ul li a:hover {
        text-decoration: underline;
        text-decoration-thickness: .3rem;
    }

    /* Mission section (image with mission and customer portal button) */
    #mission .background-image {
        width: 100%;
        aspect-ratio: 10/4;
    }

    /* Operation section */
    #shut-off-signs {
        width: 40%;
    }

    /* Plan Section Styles (layered image splitting screen horizontally) */
    #plan {
        display: flex;
        margin-bottom: 5rem;
        padding: 0;
    }

    .forty-vw-square {
        width: 40vw;
        aspect-ratio: 1/1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .sixty-vw-rect {
        width: 60vw;
        aspect-ratio: 6/4;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .left-side {
        position: relative;
    }

    .right-side {
        padding: 0rem 5rem;
    }

    #plan .background-image {
        position: absolute;
        top: 0;
    }   

    .overlay {
        background-color: #022327;
        opacity: 0.8;
        position: absolute;
        top: 0;
    }

    .subheading {
        color:#F5F5F5;
        position: absolute;
        top: 0;
        margin: 0;
        font-size: 4rem;
        font-weight: 300;
    }


} 

/* Styles for screens smaller than 500px */
@media only screen and (max-width: 500px) {
    #mission .background-image {
        width: 100%;
        aspect-ratio: 10/12;
    }

    /* Shortens address in top bar */
    .extra-content {
        display: none;
    }
}

@media only screen and (max-height: 330px) {
    /* Makes nav bar horizontal to fit on screen better */
    nav #navbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        width: 90%;
    }
} 