.clockContainer { 
    position: relative;
    min-height: 250px;
}

.d40-worldtime-clock {
    font-family: Arial, sans-serif;
    font-size: 16px;
    margin-bottom: 10px;
}

/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 600px; /* Optional: limit the width */
}

.loading-animation {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 50%);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Accordion styles */
#clocksAccordion h3 {
    cursor: pointer;
    background-color: #f1f1f1;
    padding: 10px;
    border: 1px solid #ccc;
    margin: 0;
}

#clocksAccordion div {
    display: none;
    padding: 10px;
    border: 1px solid #ccc;
    border-top: none;
}

#clocksAccordion div.active {
    display: block;
}

.d40-worldtime-clock {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-wrap: wrap;
    align-content: center;
    text-align: center;
}

.d40-wc-time, .d40-wc-date {
    padding: 0.2em;
}