/******************************************************************************
 * 1. GLOBAL RESETS & BASE STYLES
 ******************************************************************************/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 
   Animated tiling texture (64×64px):
   Diagonal scroll over 240s from (0,0) to (1280px, -1280px).
*/
html,
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #f8f8fb;
    color: #333;
    line-height: 1.6;
    height: 100%;
    min-height: 100%;

    background-image: url("/static/texture.png");
    background-repeat: repeat;
    background-size: 64px 64px;

    animation: scrollTexture 240s linear infinite;
}

a {
    color: #7269ef;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #6058d4;
}

@keyframes scrollTexture {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 1280px -1280px;
    }
}

.hidden {
    display: none !important;
}

/******************************************************************************
 * 2. SHARED SITE STYLES
 ******************************************************************************/
.header-box,
.nav-box,
.content-box,
.footer-box {
    width: 100%;
    margin: 0;
    padding: 1rem;
    z-index: 1;
}

/* HEADER */
.header-box {
    text-align: center;
    padding: 1rem 0.5rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    background-color: #7269ef;
    border-radius: 4px;
    box-shadow: none;
    color: #fff;
}

#header-nav{
    color: #7269ef !important;
    font-weight: bold !important;
}

#header-nav:hover{
    color: #7269ef !important;
    font-weight: bold !important;
}


.header-box h1 {
    font-size: 1.8rem;
    margin: 0.5rem 0;
    letter-spacing: 0.5px;
}

/* Make the site name a link without changing h1 style */
.header-box h1 a {
    color: inherit;
    text-decoration: none;
}

.header-box h1 a:hover {
    text-decoration: underline;
}

/******************************************************************************
 * 3. NAV BOX
 ******************************************************************************/
.nav-box {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border: 1px solid #e1e1e8;
    border-radius: 4px;
    height: 4vh;
    padding: 0.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-box a {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    text-decoration: none;
    color: #54546b;
    border-radius: 4px;
    margin: 0 0.25rem;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.nav-box a:hover {
    background-color: #f0efff;
    color: #333;
}

/******************************************************************************
 * 4. CONTENT AREA
 ******************************************************************************/
.content-box {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 92vh;
    background-color: #fff;
    padding: 0;
    margin-bottom: 0;
}

.content-box iframe {
    border: none;
    width: 100%;
    height: 100%;
}

/******************************************************************************
 * 5. FOOTER
 ******************************************************************************/
.footer-box {
    height: 4vh;
    text-align: center;
    padding: 0.5rem 0;
    background-color: #54546b;
    border-radius: 0px;
    box-shadow: none;
    color: #fff;
    line-height: 1;
}

.footer-nav {
    margin-top: 0;
}

.footer-nav a {
    text-decoration: none;
    color: #e0e0ff;
    font-size: 0.85rem;
    padding: 0 0.25rem;
    transition: color 0.2s ease-in-out;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-icon {
    width: 16px;
    filter: invert(100%) sepia(99%) saturate(3422%) hue-rotate(180deg) brightness(101%) contrast(103%);
}

.footer-icon:hover {
    filter: invert(94%) sepia(47%) saturate(2%) hue-rotate(28deg) brightness(112%) contrast(101%);
}

/******************************************************************************
 * 8. RESPONSIVE DESIGN
 ******************************************************************************/


@media (max-width: 768px) {
    .nav-box {
        flex-direction: column;
        align-items: center;
    }

    .nav-box a {
        border-bottom: 1px solid #e1e1e8;
        width: 100%;
        text-align: center;
        margin: 0;
        border-radius: 0;
        display: none;
    }

    .nav-box a:first-child {
        padding-top: 0 !important;
        display: block;
    }

    .nav-box a:last-child {
        border-bottom: none;
        padding-bottom: 0 !important;
    }

    .header-box h1 {
        font-size: 1.6rem;
    }

    .content-box h2 {
        font-size: 1.4rem;
    }

}
