/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Tailwind CSS utility classes */
.bg-gray-50 {
    background-color: #f9fafb;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.min-h-screen {
    min-height: 100vh;
}

.p-4 {
    padding: 1rem;
}

.text-center {
    text-align: center;
}

.select-none {
    user-select: none;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.cursor-default {
    cursor: default;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

/* Responsive text sizes */
@media (min-width: 768px) {
    .md\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
}

@media (min-width: 1024px) {
    .lg\:text-7xl {
        font-size: 4.5rem;
        line-height: 1;
    }
}

/* Base body styles */
body {
    font-family: 'Inter', sans-serif;
    transition: opacity 0.5s ease-out;
    background-color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    margin: 0;
    position: relative;
}

main {
    width: 100%;
    max-width: 100%;
}

.target-date {
    display: block;
    text-align: center;
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: 1rem;
    font-weight: 400;
    letter-spacing: 0.025em;
    clear: both;
}

@media (min-width: 768px) {
    .target-date {
        font-size: 0.7rem;
        margin-top: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .target-date {
        font-size: 0.7rem;
        margin-top: 1.5rem;
    }
}

h1 {
    font-size: 3rem;
    text-align: center;
    user-select: none;
    letter-spacing: -0.025em;
    cursor: default;
    line-height: 1;
    font-weight: 400;
}

/* Responsive h1 text sizes */
@media (min-width: 768px) {
    h1 {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 4.5rem;
    }
}

/* Day text base styles */
.day-text {
    font-weight: 400; 
    line-height: 1;
    animation: pulse 3s infinite ease-in-out;
    font-size: 3rem;
    text-align: center;
    user-select: none;
    letter-spacing: -0.025em;
    cursor: default;
}

/* Responsive font sizes for day-text */
@media (min-width: 768px) {
    .day-text {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .day-text {
        font-size: 4.5rem;
    }
}

/* Unified theme animations (using Friday/Google colors) */
@keyframes pulse-theme {
    0%, 100% { 
        color: #DB4437; /* Red */
    }
    25% {
        color: #F4B400; /* Yellow */
    }
    50% { 
        color: #0F9D58; /* Green */
    }
    75% {
        color: #4285F4; /* Blue */
    }
}

.day-text.blackfriday-theme {
    animation-name: pulse-theme;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.day-text.is-blackfriday {
    animation-name: pulse-theme;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    color: #DB4437; 
}

/* Christmas theme animations */
@keyframes pulse-christmas {
    0%, 100% { 
        color: #DB4437; /* Red */
    }
    25% {
        color: #F4B400; /* Yellow */
    }
    50% { 
        color: #0F9D58; /* Green */
    }
    75% {
        color: #4285F4; /* Blue */
    }
}

.day-text.christmas-theme {
    animation-name: pulse-theme;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.day-text.is-christmas {
    animation-name: pulse-theme;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    color: #DB4437; 
}

/* Easter theme animations */
@keyframes pulse-easter {
    0% {
        color: #EC4899; /* Pink */
    }
    25% {
        color: #A855F7; /* Purple */
    }
    50% { 
        color: #10B981; /* Green */
    }
    75% {
        color: #FBBF24; /* Yellow */
    }
}

.day-text.easter-theme {
    animation-name: pulse-easter;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.day-text.is-easter {
    animation-name: pulse-easter;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    color: #EC4899; 
}

/* Friday theme animations */
.day-text.friday-theme {
    animation-name: pulse-theme;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.day-text.is-friday {
    animation-name: pulse-theme;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    color: #4285F4; 
}
    color: #4285F4; 
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #111827 !important;
        color: #f9fafb;
    }
    
    .visit-counter {
        color: #9ca3af !important;
    }
    
    .frog-text {
        color: #9ca3af !important;
    }
}

/* Force dark mode when dark-mode class is applied */
body.dark-mode {
    background-color: #111827 !important;
    color: #f9fafb;
}

body.dark-mode .visit-counter {
    color: #9ca3af !important;
}

body.dark-mode .frog-text {
    color: #9ca3af !important;
}

/* Force light mode when light-mode class is applied */
body.light-mode {
    background-color: #f9fafb !important;
    color: #111827;
}

body.light-mode .visit-counter {
    color: #ccc !important;
}

body.light-mode .frog-text {
    color: #ccc !important;
}

/* Visit counter */
.visit-counter {
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-size: 12px;
    color: #ccc;
    font-weight: 400;
    user-select: none;
    opacity: 0.7;
}

/* Music toggle button */
.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    border-radius: 0;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 8px;
    opacity: 0.4;
}

.music-icon-img {
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
}

.music-icon-img.playing {
    animation: heartbeat 1.5s infinite ease-in-out;
}

.music-toggle:hover {
    transform: scale(1.1);
}

/* Dark mode styles for music button */
@media (prefers-color-scheme: dark) {
    .music-toggle {
        background: transparent;
    }
    
    .music-toggle:hover {
        background: transparent;
    }
}

body.dark-mode .music-toggle {
    background: transparent;
}

body.dark-mode .music-toggle:hover {
    background: transparent;
}

/* Frog container */
.frog-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    margin-right: 15px;
}

.frog-text {
    font-size: 12px;
    color: #ccc;
    font-weight: 400;
    margin: 2px 0;
    text-align: center;
    white-space: nowrap;
}

.frog-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    transition: opacity 0.3s ease-out;
    animation: heartbeat 1.5s infinite ease-in-out;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.frog-container:hover .frog-icon {
    opacity: 0.8;
}

/* tsparticles background */
#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Fade out animation */
.fade-out {
    opacity: 0;
}
