* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    color: #9370DB;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    box-sizing: border-box;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

body.light-theme {
    background-color: #808080;
}

#background-video {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(75, 75, 75, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(75, 75, 75, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

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

.main-container {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2),
                inset 0 0 30px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    animation: pulseGlow 4s ease-in-out infinite;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow: hidden;
    margin: 0;
    aspect-ratio: 1/1;
}

.chat-circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(0);
    animation: chatGlow 4s ease-in-out infinite;
    animation-delay: 0.5s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow: hidden;
    margin: 0;
    aspect-ratio: 1/1;
}

.content {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
    margin-top: 0;
}

.content p {
    text-align: center;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    color: rgba(200, 200, 210, 0.8);
    text-decoration: none;
    font-size: 16px;
    z-index: 100;
    transition: all 0.3s ease;
}

.back-btn:hover {
    color: rgba(220, 220, 230, 1);
    text-shadow: 0 0 8px rgba(200, 200, 210, 0.6);
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(183, 157, 255, 0.3),
                    inset 0 0 30px rgba(183, 157, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 50px rgba(183, 157, 255, 0.5),
                    inset 0 0 50px rgba(183, 157, 255, 0.5);
    }
}

@keyframes chatGlow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(183, 157, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 50px rgba(183, 157, 255, 0.5);
    }
}

.messages {
    flex: 1;
    padding: 2px;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    position: relative;
    margin-bottom: 2px;
    min-height: 120px;
    max-height: 600px;
    max-width: 95%;
    background: transparent;
    border-radius: 10px;
}

.messages .bot,
.messages .user {
    max-width: 100%;
    width: 100%;
    padding: 2px;
    line-height: 1.2;
    background: transparent;
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.messages .bot.active,
.messages .user.active {
    opacity: 1;
}

.messages .bot {
    color: #9370DB;
    text-shadow: 0 0 10px rgba(147, 112, 219, 0.3);
}

.messages .user {
    color: #ffffff;
    font-style: italic;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.input-container {
    display: flex;
    padding: clamp(8px, 1vw, 12px) clamp(10px, 1.5vw, 15px);
    gap: clamp(5px, 1vw, 10px);
    border-radius: 25px;
    margin: 0;
    border: 1px solid rgba(183, 157, 255, 0.2);
    box-shadow: none;
    background: transparent;
    width: 95%;
    max-width: 500px;
    margin: 0 auto;
    align-items: center;
}

#userInput {
    flex: 1;
    min-width: 0;
    padding: clamp(8px, 1vw, 12px) clamp(10px, 1.5vw, 15px);
    border-radius: 25px;
    border: 1px solid rgba(183, 157, 255, 0.2);
    background: rgba(60, 60, 65, 0.1);
    color: #e0e0e5;
    outline: none;
    transition: all 0.3s ease;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    width: 100%;
}

#userInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#userInput:focus {
    background: rgba(60, 60, 65, 0.2);
    box-shadow: 0 0 10px rgba(183, 157, 255, 0.15);
}

#sendButton {
    padding: clamp(8px, 1vw, 12px) clamp(15px, 2vw, 20px);
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(183, 157, 255, 0.7), rgba(203, 99, 255, 0.157));
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp 0.5rem;
    white-space: nowrap;
    min-width: fit-content;
    width: auto;
    flex-shrink: 0;
    margin-left: 2px
}

#sendButton:hover {
    background: linear-gradient(135deg, rgba(183, 157, 255, 0.9), rgba(108, 99, 255, 0.9));
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.flower-container {
    position: absolute;
    width: 380px;
    height: 380px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% - 65px));
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    perspective: 1200px;
    z-index: 3;
    padding: 20px;
}

