body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #4dfca7; /* Amarillo */
  overflow-x: hidden;
}

header {
  background-color: #370a5a; /* Rojo */
  color: white;
  text-align: center;
  padding: 1rem;
  width: 100%; /* Asegura que ocupe el 100% del ancho */
  box-sizing: border-box; /* Incluye el padding dentro del ancho total */
}


main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 100px); /* Ajustar según la altura del encabezado */
  position: relative;
}

.termo {
  position: relative;
  width: 80%; /* Ajustar según el tamaño deseado */
  max-width: 600px; /* Máximo ancho del termo */
  height: auto;
  overflow: hidden;
  margin-bottom: 2rem; /* Espacio al final del termo */
}

#termoImage {
  width: 100%;
  display: block;
}

.image-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

.uploaded-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.resize-handles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  pointer-events: none; /* Evita que los manejadores interfieran con el clic en la imagen */
}

.resize-handle {
  width: 10px;
  height: 10px;
  background-color: white;
  border: 1px solid #000b1f;
  cursor: pointer;
  z-index: 1;
}

.resize-handle.top-left {
  top: -5px;
  left: -5px;
}

.resize-handle.top-right {
  top: -5px;
  right: -5px;
}

.resize-handle.bottom-left {
  bottom: -5px;
  left: -5px;
}

.resize-handle.bottom-right {
  bottom: -5px;
  right: -5px;
}

.upload-label {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4b0c6c; /* Rojo */
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  z-index: 1; /* Asegura que el botón de carga esté encima de la imagen */
}

.upload-label i {
  margin-right: 0.5rem;
}

.back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 0.5rem 1rem;
  background-color: #048f8d; /* Rojo */
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

footer {

  background-color: #ad44ef; /* Rojo */
  color: white;
  text-align: center;
  padding: 1rem;
  position: relative;
  bottom: 0;
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}


