* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

html {
    scroll-behavior: smooth;

}

nav {
    background-color: #332E2D;
    text-align: center;
    padding: 15px;
    justify-content: end;
    gap: 2.074rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}


nav a {
    text-decoration: none;
    color: white;
    position: relative;
    display: inline-block;
}

nav a:hover {
    background-color: #473633;
    display: block;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    left: 0;
    background: #E13619;
    transition: width 0.3s ease-in-out;
}

nav a:hover::after {
    width: 100%;
}



body {
    background-color: #AD4836;
}



header {
    background-color: #7A473E;
    text-align: center;
    padding: 50px;
    font-size: 25px;

}

section {
    text-align: center;
    font-size: 20px;
    display: grid;
    padding: .482rem;
    display: grid;
    gap: 0.482rem;
}

figure img {
    max-width: 400px;
}

figcaption {
    text-decoration: none;
}

footer {
    background-color: #332E2D;
    text-align: center;
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* position: fixed; */
    bottom: 0;
    width: 100%;
    justify-content: end;
    gap: 2.074rem;

}

footer a {
    text-decoration: none;
    color: white;
    position: relative;
    display: inline-block;
    bottom: 0;
    
}

footer a:hover {
    background-color: #473633;
    display: block;
}


footer a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    left: 0;
    background: #E13619;
    transition: width 0.3s ease-in-out;
}

footer a:hover::after {
    width: 100%;
}

@media screen and (min-width: 400px) {
    section {
        grid-template-columns: 1fr;
    }
}

@media screen and (min-width: 800px) {
    section {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (min-width: 1200px) {
    section {
        grid-template-columns: repeat(3, 1fr);
    }
}

h1,
h2,
h3,
h4,
p,
a {
    color: white;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    text-align: center;
}

h3 {
    font-size: 16px;
}

article:hover {
    color: #D9D9D9;
}

h2 {
    padding: 1.4rem;
    font-size: 32px;
    text-decoration: none;
}