* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html{
    font-family: Arial, Helvetica, sans-serif;
}

/*Body*/

body{
    margin: 0 auto;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    height: 100vh;
    gap: 2%;

}

/***********************************HEADER *********************/

.header{
    width: 100%;
    padding: 2vh 10vh;
    display: flex;
    font-family: Arial, Helvetica, sans-serif;

    align-items: center;
    gap: 3vh;

    background-color: aliceblue;



}

.header a{
    text-decoration: none;
}

/*Main*/
.title{
    text-align: center;
    font-size: large;
    font-weight: bolder;
}

.main {
    display: flex;
    flex-direction: column;
    padding: 3vh;
    gap: 2vh;
    border-radius: 30px;
    max-height: 80vh;

    flex: 1;

    
    background-color: rgb(230, 230, 230);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2); /* Sombra ligera */
}


/*MEDIA BOX CON TABLERO Y OPCIONES*/
.container{
    display: flex;
    gap: 2vh;
    justify-content: center;
    align-items: center;
}

/*------------------------------------------------------------------------------------options*/
.options{
    display: flex;
    flex-direction: column;
    gap: 2vh;
    align-items: center;
    justify-content: center;
}
/* Mejora la apariencia del input color */
.colorPicker {
    width: 4vh;
    height: 4vh;
    border: none;
    cursor: pointer;
    border-radius: 50%;
}
.width{
    border: 1px solid rgb(3, 23, 61);
    -webkit-appearance: none; /* Elimina el estilo por defecto en WebKit */
    appearance: none;
    height: 2vh; /* Grosor de la barra */
    border-radius: 30px;
    cursor: pointer;
}
.width::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 2vh; /* Tamaño del thumb */
    height: 2vh;
    background: rgb(72, 102, 187); /* Color del thumb */
    border-radius: 50%;
    transition: 0.2s;
}
input[type="range"]::-webkit-slider-thumb:hover {
    background: #0056b3;
    transform: scale(1.2);
}


/* Personaliza el input en navegadores WebKit */
.colorPicker::-webkit-color-swatch {
    border-radius: 50%;
}

/* Personaliza el input en Firefox */
.colorPicker::-moz-color-swatch {
    border-radius: 50%;
}

/*--------------------------------------------------------------------------------------TALBERO*/

.board{
    border: 5px solid black;
    display: flex;
    flex-direction: column;
    width: 500px;
    height: 500px;

}
.row{
    display: flex;
    flex: 1;
}
.pixel{
    background-color: white;
    flex: 1;
}

.pixel:hover{
    background-color: var(--color, black);
}

/*CLEAR BUTTON*/

.clear{
    background-color: rgb(197, 243, 245);
    height: 2vh;
    font-weight: bold;
    cursor: pointer;
}
/*FOOTER*/

.footer{
    

    width: 100%;
    margin-top: auto;
    height: 5vh;
    background-color: black;
    color: wheat;
    display: flex;
    align-items: center;
    justify-content: center;

}




/** MEDIA QUERIES **/

@media screen and (max-width: 600px){

    .container{
        flex-direction: column;
    }

    
    .board{
        border: 5px solid black;
        display: flex;
        flex-direction: column;
        width: 300px;
        height: 300px;

    }

}


