/* GENERAL STUFF */

:root {
  --bg-color: rgb(241, 242, 242);
  --black: rgb(35, 58, 94);
  --pink: rgb(253, 223, 222);
  /* --black: rgb(88, 89, 91); */
}

::selection {
  background: var(--pink);
}

body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  background-color: var(--bg-color);
  color: var(--black);
}

h1,
h2 {
  font-family: "Cormorant Infant", serif;
}

nav {
  padding-top: 2em;
}

#logo {
  width: 50px;
  margin-top: -0.3em;
}

/* NAV BTTN */

.nav_bttn {
  float: right;
  cursor: pointer;
  position: relative;
  z-index: 10;
  margin-bottom: 3em;
}

.line1,
.line2 {
  display: block;
  height: 2px;
  background-color: var(--black);
  transition: all 0.5s;
}

.line1 {
  width: 30px;
}

.line2 {
  width: 20px;
  float: right;
  margin-top: 0.5em;
}

.line1_x {
  transform: rotate(45deg) translate(7px, 7px);
}

.line2_x {
  width: 30px;
  transform: rotate(-45deg);
}

/* NAV LINE */

.nav_line {
  width: 110%;
  height: 50%;
  position: fixed;
  transform: translate(-10px, 120%);
  z-index: 2;
  visibility: hidden;
  display: none;
}

.nav_line_active {
  visibility: visible;
  display: block;
}

.nav_path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  visibility: hidden;
  animation-play-state: paused;
}

@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}

.play {
  visibility: visible;
  animation: 1s linear 0.2s forwards dash;
  animation-play-state: running;
}

/* NAV CONTAINER */

.nav_bg {
  background-color: transparent;
  width: 100%;
  height: 100%;
  position: unset;
  z-index: 1;
  opacity: 0;
  transition: all 0.5s;
}

.nav_bg_open {
  position: absolute;
  background-color: var(--bg-color);
  opacity: 1;
}

.nav_container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.5s;
  z-index: 1;
}

.nav_open {
  opacity: 1;
}

.hide_overflow {
  overflow: hidden;
}

.links {
  display: none;
  flex-direction: column;
  text-align: center;
  position: relative;
  font-size: 1.5em;
}

.links_active {
  display: flex;
}

.links a {
  color: var(--black);
  margin-bottom: 1.5em;
  text-decoration: none;
  box-shadow: inset 0 0 0 0 var(--pink);
  transition: all 0.5s;
}

.links a:hover {
  box-shadow: inset 0 -5px 0 0 var(--pink);
}

/* MEDIA QUERIES */

@media (min-width: 768px) {
  #logo {
    width: 60px;
    margin-top: 0;
  }

  nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .nav_bg {
    display: none;
  }

  .nav_line,
  .nav_bttn {
    display: none;
  }

  .nav_container {
    height: unset;
    opacity: 1;
    position: unset;
    left: unset;
    top: unset;
    transform: translate(0%, 0%);
  }

  .links {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    position: unset;
    top: unset;
    left: unset;
    transform: unset;
    text-align: unset;
    font-size: 1.3em;
    margin-bottom: 2em;
  }

  .links a {
    margin-left: 2em;
  }
}

@media (min-width: 1200px) {
  .links {
    font-size: 1.5em;
  }

  .links a {
    margin-left: 4em;
  }
}
