/* Reset default styles applied to webpage */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Title bar styling */
.title-bar {
    background-color: #333;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: sticky;
    top: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

/* Navigation bar text hover color */
.nav-links a:hover {
    color: #ffcc00;
}

/* Page content */
main {
    padding: 20px;
    font-family: Arial, sans-serif;
}

h1, h2 {
    margin-bottom: 15px;
}

p {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Media styling */
.media-gallery {
    display: flex;
    flex-wrap: wrap;      /* Wraps images to new lines on smaller screens */
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

/* Media hover effects */
.responsive {
    width: 100%;
    max-width: 700px;     /* Limits image size on large screens */
    border-radius: 10px;
    transition: transform 1.0s;
}

.responsive:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Media adjustment for smaller screens */
@media (max-width: 400px) {
    .title-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 10px;
    }

    .responsive {
        max-width: 90%;  /* Reduce size on tablets and mobile */
    }
}

#validation {
    text-align: center;
}