* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}


/* General elements */

html {
    font-size: 16px !important;
}

body {
    position: relative;
    background: #111739 url('/assets/img/backgrounds/splash.jpg') no-repeat fixed center !important;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover !important;
    max-width: 100%;
    font-family: "Open Sans", sans-serif !important;
    line-height: 1.2;
    margin: 0 auto;
    padding: 0;
    overflow-x: hidden;
    overflow-y: scroll;
}

.lowercase {
    text-transform: lowercase !important;
}

.uppercase {
    text-transform: uppercase !important;
}

.capitalize {
    text-transform: capitalize !important;
}

.normal {
    font-weight: normal !important;
}

.light {
    font-weight: 300 !important;
}

.regular {
    font-weight: 400 !important;
}

.medium {
    font-weight: 500 !important;
}

.semi-bold {
    font-weight: 600 !important;
}

.bold,
strong {
    font-weight: 700 !important;
}

.italic,
em {
    font-style: italic !important;
}

.site-red {
    color: #3A3E53;
}

.site-darkblue {
    color: #111739;
}

.site-gray {
    color: #c0c0c0;
}

.font-body {
    font-family: "Open Sans", sans-serif !important;
}

.font-nav {
    font-family: "Open Sans Condensed", sans-serif !important;
}

[data-bs-toggle="tooltip"] {
    cursor: pointer;
}


/* Section styles */

section:not(.landing) {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

section:not(.landing) .content-bg {
    min-width: 100%;
    min-height: 100%;
    padding: 3.5rem 2.5rem;
}

section:not(.landing).light,
section:not(.landing).lightish {
    color: black;
}

section:not(.landing).light {
    background-color: white;
}

section:not(.landing).lightish .content-bg {
    background-color: rgba(255, 255, 255, 0.75);
}

section:not(.landing).light [data-bs-toggle="tooltip"],
section:not(.landing).lightish [data-bs-toggle="tooltip"] {
    border-bottom: 1px dotted #111739 !important;
}

section:not(.landing).dark,
section:not(.landing).darkish {
    color: white;
}

section:not(.landing).dark {
    background-color: #111739;
    background-image: url("/assets/img/backgrounds/low-contrast-linen.png");
    color: white;
}

section:not(.landing).darkish .content-bg {
    background-color: rgba(17, 23, 57, 0.75);
}

section:not(.landing).dark [data-bs-toggle="tooltip"],
section:not(.landing).darkish [data-bs-toggle="tooltip"] {
    border-bottom: 1px dotted white !important;
}

section:not(.landing) .content {
    max-width: 1100px;
    margin: auto;
}

section:not(.landing) .content-head {
    margin: 1rem 0 2rem;
}

section:not(.landing) .content-head::after {
    content: "";
    display: block;
    width: 100px;
    height: 10px;
    margin-top: 1rem;
}

section:not(.landing).dark .content-head::after,
section:not(.landing).darkish .content-head::after {
    background-color: white;
}

section:not(.landing).light .content-head::after,
section:not(.landing).lightish .content-head::after {
    background-color: #3A3E53;
}

section:not(.landing) .content-head .section-title,
section:not(.landing) .content-head .section-subtitle {
    text-align: left !important;
    margin: unset !important;
}

.section-header-img {
    width: auto;
    height: 300px;
}

@media (max-width: 991px) {
    .section-header-img,
    #top-carousel {
        display: none;
    }
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
}

section:not(.landing).light .section-title,
section:not(.landing).lightish .section-title {
    color: #111739;
}

section:not(.landing).dark .section-title,
section:not(.landing).darkish .section-title {
    color: #c0c0c0;
}

.section-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 1rem 0;
}

section:not(.landing).light .section-subtitle,
section:not(.landing).lightish .section-subtitle {
    color: #3A3E53;
}

section:not(.landing).dark .section-subtitle,
section:not(.landing).darkish .section-subtitle {
    color: #C4C5CE;
}


/* div:not(.news-posts) .section-title,
div:not(.news-posts) .section-subtitle {
    text-align: center !important;
} */

#notfound .content-bg {
    height: 590px;
}


/* Navbar */

header {
    position: fixed;
    background-color: hsl(231, 54%, 5%);
    width: 100%;
    height: auto;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(50, 50, 50, 0.5);
}

nav {
    max-width: 1100px;
    height: 75px;
    /* font-family: "Open Sans Condensed", sans-serif !important;
    font-size: 1.5rem; */
    margin: auto;
    padding: 1rem 0;
}

@media (max-width: 1199px) {
    nav {
        padding: 1rem;
    }
}

.navbar-menu {
    height: auto;
    padding: 0 1rem !important;
}

