/* Style sheet for homework wine website */
/* margin order: top right bottom left */
/* padding; top/btm right/left */

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

.nav-button,
.img_mobile,
.phone { 
    display: none; 
}

body {
    /* background-image: url(../images/grid.png); */
    /* background-repeat: no-repeat;
    background-size: cover;
    background-attatchment: fixed; */
    line-height: 1.5;
    background-position: 220px 0;
    /* background-position: 50% 0; */
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    font-size: 100%;
}

/* if you dont see color; add overflow hidden */
header {
    background: #fff34c;
    height: 100%;
    left: 0;
    top: 0;
    position:fixed;
    width: 180px;
    /* position fixed or absolute; must declare height; 100% */
    /* display: flex; */
    /* flex-direction: column; */
}

.inner-header {
    margin: 0 auto;
    padding:10px;
    width: 180px;
    margin-top: 160px;
    line-height: 1em;
}

#logo {
    width: 100%;
    padding-top: 1.5em;
    padding-bottom: .5em;
}

#wrapper {
    /* width: 980px; */
    max-width: 1100px;
    margin: 80px 20px 80px 200px;
    padding: 10px 10px;
    overflow: hidden;
}

/* navigation */

nav {
    /* height: 160px; */
    /* line-height: 25px; */
    /* padding: 5px; */
    background: #ce4962;
}

/* positon relative needed */
nav > ul > li {
    position:relative;
    height: 30px;
    line-height: 30px;
}

.dropdown {
    display: none;
}

nav li:hover .dropdown {
    display:block;
    position: absolute;
    top: 0;
    left: 100px;
    z-index: 1;
    background: #800;
    list-style-type: none;
    width: 100%;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding-left: 10px;
    display: block;
}

nav a:hover {
    background: #600;
}

/* content */

main {
    /* width: 580px; */
    width: 61.70%;
    float: left;
    /* padding-bottom: 20px; */
    padding-bottom: 2.12%;
}

aside {
    /* width: 340px; */
    width: 36.17%;
    float: right;
    /* padding-right: 20px; */
}

.row {
    /* clear: both; */
    overflow: hidden;
    padding: 2.12%;
    background: rgba(150, 215, 193, 0.8);
}

.col {
    background-color: #9996efa2;
    text-align: center;
    padding-bottom: 2.12%;
}

/* awards */

.col1 {
    /* width: 60px; */
    width: 29.41%;
    margin-right: 5.88%;
    float: left;
}

.col5 {
    width: 29.41%;
    margin-left: 0;
    float: right;
}

/* end awards */

/* front page row */

.col2 {
    /* width: 300px; */
    width: 31.91%;
    float: left;
    margin-right: 2.12%;
}

/* wine row */

.col3 {
    /* width: 220px; */
    width: 23.40%;
    float: left;
    margin-right: 2.12%;
}

/* center */
.col1:first-of-type,
.col2:first-of-type,
.col3:first-of-type {
    margin-left: 0;
}

.col1:last-of-type,
.col2:last-of-type,
.col3:last-of-type {
    margin-right: 0;
}

/* figure {
    margin-bottom:15px;
    width: auto;
}

figure img {
    margin: 0 auto; 
    padding: 10px;
} */

/* footer */

footer {
    background-color: pink;
    height: 60px;
    width: 100%;
    line-height: 60px;
    /* position: fixed; */
    bottom: 0;
    left: 0;
}

footer ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    font-size: .875em;
    /* width: 980px; */
    max-width: 1100px;
    margin-left: 200px;
}

footer li {
    margin: 0 10px;
}

/* classes */

.read-more {
    display: block;
    margin-top: .5em;
}

img {
    max-width: 100%;
}

img#image_a {
    float:left;
    width: 43.10%;
    margin:5px 13px 0px 0px;
}

aside img {
    margin-bottom: 10.88%;
}

/* typography */

blockquote {
    font-size: 30px;
    padding-left: 10px;
    margin: 10px 0px;
    line-height: 1.3;
    border-left: 20px solid #2c79cc;
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
}

h1 {
    line-height: .9em;
    padding-bottom: 1.1%;
    margin: 0 auto;
    /* color: var(--color2); */
}

.center {
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 2.7em;
    text-align: center;
    display:flex;
    flex-direction:column;
    width: 100%;
}

h2 {
    font-size: 1.9em;
    color: #2c79cc;
    line-height: 1;
    padding-bottom: 10px;
}

.col2 h2 {
    padding-top: 10px;
}

h3 {
    font-size: 1.5em;
    line-height: 1.6;
}

main p {
    font-size: 1em;
    padding: 5px 5px 10px 0;
}

aside p {
    font-size: 1em;
    padding: 5px 0px;
    padding-bottom: 15px;
}

.col p {
    font-size: 1em;
    padding: 3px 8px;
}

.col3 p {
    font-size: .875em;
    padding: 1px 3px;
}

span {
    color: #121210;
}

/* media q */

@media screen and (max-width: 1200px) {
    body {
        background-color: #fff;
        font-size: 95%;
    }

}

@media screen and (max-width: 1000px) {
    body {
        background-color: #2c79cc;
        font-size: 90%;
    }

    header {
        width: 160px;
    }

    #logo {
        width:85%;
        padding-top: 1.5em;
        padding-bottom: .5em;
    }

    #wrapper {
        margin: 80px 10px 0px 160px;
    }

    /* need to adjust footer */

    main {
        width: 59%;
        float: left;
    }
    
    aside {
        width: 36.17%;
        float: right;
    }

    footer ul {
        margin-left: 160px;
    }

}

