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

body {
    font-family: 'Playfair Display', serif;
    background-color: #000;
    color: #fff;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#sky-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    box-shadow: 0 0 var(--size) var(--size) rgba(255, 255, 255, 0.3);
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: var(--brightness); transform: scale(1); }
}




.datetime-display {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 14px;
    opacity: 0.7;
    text-align: right;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

#current-datetime {
    margin-bottom: 5px;
    font-family: monospace;
}

#user-login {
    font-style: italic;
}

.content {
    text-align: center;
    max-width: 800px; /* Increased for longer verse */
    width: 90%;
    padding: 30px;
    z-index: 1;
}

.quote-container {
    margin-bottom: 40px;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.quote {
    font-size: 22px;
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.quote.english {
    font-style: italic;
    font-size: 20px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.quote.arabic {
    font-family: 'Amiri', serif;
    font-size: 28px;
    direction: rtl;
    font-weight: normal;
    line-height: 1.8;
    margin-bottom: 5px;
    letter-spacing: 0;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.divider span {
    display: inline-block;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    width: 40%;
    margin: 0 auto;
}

.divider::before, .divider::after {
    content: "✧";
    color: rgba(255, 255, 255, 0.5);
    margin: 0 10px;
    font-size: 12px;
}

.author {
    font-size: 16px;
    opacity: 0.7;
    text-align: right;
    margin-top: 10px;
}

.audio-player {
    width: 100%;
    border-radius: 30px; /* Increased border radius */
    background-color: rgba(20, 20, 20, 0.3);
    padding: 15px;
    transition: all 0.3s ease;
}

.audio-player:hover {
    background-color: rgba(30, 30, 30, 0.4);
}

.player-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.progress-container {
    flex: 1;
    margin: 0 12px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 4px;
    cursor: pointer;
}

.progress {
    width: 0%;
    height: 100%;
    background-color: white;
    border-radius: 10px;
    transition: width 0.1s linear;
}

.time {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.volume-container {
    display: flex;
    align-items: center;
    width: 90px;
}

.volume-slider {
    flex: 1;
    margin-left: 8px;
}

.volume-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.volume-level {
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .content {
        padding: 20px;
    }
    
    .quote.english {
        font-size: 18px;
    }
    
    .quote.arabic {
        font-size: 24px;
    }
    
    .volume-container {
        margin-top: 8px;
        width: 100%;
    }
    
    .player-controls {
        justify-content: center;
    }
    
    .progress-container {
        order: 3;
        width: 100%;
        margin: 12px 0 0 0;
    }
    
    .datetime-display {
        top: 10px;
        right: 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .quote.arabic {
        font-size: 20px;
    }
    
    .quote.english {
        font-size: 16px;
    }
}
