body {
    font-family: "Poppins", Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
    margin: 50px 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    
}



.main-content {
    
    width: 95%;
    padding: 20px;
    transition: margin-left 0.3s ease;
    margin-top:50px;
}

@media screen and (max-width: 768px) {
    .main-content {
        width: 100%; /* Asegura que ocupe todo el ancho en dispositivos móviles */
    }
}

.logo-container {
    margin-bottom: 10px;
    padding: 10px; /* Agrega un poco de espacio alrededor del logo */
    
}

.logo {
    width: 150px; /* Ajusta el tamaño del logo según sea necesario */
}

.subtitle {
    margin-top: 5px; /* Ajusta el margen superior del subtítulo */
    font-size: 18px;
    color: ##8bad9d; /* Cambia el color del texto si es necesario */
    text-align: left; /* Centra horizontalmente el texto */
}

.box {
    width: 90%;
    margin: 10px auto;
    padding: 20px;
    border-radius: 60px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.flashcard-container {
    max-height: 400px; /* Establece una altura máxima para el contenedor del flashcard */
    overflow-y: auto; /* Agrega un desplazamiento vertical si el contenido excede la altura máxima */
    background-color: #f5f5f5;
    border-radius: 50px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}


#flashcard.front {
    font-size: 36px;
    font-weight: 700; 
    margin-bottom: 10px;
    cursor: pointer;
    color:#d89065;
}

#flashcard.back {
    font-size: 36px;
    font-weight: 700; 
    margin-bottom: 10px;
    color: #c36c5d; 
    cursor: pointer;
}

#flashcard.front:hover {
    color: #0a76d2; 
}

#flashcard.back:hover {
    color: #8bad9d; 
}

/* Estilos para pantallas grandes */
@media only screen and (min-width: 768px) {
    #flashcard.front, #flashcard.back {
        font-size: 46px;
        font-weight: 600; /* Heavy */
    }
}

/* Estilo para pantallas pequeñas (móviles) */
@media only screen and (max-width: 767px) {
    #flashcard.front, #flashcard.back {
        font-size: 36px; /* Tamaño más pequeño para dispositivos móviles */
        font-weight: 600; /* Heavy */
    }
}

#prev-btn {
    padding: 15px 30px;
    background-color: #c36c5d;
    color: #ffffff;
    border: none;
    cursor: pointer;
    border-radius: 50px;
    font-size: 20px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

#next-btn {
    padding: 15px 30px;
    background-color: #c36c5d;
    color: #ffffff;
    border: none;
    cursor: pointer;
    border-radius: 50px;
    font-size: 20px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

#auto-play-btn {
    padding: 15px 30px;
    background-color: #8bad9d;
    color: #ffffff;
    border: none;
    cursor: pointer;
    border-radius: 50px;
    font-size: 20px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

#home-btn {
    padding: 15px 30px;
    background-color: #8bad9d;
    color: #ffffff;
    border: none;
    cursor: pointer;
    border-radius: 50px;
    font-size: 20px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

#home-btn:hover {
    background-color: #1c1a1c;
}

#next-btn:hover {
    background-color: #1c1a1c;
}

#prev-btn:hover {
    background-color: #1c1a1c;
}

#auto-play-btn:hover {
    background-color: #1c1a1c;
}

#flashcard-count {
    font-size: 24px;
    color: #009688;
    margin-top: 10px;
}

.nav-button {
    padding: 10px 20px;
    background-color: #a4bea0;
    color: #ffffff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 20px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.nav-button:hover {
    background-color: #1c1a1c;
}

.container {
    width: 90%;
    margin: 12px auto;
    
}

.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Distribuye uniformemente los elementos */
    height: 100%; /* Ajusta la altura para que se aplique correctamente */
    
   
}


.text-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    justify-content: space-between; /* Distribuye uniformemente los elementos */
    height: 100%; /* Ajusta la altura para que se aplique correctamente */
    
}

textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 18px;
    color: #4d0357;
}

.controls {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.icons {
    display: flex;
    align-items: center;
    margin-right: 10px;
    color: #4d0357;
}

.selects {
    width: 45%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 18px;
}

.box select {
    margin-left: 0px; /* Espacio a la izquierda del select */
    margin-right: 20px; /* Espacio a la derecha del select */
    width: calc(100% - 20px); /* Ancho del select, descontando el espacio en ambos lados */
}


.exchange {
    font-size: 24px;
    cursor: pointer;
    margin: 0 10px;
}

#translate-btn {
    padding: 10px 20px;
    background-color: #2804cf;
    color: #ffffff;
    border: none;
    cursor: pointer;
    border-radius: 20px;
    font-size: 20px;
    transition: background-color 0.3s;
}

#translate-btn:hover {
    background-color: #1c1a1c;
}

#flashcard-count{
    font-size:18px;
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 1000; /* Asegura que la barra de navegación esté por encima del resto del contenido */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Agrega una sombra para resaltar la barra */
}

.logo-container {
	color: #058364;
    display: flex;
    align-items: center;
    padding: 7px 15px; /* Ajusta el relleno según sea necesario */
}

.logo {
    width: 150px; /* Ajusta el tamaño del logo según sea necesario */
    margin-right: 15px; /* Espacio entre el logo y el subtítulo */
}

.subtitle {
    margin: 0; /* Asegura que no haya margen alrededor del subtítulo */
    font-size: 18px;
    color: #058364; /* Cambia el color del texto si es necesario */
    text-align: left; /* Alinea el texto a la izquierda */
}




.auto-play-button {
  text-align: center;
  margin-top: 20px;
}

#auto-play-toggle {
  padding: 15px 30px;
  background-color: #007bff;
  color: #ffffff;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  font-size: 20px;
  transition: background-color 0.3s;
}

#auto-play-toggle:hover {
  background-color: #4d0357;
}







/* Estilo para pantallas pequeñas (móviles) */
@media only screen and (max-width: 767px) {
    .main-content {
        margin-top: 80px; /* Aumentar el margen superior del contenido principal en dispositivos móviles */
         width: 90%;
    }
}





@media only screen and (max-width: 767px) {
    body {
        font-size: 18px; /* Reducir el tamaño de la fuente para dispositivos móviles */
    }

    .main-content {
    	 width: 100%;
        margin-top: 50px; /* Reducir el margen superior del contenido principal */
    }

    .logo {
        width: 120px; /* Reducir el tamaño del logo en dispositivos móviles */
    }

    .subtitle {
        font-size: 17px; /* Reducir el tamaño del subtítulo en dispositivos móviles */
    }

    .box {
        width: 100%; /* Asegurar que los cuadros ocupen todo el ancho en dispositivos móviles */
    }

    .text-input {
        margin-bottom: 10px; /* Reducir el margen inferior de los cuadros de texto */
    }

    textarea {
        font-size: 18px; /* Reducir el tamaño de la fuente en los cuadros de texto en dispositivos móviles */
    }

    .exchange {
        font-size: 20px; /* Reducir el tamaño del icono de intercambio en dispositivos móviles */
    }

    .icons {
        margin-right: 5px; /* Reducir el margen derecho de los iconos en dispositivos móviles */
    }
}
