@font-face{
    src: url(fonts/Caprasimo-Regular.ttf);
    font-family: brand;
}
@font-face{
    src: url(fonts/Noto_Sans/NotoSans-VariableFont_wdth\,wght.ttf);
    font-family: straightText;
}
@font-face{
    src: url(fonts/Noto_Sans/static/NotoSans-Bold.ttf);
    font-family: boldText;
}
@font-face{
    src: url(fonts/Sniglet/Sniglet-Regular.ttf);
    font-family: curvyText;
}
@font-face{
    src: url(fonts/Cinzel/static/Cinzel-Black.ttf);
    font-family: boldFancy;
}

@font-face{
    src: url(fonts/Redressed/Redressed-Regular.ttf);
    font-family: welcome;
}



body{
    margin: 0;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: aliceblue;
    background-color: var(--primary-page-bg);
    color: var(--primary-text-color);
    transition: background-color 0.5s ease;
    --primary-page-bg: rgb(255, 255, 255);
    --primary-text-color: black;
    --stopwatch: hsl(0, 0%, 25%);
    --time: hwb(0 30% 70%);
    --container: #A9AB9D;
    --border-color: rgb(0, 0, 0);
    --hidden: 1;
    --hidden2:0;
    --shadow: -1px -1px 0 #FFF, 1px -1px 0 #FFF, -1px 1px 0 #FFF, 1px 1px 0 #FFF;
    overscroll-behavior: none;
    --plusout: rgb(250, 250, 250);
    --plusouthov: rgb(230,230,230);
    --ihov: rgb(50, 50, 50);
    --backy: rgb(211, 224, 235);
    --boshdo:9px 9px 18px #b3b3b3,
    -9px -9px 18px hsla(40, 92%, 46%, 0.2);
}
body.dark{
    --primary-page-bg: black;
    --primary-text-color: white;
    --stopwatch: hsl(0, 0%, 95%);
    --time: hsl(105, 81%, 45%);
    --container: rgba(50, 50, 50, 0.84);
    --border-color: rgb(255, 255, 255);
    --hidden: 0;
    --hidden2:1;
    --shadow: -1px -1px 0 #000000, 1px -1px 0 #000000, -1px 1px 0 #000000, 1px 1px 0 #000000;
    --plusout: rgb(40, 40, 40);
    --plusouthov: rgb(20,20,20);
    --ihov: rgb(200, 200, 200);
    --backy: rgb(40, 51, 58);
    --boshdo:9px 9px 18px #787070,
    -9px -9px 18px hsla(40, 92%, 46%, 0.2);
    
}
/* Dark Mode */
.fa-solid.fa-moon{
    display: inline-block; 
    text-align: center;
    width:60px;
    height:auto;
    position: absolute;
    right:9px;
    top: 35px;
    z-index: 20;
    opacity:var(--hidden2);
}
#toggle{
    display: none;
}
.fa-solid.fa-sun{
    display: inline-block; 
    text-align: center;
    width:60px;
    height:auto;
    position: absolute;
    right:9px;
    top: 35px;
    opacity:var(--hidden);
    animation: smoothGrow 1.5s ease-out;
}
@keyframes smoothGrow{
    50%{
        transform: scale(1.5,1.5) rotate(180deg);
    }
}


/* Logo and Navbar */
#minHeader{
    display:inline-block;
    text-align: center;
    background-color:#d8572a;
    width:100%;
    height:11.75vh;
}
#companyName{
    text-align: center; 
    display:inline-block; 
    font-family: boldFancy;
    color:#CFE8EF;
}
#logo{
    display: inline-block; 
    text-align: center;
    width:60px;
    height:auto;
    position: relative;
    top: 18px;
}
.navbar ul{
    list-style: none;
    background-color: #db7c26;
    text-align: center;
    padding: 0;
    margin:0;
    overflow:hidden;
}
.navbar a{
    text-align: center;
    color:#CFE8EF;
    text-decoration: none;
    padding:1em;
    display: block;
    font-family: curvyText;
}
.navbar a:hover{
    background-color: #d8572a;
}
.navbar li{
    display: inline-block;
    align-content: center;
    margin-left: 25px;
    margin-right: 25px;
}


