/*CSS document*/

/* _______________________________________________________ !!GENERAL!! _______________________________________________________ */
body {
    background-color: #FFFDF8;
    color: #5D7275;
    font-family: "larken", sans-serif;
    font-weight: 400;
    font-style: normal;
}

div.container {
    /* max-width: 80em; */
    display: flex;
        flex-wrap: wrap;
        max-width: 65em;
        margin: auto;
}

section {
    max-width: 80em;
    margin: 0 auto 1.5em;
}

article {
    flex: 0 2 30em;
}

footer {
    flex: 1 0 100em;
    display: grid;
}

figure {
    margin: 0;
}

img {
    width: 100%;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    display: inline;
    margin-right: 1em;
}

/* _______________________________________________________ hover change color _______________________________________________________ */

nav ul li a:hover {
    color: #B9B1A6;
}
/* _______________________________________________________ text decoration _______________________________________________________ */

a {
    text-decoration: none;
    display: inline;
    color: #5D7275;
}
/* _______________________________________________________ da text styles _______________________________________________________ */


h1 {
/* header.image; */
    width: 15em;
    }

h2 {
    font-family: "larken", sans-serif;
    font-weight: 500;
    font-style: normal;
    }

h3 {
    font-family: "larken", sans-serif;
    font-weight: 400;
    font-style: normal;
    }

h3:hover {
        color: #B9B1A6;
    }

/* _______________________________________________________ nav bar style _______________________________________________________ */

    .navbar { 
        width: 100%;
        font-family: "larken", sans-serif;
        font-weight: 800;
        font-style: normal;
        }
        .navbar a{
        color: #5D7275;
        text-decoration: none;
        font-family: "larken", sans-serif;
        font-weight: 800;
        font-style: normal;
        display: block;
        }
        .navbar li a {
        display: inline;
        }
        p {
        font-family: "larken", sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size: 14px;
        }
        a {
        text-decoration: none;
        color: #5D7275;
        }
/* _______________________________________________________ !!RESPONSIVE RECIPE!! _______________________________________________________ */

@media screen and (min-width: 60em) {

    div.container {
        display: grid;
        grid-template-columns: 4fr 1fr;
        grid-gap: 0 1em;
    }

    header {
        grid-column: 1/3;
    }

    main {
        grid-column: 1/2;
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        /* gutters  */
        grid-gap: 0 1em; 
            /* margin: auto; */
    }   
    aside {
        grid-column: 2/3;
    }
}
    /* ___________________________________________________ da mainstory _______________________________________________________ */

    section.mainstory {
        /* grid-column: 1/5; */
        grid-column: 2/4;
        grid-row: 1/3;
        display: flex;
        flex-direction: column;
    }

    section.mainstory figure {
        /* controls da image */
        flex: 1 0 18em;
        display: flex;
        flex-direction: column;
    }

    section.mainstory h3 {
        flex: 0 0 auto;
        margin: 0;
    }
    
    section.mainstory p {
        flex: 0 0 auto;
        margin: 0;
    }

    section.mainstory figure div {
        flex: 1 0 18em;
        /* url goes here */
        background-image: url (______);
        background-repeat: no repeat;
        background-size: cover;
        background-position: center;
     }
 
    section.mainstory figure div image {
       height: 100%;
        flex: 0 0 auto;
       opacity: 0%;
    }

    section.mainstory figure figcaption {
        flex: 0 0 3em; 
    } 
