/* Your CSS styles */
body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    /* Use min-height to ensure full screen height */
    background-color: #282c34;
    color: #61dafb;
    font-family: 'Arial', sans-serif;
    text-align: center;
}

#clock-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    /* Add padding for better spacing */
}

#time {
    font-size: 3em;
    /* Adjust font size for smaller screens */
    margin: 20px;
}

#format-toggle {
    margin: 10px;
}

#toggle-btn,
#update-shabbat-btn,
#update-zmanim-btn,
#update-chabad-zmanim-btn {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #61dafb;
    color: #282c34;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

#toggle-btn:hover,
#update-shabbat-btn:hover,
#update-zmanim-btn:hover,
#update-chabad-zmanim-btn:hover {
    background-color: #21a1f1;
}

#location-input,
#location-input-zmanim,
#location-input-chabad-zmanim {
    padding: 10px;
    font-size: 1em;
    border: 2px solid #61dafb;
    border-radius: 5px;
    margin-top: 10px;
    width: 80%;
    /* Make input fields wider for easier typing */
    max-width: 300px;
    /* Set max-width for better scaling on larger screens */
}

#date,
#hebrew-date,
#omer-count,
#shabbat-times,
#zmanim,
#chabad-zmanim {
    font-size: 1.5em;
    /* Adjust font size for smaller screens */
    margin: 10px;
}

#location-input-zmanim:focus,
#location-input-chabad-zmanim:focus {
    outline: none;
    border-color: #21a1f1;
}

#zmanim-container,
#chabad-zmanim-container {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 20px;
}

#clear-shabbat-btn,
#clear-zmanim-btn {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #ff6347;
    /* Red color */
    color: #fff;
    /* White text color */
    border: none;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 5px;
    /* Rounded corners */
}

#clear-shabbat-btn:hover,
#clear-zmanim-btn:hover {
    background-color: #cc4b38;
    /* Darker red color on hover */
}

/* Button styling */
button {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #61dafb;
    color: #282c34;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 5px;
    /* Add some margin to separate buttons */
    margin-right: 10px;
}

button:hover {
    background-color: #21a1f1;
}

/* Audio Player styling */
.audio-container {
    text-align: center;
}

.audio-player {
    display: inline-block;
    border-radius: 5px;
    background-color: #2c3e50;
    /* Dark blue background */
    padding: 8px;
    /* Even padding */
}

.audio-player audio {
    width: calc(100% - 16px);
    /* Adjust width to accommodate padding */
    outline: none;
}

.custom-controls {
    margin-top: 8px;
    /* Reduced margin */
}

.play-pause-button {
    color: #fff;
    /* White text */
    background-color: #3498db;
    /* Blue button color */
    border: none;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50%;
    padding: 8px;
    transition: background-color 0.3s ease;
}

.play-pause-button:hover {
    background-color: #2980b9;
    /* Darker blue on hover */
}

.volume-control {
    width: 100px;
    /* Reduced width */
    margin: 0 8px;
    /* Reduced margin */
}

.music-text {
    margin-top: 8px;
    font-size: 12px;
    color: #ccc;

    /* Light gray text */
    a {
        text-decoration: none;
        color: inherit;
    }
}




/* Compass styling */


#enable-compass-btn {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #61dafb;
    color: #282c34;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 5px;
}

#enable-compass-btn:hover {
    background-color: #21a1f1;
}

#compass-direction {
    text-align: center;
    margin: 20px 0;
    font-size: 1.5em;
    color: #ffda79;
    /* Light yellow color */
}

.popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #ccc;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.popup-content {
    text-align: center;
}

.popup button {
    margin: 10px;
}

.popup.hidden {
    display: none;
}

.popup.visible {
    display: block;
}




/* Media Queries */
@media (max-width: 768px) {
    #time {
        font-size: 2.5em;
    }

    #date,
    #hebrew-date,
    #omer-count,
    #shabbat-times,
    #zmanim,
    #chabad-zmanim {
        font-size: 1.3em;
    }

    #location-input,
    #location-input-zmanim,
    #location-input-chabad-zmanim {
        width: 90%;
    }

    button {
        font-size: 0.9em;
        padding: 8px 16px;
    }

    .audio-player {
        width: 100%;
    }

    .play-pause-button {
        font-size: 14px;
        padding: 6px;
    }
}

@media (max-width: 480px) {
    #time {
        font-size: 2em;
    }

    #date,
    #hebrew-date,
    #omer-count,
    #shabbat-times,
    #zmanim,
    #chabad-zmanim {
        font-size: 1.2em;
    }

    button {
        font-size: 0.8em;
        padding: 6px 12px;
    }

    #location-input,
    #location-input-zmanim,
    #location-input-chabad-zmanim {
        width: 100%;
    }
}



