/* Main Styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-image: url('imagesura.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    direction: rtl; /* For Arabic text */
}

.container {
    width: 90%;
    max-width: 800px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    direction: ltr; /* Reset direction for container */
}

h1 {
    color: #333;
    margin-bottom: 30px;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    margin: 15px 0;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn {
    background-color: #4a90e2;
    color: white;
}

.primary-btn:hover {
    background-color: #357abd;
}

.secondary-btn {
    background-color: #5cb85c;
    color: white;
}

.secondary-btn:hover {
    background-color: #449d44;
}

.quit-btn {
    background-color: #d9534f;
    color: white;
    position: relative;
    float: right;
}

.quit-btn:hover {
    background-color: #c9302c;
}

/* Display Areas */
.ayat-display {
    font-size: 28px;
    margin: 30px 0;
    padding: 20px;
    min-height: 100px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    direction: rtl; /* For Arabic text */
    font-weight: bold;
}

.translation-display, .sura-info-display {
    font-size: 18px;
    margin: 20px 0;
    padding: 15px;
    min-height: 60px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

/* Range Selector */
.range-selector {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.select-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 45%;
}

.select-box {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 16px;
    }
    
    .ayat-display {
        font-size: 24px;
    }
    
    .translation-display, .sura-info-display {
        font-size: 16px;
    }
    
    .range-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .select-container {
        width: 80%;
        margin-bottom: 15px;
    }
}