body {
    background-image:url(imagenes/Fondo.png);
    color: #e0e0e0;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}

#cameraContainer {
    position: absolute;
    top: 400px; 
    right: 805px; 
}


#circle{

    position: absolute;
    top: 350px; 
    right: 100px;  
}

#video {
    border-radius: 10px;
    border: 2px solid #3647e2;
    transform: rotateY(180deg); /* Rotar horizontalmente */
        transform-origin: center;

}

button {
    background-color: #3647e2;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    cursor: pointer;
    margin: 10px;
    transition: background-color 0.3s, transform 0.2s;

    font-family: 'Righteous';font-size: 22px;
    letter-spacing: 1px;
    font-size: 1.2rem; /* Tamaño de fuente más grande */
    text-align: center; /* Centrar el texto horizontalmente */
    align-items: center; /* Alinear verticalmente en el centro */
    justify-content: center; /* Alinear horizontalmente en el centro */


}

button:hover {
    background-color: #000836;
    transform: scale(1.05);
}

#result {
    text-align: center;
    padding: 20px;
}

#capturedImage {
    border-radius: 15px;
    border: 4px solid #555;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    width: 500px;
    height: auto;
}

h1 {
    margin-bottom: 20px;
  min-height: 200px;
  font-family: 'Righteous';font-size: 22px;
  letter-spacing: 1px;
  font-size: 3.5rem; /* Tamaño de fuente más grande */
  text-align: center; /* Centrar el texto horizontalmente */
  display: flex; /* Usar Flexbox para centrar verticalmente */
  align-items: center; /* Alinear verticalmente en el centro */
  justify-content: center; /* Alinear horizontalmente en el centro */
}

h4 {
    margin: 10px 0;
    font-family: 'Righteous';font-size: 22px;
    letter-spacing: 1px;
    font-size: 1.5rem; /* Tamaño de fuente más grande */
    text-align: center; /* Centrar el texto horizontalmente */
    display: flex; /* Usar Flexbox para centrar verticalmente */
    align-items: center; /* Alinear verticalmente en el centro */
    justify-content: center; /* Alinear horizontalmente en el centro */
    color: #fff;
}

.emotion-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
}

.emotion-container img {
    border-radius: 10px;
    border: 4px solid #555;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    margin: 10px;
}

.emotion-container div {
    max-width: 500px;
}

.button-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.button-container button {
    background-color: #333;
    color: #e0e0e0;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

.button-container button:hover {
    background-color: #555;
    transform: scale(1.05);
}

.emotion-header {
    color: #e0e0e0;
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.back-button:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}




/*EFECTO FONDO*/


  

  .center{ text-align: center; margin-top: 30%;  }
  .white{ color: white; }
  .escena {
    position: absolute;
      width: 100%;
    position: absolute;
    top: 0px;
      left: 0px;
      height: 100%;
      overflow: hidden;
      display: flex;
      justify-content: center;
      align-content: center;
      
  }
  
  .burbuja {
      position: absolute;
      height: 100%;
      width: 100%;
      top: 0;
      left: 0;
  
  }
  
  .burbuja svg {
      position: absolute;
      top: 0px;
      left: 0px;
      width: 100% !important;
      height: 100% !important;
  }
  
  #burbuja-bottom-layer {
      will-change: transform;
      transform: translateY(768px);
      animation: fall 12.5s infinite linear;
  }
  
  #burbuja-top-layer {
      will-change: transform;
      transform: translateY(768px);
      animation: fall 18s infinite linear;
  }
  
  #burbuja-bottom-layer-bottom {
      will-change: transform;
      transform: translate(1068px, -1368px);
      animation: fall-bottom 12.5s infinite linear;
  }
  
  #burbuja-top-layer-bottom {
      will-change: transform;
      transform: translate(1168px, -1268px);
      animation: fall-bottom 18s infinite linear;
  
  }
  @keyframes fall {
      
      100% {
          transform: translateY(0);
      }
      
  }
  @keyframes fall-bottom {
      
      100% {
          transform: translateY(0);
      }
      
  }
  
  
  