/* style.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 960px; /* Set maximum width to match the banner */
    background-color: white;
}

.banner {
    background-color: #16621f;
}

.banner img {
    display: block; /* Remove default spacing */
    width: 960px;
    height: 205px;
}

.menu-bar {
    background-color: #16621f;
    display: flex;
    justify-content: flex-start; /* Align items to the left */
    gap: 20px;
    padding: 10px 20px; /* Add padding to match the main content padding */
}

.menu-bar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.menu-bar a:hover {
    text-decoration: underline;
}

.content {
    /* padding: 20px; */
    background-color: #e0e0e0;
}

.main-content {
    background-color: #d0d0d0;
    padding: 20px;
    overflow: hidden;
}

.widget {
    width: 260px;
    padding: 20px;
    text-align: center;
    color: #333;
    border-radius: 15px;
    /* background: linear-gradient(to bottom, #d4fc79, #96e6a1); */
    /* box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1); */
    background-color: #16621f;
    color: white;
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.footer {
    background-color: #16621f;
    color: white;
    text-align: center;
    padding: 15px;
    clear: both;
}

.back-to-top {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #16621f;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
}

.back-to-top:hover {
    background-color: #16621f;
}

.style_text {
      max-width: 960px; 
      display: block; 
      margin-left: auto; 
      margin-right: auto; 
      font-family: Arial; 
      font-size: 18px; 
      text-align: justify;
}
.style_title{
      max-width: 960px; 
      display: block; 
      margin-left: auto; 
      margin-right: auto; 
      font-family: Arial; 
      font-size: 24px; 
      text-align: justify; 
      color:#16621f;
}

/* Map to Joumouaa Prayer */
.map-container {
    display: flex;
    justify-content: flex-end; /* Align the map to the right */
    align-items: top;
    flex-wrap: nowrap; /* Prevent wrapping unless necessary */
    gap: 20px; /* Add space between text and map */
}

.map-container p {
    flex: 1 1 auto; /* Allow the text to take up remaining space */
    text-align: left; /* Align text to the right */
}

.map-iframe {
    flex-shrink: 0; /* Prevent the iframe from shrinking */
    max-width: 400px; /* Set a maximum width */
    width: 100%; /* Ensure responsiveness */
    height: auto;
    border: 0;
    aspect-ratio: 4 / 3; /* Maintain aspect ratio */
}

@media (max-width: 768px) {
    .map-container {
        flex-direction: column;
        align-items: center;
    }

    .map-container p {
        flex: 1 1 100%;
        text-align: left;
        margin-bottom: 10px;
    }

    .map-iframe {
        flex: 1 1 100%;
        max-width: 100%;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .widget {
        width: 100%;
        float: none;
        margin: 0 0 20px 0;
    }
}

@media (max-width: 768px) {
    .banner {
        height: auto; /* Adjust height as needed */
        text-align: center; /* Center content for better readability */
    }

    .banner img {
        display: block; /* Remove default spacing */
        width:100%;
        height: auto;
    }

    .menu-bar {
        display: flex;
        flex-direction: column; /* Stack menu items vertically */
        align-items: center;
    }
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center; /* Center the container */
}

.widget-header {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.widget-footer {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 1px;
}

h1 {
    font-size: 1.5em;
    color: #ffffff;
    margin: 0;
    font-weight: bold;
}

h2 {
    font-size: 1.5em;
    color: #16621f;
    margin: 0;
    font-weight: bold;
}

#date-display {
    font-size: 0.9em;
    color: #ffffff;
    margin-top: 5px;
}

/* Container for prayer times */
#prayer-times {
    display: grid;
    gap: 8px;
}

.prayer-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
}

.prayer-name {
    font-weight: bold;
    color: #16621f;
    font-size: 1.3em;
    text-align: left;
}

.time-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px; /* Add slight spacing between prayer and Iqama times */
}

.prayer-time-value {
    font-size: 1em;
    color: #333;
    font-weight: bold;
}

.iqama-time {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
}