body {
    font-family: 'Arial', sans-serif;
    background-color: #A56CD1;
}

#container {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 30px;
}

#container a {
    text-decoration: none;
}

/* Header & Nav */
#header {
    width: 100%;
    aspect-ratio: 1100 / 425;
    background-image: url("imagens/h.png");
    background-size: contain;
    background-position: bottom center;
    background-repeat: no-repeat;
}

#navbar {
    height: 40px;
    background-color: #ECECEC;
    width: 100%;
}

#navbar ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style-type: none;
    justify-content: center; 
    gap: 150px;                             
}

#navbar li {
    padding-top: 10px;
}

#navbar li a {
    font-family: 'Fredoka', sans-serif;
    font-size: 19px;
    color: #6F35A6;
    font-weight: 800;
    text-decoration: none;
}

#navbar li a:hover {
    color: #31A1AD;
    text-decoration: underline wavy #413C4C;
}

#flex {
    display: flex;
}

main {
    background-color: #B0DED6;
    flex: 1;
    padding: 20px;
}

footer {
    background-color: #000000;
    height: 30px;
    display: flex;
    align-items: center;            
    padding: 20px 40px;            
}

.m {
    width: 60px;
    height: auto;
}


.galeria-fanarts {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    justify-content: flex-start !important;
    padding: 10px 0 !important;
    width: 100% !important;
}

.fanart-item {
    background-color: transparent !important; 
    border: none !important;                   
    border-radius: 0 !important;
    padding: 0 !important;                     
    box-shadow: none !important;               
    width: calc(33.33% - 14px) !important;
    min-width: 180px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

.fanart-item img {
    width: 100% !important;
    height: 220px !important;
    object-fit: contain !important;
    border-radius: 5px !important;            
    display: block !important;
}

.artist-credit {
    margin-top: 6px !important;
    margin-bottom: 2px !important;
    font-family: 'Fredoka', sans-serif !font-style;
    font-size: 11px !important;
    color: #333333 !important;
    text-align: center !important;
}

.artist-credit a {
    color: #6F35A6 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.artist-credit a:hover {
    color: #31A1AD !important;
    text-decoration: underline !important;
}

/* Crédito do artista */
.artist-credit {
    margin-top: 8px;
    margin-bottom: 2px;
    font-family: 'Fredoka', sans-serif;
    font-size: 13px;
    color: #333333;
}

.artist-credit a {
    color: #6F35A6;
    font-weight: 700;
    text-decoration: none;
}

.artist-credit a:hover {
    color: #31A1AD;
    text-decoration: underline;
}

/* RTC */
@media (max-width: 768px) {
    #navbar {
        height: auto;
        padding: 10px 0;
        background-image: none;
        overflow-x: auto;
    }

    #navbar ul {
        flex-direction: row;
        justify-content: space-around;
        gap: 15px;
        padding: 0 10px;
        white-space: nowrap;
    }

    #navbar li a {
        font-size: 15px;
    }

    .galeria-fanarts {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 20px;
        justify-items: center; 
    }

    .fanart-item {
        display: flex;
        flex-direction: column;
        align-items: center; 
        text-align: center;
        width: 100%;
    }

    .fanart-item img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto; 
    }

    main {
        padding: 15px;
    }

    footer {
        justify-content: center;
        padding: 15px 20px;
    }
}