@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: #000;
    font: 1rem/1.5em 'Arial', sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

#wrapper {
    position: relative;
    max-width: 51.875rem;
    margin: 1rem auto;
    overflow: hidden;
    background: #fff;
    border: solid 1px #000;
}

header {
    padding: 2rem 3rem;
    display: flex;
}

article {
    padding: 2rem 3rem 3rem;
}

:is(article, footer) p:not(:last-of-type) {
    margin: 0 0 1rem;
}

.slider {
    position: relative;
}

.slider>img {
    display: block;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    animation: imageAnimation 12s linear infinite 0s;
}

.slider>img:nth-of-type(1) {
    position: static;
    opacity: 1;
}

.slider>img:nth-of-type(2) {
    animation-delay: 6s;
}

@keyframes imageAnimation {
    4% {
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    55% {
        opacity: 0;
    }
}

article h1 {
    font-size: 1.8rem;
    line-height: 120%;
    color: #002c7e;
    font-weight: normal;
    margin: 1.5rem 0;
}

article h2 {
    font-size: 1rem;
    margin: 1.25rem 0 0;
    color: #3a428e;
}

article ul {
    margin: .5rem 0 1.5rem 2rem;
    list-style: none;
}

article ul li:before {
    content: "\25A0";
    color: #002c7e;
    float: left;
    font-size: 14px;
    margin: -3px 0 0 -20px;
}

article .flex {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0 0;
}

article .flex p {
    width: 70%;
}

footer {
    background: #e9e9e9;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

footer :is(h3, p) {
    color: #3a428e;
    font-size: 15px;
}

footer section:nth-of-type(2) {
    width: 35%;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
}

@media only screen and (max-width: 51.813rem) {
    #wrapper {
        border: none;
        margin: 0 auto;
    }

    article :is(p, ul) {
        hyphens: auto;
    }
}

@media only screen and (max-width: 48rem) {

    header {
        padding: 1.5rem 1rem;
    }

    article,
    footer {
        padding: 1rem;
    }

    footer {
        flex-direction: column;
        text-align: center;
        align-items: center
    }

    footer section:nth-of-type(2) {
        width: 100%;
    }
}

@media only screen and (max-width: 40rem) {
    header {
        justify-content: center;
    }

    article .flex {
        flex-direction: column;
        align-items: center;
    }

    article .flex p {
        width: 100%;
    }
}

@media only screen and (max-width: 30rem) {

    article h1 {
        font-size: 1.5rem
    }

    article ul {
        margin: .5rem 0 1.5rem 1.3rem;
    }
}