@font-face {
    font-family: 'Fredoka';
    src: url('fonts/static/Fredoka-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Fredoka';
    src: url('fonts/static/Fredoka-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'Fredoka';
    src: url('fonts/static/Fredoka-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Comfortaa';
    src: url('fonts/static/Comfortaa-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Comfortaa';
    src: url('fonts/static/Comfortaa-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comfortaa', cursive;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    position: relative;
    color: #5a3d2b;
    padding: 20px;
    background-color: #fff9f0;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Oneko.js Cat Container */
#oneko-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    pointer-events: none;
}

/* noise Background */
#noiseCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: blur(25px);
    image-rendering: crisp-edges;
}

/* Animated Background */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    z-index: -1;
    filter: blur(25px);
    animation: moveBackground 5s linear infinite;
}

.background {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        #ffcce6, #ccf2ff, #ffcc99,
        #ffcce6, #ccf2ff, #ffcc99);
    background-size: 400% 400%;
    animation: gradientShift 25s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-50%, -50%);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Main Content Container */
.container {
    width: 100%;
    max-width: 900px;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 3px dashed #ff99cc;
    z-index: 10;
    position: relative;
    overflow: hidden;
}

/* corner decorations */
.corner-decor {
    position: absolute;
    width: 100px;
    height: 100px;
    opacity: 0.15;
    z-index: -1;
}

.corner-1 {
    top: -20px;
    left: -20px;
    background-color: #ffcc99;
    border-radius: 0 0 50px 0;
    transform: rotate(45deg);
}

.corner-2 {
    bottom: -20px;
    right: -20px;
    background-color: #99ccff;
    border-radius: 50px 0 0 0;
    transform: rotate(45deg);
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 3.2rem;
    margin-bottom: 10px;
    color: #ff6699;
    text-shadow: 3px 3px 0 #ffccff;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 20px;
    color: #5a3d2b;
    font-weight: 700;
    line-height: 1.5;
}

.tagline {
    font-size: 1.2rem;
    font-style: italic;
    color: #ff6699;
    margin-top: 10px;
}

/* Event Details */
.event-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 8px solid;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.detail-item:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.date-item {
    border-left-color: #ff99cc;
}

.location-item {
    border-left-color: #99ccff;
}

.detail-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    line-height: 1;
    flex-shrink: 0;
    padding-top: 4px;
}

.date-icon {
    background-color: #ffe6f2;
    color: #ff6699;
}

.location-icon {
    background-color: #e6f7ff;
    color: #3399ff;
}

.detail-text {
    flex-grow: 1;
}

.detail-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 8px;
    color: #5a3d2b;
    font-family: 'Fredoka', sans-serif;
}

.detail-info {
    font-size: 1.2rem;
    color: #7a5b48;
    line-height: 1.5;
}

/* Download Button */
.download-section {
    text-align: center;
    position: relative;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(45deg, #ff99cc, #ff6699);
    color: white;
    padding: 20px 45px;
    font-size: 1.5rem;
    font-weight: 900;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 102, 153, 0.3);
    font-family: 'Fredoka', sans-serif;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.download-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.download-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 102, 153, 0.4);
}

.download-btn:hover:before {
    left: 100%;
}

