html {
    cursor: none; /* Hide the default system cursor */
}

body {
    cursor: none; /* Ensure no default cursor on body either */
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', sans-serif;
    background-color: #FFC0CB; /* Light Pink */
    /* Let's try the swirl pattern as a background! */
    background-image: url('images/pink_black_swirl_pattern.png');
    background-attachment: fixed; /* Keeps the background in place while scrolling */
    background-size: cover; /* Or 'contain', or a specific size like '300px 300px' and 'repeat' */
    color: #8B0000; /* Dark Red */
    margin: 0;
    padding: 0;
    text-align: center;
}

header {
    background-color: #FF69B4; /* Hot Pink */
    padding: 20px;
    border-bottom: 5px dashed #FF1493; /* Deep Pink */
}

header h1 {
    margin: 0;
    font-size: 3em;
    color: #FFF0F5; /* Lavender Blush */
    text-shadow: 2px 2px #8B0000;
}

header p {
    font-size: 1.2em;
    color: #FFE4E1; /* Misty Rose */
    margin-bottom: 15px;
}

/* Navigation Bar Styles */
nav {
    background-color: rgba(139, 0, 0, 0.5); /* Dark Red with some transparency */
    padding: 10px 0;
    border-top: 2px dashed #FF1493;
    border-bottom: 2px dashed #FF1493;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li a {
    color: #FFF0F5; /* Lavender Blush */
    text-decoration: none;
    font-size: 1.3em;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover,
nav ul li a.active /* We can add 'active' class with JS later if needed */
{
    background-color: #FF1493; /* Deep Pink */
    color: #FFC0CB; /* Light Pink */
    text-shadow: 1px 1px 2px #8B0000;
    transform: scale(1.05);
}

nav ul li a {
    transition: background-color 0.3s, color 0.3s, transform 0.2s ease-out;
}

main {
    padding: 20px;
}

section {
    background-color: #FFB6C1; /* Lighter Pink */
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 15px;
    border: 3px solid #FF69B4;
    box-shadow: 5px 5px 10px #DB7093; /* Pale Violet Red */
}

section h2 {
    color: #C71585; /* Medium Violet Red */
    font-size: 2em;
    border-bottom: 2px dotted #8B0000;
    display: inline-block;
    margin-bottom: 15px;
}

img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    border: 5px solid #FF1493;
    margin-top: 10px;
    margin-bottom: 10px;
    box-shadow: 0 0 15px #FF69B4;
    display: block; /* Ensures img is block to center with margin auto */
    margin-left: auto;
    margin-right: auto;
}

.denizen-card, .attraction-card {
    background-color: #FFF0F5; /* Lavender Blush */
    padding: 15px;
    margin: 10px auto;
    border-radius: 10px;
    border: 2px dashed #C71585;
    max-width: 500px;
}

.denizen-card h3 {
    color: #8B0000;
    font-size: 1.5em;
}

footer {
    background-color: #FF69B4; /* Hot Pink */
    color: #FFF0F5; /* Lavender Blush */
    padding: 15px;
    border-top: 5px dashed #FF1493; /* Deep Pink */
    margin-top: 30px;
}

footer p {
    margin: 5px 0;
}

/* Pulsing glow for sections on hover */
section:hover {
    box-shadow: 0 0 25px #FF1493, 0 0 35px #FF69B4; 
    transition: box-shadow 0.5s ease-in-out;
}

