@import url("fonts/material-icons.css");

html {
  scroll-padding-top: 60px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

main {
  margin-top: 59px;
}

h1 {
  text-align: center;
  font-size: 2.5rem;
}

article {
  padding: 2rem;
  /* height: 1024px; */
  min-height: 1024px;
  height: max-content;
  color: white;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  font-size: 1.2rem;
  overflow-x: clip;
}

/* @keyframes fadein {
  from {
    visibility: hidden;
    opacity: 0;
    transform: translateX(20vw);
  }
  to {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
} */

.inview {
  transform: none;
  opacity: 1;
  visibility: visible;
  /* animation-name: fadein;
  animation-delay: 100ms;
  animation-duration: 500ms;
  animation-fill-mode: forwards; */
}

article>div {
  display: flex;
  gap: 2rem;
}

section.left-slide {
  transform: translateX(-20vw);
}

section.right-slide {
  transform: translateX(20vw);
}

section {
  padding: 0 1rem;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  transition-delay: 200ms;
  transition-duration: 500ms;
  transition-property: opacity, transform;
  will-change: opacity, visibility, transform;
}

#home {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5),
  rgba(0, 0, 0, 0.5)),url("img/home.jpg");
}

#contact {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5),
  rgba(0, 0, 0, 0.5)),url("img/contact.jpg");
}

#about {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5),
  rgba(0, 0, 0, 0.5)),url("img/about.jpg");
}

.topnav {
  display: flex;
  z-index: 9999;
  overflow: hidden;
  background-color: #005478;
  position: fixed;
  top: 0;
  width: 100%;
}

.topnav a {
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 1rem;
  text-decoration: none;
  font-size: 1.5rem;
}

.topnav>span {
  display: block;
  color: #f2f2f2;;
  text-align: center;
  padding: 1rem;
  text-decoration: none;
  font-size: 1rem;
  margin-left: auto;
}

.topnav a.active {
  background-color: #0078ab;
  color: white;
}

@media (hover: hover) {
  .topnav a:hover {
    background-color: #bfecff;
    color: black;
  }
}

.topnav .icon {
  display: none;
}

@media screen and (max-width: 600px) {
  .topnav {
    justify-content: left;
  }

  .topnav a:not(:first-child) {
    display: none;
  }

  .topnav a.icon {
    display: block;
  }

  .topnav a.hide {
    display: none !important;
  }

  .topnav.responsive {
    display: block;
  }

  .topnav.responsive a {
    display: block;
    text-align: left;
  }

  article {
    /* height: 1200px; */
    /* background-position: center;
    background-repeat: no-repeat;
    background-size: cover; */
    font-size: 1rem;
  }

  article>div {
    flex-direction: column;
  }

  section.left-slide {
    transform: translateX(20vw);
  }
  
  section.right-slide {
    transform: translateX(20vw);
  }
}