* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Arial', sans-serif;
    overflow: hidden; /* Prevent scrollbars */
}

.container {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    padding-left: 10%;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: black;
    overflow: hidden;
}

.video-background .placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: opacity 1s ease-out;
}


.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 100vw * (9 / 16) to maintain the 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
}

@media (min-aspect-ratio: 16/9) {
    .video-background iframe {
        width: 100vw;
        height: 56.25vw; /* 100vw * (9 / 16) */
    }
}

@media (max-aspect-ratio: 16/9) {
    .video-background iframe {
        width: 177.78vh; /* 100vh * (16 / 9) */
        height: 100vh;
    }
}

.content {
    background: rgba(0, 0, 0, 0.1);
    color: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 500px;
    margin: 20px;
    position: relative;
    transition: opacity 0.5s ease, transform 0.5s ease;
    width: 100%;
    pointer-events: auto; /* Ensure pointer events are enabled */
}

#formContent {
    display: none;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none; /* Ensure this element doesn't block clicks */
}

.fade-out {
    animation: fadeOut 0.5s forwards;
}

.fade-in {
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

button {
    font-size: 16px;
    padding: 10px 20px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
}

button:hover {
    background-color: #360049;
    transform: scale(1.01);
}

button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

form {
    display: flex;
    flex-direction: column;
    pointer-events: auto; /* Ensure pointer events are enabled */
}

label {
    margin-bottom: 10px;
    font-size: 18px;
}

input, textarea {
    margin-bottom: 20px;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    pointer-events: auto; /* Ensure pointer events are enabled */
    font-family: 'Arial', sans-serif; /* Ensure consistent font */
    background-color: rgba(255, 255, 255, 0.2); /* 50% transparent */
}

input:focus, textarea:focus {
    border-color: #360049;
    outline: none;
    background-color: rgba(255, 255, 255, 0.5); /* Slightly less transparent on focus */
}

button[type="submit"] {
    background-color: #360049;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    color: white;
}

button[type="submit"]:hover {
    background-color: #4b0082;
}
