@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');

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

body {
    font-family: 'Tajawal', Arial, sans-serif;
    background: linear-gradient(135deg, #000000 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    direction: rtl;
    color: #ffffff;
}
 
.container {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

#date, #time {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

#time {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

.prayer-times-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.prayer-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.prayer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: all 0.3s ease;
}

.prayer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.prayer-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.prayer-time {
    font-size: 1.5rem;
}

.current-prayer {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3) 0%, rgba(76, 175, 80, 0.1) 100%);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.current-prayer::before {
    background: linear-gradient(to right, #4CAF50, #45a049);
}

.closest-prayer {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.3) 0%, rgba(33, 150, 243, 0.1) 100%);
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.5);
}

.closest-prayer::before {
    background: linear-gradient(to right, #2196F3, #1e88e5);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.current-prayer, .closest-prayer {
    animation: pulse 2s infinite;
}

.prayer-status {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 0.8rem;
    padding: 2px 5px;
    border-radius: 10px;
    color: white;
}

.current-prayer .prayer-status {
    background-color: #4CAF50;
}

.closest-prayer .prayer-status {
    background-color: #2196F3;
}

@media (max-width: 768px) {
    .prayer-times-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .prayer-times-grid {
        grid-template-columns: 1fr;
    }
}

/* Add styles for weather section */
.weather-section {
    margin-top: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
}

.weather-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.current-weather {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.weather-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-right: 1rem;
}

.weather-info {
    text-align: center;
}

.temperature {
    font-size: 2rem;
    font-weight: bold;
}

.condition {
    font-size: 1rem;
}

.forecast-grid {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.forecast-item {
    text-align: center;
    padding: 0.5rem;
}

.forecast-item .date {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.forecast-item .weather-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin: 0 auto;
}

.forecast-item .temp {
    font-size: 1.2rem;
    font-weight: bold;
}

.forecast-item .condition {
    font-size: 0.9rem;
}