@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  color: #171a1fff;
}
p {
  font-weight: 300;
}

body {
  width: 100vw;
  overflow-x: hidden;
}

nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  background-color: white;
  padding: 0em 2em 0em 0.5em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}

.nav-logo {
  width: 80px;
  padding: 0;
  margin: 0;
}

.hidden-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 3em;
  background-color: rgba(0, 0, 0, 0.83);
  color: white;
  transform: translateX(100%); /* off screen to the right */
  transition: transform 0.3s ease;
  flex-direction: column;
  gap: 2em;
  padding: 2.5em;
  backdrop-filter: blur(5px) brightness(0.7);
  z-index: 1;
}
.hidden-menu a {
  color: rgba(255, 255, 255, 0.618);
}

.close-btn {
  align-self: flex-end;
  background-color: white;
  display: flex;
  align-items: center;
  padding: 0.5em;
}

main {
  margin-top: 5em;
  width: 97%;
}

@media (min-width: 800px) {
  nav {
    padding: 0em 2em;
  }
}

/*Animation*/
@keyframes slide-in-left {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes slide-in-bottom {
  from {
    transform: translateY(8em);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
