@charset "utf-8";

:root {
    font-size: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: #000;
    font-family: "Arial", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    background: linear-gradient(180deg, rgba(239, 239, 239, 0.3) 30rem, rgba(239, 239, 239, 0.3) 25rem), url(../images/background.jpg) no-repeat top center fixed;
    background-size: cover;
}

img {
    max-width: 100%;
    height: auto;
}

#wrapper {
    position: relative;
    max-width: 50rem;
    margin: 1rem auto;
    overflow: hidden;
    background: #fff;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: underline;
    white-space: nowrap;
}

h1 {
    font-size: 2.25rem;
    font-weight: 500;
    margin: 1.5rem 0 3.5rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h3 {
    font-size: 1rem;
    text-decoration: underline;
    margin-bottom: 1rem;
}

.margin-top {
    margin-top: 2rem;
}

p {
    margin-bottom: 1rem;
}

ul {
    margin: 0 0 2.25rem 1rem;
}

article {
    padding: 2rem 4rem 1rem;
}

footer {
    display: flex;
    justify-content: center;
    margin: 1rem 0 4rem
}

a.apply {
    color:#fff;
    background-color: #000;
    padding: 0.5rem 1.75rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #000;
}

a.apply:hover {
    color:#000;
    background-color: #fff;
}

.slider {
    position: relative;
}

.slider > img {
    display: block;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    animation: imageAnimation 18s linear infinite 0s;
}

.slider > img:nth-of-type(1) {
    position: static;
    opacity: 1;
}

.slider > img:nth-of-type(2) {
    animation-delay: 6s;
}
 
.slider > img:nth-of-type(3) {
    animation-delay: 12s;
} 
  
@keyframes imageAnimation {
    4% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    38% {
        opacity: 0;
    }
}
  
@media only screen and (max-width: 49.938rem) {
    #wrapper {
        border: none;
        margin: 0 auto;
    }

    p,
    ul {
        -moz-hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
}


@media only screen and (max-width: 40rem) {

    article {
        padding: 1rem;
    }
    
    footer {
        padding: 1rem;
        margin: 0 0 2rem;
    }

    h1 {
        font-size: 1.85rem;
        margin: 2rem 0;
    }

    h2 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
}

