body { 
    margin: 0; 
    overflow: hidden; 
    background: #000;
    background-image: radial-gradient(circle at center, #000510 0%, #000000 100%);
}

svg { 
    width: 100vw; 
    height: 100vh;
}

.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-family: Arial, sans-serif;
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.quote-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    font-family: Arial, sans-serif;
    text-align: center;
    pointer-events: none;
    transition: opacity 2s ease, filter 0.5s ease;
    max-width: 80%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 100;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(4px);
    opacity: 0;
}

.quote {
    margin: 0;
    line-height: 1.8;
    letter-spacing: 0.8px;
    font-size: 24px;
    transition: all 2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.quote.tamil {
    font-family: 'Noto Sans Tamil', Arial, sans-serif;
    font-size: 24px;
    line-height: 2;
    opacity: 1;
}

.quote.english {
    font-family: 'Georgia', serif;
    font-size: 28px;
    line-height: 1.8;
    opacity: 1;
}

.fade-out {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(5px);
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

footer {
    display: block !important;  /* Override the display:none */
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

.audio-info {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
    z-index: 1000;
}

.audio-icon {
    cursor: help;
    transition: color 0.3s ease;
}

.audio-icon:hover {
    color: rgba(255, 255, 255, 0.8);
}

.audio-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    margin-bottom: 5px;
}

.audio-info:hover .audio-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.audio-tooltip a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.audio-tooltip a:hover {
    color: white;
    text-decoration: underline;
}

.fullscreen-toggle {
    position: fixed;
    bottom: 10px;
    left: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
    z-index: 1000;
    cursor: pointer;
}

.fullscreen-icon {
    transition: color 0.3s ease;
}

.fullscreen-toggle:hover .fullscreen-icon {
    color: rgba(255, 255, 255, 0.8);
}

.fullscreen-tooltip {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    margin-bottom: 5px;
}

.fullscreen-toggle:hover .fullscreen-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fullscreen-btn {
    position: fixed;
    bottom: 10px;
    left: 10px;
    font-size: 24px;  /* Made larger for better clickability */
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1000;
    padding: 10px;  /* Added padding for larger click area */
    user-select: none;  /* Prevent text selection */
}

.fullscreen-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quote {
        font-size: 20px;
    }

    .quote.tamil {
        font-size: 24px;
    }

    .quote-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .quote {
        font-size: 18px;
    }

    .quote.tamil {
        font-size: 22px;
    }

    .quote-container {
        padding: 10px;
    }
}