body {
  margin: 0;
  box-sizing: border-box;
  font-size: 18px;
}
/* This is all for the header menu. Same across all pages*/
#main-header {
  top: 0;
  width: 100%;
  position: sticky;
  background-color: #000000;
  z-index: 60;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
}
.logo {
  padding: 5px;
  max-width: 40%; !important;
}
.logo:hover {
  box-shadow: 0 0 0 2px white;
}
#MTLRELogo {
  border-radius: 20%;
  height: auto;
  width: 100px;
}

.nav-bar {
  display: flex;
  list-style-type: none;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
  padding: 0;
}
/* desktop dropdown styles */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.dropdown-toggle {
  text-decoration: none;
}
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%);
  background-color: #000000;
  min-width: 150px;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.6);
  z-index: 70;
  border-radius: 0 0 5px 5px;
  padding: 0;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid #222222;
}
.dropdown-content .nav-item {
  color: white;
  font-size: 20px;
}
/* for each nav page*/
.nav-item {
  padding: 10px 15px;
  display: block;
  text-decoration: none;
  text-align: center;
  font-size: 24px;
  font-family: montserrat, sans-serif;
}
/* for each nav page when you hover over*/
.nav-item:hover {
  background-color: #222222;
  border-radius: 5px;
}
#hAbout{
  color: #db0000;
}
#hProjects{
  color: #fde500;
}
#hEvents{
  color: #356cfb;
}
#hContact{
  color: #ffffff;
}
.nav-item:focus, .header-link:focus {
  outline: 2px solid #ffffff;
}

.right-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

/*styles for the main body on every page*/
#main-body {
  background-color: #ffffff;
  box-sizing: border-box;
  text-align: center;
}
#main-body h1 {
  font-size: 72px;
  font-family: montserrat, sans-serif;
}
#main-body h2 {
  font-size: 48px;
  font-family: montserrat, sans-serif;
}
#main-body h3 {
  font-size: 36px;
  font-family: montserrat, sans-serif;
}
#main-body p {
  font-size: 24px;
  font-family: "Open Sans", sans-serif;
}
img {
  border-radius: 20%;
  max-width: 100%;
  height: auto;
}

/*styles for the footer on every page*/
.footer-link:focus {
  outline: 2px solid #000000;
}
#main-footer {
  width: 100%;
  height: 150px;
  position: static !important;
  display: flex;
  background-color: #ffffff;
  font-size: 18px;
  font-family: "Open Sans", sans-serif;
}
#author-info {
  margin-left: 5px;
  margin-right: auto;
  padding: 30px 10px 5px 10px;
}
#contact-info {
  margin-left: auto;
  margin-right: 5px;
  padding: 10px;
  width: 200px;
  right: 0;
}
#subscription_form {
  margin-left: auto;
  margin-right: auto;
  padding: 10px;
  width: 250px;
  display: block;
  text-align: center;
}
#subscription_form label {
  font-size: 18px;
  font-family: "Open Sans", sans-serif;
}
#subscription_form input {
  margin: 10px 10px 0 10px;
  font-size: 15px;
  font-family: "Open Sans", sans-serif;
}
/*for subscribe button*/
.form_subscribe {
  display: inline-block;
  border: 2px solid #000000;
  border-radius: 10px 4px;
  background-color: #ffffff;
  padding: 8px;
  color: #000000;
  text-align: center;
  font-size: 12px;
  width: 100px;
  cursor: pointer;
}
.form_subscribe span {
  position: relative;
  transition: 0.5s;
}
.form_subscribe span:after {
  content: '\00bb';
  position: absolute;
  opacity: 0;
  right: -10px;
  transition: 0.5s;
}
.form_subscribe:hover {
  background-color: #f3f3f3;
}
.form_subscribe:hover span {
  padding-right: 15px;
}
.form_subscribe:hover span:after {
  opacity: 1;
  right: 0;
}
.form_subscribe:active {
  transform: scale(0.95);
}

#Instagram {
  padding: 10px 10px 20px 10px;
}
#Email {
  padding: 10px;
}

@media screen and (max-width: 945px) {
  .dropdown {
    display: none;
  }
  .nav-bar {
    display: none;
  }
  #MTLRELogo {
    width: 100px;
  }
  #main-header {
    height: auto;
  }

  #main-footer {
    width: 100%;
    height: 200px;
    flex-direction: column;
  }
  #author-info {
    margin: 5px;
    padding: 10px 10px 1px 10px;
  }
  #contact-info {
    margin: 5px;
  }
  #subscription_form {
    margin: 10px 0 0 0;
    padding: 0;
  }
}
