:root {
    --rich-green: #2c8c2c;
    --gold: #9aa54a;
    --text-brown: #3c3c23;
    --pale-green: #5cb574;
    --jumuah: rgb(0, 110, 255);
    --soft-background: #f4f4f4;
    --hover-highlight: #e8f5e8;
}

body {
    color: var(--text-brown);
    font-family: 'Roboto', Arial, sans-serif;
}

.hide {
    display: none;
}

.prayer-times-dates,
.prayer-times-next {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    justify-content: center; /* Center content vertically */
    color: var(--text-brown); /* Consistent text color */
    font-size: 1.1em; /* Set a readable font size */
    cursor: default;
}

.prayer-times-dates p,
.prayer-times-next p {
    margin: 5px 0; /* Add spacing between the paragraphs */
    text-align: center; /* Ensures text inside paragraphs is centered */
}

#prayer-next,
#prayer-countdown {
    color: var(--rich-green); /* Use a consistent color for countdown and next prayer */
}

/* Prayer Grid */
.prayer-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 5 equal columns for main prayers */
    gap: 16px;
    text-align: center;
    padding: 10px;
}

/* Default Prayer Cell */
.prayer-cell {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers children vertically */
    align-items: center;     /* Centers children horizontally */
    text-align: center;      /* Ensures text inside is centered */

    background: var(--soft-background);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: default;
}

.prayer-cell:hover {
    background-color: var(--hover-highlight);
    transform: scale(1.03);
}

.prayer-icon {
    font-size: 1.5em;
    color: var(--gold);
    margin-top: 10px;
    margin-bottom: 5px;
    display: block;
    text-align: center;
}

.prayer-times-container {
    display: flex;
    flex-direction: row;  /* This is the default, but it's explicit here */
    justify-content: center; /* Centers them horizontally */
    align-items: baseline;;  /* Vertically centers the content */
    gap: 20px;  /* Adjust the gap as needed */
}

/* Prayer Text Styling */
.prayer-name {
    display: inline-block;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--pale-green);
    color: var(--rich-green);
}

.prayer-time {
    display: block;
    font-size: 1em;
    color: var(--pale-green);
    font-weight: 600;
    margin-bottom: 5px;
}

.prayer-iqamah {
    display: block;
    font-size: 1em;
    color: var(--gold);
    font-weight: bold;
}

.prayer-jumuah-first {
    display: block;
    font-size: 1em;
    color: var(--jumuah);
    font-weight: 600;
    margin-bottom: 5px;
}

.prayer-jumuah-second {
    display: block;
    font-size: 1em;
    color: var(--jumuah);
    font-weight: bold;
}

/* Sunrise Styling */
#Sunrise-cell {
    display: flex;           /* Enables flexbox */
    flex-direction: column;  /* Forces content to stack vertically */
    align-items: center;     /* Centers content vertically */
    justify-content: center; /* Centers content horizontally */
    background: none;
    box-shadow: none;
    font-size: 0.9em;
    font-weight: bold;
    color: var(--gold);
    padding: 10px 0;
    height: 100%;            /* Ensures it fills the available height */
}

/* Sunrise Hover Effect - Expanding Circle */
#Sunrise-cell::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, rgba(255, 230, 90, 0.4) 10%, rgba(255, 230, 90, 0) 70%);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

/* Trigger Effect on Hover */
#Sunrise-cell:hover::before {
    transform: scale(10);
    opacity: 1;
}

@keyframes subtleFocus {
    0% {
        box-shadow: 0 0 12px 6px var(--gold);
    }
    50% {
        box-shadow: 0 0 12px 6px var(--rich-green);
    }
    100% {
        box-shadow: 0 0 12px 6px var(--gold);
    }
}

.focus {
    animation: subtleFocus 10s infinite ease-in-out;
}

/* Tablet View */
@media only screen and (max-width: 1024px) {
    .prayer-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    }
}

/* Mobile View */
@media only screen and (max-width: 767px) {
    .prayer-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
    }
}