/* Styles for widgets */

/* Arrow Widget */
.widget-container {
  position: relative;
  height: 100%;
  display: flex;
  justify-content: center;
  z-index: 1;
}

.arrow {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid rgba(0, 0, 0, 0.75);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  z-index: 1;
}

.arrow-black {
  border-top: 10px solid black;
}

.arrow-white {
  border-top: 10px solid white;
}

.arrow-black-transparent {
  border-top: 10px solid rgba(0, 0, 0, 0.75);
}

.arrow-white-transparent {
  border-top: 10px solid rgba(255, 255, 255, 0.75);
}

.arrow.active {
  cursor: pointer;
  transform: translateX(-50%) rotate(180deg);
}

.widget {
  display: none;
  position: absolute;
  top: 10px;
  padding: 0px 15px 0px 15px;
  background-color: rgba(0, 0, 0, 0.75);
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.5s ease-in-out;
  z-index: 1;
}

.widget-black {
  background-color: black;
}

.widget-white {
  background-color: white;
}

.widget-black-transparent {
  background-color: rgba(0, 0, 0, 0.75);
}

.widget-white-transparent {
  background-color: rgba(255, 255, 255, 0.75);
}

.widget-transparent {
  background-color: rgba(255, 255, 255, 0.05);
}


.widget.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

.widget-content {
  user-select: none;
  text-align: center;
  font-family: 'MuseoModerno', bold;
  color: white;
}

.widget-content-white {
  color: white;
}

.widget-content-black {
  color: black;
}

.back-button {
  position: absolute;
  margin: 5px 15px;
  color: white;
  font-size: 42px;
  user-select: none;
  z-index: 1;
}

.back-button-black {
  color: black;
}

.back-button:hover {
  filter: brightness(0.75);
}



/* Images Carousel */

.carousel {
  position: relative;
  max-width: 1000px; /* Adjust the maximum width of the carousel */
  margin: 0 auto; /* Center the carousel */
  box-shadow: 0 0px 25px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.slides {
  display: flex;
  overflow: hidden;
}

.slides img {
  width: 100%;
  transition: transform 0.5s ease; /* Smooth transition between slides */
}

.prev {
  position: absolute;
  color: white;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  padding: 8px 16px;
  cursor: pointer;
  left: 0;
}

.prev:hover {
  opacity: 0.5; 
}

.next {
  position: absolute;
  color: white;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  padding: 8px 16px;
  cursor: pointer;
  right: 0;
}

.next:hover {
  opacity: 0.5; 
}


/* Animations */


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
    display: none;
  }
}

@keyframes slide {
    0% {transform: translateY(25%);}
    100% {transform: translateY(0); }
}

.slide {
    opacity: 0; /* Initially hide the element */
    transition: opacity 0.5s ease; /* Add a transition effect for opacity */
}

.slide.active {
    opacity: 1; /* Show the element when the active class is added */
    animation: slide 0.75s forwards;
}

@keyframes appear {
 	0% {opacity: 0%;}
 	100% {opacity: 100%; }
}



/* Running Lines Background */

.background {
  z-index: -1;
  top: 0;
  left: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background-color: #000; /* Change background color as needed */
}

.text-lines {
  z-index: -1;
  overflow: hidden;
  font-size: 80px;
  font-family: Oswald;
  position: absolute;
  width: 200%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  color: white; /* Text color */
  opacity: 0.01;
  user-select: none;
}

.line {
  animation-duration: 18s; /* Duration for the animation to complete */
  animation-iteration-count: infinite; /* Make the animation run infinitely */
  animation-timing-function: linear;
  opacity: 0; /* Start with zero opacity */
}

/* Define animation for left and right movement */
@keyframes moveLeft {
  from {
    transform: translateX(-42%);
    opacity: 1;
  }
  to {
    transform: translateX(0%);
    opacity: 1;
  }
}

@keyframes moveRight {
  from {
    transform: translateX(0%);
    opacity: 1;
  }
  to {
    transform: translateX(-40.775%);
    opacity: 1;
  }
}

/* Apply animations to individual lines */
.left {
  animation-name: moveLeft;
}

.right {
  animation-name: moveRight;
}