body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column; /* Vertikale Ausrichtung */
    align-items: center;
    margin: 15px;
    background-color: #f0f0f0;
    height: 100%;
}


.current-time-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    font-size: 2em;
    flex-direction: column;
}

.current-time-label { 
    margin: 0 10px;
    font-weight: 800;
}

.current-time-value {
    margin: 0 10px;
}

#container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 80%;
    max-width: 1200px;
    justify-content: flex-start;
    padding-left: 10px;
}

.clock-box {
    width: calc(30% - 10px);
    height: 330px;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: background-color 0.5s ease;
}

.clock-box h3 {
    font-size: 1.5em; /* Größeren Titel */
}

.add-clock {
    cursor: pointer;
    font-size: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    width: 400px;
    padding: 25px;
}

.close {
    float: right;
    cursor: pointer;
}

.time-container {
    display: flex;
    justify-content: space-between;
    width: 250px;
    padding: 0 10px;
    font-size: 30px;
}

.time-container p {
    margin: 0;
}

.time-label {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 25px;
}

.time-value {
    font-size: 20px;
}

.fade-orange {
    animation: fade-orange 1s ease-in-out 6; /* 3 fades */
}

.fade-red {
    animation: fade-red 1s ease-in-out 6; /* 3 fades */
}

#addButton {
    height: 330px;
}

#addButton:hover {
    background-color: rgb(190, 190, 190);
}

@keyframes fade-orange {
    0%, 100% {
        background-color: inherit;
    }
    50% {
        background-color: #ffaf36;
    }
}

@keyframes fade-red {
    0%, 100% {
        background-color: inherit;
    }
    50% {
        background-color: #dd4141;
    }
}

@media only screen and (max-width: 1220px) {
    .time-container {
        width: 80%;
    }
}

.popup-content label,
.popup-content input,
.popup-content button {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: black;
    background-color: white;
}

.popup-content input {
    width: calc(100% - 7px);
}

.remove-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 2em;
    color: #000000;
    transition: 0.5s;
}

.remove-button:hover {
    color: #b6b6b6;
    transition: 0.2s;
}

.draggable {
    cursor: grab;
}

.dragging {
    opacity: 0.5;
}

.drag-over {
    border: 2px dashed #000;
}
