@import url("https://fonts.googleapis.com/css2?family=Shrikhand&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Marko+One&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Yatra+One&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Potta+One&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Chela+One&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,200;0,300;0,400;0,600;0,700;1,200;1,300;1,400;1,600;1,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");

:root {
  --bg-color-1: rgb(255, 222, 36);
  --bg-color-2: rgb(238, 146, 146);
}
* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color-2);
  /* background-image: linear-gradient(
    45deg,
    var(--bg-color-1) 0%,
    var(--bg-color-1) 50%,
    var(--bg-color-2) 50%,
    var(--bg-color-2) 100%
  ); */

  font-family: "Shrikhand";
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

nav {
  background-color: var(--bg-color-1);
  padding: 20px;
  width: 10vw;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
  transition: width 0.6s ease;
}

nav.active {
  width: 50vw;
}

nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 0;
  transition: width 0.8s ease;
  overflow: hidden;
}

nav.active ul {
  width: 100%;
}

nav ul li {
  opacity: 0;
  transition: opacity 1s ease;
}

nav.active ul li {
  opacity: 1;
}

nav ul li a {
  position: relative;
  text-decoration: none;
  color: rgb(31, 31, 133);
  margin: 0 1rem;
  font-size: 1.5rem;
}

.icon {
  background-color: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  position: relative;
  height: 30px;
  width: 30px;
}

.icon:focus {
  outline: 0;
}

.icon .line {
  background-color: rgb(31, 31, 133);
  height: 3.5px;
  width: 30px;
  position: absolute;
  transition: transform 0.7s ease-in-out;
}
.icon .line1 {
  top: auto;
  bottom: 21px;
}

.icon .line2 {
  top: auto;
  bottom: 13px;
}

.icon .line3 {
  top: auto;
  bottom: 5px;
}

nav.active .icon .line1 {
  transform: rotate(405deg) translateY(5.5px);
  width: 25px;
  bottom: 18px;
}

nav.active .icon .line2 {
  transform: rotate(405deg) translateY(-5.5px);

  width: 25px;
  bottom: 10px;
  opacity: 0;
}
nav.active .icon .line3 {
  transform: rotate(405deg) translateY(-5.5px);
  width: 25px;
  bottom: 10px;
}
