@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&display=swap');

:root {
  --background: rgba(128, 128, 255, .85);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  font-family: "Oswald", sans-serif;
}

body {
  width: 100%;
  background: #ccccff;
  font-weight: 400;
}

  .header {
    background: var(--background);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
  }

  header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--background);
    z-index: -1;
  }
  
  header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .1), transparent);
    transition: .5s;
  }
  .logo {
    width: 50px;
 /*   margin: 0 auto;*/
  }
  
.navbar a {
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    margin-left: 1rem;
}

.navbar a:hover {
    color: #483D8B;
    background: #ccccff;
}

#check {
    display: none;
}

.icons {
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    display: none;
}

/* Media Queries */

@media only screen and (max-width: 992px) {
  .header {
    padding: 1rem 2%;
    height: 80px;
  }
  
  .navbar a {
    font-size: 1rem;
  }
  
  .icons {
    display: block;
  }
}

@media only screen and (max-width: 768px) {
  .icons {
    display: inline-flex;
  }

  #check:checked ~ .icons #menu-icon {
    display: none;
  }

  .icons #close-icon {
    display: none;
  }

  #check:checked ~ .icons #close-icon {
    display: none;
  }

  
  .navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--background);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    overflow: hidden;
    transition: .3s ease;
  }

  #check:checked ~ .navbar {
    height: 15rem;
  }
  
  .navbar a {
    display: block;
    font-size: 1rem;
    margin: 1rem 0;
    text-align: center;
    transform: translateY(-50px);
  }

  #check:checked ~ .navbar a {
    transform: translateY(0);
    opacity: 1;
    transition-delay: calc(.15s * var(--i));
  }
  

}