.flower-container.beating {
    animation: beat 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes beat {
    0%, 100% {
        transform: translate(-50%, calc(-50% - 65px)) scale(1);
    }
    20% {
        transform: translate(-50%, calc(-50% - 65px)) scale(1.04);
    }
    30% {
        transform: translate(-50%, calc(-50% - 65px)) scale(1.02);
    }
    40% {
        transform: translate(-50%, calc(-50% - 65px)) scale(1);
    }
    70% {
        transform: translate(-50%, calc(-50% - 65px)) scale(1.04);
    }
    80% {
        transform: translate(-50%, calc(-50% - 65px)) scale(1.02);
    }
    90% {
        transform: translate(-50%, calc(-50% - 65px)) scale(1);
    }
}

.petal {
    position: absolute;
    width: clamp(80px, 8vw, 100px);
    height: clamp(140px, 14vw, 170px);
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.15) 30%,
        rgba(255, 255, 255, 0.05) 40%,
        rgba(255, 255, 255, 0.15) 60%,
        rgba(255, 255, 255, 0.4) 100%
    );
    border-radius: 50% 50% 35% 35% / 55% 55% 45% 45%;
    transform-origin: bottom center;
    transform-style: preserve-3d;
    box-shadow: 
        inset -5px 5px 25px rgba(255, 255, 255, 0.9),
        inset 5px -5px 25px rgba(255, 255, 255, 0.9),
        inset 0 0 40px rgba(255, 255, 255, 0.6),
        0 0 20px rgba(255, 255, 255, 0.2),
        0 0 40px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: rotate(var(--rotation)) translateY(-40px) rotateX(35deg) translateZ(15px);
    transition: transform 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.flower-container.beating .petal {
    animation: petalBeat 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes petalBeat {
    0%, 100% {
        transform: rotate(var(--rotation)) translateY(-40px) rotateX(35deg) translateZ(15px) scale(1);
    }
    20% {
        transform: rotate(var(--rotation)) translateY(-40px) rotateX(35deg) translateZ(15px) scale(1.04);
    }
    30% {
        transform: rotate(var(--rotation)) translateY(-40px) rotateX(35deg) translateZ(15px) scale(1.02);
    }
    40% {
        transform: rotate(var(--rotation)) translateY(-40px) rotateX(35deg) translateZ(15px) scale(1);
    }
    70% {
        transform: rotate(var(--rotation)) translateY(-40px) rotateX(35deg) translateZ(15px) scale(1.04);
    }
    80% {
        transform: rotate(var(--rotation)) translateY(-40px) rotateX(35deg) translateZ(15px) scale(1.02);
    }
    90% {
        transform: rotate(var(--rotation)) translateY(-40px) rotateX(35deg) translateZ(15px) scale(1);
    }
}

.flower-container::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.9) 20%,
        rgba(255, 255, 255, 0.4) 60%,
        rgba(255, 255, 255, 0.2) 100%
    );
    border-radius: 50%;
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 0.8),
        0 0 60px rgba(255, 255, 255, 0.4),
        inset 0 0 25px rgba(255, 255, 255, 0.9);
    transform: translateZ(25px);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

@keyframes centerBeat {
    0%, 100% {
        transform: translateZ(25px) scale(1);
        opacity: 0.8;
    }
    20% {
        transform: translateZ(25px) scale(1.08);
        opacity: 1;
    }
    30% {
        transform: translateZ(25px) scale(1.04);
        opacity: 0.9;
    }
    40% {
        transform: translateZ(25px) scale(1);
        opacity: 0.8;
    }
    70% {
        transform: translateZ(25px) scale(1.08);
        opacity: 1;
    }
    80% {
        transform: translateZ(25px) scale(1.04);
        opacity: 0.9;
    }
    90% {
        transform: translateZ(25px) scale(1);
        opacity: 0.8;
    }
}

