/* General styling for consistency */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    color: #f0e68c; /* cream color */
    background-color: black;
    text-align: center;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.video-container {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#bgVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
}

.overlay h1 {
    font-size: 3em;
    margin: 0.5em;
    color: #f0e68c; /* cream color */
}

.overlay .test-link {
    font-size: 1.5em;
    color: #f0e68c;
    text-decoration: none;
    border: 2px solid #f0e68c;
    padding: 0.5em 1em;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.overlay .test-link:hover {
    background-color: #f0e68c;
    color: black;
}

header, footer {
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    width: 100%;
    z-index: 10;
    text-align: center;
}

header {
    top: 0;
    padding: 1em 0;
}

footer {
    bottom: 0;
    padding: 1em 0;
}

header nav ul {
    list-style-type: none;
    padding: 0;
}

header nav ul li {
    display: inline;
    margin: 0 10px;
}

header nav ul li a {
    color: #f0e68c;
    text-decoration: none;
}

header nav ul li a:hover {
    text-decoration: underline;
}

main {
    margin-top: 80px; /* Ensure content isn't hidden under fixed header */
    padding-bottom: 60px; /* Ensure content isn't hidden under fixed footer */
}

section {
    padding: 20px;
}

/* Specific styling for the Test section */
#Test {
    background-color: #222;
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.1);
}

/* Ensure the uploaded image fits within the container */
#uploadedImage {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.3);
}

/* Style the loading and result containers */
#loading, #result {
    font-size: 1.2em;
    margin-top: 20px;
}

/* Layout adjustments for Merkmale and Hilfe sections */
#Merkmale, #Hilfe {
    background-color: #333;
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
    margin: 20px auto;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.1);
    text-align: left; /* for better readability */
}

#Merkmale ul {
    list-style-type: none;
    padding-left: 0;
}

#Merkmale ul li {
    margin: 10px 0;
}

#Hilfe p {
    line-height: 1.6;
}

/* Responsiveness */
@media (max-width: 600px) {
    .overlay h1 {
        font-size: 2em;
    }

    .overlay .test-link {
        font-size: 1.2em;
        padding: 0.5em;
    }

    #Test, #Merkmale, #Hilfe {
        padding: 20px;
    }
}
    