/* Reset */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins';
    line-height: 1.55;
    color: #ffffff;
    background-color: #242423;
    text-align: center;
    overflow-x: hidden;
}

.container {
    width: 85%;
    margin: 0 auto;
}

h1 {
    font-size: 2.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.2rem;
    font-weight: 500;
}

h3 {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

p {
    font-weight: 300;
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
}

section, .header2 {
    margin-bottom: 3.5rem;
    padding: 8rem 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
}

.logo {
    width: 150px;
}

.link-menu a {
    margin-right: 5px;
}

.link-menu a .fab {
    text-align: center;
    font-size: 25px;
    line-height: 30px;
    width: 40px;
    border-radius: 50%;
    color: #ffffff;
}

.link-menu a .fab::after {
    content: '';
    width: 0;
    height: 3px;
    background-color: #f7bd2e;
    margin: auto;
    display: block;
}

.link-menu a .fab:hover:after {
    width: 80%;
    transition: width 0.3s linear;
}

.visit-site-btn {
    text-decoration: none;
    color: #f7bd2e;
    padding: 10px 20px;
    border: solid 1px #ffffff;
    transition: all 0.3s;
}

.visit-site-btn:hover {
    color: #ffffff;
    border: solid 1px #f7bd2e;
    background: #f7bd2e;
}

#content h1{
    text-transform: uppercase;
    color: #f7bd2e;
}

.by {
    font-weight: 500;
    letter-spacing: 1px;
    text-decoration: overline;
    text-decoration-color: #f7bd2e;
}

#content h2 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    margin-top: 2rem;
}

button {
    color: #ffffff81;
    border: none;
    background: none;
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 15px;
    box-shadow: 0 8px 5px rgba(0,0,0,0.09);
    cursor: pointer;
    margin-inline: 10px;
    background: #333533;
    transition: all 300ms ease-in;
}

button.active {
    color: #f7bd2e;
    background: #464946;
}

.card-container {
    padding: 2rem 3rem 3rem 3rem;
}

.filter-card {
    columns: 5 250px;
    gap: 20px;
    position: relative;
    list-style: none;
}

.card.hide {
    display: none;
}

.card img {
    width: 100%;
    margin-bottom: 20px;
    display: block;
    cursor: pointer;
}

#lightbox {
    position: fixed;
    z-index: 1000;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0, .8);
    display: none;
}

#lightbox.active {
    display: flex;
    padding: 30px;
    justify-content: center;
    align-items: center;
}

#lightbox.active img {
    max-width: 100%;
    max-height: 100%;
}

footer {
    color: #ffffff;
    background: #333533;
    padding: 3.5rem;
}

.footer-content {
    display: flex;
    text-align: start;
    margin-bottom: 3rem;
}

.footer-content h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-content a {
    text-decoration: none;
    color: #ffffff;
}

.footer-logo {
    width: 700px;
}

.footer-logo .logo {
    width: 120px;
    margin-bottom: 1rem;
}

.footer-logo p {
    max-width: 400px;
    margin-left: 0;
}

.footer-contact {
    width: 300px;
}

.footer-social {
    width: 200px;
}

.footer-social a {
    margin-right: 10px;
}

.footer-social a .fab {
    text-align: center;
    font-size: 20px;
    line-height: 38px;
    width: 40px;
    border-radius: 50%;
    color: #ffffff;
    text-align: left;
}

.cmj-copyright {
    border-top: solid 1px #ffffff;
}

.cmj-copyright p {
    margin-top: 3.5rem;
}

@media screen and (max-width: 1100px) {
    .footer-logo {
        width: 400px;
        margin-right: 3rem;
    }
    
    .footer-contact {
        width: 250px;
        margin-right: 3rem;
    }

    .footer-social {
        width: 250px;
    }
}

@media screen and (max-width: 800px) {
    .filter-card {columns: 3 180px;}

    .footer-content {
        display: inline;
        text-align: center;
    }   

    .footer-logo {
        width: 100%;
        margin-bottom: 3rem;
    }

    .footer-logo p {
        margin-left: auto;
    }

    .footer-contact {
        width: 100%;
        margin-bottom: 3rem;
    }

    .footer-social {
        width: 100%;
        margin-bottom: 3rem;
    }    

    .footer-social a .fab {
        text-align: center;
    }
}

@media screen and (max-width: 600px) {
    h1 {font-size: 1.7rem; letter-spacing: 1px;}
    h2 {
        font-size: 12px;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 3rem;
    }

    p {font-size: 12px;}
    
    header {display: inline-flex; gap: 10px;}
    .logo {width: 100px;}
    .link-menu a .fab {display: none;}

    button {
        padding: 8px 16px;
        font-size: 14px;
        margin-inline: 5px;
        border-radius: 10px;
        margin-bottom: 15px;
    }

    .filter-card {columns: 2 100px;}

    .footer-content p {
        font-size: 12px;
    }

    .footer-logo .logo {
        width: 100px;
    }
    
    .footer-social a .fab {
        text-align: center;
        font-size: 15px;
        line-height: 28px;
        width: 30px;
    }
}
