body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0; /* Reset default margin */
}

main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* From Uiverse.io by adamgiebl */ 
.input { 
color: #fff; 
font-size: 0.9rem; 
background-color: transparent; 
width: 100%; 
box-sizing: border-box; 
padding-inline: 0.5em; 
padding-block: 0.7em; 
border: none; 
border-bottom: var(--border-height) solid var(--border-before-color); 
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
} 

.input-border { 
position: absolute; 
background: var(--border-after-color); 
width: 0%; 
height: 2px; 
bottom: 0; 
left: 0; 
transition: width 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045); 
} 

.input:focus { 
outline: none; 
} 

.input:focus + .input-border { 
width: 100%; 
} 

.form-control { 
position: relative; 
--width-of-input: 300px; 
} 

.input-alt { 
font-size: 1.2rem; 
padding-inline: 1em; 
padding-block: 0.8em; 
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
} 

.input-border-alt { 
height: 3px; 
background: linear-gradient(90deg, #FF6464 0%, #FFBF59 50%, #47C9FF 100%); 
transition: width 0.4s cubic-bezier(0.42, 0, 0.58, 1.00); 
} 

.input-alt:focus + .input-border-alt { 
width: 100%; 
}

.video-info-container {
    display: flex;
    flex-direction: column; /* Default stack for mobile */
    align-items: center;
    gap: 15px; /* Space between items */
    width: 100%;
}

.video-details {
    text-align: center; /* Center text on mobile */
}

.video-thumbnail-container img {
    max-width: 250px; /* Max width for thumbnail on mobile */
    height: auto;
    display: block;
    border-radius: 8px; /* Optional: rounded corners */
}

.download-links {
    text-align: center; 
    margin-top: 15px;
}

.download-links p {
    margin: 8px 0;
}

/* Media query for large screens (e.g., > 768px) */
@media (min-width: 769px) {
    .video-info-container {
        flex-direction: row;
        justify-content: space-around; 
        align-items: flex-start;
    }
    .video-details {
        flex: 2; /* Give more space to details */
        text-align: left; 
        margin-right: 20px; 
    }
    .video-thumbnail-container {
        flex: 1; /* Give less space to thumbnail */
        display: flex;
        justify-content: flex-end; /* Align thumbnail to the right of its column */
    }
    .video-thumbnail-container img {
        max-width: 100%; 
        min-width: 200px; /* Ensure thumbnail is not too small */
    }
    .download-links {
        margin-top: 20px;
    }
}