/* Global Styles */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans&family=Roboto&display=swap');

:root {
    --p-color: #0A594E;
    --p-color-dk: #08463d;
    --p-color-lt: #15b8a021;
    --s-color: #892F38;
    --lt-color: #ECF1F1;
    --dk-color: #2B2F2F;
    --gr-color: #969696;
    --alert: #FFEE00;

    /* opacity values */
    --s-color-80: #892F3880;

    --header-font: "Open Sans", sans-serif;
    --content-font: "Roboto", sans-serif;
}

    /* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", sans-serif;
    background-color: var(--lt-color);
    color: var(--dk-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 1.2rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--header-font);
}

.main-section {
    flex: 1;
}

#content-row {
    min-height: 80vh;
    align-items: center;
    justify-content: center;
}

/* Utility classes */

.prominent {
    font-weight: bold;
    font-style: italic;
    color: var(--s-color);
    font-size: 1.4rem;
}

.prominent-sm {
    font-style: italic;
    color: var(--s-color);
}

.subtle {
    font-weight: lighter;
    font-style: italic;
    color: var(--p-color-dk);
    font-size: 1rem;
}

.list-default {
    text-align: left;
    justify-self: center;
}

    /* Buttons */
.btn,
.btn:active,
.btn:focus {
    background-color: var(--p-color);
    padding: 0.5rem 1.5rem;
}

.btn:hover,
.btn:active:hover,
.btn:focus:hover {
    background-color: var(--p-color-dk);
}

    /* Sub section header */
.subsection-header {
    color: var(--s-color);
    font-weight: bold;
}

.subsection-header::after {
    content: '';
    display: block;
    height: 2px;
    width: 40%;
    margin: 0.5rem auto 1rem;
    background-color: var(--s-color);
}

    /* Banner image page separator */

.banner-image {
    width: inherit;
}

    /* Navbar */

.navbar {
    min-height: 10vh;
}

.navbar-brand img {
    height: 3.2rem;
}

    /* Footer */

footer {
    background-color: var(--dk-color);
    color: var(--lt-color);
    flex: 1;
}

.social-links {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 0;
}

.social-link {
    list-style: none;
    padding: 1rem 0;
}

.social-link a {
    text-decoration: none;
    color: var(--lt-color);
}

/* Home (Login) Page */

#landing-container {
    position: relative;
}

#landing-image {
    width: 100%;
    height: 30vh;
    object-fit: cover;
    filter: hue-rotate(300deg);
}

#landing-content {
    position: absolute;
    top: 25%;
    padding: 1rem;
    background-color: var(--p-color);
    color: var(--lt-color);
    opacity: 85%;
    border-radius: 0 2rem 0 0;
    border: 1px solid var(--lt-color);
    border-left: none;
}

#landing-content-subheader {
    font-family: var(--content-font);
}

    /* Features */
.feature-card {
    border-radius: 1rem;
}

.feature-card-header {
    background-color: var(--p-color);
    color: var(--lt-color);
}

.feature-card-header h5 {
    margin: 0.5rem 0;
}

.feature-card-body {
    display: flex;
    align-items: center;
}

/* Access container */
#access-container {
    margin-bottom: 4rem;
}

.form-label {
    width: 80%;
    text-align: left;
    font-style: italic;
}

.form-control {
    width: 80%;
    margin: 0 auto;
    font-family: "Roboto Light", sans-serif;
    color: #5a5656;
}

input::placeholder {
    font-family: "Roboto Light", sans-serif;
}

.not-visible {
    display: none;
}

.error {
    color: #cb0707;
    font-weight: bold;
    font-style: italic;
}

.list-item {
    list-style: none;
    margin: 0.5rem 0;
}

.list-item:not(:last-child)::after {
    content: '';
    display: block;
    height: 1px;
    width: 30%;
    margin: 0.5rem auto;
    background: #7e7e7e;
}

.access-link {
    background-color: var(--p-color);
    color: var(--lt-color);
    font-size: 1.2rem;
    display: block;
    margin: 1rem auto;
    padding: 1rem;
    text-decoration: none;
}

.access-link:hover {
    background-color: var(--p-color-dk);
    color: var(--lt-color);
}

/* Frequently asked questions */

.faq-type-heading {
    color: var(--p-color-dk);
}

/* .accordion-button:not(.collapsed) {
    color: var(--p-color-dk);
    background-color: var(--p-color-lt);
} */

.accordion-button:not(.collapsed) {
    color: var(--p-color-dk);
    background-color: var(--color-lt);
}

.accordion-button[aria-expanded="true"] {
    color: var(--p-color-dk);
    background-color: var(--p-color-lt);
}

button.accordion-button.collapsed {
    color: var(--p-color-dk);
}

.nested-nav > ul {
    padding-left: 0;
}

.nested-nav > ul > li::marker {
    content: '> ';
}

/* PACE Approval */

th {
    width: 1%;
    white-space: nowrap;
    border-right: 1px solid var(--gr-color);
}

#approval_form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#approval_radio_btns {
    display: flex;
    flex-direction: column;
}

#approve.form-control-input, #decline.form-control-input {
    margin-right: 0.5rem;
}

#declineReasonLabel {
    display: none;
}

#declineReason {
    align-self: flex-start;
    display: none;
}

/* Media Queries */

@media (min-width: 320px) {
    #submit {
        max-width: 300px;
    }
}

@media (min-width: 576px) {
    /* Covid banner */
    .covid-info {
        justify-content: start;
    }

    .covid-info-logo {
        display: inline;
        height: 3rem;
    }

    .covid-info-link {
        font-size: 1.5rem;
    }

    /* Banner image page separator */
    .banner-image {
        width: 80%;
    }

    /* Navbar */
    .navbar-brand img {
        height: 4.3rem;
    }

    /* Main section */
    #landing-content {
        padding: 1.2rem 3rem;
    }

    .access-link {
        width: 50%;
    }

    #submit {
        width: 50%;
    }
}

@media (min-width: 768px) {
    /* Main section */
    #landing-content {
        padding: 1.5rem 4.5rem;
    }

    .feature-card-body {
        min-height: 7rem;
    }

    .department-info p {
        font-size: 2rem;
        text-align: left;
    }
}

@media (min-width: 992px) {
    /* Banner image page separator */
    .banner-image {
        width: 70%;
    }

    /* Footer */
    .social-links {
        flex-direction: row;
    }

    /* Main section */
    .feature-card-body {
        min-height: 8rem;
    }

    .department-image {
        justify-content: start;
    }

    .flex-end {
        justify-content: end;
    }

    .form-label {
        width: 50%;
    }
    
    .form-control {
        width: 50%;
    }
}
