:root {
  --theme: #c70039;
  --background: #f26971;
  --highlight: #880c13;
  --textbackground: #eeeeee;
}

*, *::before, *::after {
  box-sizing: border-box;
}
  
header {
  background: var(--background);
  text-align: center;
  position: fixed;
  z-index: 999;
  width: 100%;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
}

body {
  background: var(--textbackground);
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
}
  
/* changed this from the tutorial video to
   allow it to gain focus, making it tabbable */
.nav-toggle {
  position: absolute;
  top: -9999px;
  left: -9999px;
}
  
.nav-toggle-label {
  position: absolute;
  top: 0;
  left: 0;
  margin-left: 1em;
  height: 100%;
  display: flex;
  align-items: center;
}
  
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: white;
  height: 2px;
  width: 2em;
  border-radius: 2px;
  position: relative;
}
  
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
  }
  
.nav-toggle-label span::before {
  bottom: 7px;
}
  
.nav-toggle-label span::after {
  top: 7px;
}

nav {
  position: absolute;
  text-align: left;
  top: 100%;
  left: 0;
  background: var(--background);
  width: 100%;
  transform: scale(1, 0);
  transform-origin: top;
  transition: transform 200ms ease-in-out;
}
  
nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
  
nav li {
  margin-bottom: 1em;
  margin-left: 1em;
}
  
nav a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-variant: small-caps;
  opacity: 0;
  transition: opacity 100ms ease-in-out;
}
  
nav a:hover {
  color: var(--highlight);
}
  
.nav-toggle:checked ~ nav {
  transform: scale(1,1);
}
  
.nav-toggle:checked ~ nav a {
  opacity: 1;
  transition: opacity 200ms ease-in-out 200ms;
}
  
@media screen and (min-width: 900px) {
  .nav-toggle-label {
    display: none;
  }
  
  header {
    display: grid;
    grid-template-columns: 1fr auto minmax(600px, 3fr) 1%;
  }
    
  .logo {
    grid-column: 1;
  }
    
  nav {
    position: relative;
    text-align: left;
    transition: none;
    transform: scale(1,1);
    background: none;
    top: initial;
    left: initial;

    grid-column: 3 / 4;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
    
  nav ul {
    display: flex;
  }
    
  nav li {
    margin-left: 3em;
    margin-bottom: 0;
  }
    
  nav a {
    opacity: 1;
    position: relative;
  }
    
  nav a::before {
    content: '';
    display: block;
    height: 5px;
    background: var(--highlight);
    position: absolute;
    top: -.75em;
    left: 0;
    right: 0;
    transform: scale(0, 1);
    transition: transform ease-in-out 250ms;
  }
    
  nav a:hover::before {
    transform: scale(1,1);
  }

  body {
    font-weight: 500;
  }
}

select {
  width: 80%;
  padding: 8px;
  border-radius: 6px;
  box-shadow: 2px 2px 4px var(--highlight);
  border: none;
  outline: none;
  display: inline-block;
  appearance: none;
  cursor: pointer;
}

.select-label {
  position: relative;
}

.select-label::after {
  content: '<>';
  font: 10px "Consolas", monospace;
  color: #666;
  transform: rotate(90deg);
  right: 8px;
  top: 2px;
  padding: 0 0 2px;
  border-bottom: 1px solid #ddd;
  position: absolute;
  pointer-events: none;
}
