@import url("https://fonts.googleapis.com/css2?family=Cabin+Sketch:wght@400;700&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-decoration: none;
  list-style: none;
  font-family: "Cabin Sketch", cursive;
}

:root {
  font-size: calc(1vh + 1vw + 0.3rem);
  overflow: hidden;
}

body {
  width: 100%;
  height: 100vh;
  background-image: url(./images/bg.png);
  border: 1rem solid rgb(153, 189, 153);
  overflow: auto;
  overflow: auto;
}

i {
  color: rgb(153, 189, 153);
  animation: wiggle 2s linear infinite;
}

@keyframes wiggle {
  0%,
  7% {
    transform: rotateZ(0);
  }
  15% {
    transform: rotateZ(-15deg);
  }
  20% {
    transform: rotateZ(10deg);
  }
  25% {
    transform: rotateZ(-10deg);
  }
  30% {
    transform: rotateZ(6deg);
  }
  35% {
    transform: rotateZ(-4deg);
  }
  40%,
  100% {
    transform: rotateZ(0);
  }
}

nav ul {
  display: flex;
  justify-content: flex-end;
  gap: 10rem;
  padding: 2rem;
  margin: 5rem 2rem;
}

#nav-link a:hover,
#nav-link a:focus {
  border-bottom: 5px solid rgb(153, 189, 153);
  font-weight: 800;
  transition: 0.2s linear;
}

main {
  position: relative;
  margin: 2rem;
}

@keyframes bounceInDown {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  0% {
    opacity: 0;
    transform: translate3d(0, -3000px, 0);
  }

  60% {
    opacity: 1;
    transform: translate3d(0, 25px, 0);
  }

  75% {
    transform: translate3d(0, -10px, 0);
  }

  90% {
    transform: translate3d(0, 5px, 0);
  }

  to {
    transform: none;
  }
}

.bounceInDown {
  animation: bounceInDown 2s ease-in;
}

.animation-area {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: -1;
}

.box-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.box-area li {
  position: absolute;
  display: block;
  list-style: none;
  width: 25px;
  height: 25px;
  border: solid #302f2f 2px;
  border-top-left-radius: 70% 60%;
  border-bottom-right-radius: 70% 60%;
  background: rgb(153, 189, 153, 0.3);
  animation: animate 20s linear infinite;
  bottom: -10px;
}

.box-area li:nth-child(1) {
  background: #79be70;
  left: 86%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.box-area li:nth-child(2) {
  background: #18332f;
  left: 12%;
  width: 30px;
  height: 30px;
  animation-delay: 1.5s;
  animation-duration: 10s;
}

.box-area li:nth-child(3) {
  background: #ebb4bb;
  left: 70%;
  width: 100px;
  height: 100px;
  animation-delay: 5.5s;
}

.box-area li:nth-child(4) {
  background: #9bce94;
  left: 42%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
  animation-duration: 15s;
}

.box-area li:nth-child(5) {
  background: #bcdeb7;
  left: 65%;
  width: 40px;
  height: 40px;
  animation-delay: 0s;
}

.box-area li:nth-child(6) {
  background: #9bce94;
  left: 15%;
  width: 110px;
  height: 110px;
  animation-delay: 3.5s;
}

.box-area li:nth-child(7) {
  background: #18332f;
  left: 23%;
  width: 100px;
  height: 100px;
  animation-delay: 3.7s;
  animation-duration: 15s;
}

@keyframes animate {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(-1000px) rotate(360deg);
    opacity: 0;
  }
}

main span {
  color: green !important;
  font-size: 1.2em !important;
  font-weight: bold !important;
}

img {
  width: 200px;
  height: 40 px;
  z-index: 1;
}

.popup-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 5rem;
  border: 2px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
  z-index: 1000;
}

input[type="submit"] {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #45a049;
}

q {
  font-size: large;
}

.resume-container {
  text-align: center;
  padding: 10px;
  background-color: #4f4a4a;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 0 auto;
}

.resume-container h5 {
  font-size: 20px;
  margin-bottom: 5px;
  color: #333;
}

.resume-container p {
  font-size: 14px;
  color: #666;
}

.project-container img,
.resume-container img {
  margin-top: 50px;
  border: 1px solid #ddd;
  border-radius: 5px;
  transition: transform 0.2s ease-in-out;
}

.project-container img:hover,
.resume-container img:hover {
  transform: scale(1.03);
}

.hidden {
  display: none;
}

@media (min-width: 767px) {
  .col-lg-4 {
    margin-left: auto;
    margin-right: auto;
  }
  .col-lg-4 q {
    margin-left: auto;
  }
}