.download-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.download-icon {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-note {
    margin-top: 15px;
    font-size: 1rem;
    color: #7a5b48;
    font-style: italic;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px dotted #ff99cc;
    color: #7a5b48;
    font-size: 1rem;
}

.footer a {
    color: #ff6699;
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 25px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .detail-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .detail-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .download-btn {
        padding: 18px 35px;
        font-size: 1.3rem;
    }
    
    .guidelines-list {
        grid-template-columns: 1fr;
    }
    
    #oneko-container {
        display: none; /* Hide on mobile for better performance */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 20px;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
}
.svg-icon {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.detail-icon .svg-icon {
    width: 36px;
    height: 36px;
}

.download-icon .svg-icon {
    width: 32px;
    height: 32px;
}

.guideline-icon .svg-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

/* Theme toggle styles */
.theme-toggle-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.theme-toggle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    border-color: #ff6699;
}

.theme-icon {
    width: 24px;
    height: 24px;
    fill: #5a3d2b;
    transition: all 0.3s ease;
}

.dark-icon {
    display: none;
}

/* Dark theme styles */
body.dark-theme {
    color: #f0e6dc; /* Warmer, higher contrast text */
    background-color: #121212; /* Darker base for better contrast */
}

body.dark-theme .container {
    background-color: rgba(25, 25, 28, 0.9); /* Darker translucent */
    border-color: #ff80b3; /* Brighter border */
    color: #f0e6dc;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4); /* Stronger shadow */
}

body.dark-theme .background {
    background: linear-gradient(45deg, 
        #4a2255, #224477, #774422,  /* More saturated dark colors */
        #4a2255, #224477, #774422) !important;
    background-size: 400% 400% !important;
}

body.dark-theme h1 {
    color: #ff80b3; /* Brighter pink */
    text-shadow: 3px 3px 0 #553344; /* Darker shadow for contrast */
}

body.dark-theme .subtitle {
    color: #d8c8b8; /* Softer but readable */
}

body.dark-theme .tagline {
    color: #ff99cc; /* Brighter accent */
}

/* Detail items */
body.dark-theme .detail-item {
    background-color: rgba(40, 40, 45, 0.95); /* Darker, less transparent */
    color: #f0e6dc;
    border-left-width: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-theme .detail-title {
    color: #ffb3d9; /* Softer pink for titles */
}

body.dark-theme .detail-info {
    color: #e8d8c8; /* Higher contrast */
}

/* Icon backgrounds */
body.dark-theme .date-icon {
    background-color: #332233; /* Dark purple */
    color: #ff99cc;
}

body.dark-theme .location-icon {
    background-color: #223344; /* Dark blue */
    color: #99ccff;
}

/* Download button */
body.dark-theme .download-btn {
    background: linear-gradient(45deg, #ff66a3, #cc3366);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 102, 163, 0.4);
}

body.dark-theme .download-btn:hover {
    background: linear-gradient(45deg, #ff77b3, #dd4477);
    box-shadow: 0 15px 30px rgba(255, 102, 163, 0.6);
}

/* Footer */
body.dark-theme .footer {
    color: #c8b8a8;
    border-color: #ff80b3;
}

body.dark-theme .footer a {
    color: #ff99cc;
}

body.dark-theme .footer a:hover {
    color: #ffb3d9;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .theme-toggle-container {
        top: 15px;
        right: 15px;
    }
    
    .theme-toggle-btn {
        width: 45px;
        height: 45px;
    }
    
    .theme-icon {
        width: 22px;
        height: 22px;
    }
}

@media screen {
    .background-container,
    .background,
    .floating-element {
        filter: none !important;
        -webkit-filter: none !important;
        background-image: none !important;
    }
    
    /* Force our gradients in both themes */
    .background {
        background: linear-gradient(45deg, 
            #ffcce6, #ccf2ff, #ffcc99,
            #ffcce6, #ccf2ff, #ffcc99) !important;
        background-size: 400% 400% !important;
    }
    
    body.dark-theme .background {
        background: linear-gradient(45deg, 
            #663366, #336699, #996633,
            #663366, #336699, #996633) !important;
        background-size: 400% 400% !important;
    }
}

.container, 
.detail-item, 
.cuddle-guidelines,
.download-btn,
.footer,
.background,
.svg-icon {
    transition: background-color 0.5s ease, 
                border-color 0.5s ease, 
                color 0.5s ease,
                fill 0.5s ease,
                background-image 0.5s ease;
}

/* But keep animations running */
.background {
    animation: gradientShift 25s ease infinite !important;
}

.floating-element {
    animation: float 8s ease-in-out infinite !important;
}