.navbar-logo {
    width: fit-content;
    height: fit-content;
    margin: unset !important;
    padding: unset !important;
}

.navbar-logo img {
    height: 40px;
    width: auto;
    opacity: 0.75;
    transition: opacity 0.25s ease-in-out;
}

.navbar-logo:hover img,
.navbar-logo:focus img {
    opacity: 1;
    transition: opacity 0.25s ease-in-out;
}

.navbar-toggler {
    margin: unset !important;
    padding: unset !important;
    border: unset !important;
}

.navbar-toggler-icon img {
    width: inherit;
    height: inherit;
}

@media (max-width: 991px) {
    .offcanvas {
        padding: 0 1rem;
        background-color: #4D516B !important;
        background-image: url("/assets/img/backgrounds/low-contrast-linen.png");
    }
    .offcanvas-header .offcanvas-title img {
        height: 40px;
        width: auto;
    }
    .offcanvas-header .btn-close {
        font-size: 2rem !important;
        margin: unset !important;
    }
}

.navbar-nav {
    width: 100%;
    justify-content: flex-end;
}

@media (max-width: 991px) {
    .navbar-nav {
        font-size: 1.75rem;
    }
}

.nav-link {
    color: white !important;
    /* font-weight: 500; */
    text-transform: uppercase;
    padding: 0 1rem !important;
    transition: color 0.25s ease-in-out;
}

header.scroll-top {
    position: static;
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: none;
}

header.scroll-top nav {
    background-color: transparent !important;
}

header.scroll-top .nav-link {
    color: white !important;
    transition: color 0.25s ease-in-out;
}

.nav-link.active,
.nav-link:hover,
.nav-link:focus,
header.scroll-top .nav-link.active,
header.scroll-top .nav-link:hover,
header.scroll-top .nav-link:focus {
    color: #C4C5CE !important;
    transition: color 0.25s ease-in-out;
}

@media (max-width: 991px) {
    .nav-link.active,
    .nav-link:hover,
    .nav-link:focus,
    header.scroll-top .nav-link.active,
    header.scroll-top .nav-link:hover,
    header.scroll-top .nav-link:focus {
        color: #111739 !important;
        transition: color 0.25s ease-in-out;
    }
}

.lang-select button {
    background-color: white !important;
    color: #111739 !important;
    text-transform: uppercase;
}

.lang-select .dropdown-menu {
    min-width: 6rem;
    top: 115% !important;
}

.lang-select .dropdown-item:active {
    background-color: #adb5bd !important;
}

.lang-select .dropdown-item:not(.disabled) {
    color: #111739;
}

.lang-select .dropdown-item.disabled {
    color: #adb5bd !important;
}

.btn.btn-scroll-top {
    display: none;
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 5rem;
    right: 2rem;
    padding: unset !important;
    background-color: #3A3E53 !important;
    border-radius: 100% !important;
    z-index: 99;
    transition: background-color 0.2s ease-in-out;
}

.btn.btn-scroll-top:hover,
.btn.btn-scroll-top:focus {
    background-color: #565865 !important;
    transition: background-color 0.2s ease-in-out;
}

#header-clear {
    display: none;
    height: 75px;
}

#lang-selector::after {
    color: #808080;
}


/* Footer */

footer {
    position: relative;
    background-color: hsl(231, 54%, 5%);
    color: white !important;
    border-top: 1px solid black;
}

footer a {
    color: #808080 !important;
    text-decoration: none !important;
    transition: color 0.15s ease-in-out;
}

footer a:hover,
footer a:focus {
    color: #c0c0c0 !important;
    transition: color 0.15s ease-in-out;
}

footer p {
    margin: unset;
}

footer .inner {
    display: grid;
    width: 100%;
    max-width: 1100px;
    margin: auto;
    padding: 5rem 0 2rem;
    grid: auto auto / 2fr 1fr 1fr;
    grid-template-areas: "brand contact links" "copy copy copy";
}

@media (max-width: 1199px) {
    footer .inner {
        padding: 5rem 2rem 2rem;
        grid: auto auto auto auto / 1fr 1fr;
        grid-template-areas: "brand brand" "contact links" "copy copy";
    }
}

footer .inner .brand {
    grid-area: brand;
    width: fit-content;
    height: fit-content;
    margin: unset !important;
    padding: unset !important;
}

footer .inner .brand img {
    width: 90%;
    max-width: 500px;
    height: auto;
}

footer .inner .contact {
    grid-area: contact;
}

footer .inner .links {
    grid-area: links;
    margin: unset;
    padding: unset;
    list-style-type: none;
}

@media (max-width: 1199px) {
    footer .inner .contact,
    footer .inner .links {
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.5);
    }
}

