/* Importing Montserrat from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fafafa;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #222;
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 600;
}

.introduction {
    text-align: center;
    margin: 40px auto;
    max-width: 600px; /* Limiting width for better readability */
    padding: 0 20px;  /* Adding padding for small screens */
}

.introduction h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.introduction p {
    font-size: 1.2em;
    color: #555;
    line-height: 1.8;
}

.introduction a {
    color: #007bff;  /* A blue color for links */
    text-decoration: none;
    font-weight: 600;
}

.introduction a:hover {
    text-decoration: underline;
}


nav {
    margin-top: 10px;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    background-color: #555;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin: 0 10px;
    font-weight: 600;
}

nav a:hover {
    background-color: #777;
}

.gallery, .repository {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.gallery-item, .repository-item {
    position: relative;
    margin: 15px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover, .repository-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item img, .repository-item img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 300px;  /* Ensures the width is limited to 300px */
    max-height: 300px; /* Ensures the height is limited to 300px */
    object-fit: cover;  /* Crop the image while maintaining aspect ratio */
    border-radius: 8px 8px 0 0;
}


.overlay {
    display: none;
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: 0 0 8px 8px;
}

.gallery-item:hover .overlay {
    display: block;
}

.overlay ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.overlay ul li {
    margin: 5px 0;
}

.overlay a {
    color: #add8e6;
    text-decoration: none;
}

.overlay a:hover {
    text-decoration: underline;
}

.repository-item p {
    margin: 10px 0 0;
    font-size: 1em;
    color: #555;
}

