* {
    box-sizing: border-box;
    margin: 0;
}

body {
    margin: 12px;
    font-family: 'Recursive', sans-serif;
    background-color: #B3C8CF;
}

header {
    font-weight: bold;
    font-size: 24px;
    letter-spacing: 5px;
    text-align: right;
    background-color: #E5DDC5;
    border-style: outset;
}

header h1 {
    padding-right: 6px;
}

nav {
    background-color: #F1EEDC;
    padding: 12px;
}

main {
    padding: 12px;
}

aside {
    padding: 6px;
    text-align: center;
}

figure img {
    border-radius: 60%;
}

h1,
h2,
p {
    margin-bottom: 6px;
}

h4 {
    font-weight: bolder;
    margin-bottom: 6px;
}

hr {
    height: 6px;
    border: 0;
    box-shadow: inset 0 12px 12px -12px rgba(0, 0, 0, 0.5);
    margin-top: 12px;
}

a {
    text-decoration: none;
    font-size: 12px;
    color: black;
}

a:hover {
    color: black;
    font-weight: bolder;
}

.link-contact {
    text-decoration: none;
    font-size: 18px;
    font-weight: bolder;
    color: black;
}

.a-email {
    font-size: 18px;
}

span a {
    font-size: 18px;
    font-weight: bolder;
}

ul {
    padding: 0;
}

.li-sitemap {
    list-style-type: circle;
}

li {
    list-style: none;
    margin-bottom: 6px;
}

footer {
    padding: 10px 0;
    text-align: center;
    font-size: 0.8rem;
    background-color: #E5DDC5;
}

.grid-div {
    padding: 12px;
    display: flex;
    justify-content: space-evenly;
}

.grid-div-listing {
    display: flex;
    flex-wrap: wrap;
}

.grid-item {
    border: 2px solid #BED7DC;
    border-radius: 5px;
    margin: 2px;
}

.link-cards {
    text-decoration: none;
}

.link-cards:hover {
    color: black;
    text-decoration: none;
}

.card,
.card-listing {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.card:hover,
.card-listing:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.card-listing {
    width: 190px;
}

.card img {
    padding-left: 6px;
}

.card-listing img {
    width: 190px;
    height: 130px;
    padding: 0;
}

.container {
    padding: 2px 16px;
}

.img-listing {
    width: 250px;
    height: 180px;
}

.credits {
    font-size: 12px;
}

.sitemap {
    font-size: 24px;
    background-color: rgba(255, 255, 255, 0.5);
    justify-content: space-between;
}

.reviews {
    border: 2px solid #F1EEDC;
    border-radius: 5px;
    margin-bottom: 12px;
    padding: 6px;
}

.reviews-hr {
    height: 6px;
}

.form {
    height: 700px;
    text-align: center;
    padding-top: 100px;
}

input[type=text],
input[type=tel],
input[type=number] {
    background-color: #E5DDC5;
    border-radius: 4px;
    border: solid black;
    text-decoration: none;
}

textarea {
    width: 600px;
    height: 160px;
    padding: 12px 20px;
    box-sizing: border-box;
    border-radius: 4px;
    border: solid black;
    background-color: #E5DDC5;
    resize: inherit;
}

input[type=submit] {
    background-color: rgb(255, 255, 255);
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    text-decoration: none;
    margin: 4px 2px;
    cursor: pointer;
}

/* Media query */
/* Medium Display */
@media (min-width: 600px) {
    #wrapper {
        display: grid;
        grid-template-columns: 55% auto;
        grid-template-rows: auto auto auto auto;
    }

    header {
        grid-row: 1 / 2;
        grid-column: 1 / 3;
    }

    nav {
        grid-row: 2 / 3;
        grid-column: 1 / 3;
    }

    main {
        grid-row: 3 / 4;
        grid-column: 1 / 2;
    }

    aside {
        grid-row: 3 / 4;
        grid-column: 2 / 3;
    }

    footer {
        grid-row: 4 / 5;
        grid-column: 1 / 3;
    }

    nav ul {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-around;
    }

    nav ul li {
        border-bottom: none;
    }
}

/* Large Display */
@media (min-width: 1024px) {
    body {
        background-color: #cfcfcf;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
    }

    #wrapper {
        width: 80%;
        margin: auto;
        max-width: 1200px;
        display: grid;
        grid-template-columns: 150px auto auto;
        grid-template-rows: auto auto auto;
        border-style: inset;
    }

    header {
        grid-row: 1 / 2;
        grid-column: 1 / 4;
    }

    nav {
        grid-row: 2 / 3;
        grid-column: 1 / 2;
    }

    main {
        width: 600px;
        grid-row: 2 / 3;
        grid-column: 2 / 3;
    }

    aside {
        grid-row: 2 / 3;
        grid-column: 3 / 4;
    }

    footer {
        grid-row: 3 / 4;
        grid-column: 1 / 4;
    }

}