footer .inner .copy {
    grid-area: copy;
    font-size: 1.25rem;
    margin-top: 50px;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

footer .inner .copy p {
    text-align: center !important;
}


/* Main elements */

main a {
    color: #888B9C !important;
    text-decoration: none !important;
    transition: color 0.15s ease-in-out;
}

main a:hover,
main a:focus {
    color: #111739 !important;
    transition: color 0.15s ease-in-out;
}

main a.blank-link {
    color: inherit !important;
    text-decoration: none !important;
    transition: none;
}

main a.blank-link:hover,
main a.blank-link:focus {
    color: none !important;
    transition: none;
}

main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
    font-family: "Open Sans Condensed", sans-serif !important;
    text-transform: uppercase;
}


/* #home .content,
#about .content,
#features .content,
#features-list .content,
#resources .content {
    opacity: 0;
    transform: scale(0.8);
    transition: transform 1s;
    transition-property: opacity, transform;
    transition-timing-function: ease;
} */


/* Top section */

.landing {
    color: white !important;
}

.landing .content-bg {
    background-color: rgba(0, 0, 0, 0.5);
    height: auto;
    min-height: 400px;
    padding: 2.5rem;
}

.landing .logo {
    width: 300px;
    height: auto;
}

.landing h1 {
    text-transform: uppercase;
    font-weight: 600 !important;
}

.landing .caption {
    font-size: 1.75rem;
}

.landing h1,
.landing .caption {
    text-align: center;
    filter: drop-shadow(0.25rem 0.25rem 0.25rem rgba(0, 0, 0, 0.5))
}

.landing .content {
    display: flex;
    min-height: inherit;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.landing [data-bs-toggle="tooltip"] {
    border-bottom: 1px dotted white !important;
}

@media (max-width: 991px) {
    .landing .content-bg {
        min-height: unset;
    }
    .landing .content {
        margin: 3rem 0;
    }
    .landing video {
        width: 100%;
        height: auto;
    }
}


/* Home page navigation */

.home-nav {
    background-color: hsl(231, 54%, 5%);
    padding: 1rem 0 !important;
}

.home-nav .nav {
    justify-content: center;
    align-items: center;
}

.home-nav .nav .nav-item a {
    font-size: 2rem;
}

.home-nav .btn.btn-home-nav {
    background-color: white !important;
    color: black !important;
    transition: color 0.25s ease-in-out;
}

.home-nav .btn.btn-home-nav:hover,
.home-nav .btn.btn-home-nav:focus {
    color: #3A3E53 !important;
    transition: color 0.25s ease-in-out;
}


/* Home section */

#home .content-bg {
    min-height: 750px;
}

#home .content {
    max-width: 1100px;
    margin: auto;
    align-items: flex-start;
}

#home h1 {
    text-transform: none;
    font-size: 4rem !important;
    font-weight: 800 !important;
    filter: drop-shadow(0.25rem 0.25rem 0.25rem rgba(0, 0, 0, 0.5)) !important;
}

#home .caption {
    font-size: 2rem !important;
}

#home h1,
#home .caption {
    filter: none;
}

.home-head {
    max-width: 650px;
}

.home-head .buttons {
    display: flex;
}

.home-head .buttons [role=button]:not(:first-child) {
    margin: 0 1rem;
}

.home-head .btn.btn-video-modal {
    background-color: hsla(231, 54%, 5%, 1);
    color: white !important;
    transition: background-color 0.2s ease-in-out;
}

.home-head .btn.btn-video-modal:hover,
.home-head .btn.btn-video-modal:focus {
    background-color: hsla(231, 54%, 5%, 0.75);
    transition: background-color 0.2s ease-in-out;
}

@media (max-width: 576px) {
    #videoModal .modal-dialog {
        max-width: 100%;
    }
}

@media (min-width: 576px) {
    #videoModal .modal-dialog {
        max-width: 800px;
    }
}

#videoModal .modal-content {
    background-color: unset !important;
    border: unset !important;
    color: white;
}

#videoModal figure {
    width: 100%;
    height: auto;
    margin: auto;
    text-align: center;
}

#videoModal video {
    width: inherit;
    height: inherit;
}

@media (min-width: 576px) and (max-width: 991px) {
    #videoModal figure {
        width: 90%;
    }
}

#videoModal figcaption {
    margin-top: 0.5rem;
}


/* Features section */

#features {
    background: white url('/assets/img/backgrounds/splash.jpg') no-repeat fixed center !important;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover !important;
    background-attachment: scroll !important;
    padding-top: unset !important;
}

.features-list {
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

#features>img {
    position: absolute;
    height: 500px;
    width: auto;
    right: 5%;
    margin-top: 3.5rem;
    opacity: 0.5;
    z-index: 1;
}

