/* Basic reset and full-height body */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* Prevent scrolling of the video element */
}

/* Style the video element */
#background-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1; /* Place the video behind other content */
    object-fit: cover; /* Ensure the video covers the entire area without distortion */
}

/* Add a dark overlay for text readability */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5); /* Adjust the opacity as needed */
    z-index: -1; /* Place the overlay behind the content but in front of the video */
}

/* Style the foreground content */
.content {
    position: relative; /* Position relative to the document flow, but above the video/overlay */
    z-index: 1; /* Ensure content is on top */
    text-align: center;
    color: white;
    font-family: Arial, sans-serif;
    padding: 20vh 10vw; /* Center content vertically and horizontally */
}

.content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.content p {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.content button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.content button:hover {
    background-color: #0056b3;
}

/* Media query for mobile devices, using an image as a fallback */
@media (max-width: 750px) {
    #background-video {
        display: none; /* Hide the video on small screens */
    }
    body {
        /* Add a fallback background image for mobile */
        background: url('your-fallback-image.jpg') no-repeat center center fixed;
        background-size: cover;
    }
    .overlay {
        background: rgba(0, 0, 0, 0.7); /* Darker overlay for image readability */
    }
}

@media (max-width: 750px) {
    #background-video {
        display: none; /* Skryje video na malých obrazovkách */
    }
    body {
        /* Přidá náhradní obrázek na pozadí pro mobil */
        background: url('medik.jpg') no-repeat center center fixed;
        background-size: cover;
    }
    /* ... (další stylování overlay) ... */
}