/* Main Part */
#big{
    display: flex;
    width:100vw;
    height:100vh;
    transition: background-color 0.5s ease;
}
#container {
    background-color: var(--backy);
    overflow: hidden;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    align-items: center;
    justify-content: center;
    overflow-y: scroll;
    transition: background-color 0.5s ease;
}
#list-header {
    display: flex;
    align-items: left;
    justify-content: left;
}


/* Big Add Note Box */
#addNoteDiv {
    background-color: var(--plusout);
    transition: background-color 0.5s ease;
    border: 3px inset #ddd;
    padding: 20px;
    border-radius: 8px;
    height: 200px;
    width: 100%;
    margin: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}
#addNoteDiv:hover {
    transition: 0.25s;
    background-color: var(--plusouthov);
}
#addNoteDiv i {
    font-size: 100px;
    color: rgb(135, 135, 135);
    transition: all 1s ease-in-out;
    font-family: curvyText;
    animation: bigrow 1.5s ease-out;
}
#addNoteDiv i:hover {
    transform: rotate(360deg);
    color: var(--ihov);
}
#addNoteDiv i:active {
    transition: all 1s ease;
}
@keyframes turn360 {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotateY(360deg);
    }
    100% {
        transform: rotate(0deg);
    }
}
@keyframes bigrow {
    0% {
        transform: scale(.25,.25);
    }
    50% {
        transform: rotateY(360deg);
    }
    100% {
        transform: rotate(0deg);
    }
}


/* Notepad CSS */
#list-container {
    display: flex;
    align-items: left;
    justify-content: left;
}
#list-container ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    font-family: curvyText;
    width: 100%;
}
#list-container li {
    background-color: #fff385;
    margin: 5px;
    margin-left: 3px;
    margin-right: 2px;
    padding: 25px;
    border-radius: 8px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Added to align buttons to the right */
    height: 200px;
    width: 45%;
    margin: 10px;
    border-radius: 10px;
    box-shadow: var(--bashdo);
    
}
li span {
    font-size: 1em;
    color: black;
    width:100%;
    margin: 2px;
    padding:3px;
    flex-grow: 1;
    word-wrap: break-word;
    overflow-y: scroll;
}


/* Edit Button and Delete Button */
#editBtn{
    background-color: hsla(217, 88%, 32%, 0.75);
    transition: background-color 0.5s ease;
    color: #fff;
    border: none;
    padding: 5px 10px;
    margin: 0 5px; /* Adjusted margin for spacing */
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    width: 60px;
} 
#deleteBtn {
    background-color: hsla(3, 67%, 46%, 0.9);
    transition: background-color 0.5s ease;
    color: #fff;
    border: none;
    padding: 5px 10px;
    margin: 0 5px; /* Adjusted margin for spacing */
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    width: 60px;
}
#colorBtn {
    background: linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet, red);
    transition: background-color 0.5s ease;
    color: #fff;
    border: none;
    padding: 5px 10px;
    margin: 0 5px; /* Adjusted margin for spacing */
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    width: 60px;
}
#colorBtn
#deleteBtn:hover {
    background-color: hsla(349, 98%, 24%, 0.9);
}
#editBtn:hover {
    background-color: #0A4097;
}


/* Create Note Popup CSS */
#popupContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    height: 40%;
    background-color: white;
    border: 3px solid #0000005c;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.501);
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 3px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-family: brand;
    color:black;
    font-size: 20px;
}
textarea {
    width: 95%;
    height: 100%;
    padding: 10px;
    margin-bottom: 5px;
    box-sizing: border-box;
    border-radius: 5px;
    border: 2px solid hsla(16, 69%, 51%, 0.75);
    font-family: curvyText;
    font-size: 15px;
}
#btn-container {
    display: flex;
}
#submitBtn, #closeBtn {
    width: 100px;
    background-color: #c32f27;
    color: #fff;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    margin: 10px;
}
#closeBtn {
    background-color: gainsboro;
}


/* Editing Popup CSS */
#editing-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 300px;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
}
#submitBtn, #closeBtn { /* Create Note */
    width: 100px;
    background-color:#f7b538;
    color: #fff;
    font-size: 13px;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    margin: 10px;
    font-family: straightText;
    font-weight: bold;
}
#closeBtn { /* Close */
    background-color: #c32f27;
}