.fancy-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(to right, #007bff, #00bcd4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

body {
    font-family: Arial, sans-serif;
    padding: 20px;
}

#viewer-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    display: inline-block;
}

#webcam-image {
    display: block;
    width: 100%;
    max-width: 1200px;
    height: auto;
    border: 1px solid #ccc;
    margin-top: 20px;
}

/* Overlay rechts oben */
#overlay-box {
    position: absolute;
    top: 70px;
    right: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-family: sans-serif;
    font-size: 14px;
    text-align: right;
}

@media (max-width: 600px) {
	#overlay-box {
		position: static;
		margin-top: 10px;
		text-align: left;
		width: auto;
	}
}

#overlay-image {
    width: 100%;
    max-height: 100px;
    object-fit: contain;
    margin-bottom: 8px;
    border-radius: 4px;
}

#overlay-content .overlay-text-content {
    font-size: 10px;
    line-height: 1.3;
    color: #ddd;
    text-align: left;
}

#timeSliderContainer {
    display: none;
    margin-top: 20px;
}

#timeSlider {
    width: 100%;
}

#missingImagesMessage {
    display: none;
    text-align: center;
    margin-top: 20px;
    color: #666;
}

#playPauseBtn {
    position: absolute;
    bottom: 121px;
    right: 0px;
    z-index: 5;
    background: white;
    border: 1px solid #ccc;
    padding: 6px 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 0;
}

#datePicker {
    width: 100%;
    padding: 8px 12px;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}

#datePicker:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

#loadingSpinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: spin 1s linear infinite;
}

.irs {
    position: relative;
}

.irs-single {
    text-align: center;
    background: #3498db;
    color: white;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}