@import url('https://fonts.googleapis.com/css2?family=Rock+Salt&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');



body {
    margin: 0;
    font-family: Arial, sans-serif;
    text-align: center;
    font-family: "Work Sans", sans-serif;

}

header {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
    color: white;
    height: 4em;
    margin: 0;
    padding: 5px;
    font-size: smaller;
    font-weight: 200;
    font-family: "Rock Salt";
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    
}

h1{
    margin: 0;
}

.board {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0;
}

.note {
    position: relative;
    width: 250px;
    height: 200px;
    background-color: #ffcc00;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 2em 1em;
    text-align: left;
    word-wrap: break-word;

}

.note:hover {
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.328); /* Nueva sombra al hacer hover */
}

.note-text {
    width: 100%;
    height: 100%;
    padding-bottom: 1em;
    outline: none;
    word-wrap: break-word;
    overflow: auto; /* Agrega una barra de desplazamiento si el contenido se desborda */
    scrollbar-color: red;
    padding-right: 0.6em;
}


button#addNote {
    display: inline-block;
    outline: 0;
    cursor: pointer;
    border: 2px solid #000;
    border-radius: 4px;
    color: #fff;
    background: #000;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1rem;
    padding: 0.5em;
    font-family: "Work Sans", sans-serif;

    &:hover{
        color: #000;
        background: #ffcc00;
    }
    
}

.delete-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: transparent;
    border: none;
    color: #000000;
    font-size: 16px;
    cursor: pointer;
}

#deleteAllNotes{
    display: inline-block;
    outline: 0;
    cursor: pointer;
    border: 2px solid #ff0000;
    border-radius: 4px;
    color: #000000;
    background: #ffffff;
    font-size: 1rem;
    font-weight: 100;
    

    &:hover{
        color: #ffffff;
        background: #ff0000;
    }
}



/*Language button*/

#changeLanguage{
    position: absolute;
    right: 1em;
    cursor: pointer;
    border-radius: 10px;
    background: none;
    color: beige;
    font-family: "Work Sans", sans-serif;
    font-size: smaller;
    
}
