@font-face {
    font-family: Baloo2;
    src: url(/assets/fonts/Baloo2.ttf);
}

footer {
    font-family: Baloo2;
    bottom: 0;
    width: 100%;
    margin-top: 1rem;
    text-align: center;
}

#navbar {
    width: 95%;
    display: flex;
    align-items: stretch;
    margin: auto;
    margin-top: 1rem;
    font-family: Baloo2;
    font-size: 1.5rem;
}

#navbar .logo {
    min-width: 4rem;
    max-width: 6rem;
}

.logo img {
    width: 100%;
}

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

#navbar nav a {
    position: relative;
    display: block;
    height: 2rem;
    line-height: 2rem;
    font-weight: bold;
    color: #363636;
    margin-right: 1rem;
    cursor: pointer;
    text-decoration: none;
}

#navbar nav a::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 4px;
    bottom: 0;
    left: 0;
    background-color: #ffbf00;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

#navbar nav a:hover::before {
    transform: scaleX(1);
}

#navbar nav a.current {
    color: #000;
}

#navbar nav a.current::before {
    background-color: #0026ff;
    transform: scaleX(1);
}

#navbar nav a:hover {
    color: #000;
}

#content {
    width: 95%;
    margin: auto;
}

.cover {
    display: flex;
    align-items: center;
    width: 100%;
    font-family: Baloo2;
    padding-top: 4rem;
}

.cover .cover-text {
    width: 40rem;
}

.cover h1 {
    font-size: 2.5rem;
    margin-bottom: 0;
    animation: fadein 2s;
}

.cover h2 {
    font-size: 2rem;
    margin-top: -1rem;
    margin-bottom: 0;
    animation: fadein 2s forwards;
    opacity: 0;
    animation-delay: 1s;
}

.cover p {
    font-size: 1.5rem;
    color: #363636;
    text-align: justify;
    opacity: 0;
    animation: fadein 2s forwards;
    animation-delay: 2s;
}

.cover p .emph {
    font-weight: bold;
    color: #FFF;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    background-color: #ffbf00;
    text-shadow: 1px 1px 1px #000;
}

.cover p .emph:nth-child(even) {
    background-color: #0026ff;
}

.cover .logo {
    width: 100%;
}

.sections {
    padding-top: 8rem;
}

.sections section {
    border-radius: 4px;
    box-shadow: 0px 2px 2px #000;
    min-height: 20rem;
    font-family: Baloo2;
}

.sections section .header {
    border-radius: 4px 4px 0 0;
    background-color: #ffbf00;
    color: #FFF;
    width: 100%;
    text-shadow: 1px 1px 1px #000;
}

.sections section:nth-child(even) .header {
    background-color: #0026ff;
}


.sections section .header h1 {
    padding: 0.5rem;
}

.sections section .content {
    display: flex;
    align-items: center;
}

.sections section .content p {
    padding: 1rem;
    font-size: 1.3rem;
    width: 100%;
}

.sections section .content img {
    height: 14rem;
    padding-right: 2rem;
    padding-left: 2rem;
}

#content {
    max-width: 60rem;
}

.sections section .content form {
    display: block;
    padding: 2rem;
    font-size: 1.3rem;
    width: 100%;
}

.sections section .content form p {
    margin: 0;
    padding: 0;
    padding-bottom: 0.5rem;
}

.sections section .content form input[name="_replyto"] {
    display: block;
    font-family: Baloo2;
    font-size: 1.3rem;
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}

.sections section .content form textarea[name="content"] {
    display: block;
    font-family: Baloo2;
    font-size: 1.3rem;
    width:100%;
    height:10rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
} 

.sections section .content form input[type="submit"] {
    display: block;
    font-family: Baloo2;
    font-size: 1.3rem;
    width:100%;
    margin-top: 1rem;

    background-color: #0026ff;
    border-color: #000;
    border-style: solid;
    border-radius: 1.5rem;

    font-weight: bold;
    color: #FFF;
    width: 100%;
    text-shadow: 1px 1px 1px #000;
}

.sections section .content form input[type="submit"]:hover {
    background-color: #001aad;
    cursor: pointer;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media only screen and (max-width: 800px) {
    .cover {
        flex-direction: column-reverse;
    }

    .cover .cover-text {
        width: 100%;
    }
    
    .cover .logo {
        max-width: 60%;
    }

    .sections {
        padding-top: 1rem;
    }

    .sections section .content img {
        display: none;
    }
}