@font-face {
    font-family: 'Fender';
    src: url('Font/FenderRegular.woff2') format('woff2'),
        url('Font/FenderRegular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
 
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #454485; /* Color morado oscuro para el fondo del marco */
    margin: 0;
    height: 100dvh; /* Aseguramos que ocupe todo el alto del viewport */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px; /* Este es el "margen" morado oscuro alrededor del contenido */
    box-sizing: border-box; /* Asegura que el padding no expanda el tamaño del body */
}

/* Eliminar flechas en Chrome, Safari, Edge */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* Asegurarse de que no aparezcan flechas en hover o focus */
input[type="number"]:hover,
input[type="number"]:focus {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
}

/* Eliminar el contorno azul en todos los inputs cuando están enfocados */
input:focus {
    outline: none;
}


.error-input {
    border: 2px solid #ff0000; /* Red border for error state */
}

.error-message {
    color: #F3E1D3;
    font-size: 12px;
    margin: 0px 0 16px 0;
    display: none; /* Hidden by default */
    
}

        nav{
            position: absolute;
            top:0;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 150px;
            z-index: 5;
        }

        nav p {
            cursor: pointer;
            transition: all 0.3s ease;
        }

        nav p:hover {
            color: #e6c9b3; /* Lighter shade of the existing text color */
            transform: translateY(-4px);
        }

        .container {
            z-index: 5;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: #5957AA; /* Color de fondo del contenido principal */
            width: 100%;
            height: 100%;
            box-sizing: border-box; /* Para que el padding y bordes no expandan el tamaño del contenedor */
        }

        #shape1{
            position: absolute;
            top: 56px;
            left: 56px;
            height: 40px;
            width: auto;
            z-index: 6;
        }
        #shape2{
            position: absolute;
            top: 56px;
            right: 56px;
            height: 40px;
            width: auto;
            z-index: 6;
        }
        #shape3{
            position: absolute;
            bottom: 56px;
            right: 56px;
            height: 40px;
            width: auto;
            z-index: 6;
        }
        #shape4{
            position: absolute;
            bottom: 56px;
            left: 56px;
            height: 40px;
            width: auto;
            z-index: 6;
        }

        .elipse-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            
           
            background-image: url('elipse.svg'); /* Cambia esto por la URL de tu textura */
            background-size: auto;
            background-repeat: no-repeat;
            background-position: center;
             /* Controla la opacidad de la textura */
            pointer-events: none; /* Hace que la textura no interfiera con la interacción del usuario */
        }


        .texture-overlay-1 {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('texture3.png'); /* Cambia esto por la URL de tu textura */
            background-size: cover; /* Asegura que la textura cubra todo el fondo */
            background-repeat: no-repeat;
            background-position: center;
            opacity: 0.1; /* Controla la opacidad de la textura */
            pointer-events: none; /* Hace que la textura no interfiera con la interacción del usuario */
            z-index: 2;
        }
    
        



        

        .timer-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            box-sizing: border-box;
            z-index: 3;
            margin-bottom: 4px;
        }

        h1, h3 {
            margin: 0;
            text-align: center;
            color: #F3E1D3;
        }
        h1 {
            font-family: 'Fender';
            font-weight: 400;
            font-size: 180px; /* Default size for larger screens */
            line-height: 88%;
            color: #F3E1D3;
        }
        h6 {
            margin:0;
            font-family: 'Inter', sans-serif;
            font-weight: 300;
            font-size: 16px;
            text-transform: uppercase;
            line-height: 100%;
            
            letter-spacing: 2px;
            color: #F3E1D3;
            margin:0 8px 0 10px;
        }

        h3{
            font-kerning: none;
        }

        .phrase-container{
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            margin-bottom: 40px;
        }

        .phrase-container img{
            width: 16px;
            height: auto;
        }

        #start-button
        {width: auto}

        button {
            background-color: #F3E1D3;
            border-radius: 1000px;
            text-transform: uppercase;
            font-weight: 100;
            padding: 8px 12px;
            letter-spacing: 1px;
            color: #454485;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            width: auto; /* Change from 100% to auto */
            display: inline-block; /* Ensures the button takes only the necessary width */
        }

        button:hover {
            
            transform: translateY(-4px);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        button:active {
            transform: translateY(0);
            box-shadow: none;
        }

        button.icon {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        button.icon svg {
            margin-right: 8px;
        }
        .controls {
            display: none;
            gap: 10px;
        }
        .controls button {
            flex: 0 1 auto; /* Change from flex: 1 to flex: 0 1 auto */
        }
        #settings-icon {
            top: 10px;
            right: 10px;
            cursor: pointer;
        }

        #settings-icon p {
            text-transform: uppercase;
            letter-spacing: 2px;
            color: #F3E1D3;
            font-family: 'Inter', sans-serif;
            font-size: 12px;
        }

        .controls-buttons{
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            gap: 10px;
            margin-top: -16px;
        }

        button{
            width: 72px;
        }

        #skip-button{
            background-color: transparent;
            box-shadow: inset 0 0 0 2px #e6c9b3; /* Lighter shade for hover */
            color: #F3E1D3;
            text-align: center;
            padding: 8px 11px 8px 12px;
            
        }

        .modal {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: #5957AA;
            padding: 40px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            border-radius: 10px;
            z-index: 10;
        }
        .modal-container{
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        .modal input {
            margin: 10px 0;
            padding: 10px;
            border-radius: 1000px;
            border: none;
            background-color: #454485;
            color: #F3E1D3;
            font-family: 'Inter', sans-serif;
            font-weight: 100;
            letter-spacing: 1px;
            text-transform: uppercase;
            text-align: center;
            width: 90%;
            font-size: 16px;
        }
        .modal button {
            padding: 10px 20px;
            margin-top: 14px;
            border-radius: 1000px;
        }
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 9;
        }

        .title-modal-settings{
            margin-bottom: 8px;
            font-size: 20px;
            font-weight: 400;
            font-family: 'Inter', sans-serif;
            margin-bottom: 16px;
            
        }

        .modal label{
            text-transform: uppercase;
            color: #F3E1D3;
            font-family: 'Inter', sans-serif;
            font-weight: 100;
            letter-spacing: 1px;
            font-size: 12px;
            margin-top: 8px;
            text-align: center;
        }

        
        .settings-buttons-container{
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            gap: 10px;
            width: 100%;
        }

        .settings-button{
            width: 100%;
            border-radius: 1000px;
        }

        



