
body {
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  margin: 0;
  padding: 0;
  background-color: #EEEFFF;
}

a {
  color: #FFF;
  text-decoration: none;
}

header {
  background-color: #001233;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}

nav {
  background-color: #023e7d;
  text-align: center;
  padding: 10px 0;
}

nav button {
  font-size: 20px;
  background-color: #023e7d;
  border: none;
  padding: 14px 16px;
  color: #FFF;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease; /* Animation effect */
}

/* Hover effect for navigation bar items */
nav button:hover {
  cursor: pointer;
  transform: scale(1.3);
}

.container {
  max-width: 70%;
  margin: auto;
}

.contact-info {
  display: flex;
  justify-content: space-between;
  padding: 1rem 15%;
  background-color: #577db1;
  color: #fff;
}

.center {
  text-align: center;
}

#portfolio .center {
  color: #FFF;
  background-color: #87a8d8;
  border-radius: 25px;
  width: 26rem;
  padding: 8px 0;
  margin: 25px auto;
}

.underline {
  border-bottom: 2px solid #333;
  padding-bottom: 0.5rem;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  margin-bottom: 1rem;
}

footer {
  background-color: #001233;
  color: #fff;
  text-align: center;
  position: fixed;   /* Fixes the footer to the viewport */
  left: 0;         /* Aligns the footer to the left */
  z-index: 1000;     /* Ensures the footer is on top of other content */
}

footer.horizontal {
  padding: 10px 0;
  bottom: 0;       /* Positions the footer at the bottom */
  width: 100%;     /* Ensures the footer spans the full width of the viewport */
  animation-duration: 0.3s; /* Duration of the animation */
  animation-fill-mode: forwards; /* Keeps the end state of the animation */
}

footer.vertical {
  padding: 0.5rem;
  border-radius: 0 10px 10px 0;
  bottom: 10%;         /* Positions the footer at the bottom */
  display: flex;     /* Makes the footer a flex container */
  flex-direction: column; /* Arranges the footer items vertically */
  align-items: center;    /* Centers the items horizontally */
  animation-duration: 0.3s; /* Duration of the animation */
  animation-fill-mode: forwards; /* Keeps the end state of the animation */
}

footer svg {
  width: 40px;
  height: 40px;
  margin: 0 10px;
  transition: all 0.3s ease; /* Animation effect */
  padding: 10px;
  border: white 2px solid;
  border-radius: 20%;
  color: #FFF;
  background-color: #001233;
}

/* Hover effect for footer elements */
footer svg:hover {
  transform: scale(1.2); /* Enlarges the element by 20% */
  color: #001233;
  background-color: #FFF;
}

footer.horizontal a {
  margin: 0 10px;
}

footer.horizontal.show {
  animation-name: showHorizontal;
}

footer.vertical.show {
  animation-name: showVertical;
}

footer.vertical a {
  margin: 5px 0;     /* Adds some space between the items */
}

footer.horizontal.hidden {
  animation-name: hideHorizontal;
}

footer.horizontal.hidden2 {
  bottom: -100px;
}

footer.vertical.hidden2 {
  left: -100px;
}

footer.vertical.hidden {
  animation-name: hideVertical;
}

@keyframes hideHorizontal {
  0% {
    bottom: 0;
  }
  100% {
    bottom: -100px;
  }
}
@keyframes showHorizontal {
  0% {
    bottom: -100px;
  }
  100% {
    bottom: 0;
  }
}
@keyframes hideVertical {
  0% {
    left: 0;
  }
  100% {
    left: -100px;
  }
}
@keyframes showVertical {
  0% {
    left: -100px;
  }
  100% {
    left: 0;
  }
}

.languages ul li:last-child {
  margin-bottom: 105px;
}

.wave {
  animation-name: wave-animation; /* Refers to the name of your @keyframes element below */
  animation-duration: 2.1s; /* Change to speed up or slow down */
  animation-iteration-count: infinite; /* Never stop waving :) */
  transform-origin: 70% 70%; /* Pivot around the bottom-left palm */
  display: inline-block;
}

@keyframes wave-animation {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(14deg);
  } /* The following five values can be played with to make the waving more or less extreme */
  20% {
    transform: rotate(-8deg);
  }
  30% {
    transform: rotate(14deg);
  }
  40% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(10deg);
  }
  60% {
    transform: rotate(0deg);
  } /* Reset for the last half to pause */
  100% {
    transform: rotate(0deg);
  }
}
