@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap");

* {
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  margin: 0;
}

header {
  background-image: url("img/bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  min-height: 100vh;
}

a {
  color: white;
  text-decoration: none;
}

.container {
  margin: 0 auto;
  padding: 1rem;
  width: 1000px;
  max-width: 100%;
}

nav {
  padding: 0.5rem 0;
}

.pre-nav {
  font-size: 1.7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #026e78;
  font-weight: bold;
  font-size: 2.5rem;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  padding: 0;
}

nav li {
  flex: 1 auto;
}

nav li a {
  background-color: #2d99a4;
  display: block;
  padding: 1rem 2rem;
  text-align: center;
}

nav a.active {
  background-color: #fff;
  color: #026e78;
  font-weight: bold;
}

nav a.highlight {
  background-color: #026e78;
  color: #fff;
}

nav a:hover {
  opacity: 0.8;
}

.content {
  display: flex;
  flex-direction: column;
  font-size: 2rem;
  align-items: flex-start;
  margin-top: 5rem;
}

.content h1 {
  background-color: #026e78;
  color: white;
  display: inline-block;
  padding: 1rem;
  font-weight: 200;
}

.white-link {
  background-color: #fff;
  color: #2d99a4;
  padding: 1rem;
  margin-top: 1rem;
}

.teal-link {
  background-color: #2d99a4;
  color: #fff;
  padding: 1rem;
  margin-top: 2rem;
}

@media screen and (max-width: 768px) {
  .pre-nav {
    flex-direction: column;
    justify-content: center;
  }

  .content {
    font-size: 1.5rem;
  }
}

/* Modal Styling */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: #fff;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
  position: relative;
  animation: slideIn 0.4s ease-out;
}

.modal-content h2 {
  margin-top: 0;
  color: #026e78;
}

.modal-content input,
.modal-content button {
  display: block;
  width: 100%;
  padding: 0.75rem;
  margin: 1rem 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.modal-content button {
  background-color: #026e78;
  color: white;
  border: none;
  cursor: pointer;
}

.modal-content button:hover {
  opacity: 0.9;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
