
html, button { 
  font-family: muli, sans-serif;
}

body {
  margin: 0;
  overflow-x: hidden;
}

:root {
  --light-text-colour: #7D7987; 
  --text-colour: #637082;
  --heading-colour: #233348; 
  --accent-colour: #63C9AA; 
  --dark-button: #233348;
  --dark-background: #233348; 
  --invalid-colour: #E54040;
}

.heading {
  font-family: playfair-display, serif;
  font-weight: 900;
  font-style: normal;
  color: var(--heading-colour);
}

.heading a {
  text-decoration: none;
  color: var(--heading-colour);
}

h1, h2, h3, h4, h5, h6, small, span {
  color: var(--heading-colour);
  font-weight: normal;
}

h1 {
  font-size: 2.5rem;
  margin: 0;
}

h2 {
  font-size: 2rem;
  margin: 0;
}

h3 {
  font-size: 1.75rem;
  margin: 0;
}

h4 {
  font-size: 1.5rem;
  margin: 0;
}

h5 {
  font-size: 1.25rem;
  margin: 0;
}

h6 {
  font-size: 1rem;
  margin: 0;
}

p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 160%;
  color: var(--text-colour);
  margin: 0;
}

small {
  font-size: 0.875rem;
}

.bg-accent {
  background-color: var(--accent-colour);
}

.accent {
  color: var(--accent-colour);
}

nav a {
  color: var(--text-colour);
  font-size: 0.875rem;
}

a {
  text-decoration: none;
}

.auth__label {
  font-size: 0.875rem;
}

.auth__input {
  position: relative;
  width: 100%;
  margin: 0.5rem 0 1.5rem 0;
}
.auth__input input, .auth__input textarea, .auth__input select {
  position: relative;
  height: 3.75rem;
  width: 100%;
  max-width: 31.25rem;
  border: 2px solid rgb(0,0,0);
  border: 2px solid rgba(0,0,0,5%);
  border-radius: 0.75rem;
  padding: 0 1.5rem;
  box-sizing: border-box;
  outline: none;
}

.auth__input input:focus, .auth__input textarea:focus, .auth__input-select select:focus {
  border: 2px solid var(--heading-colour);
}

.auth__input input::placeholder, .auth__input textarea::placeholder {
  color: var(--heading-colour);
  opacity: 0.6;
}

.auth__input img {
  top: 50%;
  transform: translateY(-50%);
  right: 24px;
  height: 1.5rem;
  width: 1.5rem;
  position: absolute;
}

.auth__input textarea {
  font-family: muli, sans-serif;
  padding: 1rem 1.5rem;
  min-height: 7.5rem;
}

.auth__input-select {
  overflow: hidden;
}

.auth__input-select select {
  display: block;
	padding: 0 1.5rem;
  background: url("static/icons/br_down.png"); 
  background-repeat: no-repeat;
  background-position: 95%;
	appearance: none; 
	-webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.auth__input-select select::-ms-expand {
  display: none;
}

.auth__input-select select.disabled {
  color: var(--light-text-colour);
}

.overlay {

  display: flex;
  align-items: center;
  justify-content: center;

  position: fixed;
  background-color: rgba(0, 0, 0, 0.24);
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  
}

.modal {

  background: #FFFFFF;
  position: relative;
  box-shadow: 0px 4px 4px rgba(203, 203, 203, 0.25);
  border-radius: 1.25rem;  
  width: 100%;
  max-width: 1040px;
  overflow: scroll;
  max-height: 80%; 

}

.modal__close {

  position: absolute;
  top: 0;
  right: 0;
  padding: 3rem;
  z-index: 15;
  cursor: pointer;
  height: 1.5rem;
  width: 1.5rem;
  transition: transform .25s ease-in-out;

}

.modal__close:hover {
  transform: rotate(180deg); 
}

.modal__nav {

  padding: 1.25rem;
  margin: 0 1.5rem;
  background-color: rgba(255,255,255,0.6);
  border-radius: 1.25rem;  
  transition: background-color .25s linear;
  cursor: pointer;

}

.modal__nav:hover {
  background-color: rgba(255,255,255,1);
}

@media only screen and (max-width: 576px) {

  .overlay {

    padding: 4rem 2rem;
    box-sizing: border-box;
    align-items: unset;
    justify-content: center;

  }

  .overlay > img {
    display: none;
  }
  
  .modal {
    overflow: scroll;
  }
  
}