/*
SE ITTP Color Pallet

dark blue = hsl(203, 72%, 30%)
light blue = hsl(198, 79%, 47%)

dark orange = hsl(26, 65%, 45%)
light orange = hsl(33, 94%, 55%)
*/


/* General */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: hsl(0, 0%, 10%);
  margin: 0;
}


/* Side Nav */
nav {
  position: absolute;
  height: 100%;
  width: 20%;
  background-color: hsl(203, 72%, 30%);
  color: hsl(0, 0%, 100%);
  padding: 0 32px;
}

ul {
  list-style-type: none;
}

#nav-icon {
  text-align: center;
  margin: 16px 0;
}

#nav-icon > i {
  font-size: 5em;
}

#nav-title > h1 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 8px;
}

#nav-title > p {
  text-align: center;
  margin-top: 0;
  margin-bottom: 32px;
}

#nav-dropdown {
  display: none;
}

@media only screen and (max-width: 768px) {
  nav {
    height: 14%;
    width: 100%;
    z-index: 1;
    transition-duration: 1s;
  }

  #nav-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0;
  }

  #nav-icon {
    text-align: left;
    margin: 0;
  }

  #nav-icon > i {
    width: 64px;
    font-size: 3em;
    text-align: center;
    line-height: 64px;
    vertical-align: middle;
  }

  #nav-title > h1,
  #nav-title > p {
    text-align: left;
    margin: 0;
  }

  #nav-title > h1 {
    font-size: 1.25em;
  }

  #nav-dropdown {
    display: block;
  }

  #nav-dropdown > i {
    width: 64px;
    text-align: center;
    line-height: 64px;
    vertical-align: middle;
  }
}


/* Menu Bar */
#menuSearch > input {
  width: 100%;
  background-color: inherit;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  border: none;
  border-bottom: solid 2px white;
  outline: none;
}

#menuSearch > input::placeholder {
  color: inherit;
}

#menu {
  position: absolute;
  top: 230px;
  left: 32px;
  right: 32px;
  bottom: 16px;
  overflow: scroll;
  font-size: .8em;
  line-height: 1.25em;
}

#menu::-webkit-scrollbar {
  display: none;
}

#menu h2,
#menu a {
  font-weight: 600;
}

#menu h2 {
  background-color: hsl(33, 94%, 55%);
  font-size: inherit;
  text-align: center;
  border-right: solid 4px hsl(26, 65%, 45%);
  border-bottom: solid 4px hsl(26, 65%, 45%);
  border-radius: 16px;
  padding: 8px;
  margin-top: 8px;
  margin-bottom: 16px;
  transition-duration: .2s;
}

#menu h2:hover {
  margin-top: 0;
  margin-bottom: 24px;
  cursor: pointer;
}

#menu a {
  display: block;
  color: inherit;
  font-size: inherit;
  text-decoration: inherit;
  margin-bottom: 16px;
  transition-duration: .2s;
}

#menu a:hover {
  margin-left: 8px;
}

#menu > ul {
  padding-top: 8px;
  padding-left: 0;
  margin: 0;
}

#menu > ul ul {
  overflow: hidden;
  max-height: 0;
  padding-left: 24px;
}

#menu .sub-on > ul {
  max-height: none;
}

@media only screen and (max-width: 768px) {
  #menuSearch {
    position: absolute;
    top: 110px;
    left: 32px;
    right: 32px;
    bottom: 0;
    overflow: hidden;
  }

  #menu {
    top: 134px;
  }
}


/* iFrame */
iframe {
  position: absolute;
  top: 0;
  right: 0;
  border: none;
  width: 80%;
  height: 100%;
}

@media only screen and (max-width: 768px) {
  iframe {
    top: 14%;
    width: 100%;
    height: 86%;
  }
}