*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
height: 100%;
width: 100%;
}
body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

#content{
    flex:1;
}

#navbar{
    height:40px;
    width:100%;
    background-color: rgb(15, 15, 39);
    color:beige;
    display: flex;
    align-items: center;
}
#logo{
    height:90%;
    width:3%;
    margin: 10px;
}
#navbar h3{
  font-family: "Lucida Handwriting", "Lucida Italic", cursive;
}
#main{
    gap:10px;
    padding:20px;
    width:100%;
    background-color:#efe8f8;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#writing{
    display: flex;
    align-items: center;
    justify-content: center;
    width:100%;
}
#inp{
    height: 100px;
    width:70%;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    border:1px solid #c0bdbd;
}
#inpnotes{
    outline: none;
    border: none;
    margin:7px;
}
#counter{
    text-align: right;
    margin-right: 200px;  
    color: gray;
    font-size: 14px;
}
#btn{
    width:100%;
    display: flex;
    justify-content:center;

}
#add{
    background-color: rgb(85, 12, 154);
    display: flex;
    align-items: center;
    justify-content: center;
    color: beige;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left:25px;
    padding-right: 25px;
    border-radius: 10px;
}
#add:hover{
    cursor: pointer;
}
#add span{
    margin-right:10px;
}
hr{
    border:none;
    border-top:1px solid #c0bdbd;
}
#notes-container{
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
    gap: 20px;
    padding: 20px;
}

.note-card{
    min-height: 180px;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor:pointer;
    transition:transform 0.2s ease;
    position: relative;
}
.note-card:hover{
    transform:translateY(-5px);
}
.note-card p{
    font-size: 18px;
    line-height: 1.5;
    word-wrap: break-word;
}
.delete-btn{
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 22px;
    cursor: pointer;
    font-weight: bold;
}

.delete-btn:hover{
    color: red;
}
h3{
    margin-left: 10px;
    margin-top: 10px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
#empty-msg{
    text-align: center;
    color: gray;
    font-size: 18px;
    margin-top: 30px;
}
#footer{
    height:30px;
    width:100%;
    background-color: rgb(15, 15, 39);
    color: aliceblue;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding:20px;

}