/* _______________________________________________________ da gallery  _______________________________________________________ */

    /* formerly div.container */
    div.gallery { 
        max-width: 60em;
        margin: auto;
    }   

    div.gallery main{
        max-width: 60em;
        margin: 0 auto;
        position: relative;
        overflow: hidden;
        padding-bottom: calc(72% + 3em);
    }

    div.gallery image{
        width: 100%;
    }

    div.gallery figure {
        margin: 0;
        width: 100%;
        /* width: calc(100%-2em); */
        position: absolute;
        opacity: 0;
        /* transition: opacity .5s;  */

    }
        
    div.gallery figure img {   
       height: 100%; 
    }   
        
    /* this is for the radial boxes */
    input:nth-of-type(1):checked ~ main figure:nth-of-type(1),
    input:nth-of-type(2):checked ~ main figure:nth-of-type(2),
    input:nth-of-type(3):checked ~ main figure:nth-of-type(3),
    input:nth-of-type(4):checked ~ main figure:nth-of-type(4),
    input:nth-of-type(5):checked ~ main figure:nth-of-type(5),
    input:nth-of-type(6):checked ~ main figure:nth-of-type(6),
    input:nth-of-type(7):checked ~ main figure:nth-of-type(7),
    input:nth-of-type(8):checked ~ main figure:nth-of-type(8) {
    opacity: 1;}
     
    div.gallery nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 0.2em;
    }    

    div.label {
        flex: 1 0 10em;
    }

    input {
    display: none;
}

section.gallery {
        width: 40em;
        grid-column: 1/3;
        grid-row: 1/3;
        display: flex;
        flex-direction: column;
    }

    section.gallery figure {
        margin: 0;
        width: 100%;
        position: relative; 
        flex: 3 0 5em;
        /* display: flex; */
        flex-direction: column;
        overflow: hidden;
        padding-bottom: calc(72% + 3em);
    }

    section.gallery figure div {
        flex: 1 0 18em;
     }
 
    section.gallery figure div image {
       height: 100%;
       flex: 0 0 auto;

    }

    section.gallery figure figcaption {
        flex: 0 0 3em; 
        opacity: 0;
    } 

    section.gallery h3 {
        flex: 0 0 auto;
        margin: 0;
    }
    
    section.gallery p {
        flex: 0 0 auto;
        margin: 0;
    } 

/* _______________________________________________________ da form _______________________________________________________ */

/*CSS DOCUMENT*/
	
div.form {
        max-width: 40em;
        margin: 1em;
        padding: 1em;
}

header {
	padding-top: 1em;
}


section.personal-info ul li {
	/* this makes personal info list into flex container  */
	display: flex;
	/* this makes personal info list into flex container  */
	flex-wrap: wrap;
	margin-bottom: 1em;
}

section.personal-info ul li input[type="text"],
section ul li input[type="email"],
section ul li input[type="tel"],
section ul li select {
	flex: 4 0 32em;
	box-sizing: border-box;
}

section.personal-info ul li label { 
	/* this controls the horizontal placement of fill-in blank */
	flex: 0 0 10em;
}

section.order ul, section.method ul {
	/* this changes the style for the checkbox options */
	display: flex;
	flex-wrap: wrap;
	}

section.order ul li , section.method ul li {
	flex: 1 0 15em;
	}
	
h3 {
	margin: 0;
	}

ul {
	padding: 0;
	list-style-type: none;
	}
	
/* section {
    padding: 1em;
    margin-bottom: 1em;
} */

section p {
	margin-top: 0;
}

textarea {
	box-sizing: border-box;
	display: flex;
	width: 90%;
	height: 6em;
	background: #fcfcfc;
	border: 1px solid #e8e8e8;
	padding: 0.4em;
	font-family: sans-serif;
	color: #777;
	}

@media only screen and (min-width: 40em) {

  div.container {
	/* this aligns things to center */
    margin: auto;
  }
}
section {
    margin: 0 0 1em;
}

.section-1 {
    background-color: #FFFDF8;
}

.section-2 {
    background-color: #FFFDF8;
}

.section-3 {
    background-color: #FFFDF8;
}

.section-4 {
    background-color: #FFFDF8;
    font-family: "larken", sans-serif;
    font-weight: 400;
    font-style: normal;}

ul {
    list-style-type: none;
    padding: 0;
}

/* this bracket closes media query */



