* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}


main {
    background-color: #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
}


.mic-toggle {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background-color: crimson;
    border: none;
    outline: none;
    cursor: pointer;
    margin-bottom: 2rem;
}

.mic-toggle:after,
.mic-toggle:before {
    --pad: 0rem;
    content: '';
    display: block;
    position: absolute;
    z-index: 0;
    background-color: rgba(220, 20, 60, 0.2);
    top: var(--pad);
    left: var(--pad);
    right: var(--pad);
    bottom: var(--pad);
    border-radius: 50%;
}

.mic-toggle:after {
    transition: 0.4s;
}

.mic-toggle:before {
    transition: 0.2s;
}

.mic-toggle:hover:before {
    --pad: -1rem;
}

.mic-toggle:hover:after {
    --pad: -2rem;
}

.mic-toggle span {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 6rem;
}

.mic-toggle.is-recording:after {
    animation: smoothPathAfter 0.6s ease-in alternate-reverse forwards infinite;
}

.mic-toggle.is-recording:before {
    animation: smoothPathBefore 0.6s ease-in alternate-reverse forwards infinite;
}

#status-mic {
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    color: #333;
}

#status-text {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: blue;
}

#timer {
    font-size: 2rem;
    font-weight: bold;
    color: crimson;
    margin-top: 0.5rem;
    margin-bottom: 3rem;
}

#result {
    background-color: #fff;
    width: 100%;
    max-width: 1200px;
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    min-height: 100px;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.button-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin-top: 1.5rem;
    padding: 0 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.button-row button {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #444;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.button-row button:hover {
    background-color: #666;
}

.button-row .material-icons {
    font-size: 1.2rem;
}

/* Estilos adicionales para la barra de navegación */
.navbar {
    padding: 1rem;
  }
  
  /* Estilo para el logo (dispositivo pequeño) */
  .navbar-brand img {
    width: 80px;
  }
  
  /* Estilo para el título (dispositivo grande) */
  .navbar-brand h1 {
    font-size: 2rem;
    color: #FFFFFF;
    margin: 0;
  }
  
  /* Icono de usuario */
  .d-flex i {
    color: #FFFFFF;
    margin-left: 15px;
  }

  /* Aumentar tamaño del botón (opcional) */
.navbar-toggler {
  padding: 0.5rem;
  width: 60px;
  height: 60px;
}

/* Cambiar tamaño del icono */
.navbar-toggler-icon {
  width: 100%;
  height: 100%;
}

@keyframes smoothPathAfter {
    0% {
        top: -2rem;
        left: -2rem;
        right: -2rem;
        bottom: -2rem;
    }
    100% {
        top: -1rem;
        left: -1rem;
        right: -1rem;
        bottom: -1rem;
    }
}

@keyframes smoothPathBefore {
    0% {
        top: -1rem;
        left: -1rem;
        right: -1rem;
        bottom: -1rem;
    }
    100% {
        top: -0.5rem;
        left: -0.5rem;
        right: -0.5rem;
        bottom: -0.5rem;
    }
}