:root {
    box-sizing: border-box;
}

*,
::before,
::after {
    box-sizing: inherit;
}

body {
    background-color: rgb(248, 244, 244);
    width: 90%;
    color: rgb(94, 47, 14);
    max-width: 1200px;
    align-content: center;
    text-align: center;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5rem;
    word-spacing: 0.05em;

}

h1 {
    text-align: center;
    margin: 3.5rem auto 2rem;
    font-family: 'Indie Flower', cursive;
    font-size: 3rem;
    font-weight: bolder 500;
    color: rgb(94, 47, 14);
}

h2,
h3, h4{
    font-family: 'Indie Flower', cursive;
    font-weight: bolder 500;
}
h4{
    margin-bottom: 4px;
}

nav {
    display: flex;
    margin: 0 auto;
    border-radius: 0.2em;
    width: 80%;
    background-color: rgb(248, 244, 244);
    background-color: #e2dac0e3;
    background-image: linear-gradient(rgb(224, 220, 220), rgb(240, 236, 236));
}

nav ul {
    display: flex;
    padding: 0 5%;
    justify-content: space-between;
    flex: 1 1 0;
}

nav li {
    display: flex;
}

nav a {
    text-decoration: none;
    color: rgb(94, 47, 14);
    padding: 0 auto;
}
.sources{
    font-size: 0.6rem;
    line-height: 1rem;
    }
.sources ul{
    margin: 0 auto;
    list-style: none;
   
}   
.sources li>a{
    text-decoration: none;
} 

footer {
    width: 40%;
    text-align: center;
    margin: 1.5rem auto 2rem auto;
    border: 1px solid rgb(94, 47, 14);
    border-radius: 5px;
    line-height: .5rem;
}

.home img,
.history img,
.favorites img,
.cookie_type img {
    width: 50%;
    border: 2px solid white;
    margin: 1.5rem auto;
    border-radius: 5px;
    box-shadow: 5px 5px 15px 5px rgb(100, 100, 100, .8);
}

/* Home page */
.home p {
    width: 60%;
    text-align: justify;
    margin: 1rem auto;
}

.history p {
    width: 60%;
    margin: 0 auto;
    text-align: justify;
    margin-top: 0.5rem;

}

.favorites p {
    width: 60%;
    text-align: justify;
    margin: 1rem auto;
}

.fav_us {
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1 1 auto;
    flex-wrap: wrap;
   margin: 2rem auto;
}

.fav_us>.col{
    width: 45%;
    min-width: 400px;
}

.fav_us>.col>img {
    width: 100%;
   }

.fav_us>.col>ol {
    width: 80%;
    text-align: left;
    margin: auto 0 auto 25px;
   
}

.fav_decades p {
    text-align: center;
    margin: 20px auto;
}

.favorites ul {
    width: 60%;
    text-align: justify;
    margin: 0 auto;
}

.favorites ul>li {
    padding: 10px;
}

.cookie_type p {
    width: 60%;
    margin: 0 auto;
    text-align: justify;
    margin-top: 0.5rem;
}

.contact {
    width: 90%;
    margin: 1rem auto 2rem auto ;

}

.contact figure {
    width: 60%;
    border: 2px white solid;
    padding: 4px;
    margin: 0 auto 3rem auto;
    border-radius: 5px;
    box-shadow: 5px 5px 15px 5px rgb(100, 100, 100, .8);
}

.contact img {
    width: 100%;
    margin-bottom: auto;
}

figcaption {
    background-color: rgb(224, 220, 220);
    color: rgb(94, 47, 14);
    font-style: italic;
    padding: 10px;
    text-align: center;
}

iframe {
    margin: 2rem 0 1rem 0;
    border: 2px white solid;
    box-shadow: 5px 5px 15px 5px rgb(100, 100, 100, .8);
}

.row>.credit {
    text-align: center;
    margin: 0 auto;
}

/* Form */

.about {
    display: block;
    padding: 0 .5em;
    line-height: 1.8em;
}

.about>label {
    display: inline-block;
    width: 115px;
    text-align: right;
    margin-right: 10px;
}

input {
    border: 1px rgb(94, 47, 14) solid;
    border-radius: 2px;
    font-size: 1rem;
}

select {
    color: rgb(94, 47, 14);
    padding: 16px 20px;
    border: 1px rgb(94, 47, 14) solid;
    border-radius: 5px;
    cursor: pointer;
}

textarea {
    color: rgb(94, 47, 14);
    border: 1px rgb(94, 47, 14) solid;
    border-radius: 5px;
    font-size: 1rem;
}

input[type=text]:focus,
input[type=email]:focus,
input[type=tel]:focus,
input[type=number]:focus,
select:focus,
textarea:focus {
    background-color: #f0ede5;
}

input[type=submit],
input[type=reset] {
    background-color: rgba(94, 47, 14, 0.8);
    color: white;
    padding: 10px 15px;
    margin: 10px 5px 25px 5px;
    cursor: pointer;
}
