@import url('https://fonts.googleapis.com/css2?family=Comic+Sans+MS&display=swap');

:root {
    --primary-color: #ff3366;
    --secondary-color: #33cc99;
    --text-color: #333;
    --bg-color: #f0f0f0;
    --accent-color: #6633cc;
    --error-color: #cc3333;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Comic Sans MS", cursive, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    cursor: none;
    /* Hide default cursor */
}

header {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 100;
}

h1 {
    margin: 0;
    font-size: 2.5rem;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.day-counter {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    font-weight: bold;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.warning-box {
    background-color: #ffeecc;
    border-left: 5px solid var(--primary-color);
    padding: 1rem;
    margin: 2rem 0;
    border-radius: 5px;
}

.warning-box h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.panel-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.panel {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.panel h3 {
    margin-top: 0;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.panel p {
    line-height: 1.5;
}

.cursor-settings {
    margin-top: 2rem;
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #ccc;
}

.setting-label {
    font-weight: bold;
}

/* Custom cursor stylings */
.custom-cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M5 12 L19 12 M12 5 L12 19'/></svg>");
    mix-blend-mode: difference;
}

.follower-cursor {
    position: fixed;
    width: 16px;
    height: 16px;
    pointer-events: none;
    z-index: 9998;
    border-radius: 50%;
    opacity: 0.7;
}

.trail-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    pointer-events: none;
    z-index: 9990;
    border-radius: 50%;
    opacity: 0.5;
    transition: opacity 2s ease;
}

.sneeze-particle {
    position: fixed;
    width: 6px;
    height: 6px;
    pointer-events: none;
    z-index: 9995;
    border-radius: 50%;
    opacity: 0.7;
    transition: opacity 1s ease;
}

.attractable {
    transition: transform 0.2s ease;
}

.repellable {
    transition: transform 0.3s ease;
}

.cursor-playground {
    position: relative;
    width: 100%;
    min-height: 300px;
    background-color: #eef7ff;
    border-radius: 8px;
    margin: 2rem 0;
    overflow: hidden;
    border: 2px dashed var(--accent-color);
}

.floating-element {
    position: absolute;
    padding: 10px 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    user-select: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.magnetic-button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: none;
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    margin: 1rem 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.status-message {
    text-align: center;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.status-message.visible {
    opacity: 1;
}

.status-message.success {
    background-color: rgba(102, 204, 51, 0.2);
    color: var(--accent-color);
}

.status-message.error {
    background-color: rgba(204, 51, 51, 0.2);
    color: var(--error-color);
}

/* Special effects for cursor interactions */
.cursor-doodle-area {
    width: 100%;
    height: 200px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.doodle-line {
    position: absolute;
    pointer-events: none;
    z-index: 10;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: #333;
    color: white;
    margin-top: 2rem;
}

.footer-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.footer-link:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

.footer-text {
    font-style: italic;
}

/* Special checkbox styling */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent-color);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* Keyframes for animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Interactive elements */
.interactive-area {
    width: 100%;
    height: 300px;
    background-color: #f0f8ff;
    border-radius: 8px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    border: 2px dashed var(--primary-color);
}

.floating-target {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease;
    user-select: none;
}

.cursor-text {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cursor-text.show {
    opacity: 1;
    transform: translate(-50%, -80%);
}