html {
  scroll-behavior: smooth;
  scroll-padding-top: 5em;
  font-family: "Georgia", serif;
}

h1 {
  font-size: 150%;
  margin: 0.5em;
}

h2 {
  font-size: 120%;
}

body {
  margin: 0px;
  font-size: 140%;
}

p {
  margin-top: 0px;
  font-family: "Verdana", sans-serif;
}

li {
  font-family: "Verdana", sans-serif;
}

dialog {
  background-color: #e6e6ffff;
  max-width: 30em;
  box-sizing: border-box;
  margin-left: auto;
}

::backdrop {
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
}

.section {
  padding-top: 1em;
  padding-bottom: 1em;
  padding-left: 0.5em;
  padding-right: 0.5em;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Picture background waves only on front page */
.front-page .section:nth-child(odd) {
  background-color: hwb(240 93% 0%);
  background-image: url("/assets/img/purple-waves-2.avif");
  background-position: bottom;
  background-size: cover;
  background-position: bottom;
}

.section:nth-child(even) {
  background-color: hwb(240 93% 0%);
}

.section-contents {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 40em;
}

.section.hero {
  background-image: url("/assets/img/lighthouse-hero.avif");
  min-height: 600px;
  background-size: cover;
  background-position: center;
}

.logo-mobile {
  display: none;
}

.logo-container {
  background-color: white;
  margin-top: 5em;
  padding: 1em;
  border: solid;
  border-radius: 10px;
}

.logo-container-top {
  display: flex;
  justify-items: first baseline;
}

.logo-container .lighthouse {
  font-size: 400%;
}

.logo-container .name-details {
  max-width: 10em;
  font-size: normal;
  text-align: left;
  padding-left: 1em;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.hero .button {
  margin-top: 2em;
}

.button-a {
  text-decoration: none;
}
.button {
  /* background-color: #7272e8; */
  background-color: #4444bc;
  /* max-width: 100px; */
  border-radius: 10px;
  padding: 10px;
  margin-top: 4em;
  margin-bottom: 2em;
  color: white;
  text-decoration: none;
}

.button a {
  padding-left: 1em;
  padding-right: 1em;
}

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

.section-header {
  /* font-size: 150%;
  margin-bottom: 1em; */
}

.section-subheader {
  font-size: 120%;
  margin-bottom: 1em;
}

.section-text {
  padding-left: 1em;
  padding-left: 1em;
}

.services-container {
  display: flex;
  flex-direction: row;
}

.service-container {
  margin-top: 1em;
  max-width: 15em;
  flex-basis: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  align-content: center;
}

.service-name {
  /* color: #4444bc; */
  /* font-size: 120%; */
  text-align: center;

  display: flex;
  align-items: center;
  h2 {
    min-height: 2em;
  }
}

.service-svg-container {
  width: 7em;
  height: 7em;
  background-color: #4444bc;
  border-radius: 7em;
  flex-direction: column;
  align-content: center;
  color: white;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: column;
  align-content: center;
}

.service-svg {
  height: 75%;
}

.service-description {
  font-size: normal;
}

.service-text {
  p {
    text-align: left;
  }

  li {
    text-align: left;
  }
}

.autism-service-group {
  display: grid;
  grid-template-columns: 1fr 4fr;
}

.autism-service-name {
  font-weight: bold;
  /* width: 40em;
    display: flex;
    flex-basis: auto; */
}

.autism-service-description {
  /* display: flex;
    flex-direction: column;
    flex-basis: auto; */
  font-family: "Verdana", sans-serif;
  p {
    display: flex;
    text-align: left;
    margin-top: 0px;
  }
}

/* POLICIES PAGE */
.policy-container {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  margin-bottom: 1em;
  div {
    padding: 0.2em;
  }
}

/* ABOUT-US PAGE */

.two-columns {
  display: grid;
  grid-template-columns: 1fr 3fr;
}

.two-columns-even {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.two-columns-left {
  display: flex;
  flex-direction: column;
}

.two-columns-right {
  padding-left: 1em;
  text-align: left;
}

/* CONTACT PAGE */

.contact-title {
  font-weight: bold;
  text-align: right;
}

.contact-value {
  text-align: left;
}

.contact-section {
  background-image: none !important;
}

.contact-sand {
  background-image: url("/assets/img/sand.avif");
  background-size: cover;
  width: 100%;
  height: 10em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sand-header {
  background-color: white;
  font-size: 200%;
  width: fit-content;
  padding: 0.4em;
}

/*  MENUBAR */
.menubar-container {
  z-index: 1000;
  position: sticky;
  top: 0px;
  min-height: 4em;
  background-color: black;
  color: white;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.menubar {
  height: 4em;
  max-width: 900px;
}

.menubar {
  padding: 0px;
  margin: 0px;
  /* height: 100%; */
  list-style-type: none;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-content: space-around;
}

.menubar div {
  text-decoration: none;
}

.menubar div {
  height: 100%;
  padding-left: 0.7em;
  padding-right: 0.7em;
  border-top: solid;
  border-color: black;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
}

.menubar a {
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.menubar div:hover {
  color: #7272e8;
  border-top: solid;
}
.consults-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.consult-container {
  padding-left: 2em;
  padding-right: 2em;
}

.consult-subheader {
  font-size: 120%;
  padding: 1em;
}
.consult-big {
  color: black;
  font-size: 4em;
}

.text {
  line-height: 1.3;
  max-width: 40em;
  text-align: justify;
}

footer {
  background-color: black;
  padding: 0px;
  margin: 0px;
  color: white;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-content: space-around;
}

.footer-container {
  display: flex;
  flex-direction: row;
}

.footer-part {
  padding-left: 1em;
  padding-right: 1em;
  padding-top: 0.5em;
  padding-bottom: 2em;
}

.footer-part p {
  margin: 0px;
  padding: 0px;
  font-size: small;
}

.mobile {
  display: none;
}

@media (max-width: 750px) {
  html {
    scroll-behavior: smooth;
  }

  .desktop {
    display: none;
  }

  .menubar-container-mobile {
    z-index: 1000;
    position: sticky;
    top: 0px;
    min-height: 3em;
    background-color: black;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: center; */
    /* margin-top: 5px; */
  }

  #mobile-menu {
    transition-property: all;
    transition-duration: 1s;
  }
  .mobile-menu-invisible {
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    height: 0;
    color: white;
    margin-top: 0;
    margin-bottom: 0;
    height: 0em;
  }

  .mobile-menu-invisible a {
    visibility: invisible;
    height: 0;
    text-decoration: none;
    color: white;
    font-size: 0%;
    margin-top: 0;
  }
  .mobile-menu-visible {
    visibility: visible;
    opacity: 1;
    display: flex;
    flex-direction: column;
    color: white;
    margin-top: 1em;
    margin-bottom: 1em;
  }

  .mobile-menu-visible a {
    text-decoration: none;
    color: white;
    font-size: 120%;
    margin-top: 0.3em;
  }

  .header-name {
    font-size: 200%;
    color: white;
    margin-top: 7px;
  }

  .toggle-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 150%;
  }

  .hero {
    height: 100vh;
  }
  .services-container {
    display: flex;
    flex-direction: column;
  }

  .service-svg-container {
    width: 3em;
    height: 3em;
    background-color: #4444bc;
    border-radius: 3em;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    align-content: center;
  }

  .service-text {
    p {
      text-align: center;
    }

    li {
      text-align: left;
    }
  }

  .logo-mobile {
    margin-top: 100px;
    display: block;
  }

  .logo-container {
    margin-top: 0px;
    margin-left: 10px;
    margin-right: 10px;
    padding: 2px;
    opacity: 0.9;
  }
  .logo-container .logo {
    display: none;
  }

  .logo-container .lighthouse {
    font-size: 200%;
  }

  .name-details {
    max-width: fit-content !important;
    padding-left: 0 !important;
    text-align: center !important;
    width: 100% !important;
  }

  .logo-container .tagline {
    padding-top: 1em;
    font-size: 80%;
    font-family: "Verdana", sans-serif;
  }

  .logo-container-top {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .button {
    margin-top: 1em;
    margin-bottom: 1em;
  }

  .service-svg-container {
    margin-top: 1em;
  }

  .service-name {
    /* min-height: 2em; */
    font-weight: bold;
    h2 {
      min-height: 1em;
    }
  }
  .consults-container {
    display: flex;
    flex-direction: column;
  }

  .consult-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  .consult-big {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 2em;
    padding-right: 0.2em;
  }

  .consult-subheader {
    display: none;
  }

  /* OUR SERVICES PAGE */
  .autism-service-group {
    display: grid;
    grid-template-columns: 1fr;
  }

  .autism-service-description {
    padding-top: 1em;
    p {
      text-align: center;
    }
  }

  /* POLICIES PAGE */
  .policy-container {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 1em;
    div {
      padding: 0.2em;
    }
  }

  /* ABOUT-US PAGE */

  .two-columns {
    display: grid;
    grid-template-columns: 1fr;
  }

  .two-columns-even {
    display: grid;
    grid-template-columns: 1fr;
  }

  /* CONTACT PAGE */

  .contact-title {
    text-align: center;
  }
  .contact-value {
    text-align: center;
  }
  /* FOOTER */

  .footer-container.desktop {
    display: none;
  }

  .footer-container {
    display: flex;
    flex-direction: column;
  }

  .footer-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-part {
    padding-bottom: 0;
  }
}
