nav {
  /* Dark Theme */
  :root {
    --bg-color: #161e24;
    --text-color: #fffddd;
    --blue-color: #3ca0e7;
    --bg-icon: url("../img/icon3.png");
  }

  &.primary-navigation {
    margin: 0 auto;
    display: block;
    padding: 0;
    text-align: left;
    font-size: 20px;

    ul {
      position: fixed;
      padding-left: 50px;

      @media screen and (max-width: 768px) {
        position: relative;
        padding-left: 20px;
      }
    }

    ul li {
      list-style: none;
      margin: 0;
      border-left: 2px solid #3ca0e7;
      display: block;
      padding: 0 20px;
      position: relative;
      text-align: left;
      font-family: "Monaco", monospace;

      @media screen and (max-width: 768px) {
        padding: 0 10px;
        font-size: 16px;
      }
    }

    li a {
      color: #fffddd;
    }

    li a:hover {
      color: #3ca0e7;
    }

    li:hover {
      cursor: pointer;
    }

    ul li ul {
      visibility: hidden;
      opacity: 0;
      position: absolute;
      padding-left: 0;
      left: 0;
      display: none;
      background: #161e24;
      color: #fffddd;
      border-left: 2px solid #3ca0e7;
    }

    ul li:hover > ul,
    ul li ul:hover {
      visibility: visible;
      opacity: 1;
      display: block;
      left: 120px;
      top: -35px;
      min-width: 250px;
      text-align: left;

      @media screen and (max-width: 768px) {
        position: relative;
        left: 0;
        top: 0;
        padding-top: 10px;
      }
    }

    ul li ul li {
      clear: both;
      width: 100%;
      text-align: left;
      border-style: none;
    }

    ul li ul li a:hover {
      padding-left: 10px;
      border-left: 2px solid #3ca0e7;
      transition: all 0.3s ease;
    }
  }
}

a {
  text-decoration: none;

  &:hover {
    color: #3ca0e7;
  }
}

ul li ul li a {
  transition: all 0.5s ease;
}

body {
  background-color: #161e24;
  color: #fffddd;
  margin: 0;
  padding: 0;
  font-family: "Monaco", monospace;
}

/*
.bg-img {
    position: absolute;
    left: 35%;
    width: 800px;
    height: 800px;
    background-image: url("../img/icon3.png"); 
    background-size: 100%;
    background-repeat: no-repeat;
    animation: backgroundImageIn, backgroundImageRotate;
    animation-duration: 1s, 600s;
    animation-delay: 0s, 1s;
    animation-timing-function: ease-out;
  }
*/


.bg-img {
  position: fixed;
  left: 35%;
  width: 800px;
  height: 800px;
  background-image: url("../img/icon3.png");
  background-size: 100%;
  background-repeat: no-repeat;
  animation: backgroundImageIn 1s ease-out, backgroundImageRotate 600s ease-out;
  z-index: -1;
  

  @media screen and (max-width: 768px) {
    width: 400px;
    height: 400px;
    left: 10%;
    top: 10%;
  }

  @media screen and (max-width: 480px) {
    width: 300px;
    height: 300px;
    left: 5%;
    top: 5%;
  }
}

main {
  position: relative;
  padding: 20px;
  font-family: "Monaco", monospace;
  animation: transitionIn 1s ease-out;

  @media screen and (max-width: 768px) {
    padding: 20px 10px;
  }

  @media screen and (min-width: 769px) and (max-width: 1375px) {
    left: 40%;
    padding-right: 50%;
  }

  @media screen and (min-width: 1376px) {
    left: 25%;
    padding-right: 40%;
  }
}

h1 p {
  position: fixed;
  top: 30px;
  padding-left: 50px;

  @media screen and (max-width: 768px) {
    position: relative;
    padding-left: 20px;
    top: 0;
  }
}

footer {
  position: fixed;
  bottom: 3%;
  padding-left: 45px;
  font-family: "Monaco", monospace;
  font-size: 20px;

  @media screen and (max-width: 768px) {
    position: relative;
    padding-left: 20px;
    font-size: 16px;
    bottom: 0;
  }
}

.linkedin {
  height: 35px;
  display: inline-block;
  position: relative;
  top: 10px;
  margin: 0;
  padding: 0;
}

.footertext {
  display: inline-block;
  margin: 0;
  padding: 0;
  color: #fffddd;
}

.light-dark {
  display: inline-block;
  position: fixed;
  bottom: 3%;
  padding-left: 45px;
  right: 2%;
  margin: 0;
  padding: 0;
  color: #fffddd;
  font-family: "Monaco", monospace;
  font-size: 20px;

  @media screen and (max-width: 768px) {
    position: relative;
    right: 0;
    padding-left: 20px;
    font-size: 16px;
    bottom: 0;
  }
}

.light-dark_text {
  display: inline-block;
  padding-left: 45px;
  right: 2%;
  margin: 0;
  padding: 0;
  color: #fffddd;
  font-family: "Monaco", monospace;
  font-size: 20px;

  @media screen and (max-width: 768px) {
    padding-left: 20px;
    font-size: 16px;
  }
}

@keyframes transitionIn {
  from {
    opacity: 0;
    transform: translate(0px, 10px);
  }
  to {
    opacity: 1;
    transform: translate(0px, 0px);
  }
}

@keyframes backgroundImageIn {
  from {
    opacity: 0;
    transform: rotate(-45deg);
  }
  to {
    opacity: 1;
    transform: rotate(0deg);
  }
}

@keyframes backgroundImageRotate {
  from {
    transform: rotate(-360deg);
  }
  to {
    transform: rotate(0deg);
  }
}
