/* General styling for the popup */
.popup {
    display: none;
    position: absolute;
    background-color: #333;
    padding: 2px;
    z-index: 1000;
    color: white; /* Set text color to white */
}

.popup ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
}

.popup ul li {
    flex: 1;
    text-align: center;
}

/* Styling for all prayer items */
.prayer {
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    text-align: center; /* Center text */
    margin-bottom: 2px;
    width: 70px; /* Adjust width as needed */
}
.prayer img {
    max-width: 100%; /* Image takes full width of the container */
    margin-bottom: 10px; /* Space between image and text */
}


.prayer span {
    font-size: 12px;
    color: white;
}

/* Specific styling for the first prayer item */
.first_prayer {
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Center items vertically */
    text-align: left; /* Align text to the left */
    width: 80%; /* Adjust width as needed */
}

.first_prayer:hover {
    background-color: #333;
}

.first_prayer img {
    max-width: 40px; /* Adjust image size as needed */
    margin-right: 10px; /* Add margin between image and text */
}

.first_prayer span {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    color:white;
}

/********************************************************************************************/
.grid-container {
    display: grid;
    grid-template-columns: auto auto auto auto;
    padding: 3px;
}
.grid-item {
    border: 1px solid rgba(0, 0, 0, 0.8);
    padding: 3px;
    font-size: 16px;
    text-align: center;
}
.dropbtn {
    background-color: transparent;
    padding: 3px;
    font-size: 16px;
    border: none;
    cursor: pointer; /* Add cursor pointer */
}
.dropdown {
    position: relative;
    display: inline-block;
    z-index: 999; /* Ensure dropdown container has a high z-index */
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: black;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000; /* Ensure dropdown content has an even higher z-index */
    width: auto; /* Adjust width as needed */
    left: 0; /* Start far behind */
    transform: translateX(-80%); /* Move left by its own width */
}
.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}
.dropdown-content a:hover {
    background-color: #ddd;
}
.dropdown:hover .dropdown-content {
    display: block;
}
.fa:hover {
    opacity: 0.7;
}
.fa-facebook {
    background: #3B5998;
    color: white;
}
.fa-twitter {
    background: #55ACEE;
    color: white;
}
.fa-linkedin {
    background: #007bb5;
    color: white;
}
.fa-envelope {
    background: red;
    color: white;
}