@font-face {
  font-family: 'Open Sans', sans-serif;
  font-style:   normal;
  font-weight:  400;
}

/*
Base
 */
html {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  height: auto;
  min-height: 100%;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.5rem;
  color: #000;
}

h1 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 4rem;
  text-transform: uppercase;
  letter-spacing: 0.5rem;
  line-height: 5.5rem;
}

h2 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 1.625rem;
  line-height: 2rem;
  letter-spacing: 0.16rem;
  font-style: normal;
  text-transform: uppercase;
  margin: 0 0 16px 0;
}

h3 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.5rem;
  letter-spacing: 0.12rem;
  font-style: normal;
  text-transform: uppercase;
  margin: 0 0 1.5rem 0
}

h4 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.2rem;
  letter-spacing: 0.06rem;
  font-style: normal;
  text-transform: uppercase;
  margin: 0;
}

h5 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 1.625rem;
  line-height: 2rem;
  font-style: normal;
  text-transform: uppercase;
  margin: 0.75rem 0;
}

h6 {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1rem;
  font-style: normal;
  margin: 0 0 0.5rem 0;
}

p, label, button, ul li {
  font-family: 'Open Sans', sans-serif;
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
  line-height: 1.8rem;
}

p.small {
  font-size: 0.75rem;
  margin: 0;
  line-height: 1.2rem;
}

ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

a:link, a:hover, a:visited, a:active {
  text-decoration: none;
  color: #000;
}

a:hover {
  color: #000;
  text-decoration: underline;
}

label {
  font-style: normal;
  display: block;
  margin: 0 0 0.2rem 0;
}

.content {
  width: calc(100% - 3rem);
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

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

.pageHeader h5 {
  margin-top: 0;
}

.pageHeader p {
  margin: 0;
}


/* Modal */

#overlay {
  visibility: hidden;
  background-color: #000;
  opacity: 20%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal {
  visibility: hidden;
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100%;
  background-color: #FFF;
  border-radius: 12px 0 0 12px;
  padding: 20px 0;
  box-shadow: 2px 2px 12px 2px rgba(174, 157, 203, 0.25);
  transition: right 0.2s ease-out;
}

.modal .content {
  gap: 0.5rem;
}

.modal #teachers-list {
  height: 75vh;
  overflow-y: scroll;
  overflow-x: hidden;
  margin-bottom: 0;
}

.modal h5 {
  margin-top: 0;
}

.modal #teachers-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 0;
}

.modal #teachers-list li img {
    width: 100px;
}

.modal .socials {
  margin: 0;
  gap: 0.2rem;
  flex-direction: row;
}

.modal .socials li {
    height: 30px;
}

.modal .socials p {
  margin: 0;
  line-height: 30px;
  font-size: 0.75rem;
  font-weight: 600;
}

#overlay.active{
  visibility:visible;
}

.modal.active {
  visibility:visible;
  right: 0;
  transition: right 0.5s ease-out;
}

.no-scroll {
  overflow: hidden;
}



/* iPhone version */
@media screen and (max-width: 512px) { 
  .modal {
    width: 95%;
  }

  .modal #teachers-list li img {
    width: 80px;
  }
}