/* Sparkle animation */
@keyframes sparkle {
    0% { text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #FF69B4, 0 0 20px #FF69B4; }
    50% { text-shadow: 0 0 10px #fff, 0 0 15px #FF1493, 0 0 20px #FF1493, 0 0 25px #FF1493; }
    100% { text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #FF69B4, 0 0 20px #FF69B4; }
}

header h1 {
    animation: sparkle 2s infinite;
}

/* Button style (if we add any later) */
button {
    background-color: #FF1493; /* Deep Pink */
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 2px 2px 5px #8B0000;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #C71585; /* Medium Violet Red */
    transform: scale(1.05);
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    background-color: #FFF0F5; /* Lavender Blush */
    border: 2px dashed #C71585; /* Medium Violet Red */
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 3px 3px 8px #DB7093; /* Pale Violet Red */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 3px solid #FF69B4; /* Hot Pink */
    margin-bottom: 10px;
}

.gallery-item p {
    color: #8B0000; /* Dark Red */
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 5px;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 5px 5px 15px #C71585; /* Medium Violet Red for a deeper glow */
}

/* Form Styles */
form {
    background-color: rgba(255, 240, 245, 0.9); /* Lavender Blush with slight transparency */
    padding: 25px;
    border-radius: 10px;
    border: 2px dashed #FF69B4; /* Hot Pink */
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 3px 3px 8px #DB7093; /* Pale Violet Red */
    cursor: none; /* Hide default cursor */
}

.custom-cursor-element {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px; /* Adjust if your cursor image is different */
    height: 32px; /* Adjust if your cursor image is different */
    background-image: url('images/pink_cursor.png');
    background-repeat: no-repeat;
    background-size: contain; /* Or cover, or actual dimensions */
    pointer-events: none; /* So the cursor doesn't interfere with clicks */
    z-index: 99999; /* Make sure it's on top */
    /* The library will handle the transform for positioning */
}

/* Optional: Style for when the cursor interacts with 'target' elements */
.custom-cursor-element.hover {
    /* Example: slightly enlarge or change appearance on hover */
    /* transform: scale(1.2); */ 
    /* You might need different styling or the library handles this via its own classes */
}

form div {
    margin-bottom: 15px;
    text-align: left;
}

form label {
    display: block;
    margin-bottom: 5px;
    color: #8B0000; /* Dark Red */
    font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form textarea {
    width: calc(100% - 22px); /* Full width minus padding and border */
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #FF69B4; /* Hot Pink */
    background-color: #FFFAFA; /* Snow */
    color: #8B0000;
    font-family: 'Arial', sans-serif; /* More standard font for inputs */
}

form input[type="checkbox"] {
    margin-right: 5px;
    vertical-align: middle;
}

form label.inline-label {
    display: inline;
    font-weight: normal;
}

form button[type="submit"] {
    display: block;
    margin: 10px auto 0;
    width: auto;
}

#form-status, #signup-status {
    margin-top: 15px;
    font-weight: bold;
    color: #C71585; /* Medium Violet Red */
}

/* Ensure sections on pages with background image are readable */
section {
    background-color: rgba(255, 182, 193, 0.85); /* Lighter Pink with transparency */
    /* ... existing section styles ... */
}

.denizen-card, .attraction-card {
    background-color: rgba(255, 240, 245, 0.9); /* Lavender Blush with transparency */
    /* ... existing card styles ... */
}

/* Style for the Abyss Boutique card with its own background */
.attraction-card[style*="pink_black_swirl_pattern.png"] {
    background-color: transparent !important; /* Override general card background if image is set */
    border: 3px solid #FF1493; /* Deep Pink border to make it pop */
}

.attraction-card[style*="pink_black_swirl_pattern.png"] p {
    color: #FFF0F5 !important; /* Lavender Blush for text on dark pattern */
    background-color: rgba(0,0,0,0.6) !important; /* Darker semi-transparent background for text */
}

/* Pink Helly Calculator Styles */
#calculator {
    width: 320px;
    margin: 30px auto;
    border: 5px solid #FF1493; /* Deep Pink */
    border-radius: 15px;
    padding: 15px;
    background-color: #FF69B4; /* Hot Pink */
    box-shadow: 0 0 20px #C71585, inset 0 0 10px #8B0000;
}

#calc-display {
    background-color: #FFF0F5; /* Lavender Blush */
    color: #8B0000; /* Dark Red */
    font-size: 2.5em;
    padding: 15px;
    text-align: right;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 3px inset #DB7093; /* Pale Violet Red */
    min-height: 60px; /* Ensure display height consistency */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.calc-btn {
    background-color: #FFC0CB; /* Light Pink */
    color: #8B0000; /* Dark Red */
    border: 2px solid #DB7093; /* Pale Violet Red */
    border-radius: 8px;
    padding: 18px;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
}

.calc-btn:hover {
    background-color: #FFB6C1; /* Lighter Pink */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 0, 0, 0.3);
}

.calc-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(139, 0, 0, 0.5);
}

.calc-btn.function {
    background-color: #DB7093; /* Pale Violet Red */
    color: #FFF0F5; /* Lavender Blush */
}

.calc-btn.operator {
    background-color: #C71585; /* Medium Violet Red */
    color: #FFF0F5;
}

.calc-btn.equals {
    background-color: #8B0000; /* Dark Red */
    color: #FFC0CB; /* Light Pink */
    grid-column: span 2; /* Make equals button wider */
}

.calc-btn.zero {
    grid-column: span 2; /* Make zero button wider */
}
