/* @import url('https://fonts.googleapis.com/css2?family=Gabarito:wght@400..900&display=swap'); */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* font-family: "Gabarito", sans-serif, Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue'; */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  background-color: white;
  height: fit-content;

}

h1 {
  font-size: 3rem;
  font-weight: 900;
}

#container {
  display: flex;
  flex-direction: column;
  height: fit-content;
  max-width: 1700px;
  margin: auto;
  background: #fff;
  padding: 80px 10px 10px 10px;

}

#ui_container {
  display: flex;
  flex-direction: column;
  height: fit-content;
  margin-bottom: 50px;
}


#landingTitle {
  font-weight: 900;
  /* line-height: 1%; */
}
.feature {
  width: 100%;
  padding: 10px;
  margin: 10px 0px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature__example {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  place-items: center;
}

.feature__example video {
  height: 450px;
  width: auto;
}

#hero {
  display: flex;
  flex-direction: column;
  padding: 40px 20px;
  width: 100%;
  height: 70dvh;
  max-width: 1200px;
}

#hero h2 {
  width: fit-content;
  text-align: left;
}

.button {
  /* width: 100%; */
  padding: 9px;
  text-transform: capitalize;
  background: linear-gradient(to right, #000000, #838383);
  color: #f0f0f0;
  border: 1px solid;
  border-radius: 5px;
  cursor: pointer;
}

.flex {
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none;
}

textarea {
  height: 200px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  resize: none;
  padding: 20px;
}

#welcomeMessage {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}


#mods button {
  font-size: 0.8rem;
  display: flex;
  flex-direction: row;
  padding: 8px 5px;
  /* background: #000000; */
  color: white;
  text-decoration: none;
  border-radius: 10px;
  width: fit-content;
  cursor: pointer;
}


/* #mods button:focus {
  font-size: 0.8rem;
  display: flex;
  flex-direction: row;
  padding: 10px;
  background: #797979;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  width: fit-content;
  cursor: pointer;
} */

#mods {
  display: flex;
  justify-content: center;
}

#mods button:hover {
  background: #797979;
  color: white;
}

#buyButton {
  padding: 8px;
  background-color: black;
  color: white;
  font-size: 20px;
  border: 1px solid transparent;
  border-radius: 16px;
  width: 100%;
  text-align: center;
  cursor: pointer;
  justify-content: center;
  margin: 10px auto;
}

#buyButton:hover {
  background-color: white;
  color: black;
  border: 1px solid black;

}

h3 {
  margin: 3px 0px;
}

h2 {
  font-size: 2rem;
}


#loginBtn svg {
  height: 13px;
  width: 13px;
}

#container h2 {
  text-align: center;
}

#response {
  margin-top: 20px;
  background: #f0f0f0;
  padding: 10px;
  border-radius: 5px;
}

#examples {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  flex-direction: column;
  width: 100%;
  height: fit-content;
  margin: 30px 0px;
}

.examples__box {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: fit-content;
}

.examples__box video {
  height: 250px;
  width: auto;
  align-self: center;
}



.arrow {
  height: fit-content;
  display: flex;
  place-self: center;
}

/* Contenedor del spinner */
.spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background-color: transparent;
}

/* Círculo giratorio */
.spinner-circle {
  width: 40px;
  height: 40px;
  border: 5px solid #f3f3f3;
  /* Color de fondo */
  border-top: 5px solid #3498db;
  /* Color del borde giratorio */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  background-color: transparent;
}

/* Animación de rotación */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Opcional: Oscurecer el fondo mientras carga */
.spinner::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Fondo semitransparente */
  z-index: -1;
}

header {
  display: flex;
  gap: 10px;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  flex-direction: row;
  width: 100%;
  min-height: 30px;
  height: fit-content;
  padding: 10px 10px;
}


.check {
  background-image: url('./img/checked.png');
  width: 15px;
  height: 15px;
  background-size: cover;
  ;

}

#imageBtn:hover,
#ImageWithImageBtn:hover,
#generateBtn:hover,
#generateVideoWithTextBtn:hover,
#generateImageWithImageBtn:hover,
#generateImageWithTextBtn:hover {
  background: linear-gradient(to right, #252525, #b1b1b1);
}

#imageBtn:disabled,
#ImageWithImageBtn:disabled {
  color: #f0f0f0;
  cursor: not-allowed;
  opacity: 0.6;
}


#input_container {
  display: flex;
  width: 100%;
  height: fit-content;
  max-width: 450px;
  flex-direction: column;
  padding: 20px 0px;
  gap: 30px;
  margin: 0 auto;
}

#input_container button {
  margin: 5px 0px;
}

.landingButton {
  background-color: transparent;
  border: none;
}


select {
  margin: 15px 0px 25px 0px;
}

#loginBtn {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: fit-content;
  padding: 4px;
  gap: 2px;
  justify-content: space-between;
  max-width: 120px;
  width: 100%;
  border-radius: 5px;
  align-items: center;
  background-color: #000000;
  color: white;
  cursor: pointer;
}

#logoutBtn {
  padding: 8px 10px;
  background: linear-gradient(to right, #000000, #838383);
  color: white;
  border: 1px solid black;
  border-radius: 4px;
  cursor: pointer;
  width: fit-content;
  display: flex;
  flex-direction: row;
  justify-content: center;
  place-items: center;
}

.features-list span {
  display: flex;
  gap: 5px;
  align-items: center;
}

