body {
    font-family: 'Cinzel', serif;
    background-image: url('festive-parchment-background.jpg');
    background-size: cover;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    color: #2b1900;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

.container {
    max-width: 1200px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

h1 {
    font-family: 'Great Vibes', cursive;
    color: #d9534f;
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px #fff;
}

/* List Titles */
.list h2 {
    font-family: 'Great Vibes', cursive;
    color: white;
    font-size: 2.5em;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
    text-align: center;
}

/* List Wrapper Adjustment */
.lists-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

/* List Box Size and Style */
.list {
    flex: 1;
    min-width: 300px;
    max-width: 45%;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

/* Remove Bullet Points and Add Handwriting Style */
ul {
    list-style: none;
    padding: 0;
    width: 100%;
    text-align: center;
}

ul li {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8em;
    color: white;
    margin: 10px 0;
    padding: 5px;
    transition: transform 0.2s ease, color 0.2s ease;
}

ul li:hover {
    transform: scale(1.05);
    color: #f1e4d7;
}

/* Naughty List Specific Styling */
.list.naughty {
    background: #d9534f;
    border: 2px solid #a00000;
}

/* Nice List Specific Styling */
.list.nice {
    background: #5cb85c;
    border: 2px solid #3a8b3a;
}

/* Add Button */
.input-group button {
    font-family: 'Cinzel', serif;
    font-size: 1.2em;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.list.naughty .input-group button {
    background: #a00000;
    color: white;
}

.list.naughty .input-group button:hover {
    background: #d9534f;
    transform: scale(1.1);
}

.list.nice .input-group button {
    background: #3a8b3a;
    color: white;
}

.list.nice .input-group button:hover {
    background: #5cb85c;
    transform: scale(1.1);
}

/* Save Button Styling */
.save-button {
    background: #d9534f; /* Red background */
    color: white;
    padding: 15px 25px;
    font-size: 1.2em;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.save-button:hover {
    background: #a00000; /* Darker red on hover */
    transform: scale(1.1); /* Slight zoom on hover */
}

/* Share Button Styling */
.share-button {
    background: #5cb85c; /* Green background */
    color: white;
    padding: 15px 25px;
    font-size: 1.2em;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.share-button:hover {
    background: #3a8b3a; /* Darker green on hover */
    transform: scale(1.1); /* Slight zoom on hover */
}

/* Help Button */
/* Help Button in Top-Right Corner */
.help-button {
    position: absolute; /* Position the button at the top-right */
    top: 30px;
    right: 20px;
    background: #0066cc; /* Blue background */
    color: white;
    padding: 10px 20px; /* Increase padding for better visibility */
    border-radius: 8px; /* Rounded corners */
    font-size: 1.2em;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    transition: transform 0.2s ease, background 0.3s ease;
}

.help-button:hover {
    background: #004da0; /* Slightly darker blue on hover */
    transform: scale(1.1); /* Subtle zoom on hover */
}

/* Input Fields */
input {
    font-family: 'Cinzel', serif;
    font-size: 1.1em;
    padding: 10px;
    border-radius: 5px;
    border: 2px solid #800000;
}

input::placeholder {
    font-family: 'Cinzel', serif;
    color: #800000;
}

input:focus {
    outline: none;
    border: 2px solid #a00000;
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.7);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Centering Save and Share Buttons */
.actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: rgba(255, 255, 240, 0.95);
    padding: 30px;
    border-radius: 20px;
    max-width: 600px;
    width: 80%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease;
    border: 3px solid #8B4513;
}

.modal-content h2 {
    font-family: 'Great Vibes', cursive;
    color: #800000;
    margin-bottom: 20px;
    font-size: 2.5em;
}

.modal-content p, .modal-content ol {
    font-family: 'Cinzel', serif;
    color: #2b1900;
    line-height: 1.8;
    text-align: left;
}

.modal-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.modal-content .close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    color: #800000;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-content .close-button:hover {
    color: #ff0000;
}

@media screen and (max-width: 768px) {
    .lists-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .list {
        max-width: 100%;
        padding: 15px;
    }

    h1 {
        font-size: 1.8em;
    }

    .actions {
        flex-direction: column;
        gap: 10px;
    }

    .save-button, .share-button {
        padding: 12px 20px;
        font-size: 1em;
    }

    .help {
        margin-top: 15px;
    }

    .help-button {
        font-size: 1em;
        padding: 10px 20px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .modal-content h2 {
        font-size: 2em;
    }

    input {
        max-width: 100%;
        padding: 12px;
    }

    ul {
        max-height: 250px;
        overflow-y: auto;
    }
}