.particle {
    position: absolute;
    background: rgba(183, 157, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
}

/* Media query for laptops and larger screens */
@media (max-width: 1400px) {
    body {
        zoom: 0.95;
    }
    
    .main-container,
    .chat-circle {
        width: 350px;
        height: 350px;
    }
    
    .flower-container {
        width: 330px;
        height: 330px;
    }
    
    .large-container {
        margin-left: 15vw;
        margin-right: 5vw;
        width: 80%;
    }
}

/* Media query for smaller laptops */
@media (max-width: 1200px) {
    body {
        zoom: 0.9;
    }
    
    .main-container {
        width: clamp(400px, 35vw, 600px);
        height: clamp(400px, 35vw, 600px);
    }
    
    .flower-container {
        width: clamp(180px, 18vw, 250px);
        height: clamp(180px, 18vw, 250px);
    }
    
    .petal {
        width: clamp(70px, 7vw, 90px);
        height: clamp(120px, 12vw, 150px);
    }
    
    .chat-circle {
        width: clamp(300px, 30vw, 450px);
        height: clamp(300px, 30vw, 450px);
    }
    
    .large-container {
        margin-left: 10vw;
        margin-right: 3vw;
        width: 75%;
    }
}

/* Tablet and large mobile */
@media (max-width: 768px) {
    body {
        flex-direction: column;
        padding: 20px;
        justify-content: flex-start;
        min-height: 100vh;
        zoom: 0.85;
    }
    
    .main-container,
    .chat-circle {
        width: 300px;
        height: 300px;
    }
    
    .flower-container {
        width: 280px;
        height: 280px;
    }
    
    .large-container {
        margin: 0 auto;
        width: 90%;
        padding: 1.5rem;
    }
    
    .input-container {
        width: 90%;
        padding: 8px 10px;
    }
    
    #userInput {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    #sendButton {
        padding: 8px 15px;
        font-size: 0.9rem;
        min-width: 60px;
    }
    
    .messages {
        max-height: 500px;
    }
    
    .bot, .user {
        font-size: 1.1rem;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    body {
        padding: 10px;
        zoom: 0.7;
    }
    
    .main-container,
    .chat-circle {
        width: 250px;
        height: 250px;
    }
    
    .flower-container {
        width: 230px;
        height: 230px;
    }
    
    .large-container {
        width: 95%;
        padding: 1rem;
    }
    
    .chat-interface {
        width: 95%;
        padding: 10px;
    }
    
    .messages {
        max-height: 400px;
    }
    
    .bot, .user {
        font-size: 1rem;
        padding: 8px 12px;
    }
    
    .input-container {
        width: 95%;
        padding: 6px 8px;
    }
    
    #userInput {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    #sendButton {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 50px;
    }
    
    .petal {
        width: clamp(50px, 5vw, 70px);
        height: clamp(80px, 8vw, 110px);
    }
}

.chat-interface {
    display: flex;
    flex-direction: column;
    width: 80%;
    height: 80%;
    max-width: 1000px;
    background: transparent;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: none;
    border: none;
    position: relative;
    z-index: 10;
    padding: 0;
}

.time-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    align-items: center;
}

.time-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(183, 157, 255, 0.4), rgba(108, 99, 255, 0.4));
    color: white;
    font-size: 1.1rem;
    font-family: 'Arial', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 0 15px rgba(147, 112, 219, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    margin: 0.5rem 0;
    text-decoration: none;
}

.time-button a {
    color: white;
    text-decoration: none;
    font-family: 'Arial', sans-serif;
    display: block;
    width: 100%;
    height: 100%;
    padding: 1rem 2rem;
}

.time-button:hover {
    background: linear-gradient(135deg, rgba(183, 157, 255, 0.6), rgba(108, 99, 255, 0.6));
    transform: translateY(-2px);
}

/* Light theme adjustments */
body.light-theme .time-button {
    background: linear-gradient(135deg, rgba(147, 112, 219, 0.4), rgba(108, 99, 255, 0.4));
    color: white;
}

body.light-theme .time-button:hover {
    background: linear-gradient(135deg, rgba(147, 112, 219, 0.6), rgba(108, 99, 255, 0.6));
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .time-button {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
        min-width: 180px;
    }
    
    .time-button a {
        padding: 0.9rem 1.8rem;
    }
}

@media (max-width: 480px) {
    .time-button {
        padding: 0.8rem 1.6rem;
        font-size: 0.9rem;
        min-width: 160px;
        width: 100%;
    }
    
    .time-button a {
        padding: 0.8rem 1.6rem;
    }
}

.buttons-container {
    position: fixed;
    bottom: 5%;
    right: 5%;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 4;
}

.about-btn, .music-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-btn img, .music-btn img {
    width: 30px;
    height: 30px;
    transition: all 0.3s ease;
}

