* {
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
  font-size: 16px;
  background-image: url("img/background.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  grid-column-gap: 2em;
}

.header {
  width: 1000px;
  max-width: 90%;
  margin: 1em auto;
  text-align: center;

  &>img {
    width: 90%;

  }
}

.intro_text {
  background-color: hsla(0deg 0% 100% / .7);
  padding: 1em;
  margin-bottom: 2em;
  border-radius: 2em;
  text-align: justify;

  &>em {
    font-weight: bolder;
    font-size: 1.2em;
    text-align: center;
  }
}

.content_img {
  width: 100%;
  aspect-ratio: 21/9;
  image-rendering: optimizequality;
  object-fit: cover;
  border-radius: 1em;
  filter: sepia(100%) hue-rotate(185deg) saturate(50%);

  outline: 3px solid hsla(200, 100%, 50%);
  transition: 500ms ease-in-out;
}

.content_img:hover {
  filter: sepia(0%) hue-rotate(0deg) saturate(100%);
  transition: 500ms ease-in-out;
}


.wrapper_content_top {
  width: 1000px;
  max-width: 90%;
  margin: 0 auto;
  padding: 0;
  color: hsla(200, 100%, 50%, 1);
  text-shadow: 0 0 5px hsl(200, 100%, 100%);
}


.wrapper_content_bottom {
  background-color: hsla(200, 100%, 50%, 1);
  color: hsla(0, 100%, 100%, 1);
  padding-bottom: 1em;
}

.content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

ul {
  margin-top: .5em;
  margin-left: 2.5em;
}

ul,
li {
  list-style-position: inside;
  text-indent: -1.45em;

}

.content_item {
  padding: 1.25em;
}

.content_bottom {
  width: 1000px;
  max-width: 90%;
  margin: 0 auto;
  padding: 0;
  background-color: hsla(200, 100%, 50%, 1);
}

h1,
h2,
h3 {
  padding-top: 1em;
}

h1,
h2 {
  font-size: 1.2em;
}

h3 {
  font-size: 1.1em;
}

p {
  padding: 1em 0 0 0;

}

.waves {
  position: relative;
  width: 100%;
  height: 15vh;
  margin-bottom: -7px;
  /*Fix for safari gap*/
  min-height: 100px;
  max-height: 150px;
}

.contact {
  text-align: center;
  font-weight: bolder;
  font-size: 1.5em;
  padding-top: 1em;
  line-height: 1.75em;
}

.contact_intro {
  text-align: center;
  width: 60%;
  margin: 0 auto;
  font-size: 1.25em;
  line-height: 1.25em;
}

.contact a {
  position: relative;
  color: #FFF;
  text-decoration: none;
}

.contact a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 8px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="8" viewBox="0 0 100 8"><path d="M0 4 Q 25 0, 50 4 T 100 4" fill="transparent" stroke="white" stroke-width="1.5"/></svg>') repeat-x;
  background-size: 100px 8px;
  transition: transform 0.7s ease;
  pointer-events: none;
}

.contact a:hover::after {
  animation: waveMove 1.2s linear infinite;
}

@keyframes waveMove {
  from {
    background-position-x: 0;
  }

  to {
    background-position-x: 100px;
  }
}

.contact a img {
  vertical-align: text-bottom;
}

.note {
  background-color: hsla(0, 100%, 0%, .1);
  font-size: .8em;
  width: 90%;
  rotate: -2deg;
  border-radius: 1.5em;
  padding: 0em 1.5em 0em 2em;
  margin: 3em auto 0;
  position: relative;
}

.note::before {
  content: '§';
  position: absolute;
  top: -.25em;
  left: -.25em;
  font-size: 4.5em;
  color: hsl(0, 100%, 100%);
}

fieldset {
  border: 0;

  &>legend {
    padding-top: 1em;
    margin-left: .5em;
  }

  &>textarea,
  &>input[type="submit"] {
    margin: 1em 0;
  }

  &>input[type="text"],
  &>input[type="submit"],
  &>textarea {
    width: 100%;
    padding: .5em;
    border-radius: .5em;
    border: 0;
    background-color: hsla(0, 100%, 100%, .2);
    color: hsl(0, 100%, 100%);
  }
}

.footer_wrapper {
  margin: 4em 0;
  padding-top: 1.5em;
  border-top: 3px solid hsla(0, 100%, 100%, .2);
}

.footer_top {
  width: 100%;
  text-align: center;
}

.footer_top strong {
  font-size: 1.45em;
}

.footer_bottom {
  padding-top: 1em;
  text-align: center;
}

.footer_bottom>a {
  color: hsl(0, 100%, 100%);
}

textarea::-webkit-scrollbar {
  width: 1em;
}

textarea::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px hsla(0, 100%, 100%, 0.3);
}

textarea::-webkit-scrollbar-thumb {
  background-color: hsla(0, 100%, 100%, 0.3);
  outline: 1px solid hsla(0, 100%, 100%, 0.2);
}

/* Animation */

.parallax>use {
  animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.parallax>use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.parallax>use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.parallax>use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }

  100% {
    transform: translate3d(85px, 0, 0);
  }
}

/*Shrinking for mobile*/
@media (max-width: 768px) {
  .waves {
    height: 80px;
    min-height: 40px;
  }

  .header {
    width: 90%;
  }

  .content {
    grid-template-columns: 1fr;
  }

  .content_item {
    padding: 0.75em;
  }

  .contact_intro {
    width: 100%;
  }

  ul {
    margin-top: .5em;
    margin-left: 1.5em;
  }

  ul,
  li {
    list-style-position: inside;
    text-indent: -1.45em;

  }


}


.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: none;
}

.modal:target {
  display: block;
}

.modal-content {
  background: rgba(0, 0, 0, 0.75);
  margin: 10em 1em 0em 1em;
  padding: 1em 2em;
  max-width: 100%;
  max-height: 75%;
  overflow-y: auto;
}

.modal a {
  color: #FFF;
}

.modal h1,
.modal h2,
.modal h3,
.modal h4 {
  color: #468fb3;
  margin-top: 1.5em;
}

.modal li {
  text-indent: 0em;
}

.close {
  position: fixed;
  top: .5em;
  right: .5em;
  text-decoration: none;
  font-weight: bold;
  font-size: 5em;
  color: #FFF;
}