* {
    font-family: sans-serif;
    box-sizing: border-box;
    background-color: black;
}

body {
    margin:0;
}

header {
    position: sticky;
    top: 0;
    background-color: black;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

#homeButton {
    align-items: left;
}

#navigation {
    position: fixed;
    align-items: center;
    justify-content: center;
    top: auto;
    right: 15px;
}

#navigation a, #navigation p {
    text-decoration: none;
    color: lavender;
    font-size: x-large;
    font-weight: bold;
    margin: 0px 10px;
    display: inline-block;
}

#projectsLink:visited {
    text-decoration: none;
    color: lavender;
}

#projectsLink:hover,
#projectsLink:focus {
    text-decoration: none;
    color: lavender;
}

main {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    min-height: calc(100vh - 80px);
    display: flex;
    padding: 0;
}

#welcome {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 30px;
    width: 90%;
    margin: 0 auto;
    border-radius: 5px;
    flex-wrap: wrap;
    background-color: lavender;
    font-size: xx-large;
    font-weight: bold;
}

#welcome * {
    background-color: lavender;
}

#intro {
    display: flex;
    flex: 3;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    margin: 0 auto;
    padding: 20%;
    flex-wrap: wrap;
    background-color: black;
    color: lavender;
}

#intro section {
    flex: 1 1 300px;
    min-width: 300px;
}

#name {
    font-size: 50px;
    margin: 0 0 10px;
}

#headshot img {
    height: auto;
    width: 300px;
    max-width: 80%;
    object-fit: cover;
    border-radius: 8px;
}

footer {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: flex;
    padding: 20px;
    background-color: black;
    text-align: center;
}

#footer h2 {
    color: lavender;
}

.contactlinks {
    color: lavender;
    text-decoration: none;
    display: block;
    margin: 5px;
    background-color: transparent;
}

footer img {
  background-color: transparent;
  filter: invert(1);
}

@media (max-width: 600px) {
    #intro {
      flex-direction: column;
      text-align: center;
      padding: 10%;
    }

    #headshot {
      order: -1;
    }

    #intro section {
      align-items: center;
      justify-content: center;
      display: flex;
      flex-direction: column;
    }

    #headshot img {
      width: 80%;
      margin: 0 auto;
    }

    #navigation {
      position: fixed;
      align-items: center;
      justify-content: center;
      top: auto;
      right: 15px;
    }

    #navigation a, #navigation p {
      text-decoration: none;
      color: lavender;
      font-size: large;
      font-weight: bold;
      margin: 0px 10px;
      display: inline-block;
    }
}

/* Wrapper for the rocket button */
.rocket-wrapper {
  display: inline-block;
  cursor: pointer;
}

/* SVG size */
.rocket-icon {
  width: 60px;
  height: 90px;
}

/* Rocket movement on hover */
.rocket-group {
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.rocket-wrapper:hover .rocket-group {
  transform: translateY(23px);
}

/* Rocket style */
.rocket-body, .fin {
  fill: white;
}

/* Flame appears by default, fades out on hover */
.flame {
  fill: orange;
  transition: opacity 0.3s;
  opacity: 1;
}

.rocket-wrapper:hover .flame {
  opacity: 0;
}

/* Ground style */
.ground {
  fill: lavender;
}

/* Base style */
.smoke {
  fill: #ccc;
  opacity: 0;
  transform: translateX(0) scale(1);
  transform-origin: center center;
  transform-box: fill-box; /* crucial! */
}

@keyframes smokeSideLeft {
  0% {
    opacity: 0;
    transform: scale(0.5) translateX(0);
  }
  30% {
    opacity: 0.8;
    transform: scale(1.1) translateX(-5px);
  }
  100% {
    opacity: 0;
    transform: scale(1.4) translateX(-15px);
  }
}

@keyframes smokeSideRight {
  0% {
    opacity: 0;
    transform: scale(0.5) translateX(0);
  }
  30% {
    opacity: 0.8;
    transform: scale(1.1) translateX(5px);
  }
  100% {
    opacity: 0;
    transform: scale(1.4) translateX(15px);
  }
}

/* Animation triggers on hover */
.rocket-wrapper:hover .smoke-left1 {
  animation: smokeSideLeft 0.5s ease-out forwards;
}
.rocket-wrapper:hover .smoke-right1 {
  animation: smokeSideRight 0.5s ease-out forwards;
}
.rocket-wrapper:hover .smoke-left2 {
  animation: smokeSideLeft 0.5s ease-out 0.05s forwards;
}
.rocket-wrapper:hover .smoke-right2 {
  animation: smokeSideRight 0.5s ease-out 0.05s forwards;
}
