:root {
    --color-1: #ff5252;
    --color-2: #ffb142;
    --color-3: #fffa65;
    --color-4: #32ff7e;
    --color-5: #18dcff;
    --color-6: #7d5fff;
    --color-7: #f368e0;
    --dark: #121212;
    --light: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
}

.main {
    position: relative;
    left: 50%;
    transform: translate(-50%, 0);
    max-width: 1500px;
    width: 100%;
}

header {
    background: linear-gradient(120deg, var(--color-1), var(--color-2));
    padding: 3rem 2rem;
    text-align: center;
    animation: fadeIn 1.5s ease-in-out;
}

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

header p {
    font-size: 1.2rem;
    opacity: 0.85;
}

nav {
    display: flex;
    justify-content: center;
    background: var(--color-6);
    padding: 1rem;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--light);
    font-weight: bold;
    transition: transform 0.3s;
}

nav a:hover {
    transform: scale(1.1);
}

section {
    padding: 3rem 2rem;
    animation: slideUp 1s ease-in-out;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-3);
}

.button {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 8px;
    background: var(--color-4);
    color: var(--dark);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-size: 16px;
}

.button:disabled {
    background: grey;
    cursor: not-allowed;
}

.button:hover {
    background: var(--color-5);
    transform: scale(1.05);
}

.form-input, .form-select {
    padding: 0.8rem;
    margin: 0.5rem 0;
    width: 100%;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
}

.form-select {
    background-color: var(--light);
    color: var(--dark);
}

.video-player {
    width: 100%;
    max-width: 640px;
    display: block;
    margin: 1rem auto;
    border-radius: 12px;
}

.pricing-table {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.pricing-card {
    background: var(--color-7);
    padding: 2rem;
    border-radius: 10px;
    flex: 1 1 200px;
    text-align: center;
    color: var(--light);
}

.pricing-card h3 {
    margin-bottom: 1rem;
}

.loading-spinner {
    display: none;
    margin: 1rem auto;
    border: 8px solid var(--dark);
    border-top: 8px solid var(--color-5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

footer {
    background: var(--color-1);
    text-align: center;
    padding: 1.5rem;
    color: var(--light);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Create three equal columns that floats next to each other */
.column {
    float: left;
    width: 50%;
    padding: 10px;
}
  
/* Clear floats after the columns */
.row:after {
    content: "";
    display: table;
    clear: both;
}
  
/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
    .column {
        width: 100%;
    }
}


/* Video Aspect Ratio */
.videoAR {
    position: relative;
    max-width: 400px;            /* Or set a fixed width like 360px */
    aspect-ratio: 9 / 16;
    max-height: 100vh;
    border: 2px solid var(--color-5);
    border-radius: 10px;
    left: 50%;
    transform: translateX(-50%);
}

#videoPlayer {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* optional, can use "contain" or "fill" */
    display: block;
}

#genForm {
    max-width: 400px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

hr {
    max-width: 600px;
    width: 80%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
  
div.gallery video {
    width: 100%;
    height: auto;
}
  
.responsive {
    padding: 0 6px;
    float: left;
    width: 24.99999%;
}
  
@media only screen and (max-width: 700px) {
    .responsive {
      width: 49.99999%;
      margin: 6px 0;
    }
}
  
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}


.container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.text, .video-landing {
    flex: 1 1 300px;
    box-sizing: border-box;
    padding: 10px;
}

.video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    text-align: center;
}

.video-landing {
    text-align: center;
}

.video-landing video {
    aspect-ratio: 9 / 16;
    max-height: 500px;
}

video {
    width: auto;
    height: 100%;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .video {
        order: -1; /* puts video on top when stacked */
    }
}