:root {
    /* color pallete */
    --light-tan: #fdf7f2;
    --tan: #ffe4c480;
    --brown: #846d62;
    --black: #000000;
    --grey: #a8a29c;
}

/* ----- Universal -----*/

body {
    font-size: 16px;
    margin: 0px;
    padding: 0px;
    font-family: Arial, Helvetica, sans-serif;
    color: #846d62;
    background-color: var(--light-tan);
}

h1, h2, h3 {
    text-shadow: 2px 2px 3px #333;
}

.container {
    display: flex;
    flex-wrap: wrap;
}

/* ----- Header -----*/

header {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--light-tan);
    margin: 20px;
    text-align: center;
}

/* ----- Main -----*/

main {
    flex-direction: column;
    gap: 1rem;
}

.about {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    background-color: var(--tan);
    border-radius: 1rem;
    margin: 0 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -2px #333;
}

a,  p {
    text-shadow: 1px 1px 2px #888;
}

.portfolio {
    background-color: var(--grey);
    color: var(--black);
    text-shadow: 2px 2px 3px var(--brown);
}

.chain-fence-sections {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    margin: 0;
    padding: 2rem 1rem;
    background-color: var(--tan);
}

.wooden-fence-sections {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    margin: 2rem 1rem;
}

.wooden-fence-text, .chain-fence-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 60%;
}

.wooden-fence-images, .chain-fence-images {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    width: 40%;
}

.wooden-fence-image, .chain-fence-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px -2px #333;
    object-fit: cover;
}

.second, .third, .last {
    display: none;
}

/* ----- Footer -----*/

footer {
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: center;
    text-align: center;
    font-size: 1.5rem;
}

footer a {
    color: #846d62;
    text-decoration: none;
}

.icon {
    display: flex;
    align-items: center;
}

.icon img {
    border-radius: 50%;
    box-shadow: 0 4px 6px -2px #333;
    margin-right: 1rem;
}

/* Media Queries */
@media screen and (max-width: 1400px) {
    .second {
        display: block;
    }
}

@media screen and (max-width: 900px) {
    .wooden-fence-text {
        width: 60%;
    }
    
    .wooden-fence-images {
        width: 40%;
    }

    .third {
        display: block;
    }
}

@media screen and (max-width: 700px) {
    .wooden-fence-text {
        width: 60%;
    }
    
    .wooden-fence-images {
        width: 40%;
    }

    .last {
        display: block;
    }
}

@media screen and (max-width: 480px) {
    header img {
        width: 25rem;
        height: 12.5rem;
    }

    .wooden-fence-sections, .chain-fence-sections {
        flex-direction: column;
    }

    .wooden-fence-text, .chain-fence-text {
        width: 100%;
    }
    
    .wooden-fence-images, .chain-fence-images {
        width: 100%;
    }

    .third, .last {
        display: none;
    }

    footer {
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        margin-left: 2rem;
    }


}