@charset "utf-8";

:root {
  font-size: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: #333;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.3;
  background: #fff url(../images/bg.jpg) no-repeat top center;
  background-size: cover;
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
}

#wrapper {
  position: relative;
  max-width: 50rem;
  margin: 1rem auto;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.2);
}

h1,
h2 {
  font-family: 'Fira Sans Condensed', Arial, sans-serif;
  font-weight: 500;
}

h1 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 0 0 .625rem;
}

h2 {
  font-size: 1.25rem;
  margin: 2rem 0 .625rem;
  color: #c50015;
}

:is(a:link, a:visited, a:hover, a:active) {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

a.link {
    text-decoration: underline;
}
a.link:hover {
    text-decoration: none;
}

a.web:hover {
  color: #c50015;
}

p {
  margin: 0 0 1rem;
}

span {
  white-space: nowrap;
}

ul {
  list-style-type: none;
}

ul li {
  margin-left: 17px;
  position: relative;
}

ul li:before {
  content: "-";
  color: #c50015;
  position: absolute;
  top: -8px;
  left: -17px;
  vertical-align: text-top;
  font-weight: 800;
  font-size: 26px;
}

header {
  padding: 1rem 1rem 0.5em 1rem;
}
header img {
  width: 18rem;
}

article {
  padding: 2rem 3rem 0;
}

footer {
  padding: 0 3rem 2rem;
}

a.color {
  color: #fff;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

footer a.link2 {
  color: #fff;
}
a.link2:hover {
    color: #666565;
}


.button {
    display: flex;
    margin: 3rem 0 2rem;
}

a.apply {
    border: 1px solid #c50015;
    padding: 0.75rem 3.5rem;
    font-weight: 700;
    background-color: #c50015;
    color: #fff;

}
a.apply:hover {
    background-color: #fff;
    color: #c50015;
}

.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.937rem) {
  #wrapper {
    border: none;
    margin: 0 auto;
    padding: 1rem;
  }

  p,
  ul {
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    margin: 0 0 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h1 + p {
    margin: 0 0 1rem;
  }

  article {
    padding: 1rem;
  }

  footer {
    padding: 1rem;
  }
}

@media only screen and (max-width: 30rem) {
  article {
    padding: 1rem 0 0;
  }

  footer {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  footer p {
    text-align: center;
  }
}