body, html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    color: #ddd; /* Light grey for text, less stark than white */
    background-color: #000; /* Black, matching the external background */
}

.container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    background: #333; /* Dark grey, which should not clash with red and black */
    padding: 20px;
    border-radius: 8px;
    width: 80%; /* Responsive width */
    max-width: 960px;
    margin: 5% auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
}

.form-container2 iframe {
    width: 100%;        /* Ensures the iframe takes the full width of its container */
    height: 500px;      /* Set a fixed height */
    border: none;
    padding: 5px;       /* Removes the default border around iframes */
    max-width: 640px;   /* Prevents the form from exceeding a specific width */
    border-radius: 10px; /* Applies a border radius similar to other content */
}

@media (max-width: 770px) {
    .form-container iframe {
        margin: 0 auto;
        padding: 5px;
        width: 95%;
        border-radius: 10px;
    }
}


.gif-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('vid-bckgrnd-for-web-skewed-right.gif') no-repeat center center fixed;
    background-size: cover;
    z-index: 1;
}

.header-content, .form-container {
    flex: 1;
    margin: 10px; /* Space between content sections */
}

.featured-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    margin-bottom: 30px;
    background-color: #444; /* Slightly lighter grey for visual distinction */
    color: #ddd; /* Light grey text */
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

input[type="file"], textarea, select {
    width: 90%;
    padding: 8px;
    border: 1px solid #555; /* Dark grey border for elements */
    border-radius: 4px;
    background: #222; /* Very dark grey for input fields */
    color: #ccc; /* Light grey text for readability */
}

input[type="submit"] {
    background-color: #FF0000; /* Bright red button to connect with external theme */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #cc0000; /* Darker shade of red on hover */
}

.static-background {
    background: url('static-web-bg.jpg') no-repeat center center fixed; /* Example for a static image */
    /* For a solid color example, use this instead:
    background: #f0f0f0; */
    background-size: cover;
}

#toggleBackground{
    background-color: #FF0000; /* Bright red button to connect with external theme */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Stack the content on smaller screens */
    }

    .header-content, .form-container {
        width: 100%; /* Full width on small screens */
    }
}

/* Specific styles for results page */
.results-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    background: #333; /* Dark grey, matching the main container */
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    margin: 5% auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Consistent shadow depth */
}

.results-list {
    list-style-type: none;
    padding: 0;
    margin-top: 20px; /* Adds a little space above the list */
}

.results-list li {
    padding: 8px;
    border-bottom: 1px solid #555; /* Darker border for list items */
    color: #ddd; /* Light grey text for readability */
}

.results-button, .back-button {
    padding: 10px 20px;
    background-color: #FF0000; /* Bright red for button consistency */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px; /* Space above the button */
    width: 95%; /* Full-width button */
    text-align: center; /* Center text inside the button */
}

.back-button {
    background-color: #555; /* Slightly darker grey for a secondary button */
    margin-top: 20px; /* More space above the 'Check another deck' button */
}