body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f5;
    color: #333;
}

header {
    background-color: #3b5998;
    color: white;
    padding: 1em;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.8s ease-out;
}

nav a {
    color: white;
    margin: 0 1em;
    text-decoration: none;
    font-weight: bold;
}

main {
    padding: 2em;
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    animation: fadeIn 1s ease-in-out;
}

.resource-header {
    display: flex;
    align-items: center;
}

.resource-icon {
    width: 50px;
    height: 50px;
    margin-right: 1em;
}

h2 {
    color: #3b5998;
}

h3 {
    color: #3b5998;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    background-color: #dfe3ee;
    margin: 0.5em 0;
    padding: 1em;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.3s;
}

ul li:hover {
    background-color: #c9d0e4;
    transform: scale(1.03);
}

.download-button {
    display: inline-block;
    padding: 0.5em 1em;
    background-color: #3b5998;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    margin: 0.5em 0;
}

.download-button:hover {
    background-color: #2d4373;
    transform: translateY(-2px);
}

.thumbnails {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}

.thumbnail {
    width: 100px;
    height: auto;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.3s;
}

.thumbnail:hover {
    transform: scale(1.1);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1em 0;
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
