@property --bg-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@keyframes spin {
    to {
        --bg-angle: 360deg;
    }
}

* {
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    background-color: pink;
    margin: 0;
    display: flex;
    place-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    overflow-y: hidden;
}

body {
    margin: 20px;
    background: hsl(70, 31%, 85%);
    text-align: center;
}

.password-container {
    animation: spin 5s infinite linear;
    /* Increased speed of the rainbow animation */
    border: 2px solid transparent;
    border-radius: 50px;
    /* Maintains the stadium shape */
    background: linear-gradient(to bottom, transparent, transparent) padding-box, conic-gradient(from var(--bg-angle) at 50% 50%, red, orange, yellow, green, blue, indigo, violet, red) border-box;
    display: inline-flex;
    padding: 3px;
    /* Slightly increased padding for a larger visual border */
    justify-content: center;
    align-items: center;
    width: auto;
    /* Adjusts to content size */
    margin: 20px;
    /* Ensures there's space around the container */
    position: absolute;
    /* This can be adjusted to 'fixed' or 'absolute' if needed */
    z-index: 2;
}

input[type="password"] {
    border: none;
    padding: 12px 24px;
    /* Increased padding for a larger input field */
    border-radius: 50px;
    /* Ensures the input matches the container's rounded shape */
    width: 250px;
    /* Increased width for a larger input box */
    font-size: 18px;
    /* Slightly larger font size for better readability */
    outline: none;
}

/* Modal styles */
.modal {
    position: fixed;
    z-index: 3;
    /* Above hearts and password container */
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: rgba(128, 128, 128, 0.95);
    padding: 20px;
    border-radius: 50px;
    text-align: center;
    font-size: 16px;
}

/* Heart styles */
/* Existing styles remain unchanged */

/* Updated Heart styles for floating effect */
.heart {
    width: 60px;
    height: 60px;
    position: absolute;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><path d="M24.99 46c-.32 0-.65-.1-.92-.29C23.34 45.07 5 31.19 5 18.5 5 11.04 10.49 5 17.5 5c4.24 0 8.12 2.52 10 6.36C29.38 7.52 33.26 5 37.5 5 44.51 5 50 11.04 50 18.5c0 12.69-18.34 26.57-18.08 27.21-.27.19-.6.29-.92.29z" fill="%23ff0000"/></svg>');
    background-size: 100%;
    /* Adjust this to ensure the SVG fits as desired */
    background-repeat: no-repeat;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh);
        /* Move hearts up the full viewport height */
        opacity: 0;
    }
}

#notebook-paper {
    width: 480px; /* Adjust width as needed */
    height: 600px; /* Adjust height as needed */
    background: linear-gradient(to bottom, white 29px, #00b0d7 1px); /* Blue line every 30px */
    background-size: 100% 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 75px 80px; /* Adjusted padding for content alignment */
    overflow: visible;
    border-radius: 5px;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, .2), 0px 0px 6px rgba(0, 0, 0, .2);
}

#notebook-paper:before {
    content: '';
    position: absolute;
    top: 0;
    left: 60px; /* Adjust as needed to align with the start of your text */
    height: 100%;
    width: 1px;
    background: #db4034; /* Red vertical line */
}

#notebook-paper #content h1 {
    position: absolute;
    top: 500px;
    margin-top: 0px; /* Adjust the bottom margin to control spacing */
}

#notebook-paper #content p {
    margin-top: 0px;
    margin-bottom: -7px; /* Adjust the bottom margin to control spacing */
}


@keyframes floatNote {
    0% { transform: translate(-50%, -150%); }
    50%, 100% { transform: translate(-50%, -50%); } /* Ensures the note settles in the center */
}

#valentine-container {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffeff7;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease-in-out;
}

.button-group {
    margin-top: 20px;
}

button {
    background: #ff5e99;
    color: white;
    font-size: 18px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    margin: 10px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #ff3e80;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

