/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    padding: 20px;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    font-size: 2.5em;
    color: #4CAF50;
}

header p {
    font-size: 1.1em;
    color: #555;
    margin-top: 10px;
}

/* Navigation styles */
nav {
    text-align: center;
    margin: 20px 0;
}

nav ul {
    list-style-type: none;
}

nav li {
    display: inline-block;
    margin: 10px 15px;
}

nav a {
    font-size: 1.2em;
    color: #4CAF50;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #4CAF50;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
    background-color: #4CAF50;
    color: #fff;
}

/* Video gallery styles */
.video-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* Each individual video container */
.video {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px; /* Keep a maximum size for larger screens */
    text-align: center;
    margin-bottom: 20px;
}

.video h2 {
    margin-bottom: 10px;
    font-size: 1.5em;
}

video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* Play button styles */
button {
    padding: 10px 20px;
    margin-top: 15px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

/* Footer styles */
footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9em;
    color: #777;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    header p {
        font-size: 1em;
    }

    nav a {
        font-size: 1.1em;
        padding: 8px 15px;
    }

    .video-gallery {
        flex-direction: column;
        align-items: center;
    }

    .video {
        max-width: 90%; /* Allow more space on smaller screens */
    }

    video {
        max-width: 100%;
        height: auto;
    }
}

/* Landscape mode optimization (e.g., mobile landscape) */
@media (max-width: 768px) and (orientation: landscape) {
    .video {
        max-width: 45%; /* Make video sections a bit smaller for landscape mode */
    }
}