@media (max-width: 991px) {
    #features>img {
        display: none;
    }
}

.features-list ul {
    width: 75%;
    text-align: left;
    font-size: 1.25rem;
}

.features-list li::marker {
    color: #3A3E53;
}

@media (max-width: 991px) {
    .features-list {
        flex-direction: column-reverse;
        justify-content: space-between;
        align-items: center;
    }
    .features-list img {
        margin-bottom: 2rem;
    }
    .features-list ul {
        width: 100%;
    }
}

#features-list .box-container {
    display: flex;
    flex-wrap: wrap;
}

.features-box {
    width: 50%;
    height: 350px;
    padding: 0 1rem;
}

.features-box img {
    height: 100px;
    width: auto;
}

.features-box h3 {
    font-weight: 700;
    margin: 1rem 0;
    text-align: center !important;
}

.features-box p {
    margin: unset;
    text-align: left;
}

@media (max-width: 991px) {
    .features-box {
        width: 100%;
        height: auto;
        margin: 1rem 0;
    }
}


/* Resources section */

#resources {
    background: white url('/assets/img/backgrounds/raikoke2.jpg') no-repeat fixed center !important;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover !important;
    background-attachment: scroll !important;
}

.resources-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.resources-list a {
    display: flex;
    width: 400px;
    margin: 1rem;
    padding: 1rem;
    border: 1px solid #111739;
    border-radius: 5px;
    opacity: 0.5;
    transition: opacity 0.25s ease-in-out;
    align-items: center;
}

.resources-list a:hover,
.resources-list a:focus {
    opacity: 1;
    transition: opacity 0.25s ease-in-out;
}

.resources-list img {
    height: 100px;
    width: auto;
}

.resources-list h3 {
    width: 100%;
    margin: unset;
}

@media (max-width: 575px) {
    .resources-list a {
        flex: 1 0 25%;
        width: auto;
        padding: unset;
        border: unset;
        justify-content: center;
    }
    .resources-list h3 {
        display: none;
    }
}


/* Project Sandstorms section */

#sandstorms-two {
    background-color: #888B9C;
}

#sandstorms-one .content,
#sandstorms-two .content {
    display: flex;
    width: 100%;
}


/* #sandstorms-one .logos {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
} */

#sandstorms-one img {
    height: 200px;
    width: 200px;
}

#sandstorms-two img {
    height: 175px;
    width: 175px;
}

@media (max-width: 767px) {
    #sandstorms-two img {
        width: 100%;
        height: auto;
    }
}


/* @media (min-width: 768px) {
    #sandstorms-one .logos {
        justify-content: center;
        align-items: center;
    }
    #sandstorms-one .logos img {
        margin: 0 1rem;
    }
    #sandstorms-one .logos #pmfcfs {
        height: 77px;
        width: auto;
    }
} */

@media (max-width: 991px) {
    #sandstorms-one .content,
    #sandstorms-two .content {
        flex-direction: column-reverse;
        align-items: center;
    }
    #sandstorms-carousel img {
        width: 100%;
        height: auto;
    }
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        background-color: #3A3E53;
    }
}

@media (min-width: 992px) {
    #sandstorms-one .content {
        justify-content: space-between;
        align-items: center;
    }
    #sandstorms-two .content {
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
    }
    #sandstorms-carousel img {
        width: 60%;
        height: auto;
    }
}


/* Contact section */

#contact .content {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

#contact .contact-details,
#contact .contact-form {
    width: 50%;
}

@media (max-width: 991px) {
    #contact .content {
        flex-direction: column;
    }
    #contact .contact-details,
    #contact .contact-form {
        width: 100%;
        margin: 1rem 0;
    }
}

#contact .contact-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#contact .contact-form input,
#contact .contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    font-family: inherit;
    font-size: inherit;
}

#contact .contact-form textarea {
    height: 200px;
}

#contact .form-row {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 1rem;
}

#contact .form-row label {
    width: 48%;
}

@media (max-width: 991px) {
    #contact .form-row {
        flex-direction: column;
        margin-bottom: unset;
    }
    #contact .form-row label {
        width: 100%;
        margin-bottom: 1rem;
    }
}

#contact .contact-form button[type=submit] {
    background-color: #111739;
    border: 1px solid black;
    border-radius: 5px;
    color: white;
    width: 200px;
    padding: 1rem;
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.2s ease-in-out;
}

#contact .contact-form button[type=submit]:hover,
#contact .contact-form button[type=submit]:focus {
    background-color: #3A3E53;
    transition: background-color 0.2s ease-in-out;
}

#contact-form-error,
#contact-form-success {
    display: none;
    color: #3A3E53;
}