:root {
  --bgcolor-light: #f2f2f2;
  --bgcolor-darkest: #337;
  --textcolor: #090909;
  --textcolor-light: #f2f2f2;
  --linkhovercolor: #3a5;
  --fontsize: 1.15rem;
}

* {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font-family: Arial;
}

body {
  background-color: var(--bgcolor-light);
}

header {
  width: 100vw;
  height: 10vh;
  background-color: var(--bgcolor-darkest);
  color: var(--textcolor-light);
  font-size: var(--fontsize);
  margin-bottom: 5vh;

  display: flex;
  justify-content: space-evenly;
}

header #project-name {
  align-self: center;
  font-size: 1.8rem;
}

header h3,
header a {
  font-weight: normal;
}

#header-flex-wrapper {
  width: 40vw;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}

#header-flex-wrapper > a {
  text-decoration: unset;
  color: var(--textcolor-light);
  align-self: center;
}

#header-flex-wrapper a:hover {
  color: var(--linkhovercolor);
}

#container {
  display: grid;
  grid-template-columns: 1fr 16fr 8fr 1fr;
  grid-column-gap: 0.5vw;
}

#map {
  height: 80vh;
  border: 1px solid #999;
}

#sidebar {
  height: 80vh;
  background-color: var(--bgcolor-light);
  border: 1px solid #999;
}

#content-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  border-bottom: 1px solid #999;
  height: 50%;
}

#content {
  height: 100%;
  width: 90%;
  background-color: var(--bgcolor-light);
  color: var(--textcolor);
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 100%;
}

#dropdowns {
  height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

#dropdowns-centering-box {
  height: 75%;
  width: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#dropdowns-centering-box div {
  width: 221px;
}

#dropdowns-centering-box div select {
  width: 220px;
  margin-top: 2px;
  border: 1px solid #999;
  font-size: 90%;
}

#dropdowns button {
  border: 1px solid #999;
  width: fit-content;
  color: var(--textcolor-light);
  background-color: var(--bgcolor-darkest);
  padding: 3px 5px 3px 5px;
  border-radius: 3px;
  box-shadow: 1px 1px 1px #999;
}

#dropdowns button:active {
  box-shadow: none;
  margin-top: 1px;
  margin-bottom: -1px;
}
.gutter {
  background-color: var(--bgcolor-light);
}

@media (orientation: portrait) {
  header {
    height: 8vh;
    margin-bottom: 3vh;
  }
}
@media (orientation: portrait) and (max-width: 780px) {
  header #project-name {
    font-size: 1.6rem;
  }
  #container {
    display: flex;
    flex-direction: column;
  }
  #left-gutter {
    display: none;
  }
  #right-gutter {
    display: none;
  }
  #map {
    height: 50vh;
    width: 90vw;
    margin-left: 5vw;
  }
  #sidebar {
    display: flex;
    flex-direction: row-reverse;
    height: 30vh;
    width: 90vw;
    margin-left: 5vw;
    font-size: 90%;
  }
  #dropdowns {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #dropdowns-centering-box {
    width: auto;
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  #dropdowns-centering-box div {
    display: flex;
    flex-direction: column;
    width: 201px;
  }
  #dropdowns-centering-box div select {
    border: 1px solid #999;
    width: 200px;
  }
  #dropdowns-centering-box button {
    font-size: 120%;
  }
  #content-wrapper {
    width: 50%;
    height: 100%;
    border-left: 1px solid #999;
    border-bottom: none;
  }
  #content {
    height: 100%;
    background-color: var(--bgcolor-light);
    color: var(--textcolor);
    font-size: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
@media (orientation: portrait) and (max-width: 500px) {
  header {
    font-size: 4vw;
  }
  header #project-name {
    font-size: 5vw;
  }
  #dropdowns-centering-box {
    width: 90%;
  }
  #dropdowns-centering-box div {
    width: 100%;
  }
  #dropdowns-centering-box div label {
    width: fit-content;
    font-size: 3vw;
  }
  #dropdowns-centering-box div select {
    width: 100%;
    margin-top: 5px;
    font-size: 3vw;
  }
  #content {
    font-size: min(4vw, 90%);
  }
}
@media (orientation: portrait) and (max-height: 510px) {
  #content {
    font-size: 70%;
  }
}
@media (orientation: landscape) and (max-height: 640px) {
  #content {
    font-size: 2.5vh;
  }
}
@media (orientation: landscape) and (max-height: 510px) {
  #dropdowns-centering-box {
    height: 90%;
  }
  #dropdowns-centering-box div label,
  #dropdowns-centering-box div select,
  #dropdowns-centering-box button {
    font-size: 80%;
  }
}
@media (orientation: landscape) and (max-height: 400px) {
  #dropdowns {
    justify-content: flex-start;
  }
  #dropdowns-centering-box {
    height: 95%;
    justify-content: space-evenly;
  }
  #dropdowns-centering-box div label,
  #dropdowns-centering-box div select,
  #dropdowns-centering-box button {
    font-size: 3vh;
  }
  #dropdowns-centering-box div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  #dropdowns-centering-box div select {
    margin: 0px;
  }
  #dropdowns-centering-box button {
    margin-top: 4px;
    padding: 2px 4px 2px 4px;
  }
  #dropdowns-centering-box button:active {
    box-shadow: none;
    margin-top: 5px;
    margin-bottom: -1px;
  }
}
/***********************************************************
                        ABOUT PAGE
********************************************************** */

#project-name a {
  text-decoration: unset;
  color: var(--textcolor-light);
}

#about-container {
  width: 99.5vw;
  height: 80vh;
  display: grid;
  justify-content: center;
  grid-template-rows: 1fr 8fr 1fr;
  grid-template-columns: 1fr 6fr 1fr;
}

#about-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

#about-text-area {
  width: 80vw;
  max-width: 620px;
  color: var(--textcolor);
  font-size: 1.2rem;
}

#about-text-area p {
  margin-bottom: 1vh;
}

#about-text-area a {
  text-decoration: unset;
  color: var(--linkhovercolor);
}

#about-text-spacer {
  height: 4vh;
}
