*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body
{
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
    padding-top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header
{
    background: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

header h1
{
    color: white;
    font-size: 28px;
    margin-bottom: 10px;
}

nav ul
{
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li
{
    display: inline;
}

nav ul li a
{
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 10px 15px;
    transition: 0.3s ease-in-out;
}

nav ul li a:hover
{
    background-color: #555;
    border-radius: 5px;
}

main
{
    padding: 100px 20px;
    text-align: center;
    width: 90%;
    max-width: 1200px;
}

h2
{
    color: #444;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
}

.gallery
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
    width: 100%;
}

.gallery img
{
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out, opacity 0.3s;
    cursor: pointer;
}

.gallery img:hover
{
    transform: scale(1.05);
    opacity: 0.8;
}

.image-container
{
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.image-container img
{
    width: 100%;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.image-container:hover img
{
    transform: scale(1.08);
}

.caption
{
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 100%;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.image-container:hover .caption
{
    opacity: 1;
}

button
{
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s;
}

button:hover
{
    background-color: #0056b3;
    transform: scale(1.05);
}

footer
{
    background: #333;
    color: white;
    text-align: center;
    padding: 15px 0;
    width: 100%;
    margin-top: 20px;
}

ul
{
    list-style-type: none;
    padding: 0;
}

ul li
{
    margin-bottom: 15px;
    line-height: 1.5;
}

a
{
    color: #007BFF;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

a:hover
{
    text-decoration: underline;
}

table
{
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td
{
    border: 1px solid #ddd;
}

th, td
{
    padding: 10px;
    text-align: left;
}

th
{
    background-color: #333;
    color: white;
}

blockquote
{
    font-style: italic;
    margin: 20px;
    padding: 15px;
    background: #eee;
    border-left: 5px solid #333;
}

ul.custom-list
{
    list-style-type: square;
    margin-left: 20px;
}

ul.custom-list li
{
    margin-bottom: 10px;
}

pre
{
    background: #eee;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

hr
{
    margin: 20px 0;
    border: none;
    height: 1px;
    background: #ddd;
}

@media (max-width: 768px)
{
    nav ul
    {
        flex-direction: column;
    }

    nav ul li
    {
        margin-bottom: 10px;
    }

    .gallery
    {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