#continueLoginBtn {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  background: linear-gradient(to right, #000000, #838383);
  color: white;
  border: 1px solid black;
  border-radius: 4px;
  cursor: pointer;
  width: fit-content;
  margin: 20px 0px;
  font-size: 18px;
  font-weight: 500;
}

#continueLoginBtn svg {
  height: 20px;
  width: auto;
}

#continueLoginBtn:hover {
  background: linear-gradient(to right, #252525, #b1b1b1);
}

#loginBtn:hover,
#logoutBtn:hover,
#videoBtn:hover,
#ImageToVideoBtn:hover {
  background: linear-gradient(to right, #252525, #b1b1b1);
}

#payBtn {
  padding: 8px 10px;
  background: linear-gradient(to right, #276bff, #6f9dff);
  color: white;
  font-weight: bold;
  border: 1px solid black;
  border-radius: 4px;
  cursor: pointer;
  text-transform: capitalize;
  display: none;
  width: fit-content;
}

#payBtn a {
  text-decoration: none;
  color: black;
}

#payBtn:hover {
  background: linear-gradient(to right, #3a79ff, #b4ccff);
}

#creditsDisplay {
  font-weight: bold;
  font-size: 0.8rem;
  width: fit-content;
  height: fit-content;
}

.inputStatus {
  height: 20px;
  width: 100%;
}

#result {
  padding: 30px 0px;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-direction: row;
  justify-content: center;
  align-content: start;
  height: fit-content;
}

#result img {
  width: 200px;
  height: fit-content;
}


#results_container {
  width: 100%;
  height: fit-content;
  margin-left: 10px;
  text-align: center;

}

#results_container h2 {
  font-size: 1.1rem;
}

#imageModal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 70vw;
  height: 70vh;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

#imageModal img {
  max-width: 70vw;
  max-height: 70vh;
  border-radius: 12px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
}

.precios {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
  width: 100%;
}

.precios h2 {
  text-align: center;
  margin-bottom: 20px;
}

.precios h3 {
  text-align: center;

}

.precios>div {
  max-width: 300px;
  padding: 20px;
  border: 1px solid black;
  border-radius: 30px;
  margin: 0 auto;
}

.precios>div h3 {
  font-size: 1.7rem;
}

.precios>div>div:first-of-type {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
}

.precios .precio-plan {
  font-size: 35px;
  margin-right: 5px;
}

.precios>div>strong {
  font-weight: bold;
}

.precios>div>div:nth-of-type(2) {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

.precios>div>div:nth-of-type(2)>p {
  color: black;
  text-align: center;
}

.precios #walletContainer {
  display: none;
  width: 300px;
}

.precios>div>div:last-of-type {
  display: flex;
  flex-direction: column;
}

.buy-button {
  margin-bottom: 10px;
  padding: 8px;
  background-color: black;
  color: white;
  font-size: 20px;
  border: 1px solid transparent;
  border-radius: 16px;
  width: 100%;
  text-align: center;
  cursor: pointer;
  justify-content: center;
}

.buy-button:hover {
  background-color: white;
  color: black;
  border: 1px solid black;
}

.mod__button {
  background: black;
}

.mod__button.clicked {
  background: #797979;
}


#imageResult img,
#image2ImageResult img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: 80vh;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#status {
  padding: 30px;
}

#myVideos {
  width: 100%;
  max-width: 1000px;
  padding: 0px 40px;
  margin: 0 auto 200px auto;
}

#myVideos h2 {
  font-size: 1.1rem;
}

.video-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;

}

.video-item {
  width: 300px;
}

video {
  width: 100%;
  height: auto;
}

.no-videos {
  color: #888;
  font-size: 18px;
}

footer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  padding: 40px;
  align-items: center;
  width: 100%;
}

footer a {
  text-decoration: none;
  color: black;
}

footer a:hover {
  color: #252525;
}

/* Responsive styles */
@media (max-width: 900px) {
  #container {
    max-width: 100%;
  }

  #examples {
    max-width: 100%;
  }

}


@media (max-width: 768px) {

  #result {
    height: 800px;
  }


  #ui_container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: fit-content;
  }

  #examples {
    flex-direction: column;
    align-items: center;
  }



  #continueLoginBtn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 12px 24px;
    background: linear-gradient(to right, #000000, #838383);
    color: white;
    border: 1px solid black;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin: 20px auto;
    font-size: 18px;
    font-weight: 500;
  }

  #input_container {
    width: 100%;
    max-width: 100%;
    padding: 5px;
  }

  #results_container {
    padding: 8px 4px;
    border-radius: 8px;
    margin: 0;
    height: fit-content;
  }


  #creditsDisplay {
    font-size: small;
  }

  .landingButton {
    display: none;
  }

  #creditsDisplay {
    text-align: center;
  }


}

@media (max-width: 475px) {
  #container h2 {
    font-size: 1.5em;
  }

  #results_container h2 {
    font-size: 1.1rem;
  }

  #myVideos h2 {
    font-size: 1.1rem;

  }

  #results_container {
    padding: 4px 2px;
    height: fit-content;
  }

  #result {
    flex-direction: row;
    height: fit-content;
  }

  #payBtn,
  #logoutBtn,
  #creditsDisplay {
    font-size: 0.75rem;
  }

  footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 5px;
  align-items: center;
  width: 100%;
}

}

@media (max-width: 375px) {
  #container h2 {
    font-size: 1.3rem;
  }


  #results_container {
    padding: 4px 2px;
  }

  #result {
    flex-direction: row;
    height: fit-content;
  }

  #payBtn,
  #logoutBtn,
  #creditsDisplay {
    font-size: 0.61rem;
  }

}