#timer-display {
    font-size: 280px;
    color: #F3E1D3;
    font-weight: 100;
    font-family: 'Fender', sans-serif;
   z-index: 4;
    width: 1000px; /* Ajusta según sea necesario */
    text-align: center;
    line-height: 270px;
    

}



.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    color: #F3E1D3;
    margin-top: 20px;
    z-index: 10;
    min-width: 400px;
}

.credits-container {
    position: absolute;
            bottom:0;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 150px;
            z-index: 5;
            
}

.credits-container p {
    font-size: 10px;
    color: #F3E1D3;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 100;
    letter-spacing: 1px;
    line-height: 170%;

}

.credits-container a {
    color: #F3E1D3;
    text-decoration: underline;
    font-weight: 600;
    transition: text-decoration 0.3s ease;
    display: inline-block;
}

.credits-container a:hover {
    color: #e6c9b3; /* Lighter shade for hover */


}

@media screen and (max-width: 1139px) {
    h1 {
        font-size: 100px !important;
    }
    .elipse-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url('elipse.svg'); /* Cambia esto por la URL de tu textura */
        background-size: 80%; /* Changed from auto to 80% to reduce the size */
        background-repeat: no-repeat;
        background-position: center;
         /* Controla la opacidad de la textura */
        pointer-events: none; /* Hace que la textura no interfiera con la interacción del usuario */
    }

    h6{
        font-size: 12px;
    }

    #start-button{
        margin-top: 18px;
    }

    #timer-display{
        font-size: 180px !important;
        line-height: 100%;
    }

    .phrase-container{
        margin-bottom: 16px;
    }

    .modal{
        position: absolute;
    }
   

    
}

@media screen and (max-width: 696px) {
    h1 {
        font-size: 80px !important;
    }

    #timer-display{
        font-size: 110px !important;
        line-height: 100%;
    }
   

    h6{
        font-size: 12px;
    }

    #start-button{
        margin-top: 18px;
    }

    #shape1, #shape2, #shape3, #shape4 {
        width: 24px;
        height: 24px;
    }

    .phrase-container{
        margin-bottom: 16px;
    }

    .controls-buttons{
        margin-top: 0px;
    }
    
    .modal{
        position: absolute;
    }

    
}

@media screen and (max-width: 550px) {
    body {
    overflow-x: hidden;
}

.container {
    overflow-x: hidden;
}
    h1 {
        font-size: 60px !important;
    }

    #timer-display{
        font-size: 90px !important;
        line-height: 100%;
    }
   

    h6{
        font-size: 13px;
    }

    #start-button{
        margin-top: 18px;
        font-size:15px;
    }

    body{
        padding: 16px;
    }
    #shape1 {
    top: 32px;
    left: 32px;
    }

    #shape2 {
    top: 32px;
    right: 32px;
    }

    #shape3 {
    bottom: 32px;
    right: 32px;
    }

    #shape4 {
    bottom: 32px;
    left: 32px;
    }

    nav{
        height: 88px;
    }

    .credits-container{
        height: 180px;
    }
    
    #start-button,#pause-play-button, #skip-button, .settings-button {
        font-weight: 300;
        font-size: 15px;
    }
}

@media screen and (max-width: 450px) {
    h1 {
        font-size: 50px !important;
    }
    .phrase-container img{
display: none;    }
        .phrase-container{
            text-align: center;
            margin-bottom: 32px;
        }

        .phrase-container h6{
            font-size: 10px;
        }
        .phrase-container{
            margin-bottom: 16px;
        }
}

@media screen and (max-width: 340px) {
    h1 {
        font-size: 46px !important;
    }
    .phrase-container img{
display: none;    }
        .phrase-container{
            text-align: center;
            margin-bottom: 32px;
        }

        .phrase-container h6{
            font-size: 10px;
        }
        .phrase-container{
            margin-bottom: 12px;
        }
}





