/* Fonts */
@import url('https://use.typekit.net/twb3ulw.css');
@import url("https://use.typekit.net/qix0syf.css");

/* Define CSS Variables */
:root {
    --green-start: #D7E025;
    --pink-start: #9E1E63;
    --red-start: #ED1C25;
    --blue-start: #01AFF0;
    --green-end: #FFF;
    --pink-end: #FFF;
    --red-end: #FFF;
    --blue-end: #FFF;
    --gradient-end: #1e3363;
    --tertiary: #fff;
    --secondary: #000;
    --primary: #002F65;
    --green: #D7DF23;
    --pink: #A12668;
    --red: #ED1C25;
    --blue: #0EB3F0;
}

* {
    box-sizing: border-box;
}

.ad-container {
    width: 100%;
    display: flex;
}

.ad-block {
    display: inline-block;
    width: 50%x;
}


.ad-full-width {
    width: 100%;
    background: rgba(255, 255, 255, 0.25);
}

.main-visual {
    background-color: black;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.footer {
    background-color: var(--primary);
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: var(--tertiary);
    margin: 0 auto;
    padding: 3em 0;
}

.footer-logo {
    width: 16em;
    height: 16em;
}

.footer-logo > img {
    width: 100%;
    height: 100%;
    filter: invert(1);
}

.footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 1em;
}

.footer-socials > img {
    filter: invert(1);
    width: 2em;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 2em;
    margin-top: 2em;
}

.footer-links > a {
    color: var(--tertiary);
    text-decoration: none;
    font-size: 1.5em;
}

.main-nav {
    background-color: var(--primary);
    height: 20vh;
    transition: height linear 0.2s;
    padding-left: 2rem;
    padding-right: 2rem;
    z-index: 100;
    position: sticky; top: 0px;
}

.main-nav-logo-wrapper {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow-anchor: none;
}

.main-nav-logo {
    /* left-aligned, centered vertically */
    /* force logo to fit in height of nav */
    height: 25%;
    width: auto;
}

.main-nav-dropdown {
    transform: scaleY(0);
    transform-origin: top left;
    transition: all ease-in-out 0.2s;
    width: max-content;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    border-top: 2px solid black;
}

.main-nav-dropdown-item {
    color: #fff;
    text-decoration: none;
    font-size: 1.5em;
    padding: 2vh;
    border-bottom: 1px solid #fff;
}

.main-nav-dropdown-item > a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5em;
}

.main-nav-dropdown-item:hover {
    backdrop-filter: brightness(80%);
}

.nav-open {
    display: block;
    /* slide down */
    transform: scaleY(1);
}

.nav-minimized {
    height: 10vh;
    width: 100%;
}

.padded {
    padding-top: 20vh;
}

.blue {
    background-color: var(--blue);
}

.green {
    background-color: var(--green);
}

.red {
    background-color: var(--red);
}

.pink {
    background-color: var(--pink);
}

.nav-dropdown-blue {
    background-image: linear-gradient(to bottom, var(--blue-start), #77d3f4);
}

.nav-dropdown-green {
    background-color: var(--green-start);
    background-image: linear-gradient(to bottom, var(--green-start), #dae06b);
}

.nav-dropdown-red {
    background-image: linear-gradient(to bottom, var(--red-start), #fc887d);
}

.nav-dropdown-pink {
    background-image: linear-gradient(to bottom, var(--pink-start), #f9b7b7);
}

.nav-dropdown-index {
    background-image: linear-gradient(to bottom, var(--primary), #3a5777);
    border-top: 1px solid #fff;
}

.dark-logo {
    filter: invert(0) !important;
}

.dark-text {
    filter: invert(0) !important;
    color: black !important;
}

.search-overlay {
    display: flex;
    visibility: hidden;
    justify-content: center;
    align-items: top;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
    padding: 5rem;
}

.search-input {
    width: 100%;
    height: 10vh;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 2rem 1rem;
    font-size: 2rem;
    outline: none;
    border-radius: 1rem;
    color: white;
    text-align: center;
}

.search-results {
    /* fill remaining space */
    flex: 1;
    display: flex;
    justify-content: top;
    align-items: center;
    flex-direction: column;
    margin-top: 1rem;
}

.search-result {
    padding: 2rem;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    margin-top: 1rem;
    backdrop-filter: blur(5px);
    color: white;
}

.search-result > a {
    color: white;
    text-decoration: none;
}

.search-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    height: 1rem;
    color: white;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .search-input {
        text-align: left;
    }

    .search-overlay {
        padding: 2rem;
    }

    .search-results {
        font-size: 1rem;
    }
}