body {
  margin: 0;
  font-family: "Work Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.5;
  color: #333;
  overflow-x: hidden;
}
/* SCROLLBAR */
::-webkit-scrollbar {
  width: 7px;
}
.logo{
  padding-left: 0px;
  background-color: transparent !important;
}
/* Track */
::-webkit-scrollbar-track { 
  background: rgba(0, 0, 0, 0.2);
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--navbar-color); 
  border-radius: 10px;
  border: white 1px solid;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: grey; 
}
.nav-list{
  text-align: center;
  padding-top: 10vh;
}

/* navigation styles start here */

header {
  text-align: center;
  position: fixed;
  z-index: 999;
  width: 100%;
  background-color: var(--navbar-color);
}

.header-logo{
  position: absolute;
  left: 15px;
  top: 10px;
}
/* changed this from the tutorial video to
   allow it to gain focus, making it tabbable */
.nav-toggle {
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
}

.nav-toggle:focus ~ .nav-toggle-label {
  outline: 3px solid rgba(lightblue, .75);
}

.nav-toggle-label {
  position: absolute;
  top: 30px;
  right: 0;
  padding-right: 1em;
  height: 100%;
  height:30px;
  align-items: center;
}

.navbar-mobile{
  width: 100%;
  height: 60px;
  background-color: var(--navbar-color);
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: white;
  height: 2px;
  width: 1.5em;
  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: center;
  top: 100%;
  left: 0;
  width: 100%;
  transform: scale(1, 0);
  transform-origin: top;
  transition: transform 400ms ease-in-out;
  height: 100vh;
  background-color: var(--navbar-color)
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

nav li {
  margin-bottom: 1em;
  margin-left: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 150ms ease-in-out;
  font-weight: 500;
}

nav a:hover {
  color: var(--nav-links-color);
  font-weight: 600;
}

.nav-dropdown {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  margin-top: 1px;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
  color: white;
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 150ms ease-in-out;
  font-weight: 500;
}

.nav-dropdown summary .dropdown-caret {
  font-size: 0.7rem;
  line-height: 1;
  transform: translateY(-1px);
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown .dropdown-menu {
  display: none;
  margin-top: 0.75rem;
  padding-left: 0.75rem;
  list-style: none;
  position: relative;
  right: 0;
}

.nav-dropdown[open] .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.nav-dropdown .dropdown-menu li {
  margin: 0.75rem 0;
}

.nav-toggle:checked ~ nav {
  transform: scale(1,1);
}

.nav-toggle:checked ~ nav a {
  opacity: 1;
  transition: opacity 250ms ease-in-out 250ms;
}



@media screen and (min-width: 1024px) {
  .navbar-mobile{
    display: none;
  }
  .nav-list{
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    margin-right: 2rem;
  }
  .nav-toggle-label {
    display: none;
  }

  header {
    display: grid;
    grid-template-columns: 0.3fr 0fr 5fr;
    align-items: center;
    justify-content: center;
  }
  .logo{
    padding-left: 20px;
  }
  .header-logo{
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
    position: relative;
    left: 0;
    top: 0;
  }
  .logo {
    background-color: var(--navbar-color)
  }
  
  nav {
    all: unset; /* this causes issues with Edge, since it's unsupported */
    /* the following lines are not from my video, but add Edge support */
    position: relative;
    text-align: left;
    transition: none;
    transform: scale(1,1);
    background: none;
    top: initial;
    left: initial;
    /* end Edge support stuff */
    
    grid-column: 3 / 4;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  
  nav ul {
    display: flex;
  }
  
  nav li {
    margin-left: 2em;
    margin-bottom: 0;
  }
  
  nav a {
    opacity: 1;
    position: relative;
  }

  .nav-dropdown summary {
    opacity: 1;
    position: relative;
  }

  .nav-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: auto;
    right: 0;
    min-width: 180px;
    padding: 0.75rem 1rem;
    background-color: var(--navbar-color);
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 2;
  }

  .nav-dropdown .dropdown-menu li {
    margin: 0.5rem 0;
  }
  
  nav a::before,
  .nav-dropdown summary::before {
    content: '';
    display: block;
    height: 2px;
    width: 75%;
    margin: auto;
    background: white;
    position: absolute;
    bottom: -.75em;
    left: 0;
    right: 0;
    transform: scale(0, 1);
    transition: transform ease-in-out 250ms;
  }
  
  nav a:hover::before,
  .nav-dropdown summary:hover::before,
  .nav-dropdown[open] summary::before {
    transform: scale(1,1);
  }
}

@media screen and (min-width: 1440px){
  header{
     grid-template-columns: 0.15fr 0fr 5fr;
  }
}

.nav-toggle:checked ~ nav .nav-dropdown summary {
  opacity: 1;
  transition: opacity 250ms ease-in-out 250ms;
}