.about-btn:hover, .music-btn:hover {
    transform: scale(1.1) rotate(15deg);
    background: rgba(183, 157, 255, 0.2);
    box-shadow: 
        0 0 20px rgba(183, 157, 255, 0.2),
        inset 0 0 20px rgba(183, 157, 255, 0.1);
}

.theme-toggle {
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    background: rgba(183, 157, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 
        0 0 20px rgba(183, 157, 255, 0.2),
        inset 0 0 20px rgba(183, 157, 255, 0.1);
}

/* Remove old header-nav styles */
.header-nav {
    display: none;
}

.header {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 3;
}

.header-logo {
    font-size: 100px;
    font-weight: bold;
    color: #9370DB;
    text-shadow: 0 0 10px rgba(147, 112, 219, 0.5);
    text-align: center;
}

.header-nav {
    position:initial;
    bottom: 10%;
    right: 5%;
    display: flex;
    align-items: right;
    gap: 20px;
    justify-content:right;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 4;
}

.header-nav a {
    color: #e0e0e5;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(200, 200, 210, 0.5);
}

.header-nav a:hover {
    background: rgba(183, 157, 255, 0.2);
    transform: translateY(-2px);
    text-shadow: 
        0 0 15px rgba(200, 200, 210, 0.8),
        0 0 30px rgba(183, 157, 255, 0.4);
    box-shadow: 
        0 0 20px rgba(183, 157, 255, 0.2),
        inset 0 0 20px rgba(183, 157, 255, 0.1);
}

@keyframes headerGlow {
    0%, 100% {
        box-shadow: 
            0 2px 20px rgba(0, 0, 0, 0.1),
            0 0 30px rgba(183, 157, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 2px 30px rgba(0, 0, 0, 0.15),
            0 0 40px rgba(183, 157, 255, 0.3);
    }
}

/* Light theme header styles */
body.light-theme .header {
    background: transparent;
    border-bottom: 1px solid rgba(147, 112, 219, 0.2);
    box-shadow: none;
}

body.light-theme .header-logo {
    color: #9370DB;
    text-shadow: 
        0 0 10px rgba(147, 112, 219, 0.3),
        0 0 20px rgba(147, 112, 219, 0.2);
    animation: logoGlowLight 4s ease-in-out infinite;
}

body.light-theme .header-logo:hover {
    color: #8A2BE2;
    text-shadow: 
        0 0 20px rgba(147, 112, 219, 0.5),
        0 0 40px rgba(147, 112, 219, 0.3);
}

@keyframes logoGlowLight {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(147, 112, 219, 0.3),
            0 0 20px rgba(147, 112, 219, 0.2);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(147, 112, 219, 0.5),
            0 0 40px rgba(147, 112, 219, 0.3);
    }
}

body.light-theme .header-nav a {
    color: #9370db;
    text-shadow: 0 0 10px rgba(147, 112, 219, 0.3);
}

body.light-theme .header-nav a:hover {
    background: rgba(147, 112, 219, 0.1);
    text-shadow: 
        0 0 15px rgba(147, 112, 219, 0.5),
        0 0 30px rgba(147, 112, 219, 0.3);
    box-shadow: 
        0 0 20px rgba(147, 112, 219, 0.2),
        inset 0 0 20px rgba(147, 112, 219, 0.1);
}

/* Update media queries for header */
@media (max-width: 768px) {
    .header {
        height: 60px;
        padding: 0 15px;
    }
    
    .header-logo {
        font-size: 1.2rem;
    }
    
    .header-nav {
        gap: 10px;
    }
    
    .header-nav a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header {
        height: 50px;
        padding: 0 10px;
    }
    
    .header-logo {
        font-size: 1rem;
    }
    
    .header-nav {
        gap: 5px;
    }
    
    .header-nav a {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
}

/* Base button styles */
button {
    font-family: 'Arial', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

/* Common button styles */
.reset-button,
.start-button,
.first-time-btn,
.open-container-btn,
.close-container-btn {
    padding: 12px 25px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(183, 157, 255, 0.7), rgba(108, 99, 255, 0.7));
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(147, 112, 219, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: fixed;
    top: -10px;
    left: 20px;
    z-index: 100;
}

/* Hover effects for all buttons */
.reset-button:hover,
.start-button:hover,
.first-time-btn:hover,
.open-container-btn:hover,
.close-container-btn:hover {
    background: linear-gradient(135deg, rgba(183, 157, 255, 0.9), rgba(108, 99, 255, 0.9));
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Specific button variations */
.close-container-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: absolute;
    top: -10px;
    right: 20px;
}

.open-container-btn {
    position: fixed;
    top: -10px;
    left: 20px;
    z-index: 4;
}

/* Light theme adjustments */
body.light-theme .reset-button,
body.light-theme .start-button,
body.light-theme .first-time-btn,
body.light-theme .open-container-btn,
body.light-theme .close-container-btn {
    background: linear-gradient(135deg, rgba(147, 112, 219, 0.7), rgba(108, 99, 255, 0.7));
    color: white;
}

body.light-theme .reset-button:hover,
body.light-theme .start-button:hover,
body.light-theme .first-time-btn:hover,
body.light-theme .open-container-btn:hover,
body.light-theme .close-container-btn:hover {
    background: linear-gradient(135deg, rgba(147, 112, 219, 0.9), rgba(108, 99, 255, 0.9));
}

/* Media query adjustments */
@media (max-width: 768px) {
    .reset-button,
    .start-button,
    .first-time-btn,
    .open-container-btn {
        padding: 10px 20px;
        font-size: 1rem;
        top: -8px;
        left: 15px;
    }
    
    .close-container-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: -8px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .reset-button,
    .start-button,
    .first-time-btn,
    .open-container-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        top: -5px;
        left: 10px;
    }
    
    .close-container-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
        top: -5px;
        right: 10px;
    }
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    max-width: 800px;
    width: 90%;
}

.popup h2 {
    color: #9370DB;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.popup-buttons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.time-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(183, 157, 255, 0.4), rgba(108, 99, 255, 0.4));
    color: white;
    font-size: 1.1rem;
    font-family: 'Arial', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 0 15px rgba(147, 112, 219, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    margin: 0.5rem 0;
    text-decoration: none;
}

.time-button a {
    color: white;
    text-decoration: none;
    font-family: 'Arial', sans-serif;
    display: block;
    width: 100%;
    height: 100%;
    padding: 1rem 2rem;
}

/* Light theme styles */
body.light-theme .popup-content {
    background: rgba(255, 255, 255, 0.98);
}

body.light-theme .popup-content h2 {
    color: #9370DB;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .popup-buttons {
        flex-direction: row;
        gap: 0.8rem;
    }
    
    .time-button {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .popup-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .time-button {
        padding: 0.8rem 1.6rem;
        font-size: 0.9rem;
        min-width: 160px;
        width: 100%;
    }
}

.start-button {
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #9370DB, #B19CD9);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(147, 112, 219, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.start-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(147, 112, 219, 0.8);
    background: linear-gradient(135deg, #B19CD9, #9370DB);
}

@keyframes buttonGlow {
    0% {
        box-shadow: 0 0 15px rgba(147, 112, 219, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(147, 112, 219, 0.8);
    }
    100% {
        box-shadow: 0 0 15px rgba(147, 112, 219, 0.5);
    }
}

.start-button {
    animation: buttonGlow 4s infinite;
}

/* Light theme adjustments */
[data-theme="light"] .start-button {
    background: linear-gradient(135deg, #9370DB, #B19CD9);
    color: white;
}

[data-theme="light"] .start-button:hover {
    background: linear-gradient(135deg, #B19CD9, #9370DB);
}

/* Popup Container Styles */
.main-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.main-popup.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.main-popup-content {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: 60px;
    max-width: 95%;
    max-height: 95vh;
    overflow: auto;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2),
                inset 0 0 30px rgba(255, 255, 255, 0.1);
    animation: popupFade 0.3s ease-out;
}

@keyframes popupFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Light theme adjustments */
body.light-theme .main-popup {
    background: rgba(255, 255, 255, 0.8);
}

body.light-theme .main-popup-content {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(147, 112, 219, 0.2);
    box-shadow: 0 0 30px rgba(147, 112, 219, 0.2),
                inset 0 0 30px rgba(147, 112, 219, 0.1);
}

/* Media query adjustments */
@media (max-width: 768px) {
    .main-popup-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-container,
    .chat-circle {
        width: 300px;
        height: 300px;
    }
    
    .flower-container {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 480px) {
    .main-container,
    .chat-circle {
        width: 250px;
        height: 250px;
    }
    
    .flower-container {
        width: 230px;
        height: 230px;
    }
}

/* Light theme adjustments */
body.light-theme .main-popup-content {
    background: rgba(183, 157, 255, 0.1);
}

body.light-theme .main-container,
body.light-theme .chat-circle {
    background: rgba(183, 157, 255, 0.15);
    border: 2px solid rgba(183, 157, 255, 0.3);
    box-shadow: 0 0 30px rgba(183, 157, 255, 0.2),
                inset 0 0 30px rgba(183, 157, 255, 0.1);
}

/* First Time Here Button and New Button */
.first-time-btn,
.new-button {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(183, 157, 255, 0.4), rgba(108, 99, 255, 0.4));
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 0 15px rgba(147, 112, 219, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    width: 180px;
    text-align: center;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* New button specific positioning */
.new-button {
    margin-top: 0;
}

.first-time-btn:hover,
.new-button:hover {
    background: linear-gradient(135deg, rgba(183, 157, 255, 0.6), rgba(108, 99, 255, 0.6));
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Light theme button adjustments */
body.light-theme .first-time-btn,
body.light-theme .new-button {
    background: linear-gradient(135deg, rgba(147, 112, 219, 0.4), rgba(108, 99, 255, 0.4));
}

body.light-theme .first-time-btn:hover,
body.light-theme .new-button:hover {
    background: linear-gradient(135deg, rgba(147, 112, 219, 0.6), rgba(108, 99, 255, 0.6));
}

/* Media query adjustments */
@media (max-width: 768px) {
    .first-time-btn,
    .new-button {
        padding: 10px 20px;
        font-size: 1rem;
        width: 160px;
        height: 45px;
        margin-top: 15px;
    }
    
    .new-button {
        margin-top: -5px;
    }
}

@media (max-width: 480px) {
    .first-time-btn,
    .new-button {
        padding: 8px 16px;
        font-size: 0.9rem;
        width: 140px;
        height: 40px;
        margin-top: 10px;
    }
    
    .new-button {
        margin-top: -10px;
    }
}

.theme-text {
    color: #9370DB;
}

.theme-icon {
    color: #9370DB;
}

.sun-emoji {
    color: #9370DB;
}

/* Footer Styles */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    text-align: center;
    z-index: 1000;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    margin: 0;
    line-height: 1.2;
}

/* Light theme adjustments */
body.light-theme .site-footer {
    background: rgba(255, 255, 255, 0.1);
}

body.light-theme .footer-content p {
    color: rgba(147, 112, 219, 0.7);
}

/* Media query adjustments */
@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 1.5rem 1rem;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .footer-content p {
        font-size: 0.8rem;
    }
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    z-index: -1;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.controls-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.back-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
}

.video-progress {
    flex: 1;
    margin: 0 20px;
    display: flex;
    align-items: center;
}

.progress-bar {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-bar::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #9370DB;
}

/* Light theme adjustments */
body.light-theme .progress-bar {
    background: rgba(0, 0, 0, 0.2);
}

body.light-theme .progress-bar::-webkit-slider-thumb {
    background: #9370DB;
}

body.light-theme .progress-bar::-webkit-slider-thumb:hover {
    background: #8A2BE2;
}

/* Media query adjustments */
@media (max-width: 768px) {
    .video-progress {
        margin: 0 10px;
    }
    
    .progress-bar {
        height: 3px;
    }
    
    .progress-bar::-webkit-slider-thumb {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .video-progress {
        margin: 0 5px;
    }
    
    .progress-bar {
        height: 2px;
    }
    
    .progress-bar::-webkit-slider-thumb {
        width: 10px;
        height: 10px;
    }
} 