:root {
  --primary-bg: #000000;
  --mobile-bg: #333333df;
  --dropdown-bg: #444;
  --hover-color: red;
  --transition-speed: 1s;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.grid-container {
  display: grid;
  grid-template-areas: 
    "head"
    "main";
  width: 100%;
}

.navbar {
  background-color: var(--primary-bg);
  grid-area: head;
  position: relative;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px;
}

.hamburger {
  margin-top: 0;
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger-line {
  display: block;
  width: 50px;
  height: 1px;
  margin: 5px;
  background-color: white;
  transition: var(--transition-speed);
}

.hamburger.active .hamburger-line:nth-child(1)
{
  transform: rotate(90deg) translate(-10px, -20px);
}

.hamburger.active .hamburger-line:nth-child(2) {
  transform: rotate(90deg) translate(-15px, 20px);
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(0deg) translate(0px, 20px);
}


.nav-links {
  display: flex;
  flex-direction: row;
  position: relative;
  width: auto;
  background-color: transparent;
  z-index: 100000000;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 10px;
}

.nav-links.active {
  display: flex;
}

.nav-links li {
  display: inline-block;
  width: auto;
}

.navbar a,
.dropdown .dropbtn {
  font-size: 20px;
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  transition: background-color 0.3s;
  cursor: pointer;
  border: none;
  font-family: inherit;
  margin: 0;
}

.navbar a {
  display: inline-block;
  width: auto;
  text-align: center;
  padding: 8px 12px;
  margin-top: 0;
  vertical-align: middle;
}

.dropdown {
  display: inline-block;
  width: auto;
  position: relative;
  vertical-align: middle;
}

.dropdown .dropbtn {
  display: inline-block;
  width: auto;
  background-color: inherit;
  outline: none;
  padding: 8px 12px;
  margin: 0;
  vertical-align: middle;
}

.navbar a:hover,
.dropdown .dropbtn:hover {
  background-color: var(--hover-color);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--dropdown-bg);
  min-width: 140px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 100000;
}

.dropdown-content a {
  padding-left: 30px;
  color: white;
  text-align: left;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #555;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}

.main-content {
  grid-area: main;
  position: relative;
}

.main-content h1 {
  text-align: center;
}

.footer {
  background-color: #333;
  color: white;
  text-align: center;
}

#contact-form {
  margin-bottom: 100px;
}

#schools {
  margin: 6px 0 0 0;
  width: 250px;
  height: auto;
}

.hello {
  color: white;
  font-size: 30px;
  margin: 2px 0 0 10px;
  position: absolute;
  max-width: 100px;
}
/* Mobile Styles */
@media screen and (max-width: 760px) {
  .hamburger {
    display: block;
    margin-top: 15px;
    order: 1;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    width: 100%;
    background-color: var(--mobile-bg);
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    display: block;
    width: 100%;
  }

  .navbar a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    margin-top: 0;
  }

  .dropdown {
    display: block;
    width: 100%;
  }

  .dropdown .dropbtn {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background-color: #444444cf;
    text-align: left;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dropdown-bg);
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    min-width: 100%;
    z-index: 10000;
  }

  .dropdown-content a {
    color: white;
    padding-left: 30px;
  }

  .dropdown-content a:hover {
    background-color: #555;
  }
}