.overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  height: 50px;
  transition: height 0.3s ease-in-out;
}

.overlay-content {
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;     
  justify-content: center;   
  height: 100%; 
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.overlay.showSmall {
  height: 400px;
}

.overlay.showFull {
  height: 650px;
}

.overlay.show .overlay-content {
  opacity: 1;
  transition: opacity 0.3s ease-in-out 0.3s;
}

.overlay-text {
  margin-bottom: 24px; 
}

#title {
  margin: 0;              
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 40;
}

#arrow-up {
  font-size: 40px;
  pointer-events: auto;
  cursor: pointer;
  color: white;
  left: 47%;
  top: -25px;
  transform: translateX(-50%);
  position: absolute;
  animation: bounce 1s infinite;
  padding: 30px;
  display: inline-block;
  z-index: 10;
}

#arrow-down {
  font-size: 40px;
  pointer-events: auto;
  cursor: pointer;
  padding: 5px;
  display: flex;
  margin-top: -1%;
}

@media (max-width: 480px) {
  #arrow-up {
    left: 38%;
  }

  .overlay.show {
    height: 450px;
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  .overlay-text h1 {
    margin: 5px;
    font-size: 26px;
  }
}

@media (max-width: 896px) and (orientation: landscape) {
  .overlay.show {
    height: 350px;
  }

  .overlay-text h1 {
    margin: 5px;
    font-size: 26px;
  }

  .menu {
    top: 60%;
    width: 60%;
  }

  #arrow-up {
    left: 44%;
  }
}
