html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  margin: 0 auto;
}

header {
  background-color: #3b9c9c;
  background-image: url("../img/background_high.png");
  background-size: cover;
}

.row {
  margin: 0 auto;
  padding: 0 2rem;
  width: auto;
}

.row:after {
  clear: both;
  content: "";
  display: block;
}

.column {
  float: left;
  width: 100%;
}

#logo {
  text-align: center;
}

#logo img {
  width: 60%;
  margin-top: 2.5rem;
  border-radius: 50%;
}

hgroup {
  color: white;
  text-align: center;
  text-transform: uppercase;
}

h1 {
  font-size: 2.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  animation: movementfromtop;
  animation-duration: 1.5s;
}

h2 {
  font-size: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  animation: movementfrombottom;
  animation-duration: 1.5s;
}

nav {
  padding-bottom: 2.5rem;
  font-size: 1.2rem;
}

#menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

#menu li {
  border-bottom: 0.1rem solid white;
}

#menu li a {
  display: block;
  width: max-content;
  margin: auto;
  text-align: center;
  text-decoration: none;
  color: white;
  font-size: 1.3rem;
  padding: 1rem;
}

#menu li a:hover {
  text-decoration: underline;
}

#menu li:last-child {
  border-bottom: none;
}

section {
  padding: 4rem 0;
}

#note,
#training {
  background-color: white;
}

#note p {
  color: black;
  font-size: 1.3rem;
  line-height: 1.3;
  text-align: center;
}

#professional {
  background-color: #3b9c9c;
}

h3 {
  color: #3b9c9c;
  text-align: center;
  text-transform: uppercase;
  font-size: 1.5rem;
  margin: 0 0 1.5rem 0;
}

#professional h3 {
  color: white;
}

article {
  background-color: #3b9c9c;
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem 0 2.5rem 0;
}

h4 {
  margin-top: 0;
  font-size: 1.3rem;
  text-transform: uppercase;
}

#professional h4,
#professional p {
  color: #3b9c9c;
}

#professional p,
#training p {
  margin-top: -1rem;
}

#training h4,
#training p {
  color: white;
}

.clear {
  clear: both;
}

#professional article {
  background-color: white;
}

#professional article img {
  width: 90%;
}

.button {
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.6rem;
  color: #3b9c9c;
  background-color: transparent;
  border: 0.1rem solid #3b9c9c;
}

.mode_button,
.top_button {
  margin-bottom: 2rem !important;
}

.mode_button,
.modal_open {
  display: block;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  cursor: pointer;
  color: white;
  background-color: transparent;
  border: 0.1rem solid white;
}

.top_button {
  display: block;
  width: max-content;
  margin-top: 2rem;
  margin-left: auto;
  margin-right: auto;
  cursor: pointer;
  color: white;
  background-color: transparent;
  border: 0.1rem solid white;
}

#training article img {
  width: 80%;
}

footer {
  background-color: #3b9c9c;
}

h5 {
  color: white;
  font-size: 1rem;
  text-align: center;
  text-transform: capitalize;
  margin-top: -1rem;
  margin-bottom: 0.3rem;
}

h6 {
  color: white;
  font-size: 0.8rem;
  text-align: center;
  margin-top: 0.3rem;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadein;
  animation-duration: 0.4s;
}

.modal_image {
  padding-top: 1rem;
  width: 80% !important;
}

.modal_content {
  position: absolute;
  background-color: #3b9c9c;
  margin: auto;
  padding: 1rem;
  width: 75%;
  top: 50%;
  left: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
}

.modal_content p {
  margin-top: 1.5rem !important;
  font-size: 0.9rem;
  line-height: 1.3;
  text-align: left;
}

.modal_content p a {
  color: white;
  text-decoration: none;
}

.modal_close {
  color: white;
  float: right;
  font-size: 2.7rem;
}

.modal_close:hover {
  cursor: pointer;
}

@media (min-width: 768px) {
  header {
    background-image: url("../img/background_wide.png");
  }

  .row {
    width: 70%;
  }

  .column {
    margin-left: 5%;
  }

  .column.full_space {
    width: 100%;
  }

  .column.half_space {
    width: 47.5%;
  }

  .column.one_third_space {
    width: 30%;
  }

  .row .column:first-child {
    margin-left: 0;
  }

  #logo img {
    width: 30%;
  }

  h1 {
    font-size: 3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
  }

  h2 {
    font-size: 2rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
  }

  nav {
    padding-bottom: 3.5rem;
  }

  #menu li {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    float: left;
    width: 50%;
    border-right: 0.1rem solid white;
    border-bottom: 0;
    text-align: center;
  }

  #menu li a {
    padding: 0;
  }

  #menu li:last-child {
    border-right: none;
  }

  h3 {
    font-size: 2rem;
  }

  article {
    margin-bottom: 0;
  }

  article:hover {
    position: relative;
    animation: movementtotop;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
  }

  #training article {
    margin-bottom: 2rem;
  }

  #note p {
    text-align: left;
  }

  .modal_image {
    width: 70% !important;
  }

  .modal_content {
    padding: 2rem;
  }
}

@keyframes movementfromtop {
  from {
    top: -1.5rem;
  }

  to {
    top: 0;
  }
}

@keyframes movementfrombottom {
  from {
    bottom: -1.5rem;
  }

  to {
    bottom: 0;
  }
}

@keyframes movementtotop {
  from {
    bottom: 0;
  }

  to {
    bottom: 0.5rem;
  }
}

@keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}