* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-image: url(../images/topo-bg.webp);
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon {
    position: absolute;
    margin-top: -20px;
    left: 50px;
    width: 70px;
    height: 70px;
    background-size: cover;
}

header {
    background-color: rgb(12, 2, 43);
    color: #da0707;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 10px;
    font-weight: bold;
    font-size: xx-large;
    width: 100%;
    line-height: 2.5;
    padding: 10px;
    position: relative;
    z-index: 999;
    padding: 50px 0;
    border-radius: 100px;
    margin: 50px auto;
    width: 100%;
}

header h1 {
    font-size: 24px;
}

h2 {
    font-size: 32px;
    color: #6399fe;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
}

p {
    font-size: 16px;
    color: #efebeb;
    line-height: 1.5;
    margin-bottom: 20px;
}

nav {
    background: linear-gradient(45deg, #2a0101, #002603);
    width: 100%;
    padding: 10px 0;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-bottom: 20px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    display: flex;
    align-items: center;
    color: rgb(37, 168, 4);
    font-weight: bold;
    font-size: 16px;
    border: 2px solid #2c026c;
    border-radius: 10px;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

nav ul li a img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #07eb43;
    border-color: #ffeb3b;
    transform: scale(1.05);
}

main {
    padding: 20px;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 5px 5px 10px rgba(137, 134, 134, 0.1);
    width: 100%;
}

.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.photo {
    border-radius: 10px;
    padding: 10px;
    overflow: hidden;
    box-shadow: 5px 5px 10px rgba(235, 110, 110, 0.1);
    transition: transform 0.4s ease-in-out;
    flex: 1 1 30%;
    max-width: 300px;
    text-align: center;
    margin: 10px;
}

.photo:hover {
    transform: scale(1.05);
    box-shadow: 5px 5px 10px rgba(137, 134, 134, 0.5);
    cursor: pointer;
}

.photo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.caption {
    padding: 10px;
    font-size: 20px;
    line-height: 1.5;
    color: #f20404;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
}

.description {
    text-align: left;
    font-size: 16px;
    color: #f3f0f0;
    padding: 10px;
}

footer {
    background-color: rgb(12, 2, 43);
    color: #cac8c8;
    padding: 20px;
    text-align: center;
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 999;
}

.description-link {
    color: #ebae07;
    text-decoration: none; 
    font-size: 14px; 
    text-align: center; 
    margin:auto;
    margin-top:1px;
    margin-bottom:auto;
    margin-left:auto;
    margin-right:auto;
    padding: 5px;
    display:block;
    transition: background-color 0.3s, color 0.3s; 
}

.description-link:hover {
    background-color: #ee0606; /* Change background color on hover */
    color: #fff; /* Change text color on hover */
}


@media (min-width: 768px) and (max-width: 1024px) {
    .photo {
        flex: 1 1 45%;
    }
    
    header {
        padding: 30px 0;
    }

    nav ul li {
        margin: 0 10px;
    }
}


@media (max-width: 767px) {
    .photo {
        flex: 1 1 100%;
        max-width: none;
    }

    header {
        padding: 20px 0;
        font-size: large;
        border-radius: 50px;
    }

    .icon {
        margin-top: -10px;
        width: 50px;
        height: 50px;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 5px 0;
    }

    nav ul li a {
        font-size: 14px;
        padding: 8px 15px;
    }

    main {
        padding: 10px;
    }

    .photo img {
        height: auto;
    }

    .caption {
        font-size: 18px;
    }

    footer {
        padding: 10px;
        font-size: 14px;
    }
}
