﻿@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/source-sans-pro-v21-latin-regular.eot');
    src: local(''), url('../fonts/source-sans-pro-v21-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/source-sans-pro-v21-latin-regular.woff2') format('woff2'), url('../fonts/source-sans-pro-v21-latin-regular.woff') format('woff'), url('../fonts/source-sans-pro-v21-latin-regular.ttf') format('truetype'), url('../fonts/source-sans-pro-v21-latin-regular.svg#SourceSansPro') format('svg');
}

@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/source-sans-pro-v21-latin-700.eot');
    src: local(''), url('../fonts/source-sans-pro-v21-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/source-sans-pro-v21-latin-700.woff2') format('woff2'), url('../fonts/source-sans-pro-v21-latin-700.woff') format('woff'), url('../fonts/source-sans-pro-v21-latin-700.ttf') format('truetype'), url('../fonts/source-sans-pro-v21-latin-700.svg#SourceSansPro') format('svg');
}

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    line-height: 1.25rem;
    font-size: 1rem;
    font-family: 'Source Sans Pro', Arial, sans-serif;
    color: #000;
    font-weight: 400;
}

#wrapper {
    position: relative;
    max-width: 540px;
    margin: 1rem auto;
    border: 1px solid #000;
    overflow: hidden;
    background-color: #fff;
}

header {
    border-bottom: 20px solid #a19f9d;
}

article {
    padding: 20px 20px 1px;
    position: relative;
}

.info {
    position: absolute;
    bottom: 45px;
    right: 24px;
}

.background {
    background: #d6e6ca;
    padding: 20px;
    margin: 0 -20px 19px;
}

.background ul {
    margin: 0;
}

footer {
    display: flex;
    padding: 10px 20px;
    background: #a19f9d;
    justify-content: space-between;
}

:is(strong, h1, h5, h2, h3) {
    font-weight: 700;
}

h1 {
    margin: 1rem 0;
    font-size: 45px;
    text-align: center;
    color: #38a555;
    line-height: 45px;
}

h1 span {
    font-size: 24px;
}

h5 {
    text-align: center;
    font-size: 32px;
    margin: 0 0 1.25rem;
    line-height: 36px;
}

h4 {
    text-align: center;
    font-size: 26px;
    font-weight: 400;
}

h5 span {
    font-weight: 400;
    color: #38a555;
    display: block;
    font-size: 26px;
}

h2 {
    font-size: 17px;
    line-height: 1.125rem;
    color: #38a555;
}

h3 {
    color: #fff;
    line-height: 24px;
    font-size: 19px;
    margin: 0 0 12px;
}

p:not(footer p) {
    margin: 0 0 1rem;
}

footer p {
    color: #fff;
    font-size: 18px;
}

.center {
    text-align: center;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #000;
    white-space: nowrap;
    text-decoration: none;
}

ul {
    margin: 0 0 1rem;
    list-style: none;
}

ul li {
    padding-left: 18px;
}

ul li:before {
    content: "\25A0";
    float: left;
    font-family: Arial, sans-serif;
    font-size: 20px;
    text-indent: -18px;
    line-height: 17px;
    color: #38a555;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

.slide {
    margin: 0;
    padding: 0;
    border: 0;
    position: relative;
}

.slide img {
    vertical-align: bottom;
}

@keyframes slidy {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    25% {
        opacity: 1;
    }

    30% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.slide img:nth-of-type(1) {
    position: relative;
}

.slide img {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    max-width: 100%;
    animation: slidy 20s linear 0s infinite normal forwards;
}

.slide img:nth-child(2) {
    animation-delay: 5s;
}

.slide img:nth-child(3) {
    animation-delay: 10s;
}

.slide img:nth-child(4) {
    animation-delay: 15s;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 3px;
}

@media (max-width: 540px) {
    #wrapper {
        margin: 0 auto;
        border: none;
    }

    footer {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        justify-content: center;
        align-items: center;
    }

    footer :is(p, h3) {
        text-align: center;
    }

    .info {
        position: static;
        display: flex;
        justify-content: center;
    }

    article {
        padding: 1rem;
    }

    :is(p, ul) {
        hyphens: auto;
        text-wrap: pretty;
    }

    br:not(.br) {
        display: none;
    }
}