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

body {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #45B7D1, #6C63FF);
    background-size: 300% 300%;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    min-height: 100vh;
    animation: gradientFlow 15s ease infinite;
    -webkit-animation: gradientFlow 15s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#main {
    min-height: 100vh;
    padding: 60px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 25px;
}

#addBtn {
    position: fixed;
    right: 30px;
    top: 30px;
    background: linear-gradient(145deg, #2ecc71, #27ae60);
    border: none;
    padding: 15px 30px;
    color: white;
    border-radius: 50px;
    outline: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#addBtn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(46, 204, 113, 0.5);
}

.note {
    background-color: rgba(255, 255, 255, 0.15);
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.note:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

.tool {
    background-color: rgba(34, 40, 49, 0.98);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.tool i {
    padding: 10px;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.tool i:hover {
    color: #2ecc71;
    background-color: rgba(255, 255, 255, 0.15);
    transform: rotate(15deg) scale(1.1);
}

.note textarea {
    width: 380px;
    border: none;
    min-height: 280px;
    padding: 20px;
    font-size: 16px;
    line-height: 1.8;
    resize: none;
    color: white;
    background-color: rgba(57, 62, 70, 0.98);
    border-radius: 0 0 20px 20px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.note textarea:hover {
    background-color: rgba(41, 62, 70, 0.98);
}

.note textarea:focus {
    outline: none;
    background-color: rgba(41, 62, 70, 1);
}

.fade-out {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}