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

body {
    font-family: 'Georgia', serif;
    min-height: 100vh;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: #ffad0a;
}

/* Full Screen Temple Background */
.temple-background {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 100vh;
    min-width: 100vw;
    background-image: url('../img/temple-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Add gradient overlay to blend edges */
.temple-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        #ffad0a 0%, 
        transparent 10%, 
        transparent 90%, 
        #ffad0a 100%);
    z-index: 1;
    pointer-events: none;
}

/* Top Right Hanging Bell */
.top-bell {
    position: fixed;
    top: -20px;
    right: 50%;
    margin-right: -250px;
    z-index: 50;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.top-bell:hover {
    transform: scale(1.1);
}

.bell-hanging-img {
    width: 80px;
    height: auto;
    display: block;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.top-bell.ringing .bell-hanging-img {
    animation: swingBell 0.5s ease-in-out 3;
}

@keyframes swingBell {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-12deg); }
    75% { transform: rotate(12deg); }
}

.bell-sound-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    pointer-events: none;
}

.bell-sound-waves::before,
.bell-sound-waves::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 3px solid #ffd700;
    border-radius: 50%;
    opacity: 0;
}

.bell-sound-waves.active::before {
    animation: bellWave 1s ease-out;
}

.bell-sound-waves.active::after {
    animation: bellWave 1s ease-out 0.3s;
}

@keyframes bellWave {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

.container {
    max-width: 100%;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

header h1 {
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
    font-weight: bold;
}

.subtitle {
    color: #ffe6a7;
    font-style: italic;
    font-size: 1.1em;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

/* Deity Section - Positioned in Center of Temple Arch */
.deity-section {
    text-align: center;
    margin-bottom: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.deity-frame {
    position: relative;
    display: inline-block;
    padding: 0;
    background: transparent;
    border-radius: 15px;
}

.deity-image {
    max-width: 364px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
}

.divine-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
    border-radius: 15px;
    animation: glow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

/* Puja Items Container - Positioned at Bottom */
.puja-items {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 60px;
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.puja-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.puja-item:hover {
    transform: translateY(-15px) scale(1.05);
}

.item-label {
    margin-top: 15px;
    font-weight: bold;
    color: #ffe6a7;
    font-size: 1.1em;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

/* Bell Styles */
.bell-container {
    position: relative;
}

.bell {
    width: 80px;
    height: 100px;
    position: relative;
    margin: 0 auto;
}

.bell-top {
    width: 20px;
    height: 20px;
    background: #ffd700;
    border-radius: 50%;
    margin: 0 auto;
}

.bell-body {
    width: 80px;
    height: 70px;
    background: linear-gradient(145deg, #ffd700, #ffed4e);
    border-radius: 0 0 40px 40px;
    margin-top: 5px;
    box-shadow: inset 0 -5px 10px rgba(0, 0, 0, 0.2);
}

.bell-clapper {
    width: 10px;
    height: 15px;
    background: #444;
    border-radius: 50%;
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.bell.ringing {
    animation: ring 0.5s ease-in-out 3;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

.sound-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    pointer-events: none;
}

.sound-waves::before,
.sound-waves::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 3px solid #ffd700;
    border-radius: 50%;
    opacity: 0;
}

.sound-waves.active::before {
    animation: wave 1s ease-out;
}

.sound-waves.active::after {
    animation: wave 1s ease-out 0.3s;
}

@keyframes wave {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* Aarti Plate Styles */
.aarti-plate {
    position: relative;
    width: 120px;
    height: 120px;
}

.plate-base {
    width: 120px;
    height: 30px;
    background: linear-gradient(145deg, #cd7f32, #b8860b);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.diya {
    position: absolute;
    width: 30px;
    height: 40px;
}

.diya-1 { top: 35px; left: 45px; }
.diya-2 { top: 35px; left: 10px; }
.diya-3 { top: 35px; right: 10px; }

.diya-base {
    width: 30px;
    height: 20px;
    background: linear-gradient(145deg, #8b4513, #d2691e);
    border-radius: 0 0 15px 15px;
}

.flame {
    width: 15px;
    height: 25px;
    background: linear-gradient(to top, #ff4500, #ffa500, #ffff00);
    border-radius: 50% 50% 0 0;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.aarti-plate.lit .flame {
    opacity: 1;
    animation: flicker 1.5s ease-in-out infinite;
}

@keyframes flicker {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1, 0.9); }
}

/* Coconut Styles */
.coconut-container {
    position: relative;
    width: 100px;
    height: 120px;
}

.coconut-whole,
.coconut-broken {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.coconut-broken {
    display: none;
}

.coconut-broken.show {
    display: block;
}

.coconut-hair {
    width: 100px;
    height: 40px;
    background: linear-gradient(145deg, #654321, #8b4513);
    border-radius: 50% 50% 0 0;
    position: relative;
}

.coconut-hair::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 3px,
        rgba(0, 0, 0, 0.2) 3px,
        rgba(0, 0, 0, 0.2) 5px
    );
}

.coconut-shell {
    width: 90px;
    height: 80px;
    background: linear-gradient(145deg, #8b4513, #a0522d);
    border-radius: 45%;
    margin: 0 auto;
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.3);
}

.coconut-half {
    width: 45px;
    height: 80px;
    background: linear-gradient(145deg, #8b4513, #a0522d);
    position: absolute;
    top: 40px;
}

.coconut-left {
    left: 0;
    border-radius: 45% 0 0 45%;
    animation: slideLeft 0.6s ease-out;
}

.coconut-right {
    right: 0;
    border-radius: 0 45% 45% 0;
    animation: slideRight 0.6s ease-out;
}

.coconut-half::after {
    content: '';
    position: absolute;
    top: 10px;
    width: 100%;
    height: 60%;
    background: radial-gradient(ellipse, #fff 30%, transparent 70%);
    opacity: 0.8;
}

.coconut-water {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: rgba(173, 216, 230, 0.6);
    border-radius: 50%;
    animation: waterSpread 0.6s ease-out;
}

@keyframes slideLeft {
    0% { transform: translateX(0) rotate(0); }
    100% { transform: translateX(-20px) rotate(-15deg); }
}

@keyframes slideRight {
    0% { transform: translateX(0) rotate(0); }
    100% { transform: translateX(20px) rotate(15deg); }
}

@keyframes waterSpread {
    0% { width: 0; opacity: 1; }
    100% { width: 60px; opacity: 0.6; }
}

/* Blessings Message */
.blessings {
    text-align: center;
    font-size: 1.8em;
    color: #fff;
    font-weight: bold;
    min-height: 50px;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(212, 175, 55, 0.3);
    padding: 15px 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.5);
}

.blessings.show {
    opacity: 1;
    animation: fadeInScale 0.8s ease;
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

footer {
    text-align: center;
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffe6a7;
    font-style: italic;
    font-size: 0.95em;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    z-index: 5;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }
    
    .deity-image {
        max-width: 200px;
    }
    
    .top-bell {
        margin-right: -150px;
        top: -15px;
    }
    
    .bell-hanging-img {
        width: 60px;
    }
    
    .puja-items {
        gap: 30px;
        bottom: 20px;
        padding: 15px;
    }
    
    .bell, .aarti-plate, .coconut-container {
        transform: scale(0.8);
    }
    
    .blessings {
        font-size: 1.3em;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .deity-section {
        top: 45%;
    }
    
    .deity-image {
        max-width: 150px;
    }
    
    .top-bell {
        margin-right: -100px;
        top: -10px;
    }
    
    .bell-hanging-img {
        width: 50px;
    }
    
    .puja-items {
        gap: 20px;
        flex-direction: row;
    }
}