/* Importar fuente */
@font-face {
    font-family: 'Brushido';
    src: url("/assets/fonts/Brushido.ttf");
}

body {
    margin: 0;
    overflow: hidden;
}

.progress-container {
    position: absolute;
    top: 90%;
    right: 5%;
    width: 300px;
    height: 20px;
    z-index: 1000;
    pointer-events: none;
}

.progress-bar {
    height: 100%;
    width: 100%;
    background-color: #f0f0f0;
    /* Color de fondo de la barra de progreso */
    border-radius: 5px;
    overflow: hidden;
    border: 2px solid #ddd;
    pointer-events: none;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #8f7eff, #fdd835, #43a047);
    /* Gradiente de lila a verde pasando por amarillo */
    border-radius: 5px;
    transition: width 0.1s ease;
    pointer-events: none;
}


#gameCanvas {
    display: block;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#countdownTimer {
    font-family: 'Roboto', sans-serif;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    z-index: 1000;
    margin-right: 2px;
    pointer-events: none;
}


#presicion {
    font-family: 'Roboto', sans-serif;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    z-index: 1000;
    clip-path: polygon(0 0, 100% 0, 75% 100%, 0% 100%);
    pointer-events: none;
}


#puntuacion {
    font-family: 'Roboro', sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-right: 2px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 25% 100%);
    pointer-events: none;
}

#gameInfo {
    position: absolute;
    top: 3%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    z-index: 1000;
    text-align: center;
    width: 20%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

#gameInfo div {
    background-color: rgba(103, 58, 183, 0.6);
    /* Fondo lila con transparencia */
    padding: 10px;
    /* Ajusta el espacio interno según tus necesidades */
    flex: 1;
    /* Distribuye el espacio de manera uniforme entre los divs */
    backdrop-filter: blur(5px);
    pointer-events: none;
}

#pause_screen {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 2000;
    display: none;
}
#cuenta_atras {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 3000;
    background-color: rgba(255, 255, 255, 0.3);
    display: none;
    pointer-events: none;
}

video {
    z-index: 1001;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    width: 400px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    /* Fondo del elemento interior */
    border: 2px solid #ddd;
    /* Borde del elemento interior */
    border-radius: 10px;
    /* Radio de borde */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    /* Efecto de sombra */
    backdrop-filter: blur(5px);
    /* Efecto de desenfoque (blur) */
    transition: border-color 0.3s ease;
    /* Agrega una transición para el hover */
}

.menu:hover {
    border-color: #aaa;
    /* Hace la línea del borde más oscura en hover */
}

.menu label {
    display: block;
    margin-bottom: 10px;
    user-select: none;
}

.menu button {
    width: 100%;
    background-color: #fff;
    font-family: 'Noto Sans CJK', sans-serif;
    /* Fondo blanco */
    color: #8f7eff;
    /* Texto color lila palenight */
    font-weight: bold;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    /* Agrega una transición para el hover */
}

.menu button:hover {
    background-color: #e0e0e0;
    /* Fondo ligeramente más oscuro en hover */
    border: 1px solid #aaa
}


#titulo {
    font-family: 'Brushido';
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    pointer-events: none;
}

#score,
#max_score {
    position: relative;
    left: 35%;
    text-align: left;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    pointer-events: none;
}

#score {
    color: #ffd54f;
    /* Color de texto para resaltar el score */
}

#max_score {
    color: #8f7eff;
    margin-bottom: 20px;
    /* Color de texto para resaltar el máximo score */
}

#cartel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2001;
    color: red;
    font-family: 'Brushido';
    font-size: 3em;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
    opacity: 0.9;
}
#cartel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2001;
    color: red;
    font-family: 'Brushido';
    font-size: 3em;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
    opacity: 0.9;
}
#countdown {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3001;
    color: black;
    font-family: 'Noto Sans CJK', sans-serif;
    font-size: 3em;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
    user-select: none;
}

.speaker-button {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3000;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease-out;
}

.speaker-button:hover {
    transform: scale(1.2);
}

.icon {
    font-size: 24px;
    /* Ajusta el tamaño del icono según sea necesario */
}