@import url("https://fonts.googleapis.com/css2?family=Inter&family=Open+Sans:wght@400;700&family=Poppins:wght@400;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
  font-family: "Inter", sans-serif;
  background-color: #f7f9fc;
}

main {
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: auto;
  min-height: 90vh;
}

/* NAVIGATION */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  position: relative;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
}

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  text-decoration: none;
  color: #131111;
  font-size: 1.1rem;
  font-family: "Open Sans", sans-serif;
  position: relative;
}

.nav-links li a::before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: grey;
  bottom: -2px;
  left: 0;
  transition: width 0.3s ease;
}

.nav-links li a:hover::before {
  width: 100%;
}

/* CONTENT */
#content {
  margin-top: 2rem;
  text-align: center;
}

#content h1 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
}



form {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  gap: 1rem;
  max-width: 600px;
  margin-inline: auto;
  width: 100%;
}

form label {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

form input,
form select {
  width: 100%;
  max-width: 400px;
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  color: white;
  font-weight: 600;
  background-color: rgb(79, 59, 233);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background-color: rgb(65, 48, 190);
}

/* TABLE OUTPUT */
.tableFlex {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.output {
  display: none;
  width: 100%;
  max-width: 600px;
}

.output h2 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid #000;
}

th,
td {
  padding: 0.6rem;
  border: 1px solid #000;
  font-size: 1rem;
}

/* FOOTER */
#footer {
  margin-top: 2rem;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  position: relative;

}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 99;
  }

  .nav-links.active {
    max-height: 300px;
    padding: 1rem 0;
  }

  .nav-links li {
    margin: 0.5rem 0;
  }

  form input,
  form select {
    max-width: 90vw;
  }

  table {
    font-size: 0.9rem;
  }

  #content h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.3rem;
  }

  #content h1 {
    font-size: 1.4rem;
  }

  .btn {
    width: 100%;
  }

  .output h2 {
    font-size: 1rem;
  }
}
