* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}
#container:hover{ transform:scale(1.1)}
body {
    background: linear-gradient(to top left, #000000, #00008b);
    min-height: 100vh;
    color: white;
}

#title {
    background: linear-gradient(to left, purple, black);
    padding: 15px;
    font-size: 24px;
}

#title a { color: red; text-decoration: none; }

/* Main Notes Area */
#ans {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

/* Floating Action Button */
#btn {
    background-color: hotpink;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    font-size: 35px;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.5);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

#btn:hover { transform: scale(1.1); }

/* Popup Overlay */
#popup {
    background: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* JS will change this to 'flex' */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#name, #context {
    background: transparent;
    border: 2px solid red;
    color: skyblue;
    padding: 12px;
    width: 85%;
    max-width: 400px;
    margin-bottom: 20px;
    font-size: 18px;
    outline: none; border-style:double;
}

#context { border-color: mediumvioletred; height: 100px; }

.btn-group {
    display: flex;
    gap: 15px;
    width: 85%;
    max-width: 400px;
}

#enter, #remove {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    font-weight: bold;
}

#enter { background-color: green; }
#remove { background-color: red; }

/* Note Card */
#container {
    background: black;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px;
    width: auto;
    transition: 0.3s;
    height:auto;
}

#container h3 { color: red; margin-bottom: 8px; font-size:20px }
#container p { font-size: 18px; margin-bottom: 12px; }

.clr {
    background: red;
    border: none;
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
}

/* Mobile Responsiveness */
@media screen and (max-width: 600px) {
    #btn { width: 55px; height: 55px; bottom: 20px; right: 20px; font-size: 28px; }
    #ans { padding: 10px; }
}
