
:root {
    --background-color: #1a1a2e;
    --text-color: #e0e0e0;
    --primary-color: #007bff;
    --card-background: #2c2c44;
    --border-color: #3e3e5e;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    width: 50%; /* This sets the container's width to half of the viewport width */
    max-width: 500px; /* Optional: Keep this for larger screens to prevent it from getting too big */
    background-color: var(--card-background);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    text-align: center;
    border: 1px solid var(--border-color);
}

#divDateControls {
    display: flex; /* Makes the container a flex container */
    justify-content: center; /* Centers the items horizontally */
    align-items: center; /* Centers the items vertically (if they have different heights) */
}

.button-container {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 20px;
    right: 20px;
    flex-direction: column;
    gap: 20px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

header p {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-top: 0;
    margin-bottom: 20px;
    font-style: italic;
}

.zmanim-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zman-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.zman-item:last-child {
    border-bottom: none;
}

.zman-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.LocationDateHeading {
    font-size: 1.4rem;
    font-weight: 800;
    padding-bottom: 15px;
}

.zman-time {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
}

.settings-list {
    text-align: left;
    padding-left: 0;
    list-style: none;
}

#cityList {
  max-height: 200px; /* Or any height you want */
  overflow-y: auto;
  border: 1px solid #ccc;
  list-style-type: none; /* Removes bullets */
  padding: 0;
  margin-top: 5px;
}

.DateNav {
    cursor:pointer;
}
.DateNav:hover {
    opacity: .67;
}

.spacer {
  margin-left: 20px; /* Adjust this value for your desired gap */
  margin-right: 20px;
}

.about {
    color: #1a1a2e;
    text-align: left;
    line-height: 1.6;
}





@media (max-width: 768px) {
    body {
        /* On small screens, the content should be a single column */
        flex-direction: column;
        padding: 10px;
    }

    .container {
        /* On mobile, make the container fill almost the entire screen width */
        width: 95%;
        padding: 20px;
        box-sizing: border-box; /* Ensures padding is included in the width */
    }

    .button-container {
        /* Move buttons into the normal document flow and center them */
        position: static;
        top: auto;
        right: auto;
        display: flex;
        flex-direction: row; /* Arrange buttons side-by-side */
        justify-content: center;
        margin-top: 20px;
    }

    header h1 {
        /* Reduce font size for readability on smaller screens */
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .LocationDateHeading {
        font-size: 1.2rem;
    }

    .zman-item {
        /* Adjust padding for a more compact list */
        padding: 10px 0;
    }

    .zman-name, .zman-time {
        /* Scale down the font sizes for the zmanim list */
        font-size: 1.1rem;
    }

    .spacer {
        margin: 0 10px; /* Reduce the space between date navigation elements */
    }
}
