body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex; /* Enable flexbox for sticky footer */
    flex-direction: column; /* Stack children vertically */
    min-height: 100vh; /* Ensure body takes at least the full viewport height */
}

header {
    background: #35424a;
    color: white;
    padding: 20px 0;
    text-align: center;
}

h1 {
    margin: 0;
}

main {
    padding: 20px;
    flex-grow: 1; /* Allows main content to take up available space */
}

.video-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Changed to center for better visual balance */
    gap: 15px; /* Adds space between items without margins */
}

.video-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 200px; /* Fixed width as a base */
    max-width: 100%; /* Ensures it shrinks on very small screens */
    flex-basis: 200px; /* Preferred size for flex items */
    flex-grow: 1; /* Allows items to grow and fill available space */
}

.video-box img {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    width: 100%; /* Makes the image responsive within its container */
    height: auto;
    display: block; /* Removes extra space below image */
}

.video-title {
    padding: 10px;
    font-weight: bold;
}

.video-box a {
    text-decoration: none;
    color: #35424a;
    display: block; /* Makes the entire box clickable */
}

.video-box a:hover {
    color: #007BFF; /* Change link color on hover */
}

footer {
    text-align: center;
    padding: 10px 0;
    background: #35424a;
    color: white;
    width: 100%;
    /* position and bottom properties removed due to flexbox sticky footer */
}