@media screen and (max-width: 900px) {
    body {
        background-color: lightgoldenrodyellow;
        font-size: 88%;
    }

    header {
        width: 140px;
    }

    #logo {
        width:75%;
        padding-top: 1.5em;
        padding-bottom: .5em;
    }

    #wrapper {
        margin: 80px 0px 0px 140px;
    }

    footer ul {
        margin-left: 140px;
    }

}

@media screen and (max-width:  800px) {
    body {
        background-color:whitesmoke;
    }

    #wrapper {
        margin: 15px 0px 0 0px;
    }

    header {
        float: none;
        height: auto;
        width: auto;
        position:static;
    }
    
    .inner-header {
        display: none;
    }

    main {
        /* width: 580px; */
        width: 100%;
        float: none;
        /* padding-bottom: 20px; */
        padding-bottom: 2.12%;
    }
    
    aside {
        width: 100%;
        float: none;
        /* padding-right: 20px; */
    }

    .col {
        background: aliceblue;
    }

    .col2 {
        width:auto;
        float: none;
    }

    .col3 {
        height: 170px;
    }

    .col2:last-of-type {
        margin-right: 2.12%;
    }

    .row {
        background: none;
        padding: 2.12% 2.12%;
    }

    footer {
        background: whitesmoke;
        margin: 10px 0;
        height: auto;
        position: static;
        line-height: inherit;
    }

    footer ul {
        flex-direction: column;
        text-align: center;
        font-size: .875em;
        margin-left: 0;
        line-height: 1.8em;
    }

    img {
        min-width:auto;
    }

    /* typography */

    /* navigation css */

    nav {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
	}

    .img_mobile {
		display: block;
		position: fixed;
		top: 7px;
		left: 10px;
		width: 50px;
		height: 35px;
		cursor: pointer;
		border: 0 none;
		z-index: 999;
	}

	.phone {
		display: block;
		position: fixed;
		top: 11px;
		right: 70px;
		width: 20px;
		height: 25px;
		cursor: pointer;
		border: 0 none;
		z-index: 999;
	}

	/* Navigation Button
	-------------------------------------------------------- */

	.nav-button {
		display: block;
		position: absolute;
		top: 7px;
		right: 7px;
		width: 50px;
		height: 35px;
		background: url('../images/menu-icon-large.png'), linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.2));
		background-position: center center;
		background-repeat: no-repeat;
		background-size: 21px, 100%;
		cursor: pointer;
		border: 0 none;
		border-bottom: 1px solid rgba(255,255,255,.1);
		box-shadow: 0 0 4px rgba(0,0,0,.7) inset;
		border-radius: 5px;
		z-index: 999;
		text-indent: -9999px;
	}
	.nav-button:hover {
		background-color: rgba(0,0,0,.1);
	}
	.nav-button.open {
		background: url('../images/close-icon-large.png'), linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.2));
		background-position: center center;
		background-repeat: no-repeat;
		background-size: 21px, 100%;
	}

    nav li:hover .dropdown {
        display:block;
        position: static;
        left: 0;
        background: none;
    }

    nav > ul > li {
        height: auto;
        line-height: inherit;
    }

	/* Navigation Bar
	-------------------------------------------------------- */

	body { padding-top: 50px; }

	.primary-nav {
		width: 100%;
		float: none;
		background-color:grey; /* change the menu color */
		background-image: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.2));
		display: block;
		height: 50px;
		margin: 0;
		padding: 0;
		overflow: hidden;
		box-shadow: 0 1px 2px rgba(0,0,0,.6);
		position: absolute;
		top: 0px;
		left: 0px;
		z-index: 998;
		clear: both;
	}
	.primary-nav li {
		display: none;
		width: 100%;
		font-family: Arial;
	}
	.primary-nav li a {
		display: block;
		width: 100%;
		padding: 10px 5%;
		font-size: 14px;
		font-weight: bold;
		text-shadow: -1px -1px 0 rgba(0,0,0,.15);
		color: white;
		text-decoration: none;
		border-bottom: 1px solid rgba(0,0,0,.2);
		border-top: 1px solid rgba(255,255,255,.1);
	}
	.primary-nav li a:hover {
		background-color: rgba(0,0,0,.5);
		border-top-color: transparent;
	}
	.primary-nav > li:first-child {
		border-top: 1px solid rgba(0,0,0,.2);
	}

	/* Toggle the navigation bar open  */

	.primary-nav.open {
		height: auto;
		padding-top: 50px;
	}
	.primary-nav.open li {
		display: block;
	}

	/* Submenus – optional .parent class indicates dropdowns */

	.primary-nav > li:hover > a {
		background: rgba(0,0,0,.5);
		border-bottom-color: transparent;
	}
	.primary-nav li.parent > a:after {
		content: "▼";
		color: rgba(255,255,255,.5);
		float: right;
	}
	.primary-nav li.parent > a:hover {
		background: rgba(0,0,0,.75);
	}
	.primary-nav li ul {
		display: none;
		background: rgba(0,0,0,.5);
		border-top: 0 none;
		padding: 0;
	}
	.primary-nav li ul a {
		border: 0 none;
		font-size: 12px;
		padding: 10px 5%;
		font-weight: normal;
	}
	.primary-nav li:hover ul {
		display: block;
		border-top: 0 none;
	}

    /* end mobile navigation */
}