/* Styles for the prayer container */
#prayer-container {
    position: absolute;
    top: 10%;
    left: -0%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Individual prayer box styling */
.prayer-box {
    flex: 0 0 auto;
    width: 150px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 4px solid white;
    border-radius: 10px;
    background: hsla(0, 96%, 45%, 0);
    box-shadow: 0 6px 8px rgba(252, 1, 1, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 1rem;
    font-weight: 500;
}

/* Tahajud box specific styling */
#tahajud {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 180px;
    height: 120px;
    background: hsla(0, 96%, 45%, 0);
    color: white;
    text-align: center;
    font-size: 1rem;
    border: 4px solid white;
    border-radius: 10px;
    box-shadow: 0 6px 8px rgba(252, 1, 1, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}
.blue-box {
    background-color: blue !important; 
    color: white; /* Optional: Make text visible */
}


/* Prayer name and time styling */
.prayer-box .prayer-name {
    display: block;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 3px;
    text-align: center;
}

.prayer-box .prayer-time {
    display: inline-flex;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 2px;
    text-align: center;
    color: white;
}

.prayer-box .prayer-time .am-pm {
    font-size: 1rem;
    margin-left: 2px;
    vertical-align: super;
}

.prayer-box:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Static background for the box */
.static-background {
    background-color: blue;
}

/* Style for the blinking border */
.blinking-border {
    border: 4px solid rgba(255, 0, 0, 0.8);
    animation: blink-border 1s infinite;
}

/* Style for intense blinking box */
.blinking-box {
    background-color: rgba(255, 0, 0, 0.1);
    animation: blink-box 1s infinite;
    border: 2px solid rgba(255, 0, 0, 0.8);
}

/* Border blinking animation */
@keyframes blink-border {
    0% { border-color: rgba(255, 0, 0, 0.8); }
    50% { border-color: rgba(255, 255, 255, 0.8); }
    100% { border-color: rgba(255, 0, 0, 0.8); }
}

/* Box blinking animation */
@keyframes blink-box {
    0% {
        background-color: blue;
        border-color: rgba(255, 0, 0, 0.8);
    }
    50% {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 0, 0, 0.8);
    }
    100% {
        background-color: blue;
        border-color: rgba(255, 0, 0, 0.8);
    }
}

/* Media Queries for Responsiveness */
@media (max-width: 1280px) {
    #prayer-container {
        gap: 15px;
        bottom: -3%;
    }
    .prayer-box .prayer-name {
        font-size: 1.5rem;
    }
    .prayer-box .prayer-time {
        font-size: 1.2rem;
    }
    .prayer-box .prayer-time .am-pm {
        font-size: 0.7em;
    }
}    

@media (max-width: 1920px) {
    #prayer-container {
        gap: 15px;
        bottom: -3%;
    }
    .prayer-box .prayer-name {
        font-size: 2rem;
    }
    .prayer-box .prayer-time {
        font-size: 1.2rem;
    }
    .prayer-box .prayer-time .am-pm {
        font-size: 0.7em;
    }
}    

@media (max-width: 768px) {
    #prayer-container {
        gap: 15px;
        bottom: -1%;
    }
    .prayer-box {
        width: 120px;
        height: 80px;
    }
    .prayer-box span {
        font-size: 1.5rem;
    }
    .prayer-box time {
        font-size: 3rem;
    }
    .prayer-time{
        display: inline-flex;
        align-items: baseline;
    }
}

@media (max-width: 480px) {
    #prayer-container {
        gap: 5px;
        overflow-x: auto;
    }
    .prayer-box {
        width: 100px;
        height: 70px;
    }
    .prayer-box span {
        font-size: 0.7rem;
    }
    .prayer-box time {
        font-size: 1rem;
    }
}
