/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
	display: block;
}

body {
	line-height: 1;
}

ol,
ul {
	list-style: none;
}

blockquote,
q {
	quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
	content: '';
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* ******* End of Reset ******* */

/* font styling
header font - 
body font - open sans */

/* CSS Variables */

:root {
	--vdbrown: #423F36;
	--milgreen: rgb(91, 105, 62);
	--red: #b20000;
	--cream: #fffbee;
	--nav: #938A6E;
	--mustard: #ffd217;
	--lgreen: rgb(84, 147, 78);
	--lbrown: #7c5806;
}

body {
	font-size: 1.2em;
	line-height: 1.3;
	margin: 0 auto;
	font-family: 'Open Sans', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

header {
	background: var(--lgreen);
	text-align: center;
	position: fixed;
	width: 100%;
	top: 0;
}

.logo {
	margin-block: 1rem;
	width: 90px;
	height: 90px;
	border: 5px solid var(--mustard);
	border-radius: 50%;
}

.logo a {
	text-decoration: none;
	color: var(--cream);
}

/* *****navigation***** */

.nav-toggle {
	display: none;
}

.nav-toggle-label {
	position: absolute;
	top: 0;
	left: 0;
	margin-left: 1em;
	height: 100%;
	display: flex;
	align-items: center;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
	display: block;
	background: #000;
	height: 2px;
	width: 2em;
	border-radius: 2px;
	position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
	content: '';
	position: absolute;
}

.nav-toggle-label span::before {
	bottom: 7px;
}

.nav-toggle-label span::after {
	top: 7px;
}

nav {
	position: absolute;
	text-align: left;
	top: 100%;
	left: 0;
	background: var(--lgreen);
	width: 100%;
	transform: scale(1, 0);
	transform-origin: top;
	transition: transform 400ms ease-in-out;
}

/* check if below is necessary */
/* nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
} */

nav li {
	margin-bottom: 1em;
	margin-left: 1em;
}

nav a {
	color: var(--cream);
	text-decoration: none;
	font-size: 1.2rem;
	text-transform: uppercase;
	opacity: 0;
	transition: opacity 150ms ease-in-out;
}

nav a:hover {
	color: var(--vdbrown);
}

.nav-toggle:checked~nav {
	transform: scale(1, 1);
}

.nav-toggle:checked~nav a {
	opacity: 1;
	transition: opacity 250ms ease-in-out 250ms;
}

/* Background decorational banner image */
.banner {
	background-color: var(--mustard);
	background-image: url(images/banner1.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: right 35% bottom 45%;
	padding: 200px 0;
}

.banner div {
	max-width: 960px;
	margin: 0 auto;
	background-color: rgba(216, 235, 174, 0.7);
}

h1 {
	font-size: 3em;
	text-align: center;
	color: var(--vdbrown);
	font-weight: 700;
	font-family: 'Lora', serif;
}

h1+p {
	text-align: left;
	color: var(--vdbrown);
}

main {
	width: 100%;
	/* margin: 0 auto; */
}

h2 {
	/* margin: 3em 0 .8em; */
	text-align: center;
	font-size: 1.3em;
	border-bottom: 1px solid var(--vdbrown);
}

p {
	font-size: 1.2em;
	line-height: 1.5em;
}

article {
	width: 90%;
	margin: 0 auto;
}

article p {
	margin: 1em 0;
}


/* Image card styling */
.card {
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
	transition: 0.3s;
	border-radius: 5px;
	margin: 2em auto;
	background-color: var(--lgreen);
	color: var(--mustard);
}

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

.card-body {
	padding: 2px 16px;
}


.homecontent {
	width: 90%;
	margin: 2em auto;
}


/* .livestock img {
	border-radius: none;
 } */

img {
	width: 100%;
	height: auto;
	/* border-radius: 50%; */
}

/* styling for ome page statement to buyers and sellers bellow banner */

.homecontent {
	max-width: 960px;
}

.homecontent > h2 {
	/* background-color: #04AA6D; */
	border-bottom: none;
	text-align: left;
	padding: 1em 0;
	font-size: 1.5em;
	font-weight: 700;
	font-family: 'Lora', Georgia, 'Times New Roman', Times, serif;
}

.mission img {
	max-width: 300px;
	display: none;
}

.buy {
	background-color: rgb(252, 252, 239);
}
.sell {
	background-color: #ecf9f4;
}

.buy, .sell {
	max-width: 300px;
	max-height: 375px;
	margin: 0 auto;
	overflow: hidden;
}
  .buy h2, .sell h2{
	margin-bottom: 0;
	padding-top: 1em;
  }
.buy p, .sell p {
	padding: 1em;
	font-size: 1em;
	overflow: hidden;
	text-align: left;
}

.livestockoffer {
	 display: flex;
	 flex-direction: column;
  }
.livestockoffer h3, .livestockoffer p{
	text-align: center;
}


.grid-container {
	text-align: center;
	width: 90%;
	margin: 0 auto;
}

/* styling for the contact form */

input[type=text],
select,
textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	margin-top: 6px;
	margin-bottom: 16px;
	resize: vertical;
	box-sizing: border-box;
}

input[type=submit] {
	background-color: #04AA6D;
	color: white;
	padding: .5em 4em;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1.2em;
	display: block;
	margin: 0 auto;
}

input[type=submit]:hover {
	background-color: #45a049;
}

.formcontainer {
	border-radius: 5px;
	background-color: #f2f2f2;
	padding: 20px;
	margin-bottom: 1em;
}

footer {
	background-color: var(--mustard);
	text-align: center;
	font-size: .7em;
	color: var(--vdbrown);
	margin-top: 1em;
}

footer li {
	border-bottom: 1px solid #6b6b6b;
	padding: 1em 0;
}

footer a {
	text-decoration: none;
	color: var(--vdbrown);
	text-transform: uppercase;
	font-weight: 700;
}

footer p {
	padding: 1em;
}

/* style for product display page */

.details {
    display: flex;
    flex-direction: column; 
	border-radius: 5px;
}

.details img {
	max-width: 100%;
}

.description {
	padding: 1em;
	background-color: #ecf9f4;
}

iframe {
	max-width: 100%;
	display: flex;
	padding: 1em 0;
}



/* ******* Media Query******* */

/* For tablets: */
@media only screen and (min-width: 600px) {

	/* Image card styling */
	.grid-container {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 50px;
	}

	h1+p {
		text-align: center;
	}
}

/* navigation for larger screen */
@media screen and (min-width: 768px) {
	.nav-toggle-label {
		display: none;
	}

	header {
		display: grid;
		grid-template-columns: 1fr auto minmax(600px, 3fr) 1fr;
		
	}

	.logo {
		grid-column: 2 / 3;
	}

	nav {
		all: unset;
		grid-column: 3 / 4;
		display: flex;
		justify-content: flex-end;
		align-items: center;
	}

	nav ul {
		display: flex;
	}

	nav li {
		margin-left: 3em;
		margin-bottom: 0;
	}

	nav a {
		opacity: 1;
		position: relative;
	}

	nav a::before {
		content: '';
		display: block;
		height: 5px;
		background: var(--vdbrown);
		position: absolute;
		bottom: -.75em;
		left: 0;
		right: 0;
		transform: scale(0, 1);
		transition: transform ease-in-out 250ms;
	}

	nav a:hover::before {
		transform: scale(1, 1);
	}

	.mission {
		display: flex;
		flex-direction: row;
	}
		


	/* card images */
	.grid-container {
		grid-template-columns: repeat(2, 1fr);
		width: 75%;
		margin: 0 auto;
	}

	article {
		width: 75%;
	}

	/* footer style for larger screens */
	footer li{
		display: inline-block;
		padding: 3em;
	}

	/* style for product display page */
	.details {
		max-width: 100%;
        align-items: center; 
		background-color: rgb(252, 252, 239);
		
    }
	.details img {
		max-width: 400px;
	}
	.description {
		padding: 3em;
	}
	.description p{
		line-height: 1.3em;
	}
	iframe {
		margin: 0 auto;
	}
}

/* wider screens */
@media only screen and (min-width: 960px) {

	.mission {
		max-width: 900px;
		margin: 0 auto;
	}

	.mission img {
		display: block;
		max-height: 375px;
	}

	/* card images at the bottom of home page */
	.livestockoffer {
		flex-direction: row;
	 }


	/* Image card styling */
	.grid-container {
		grid-template-columns: repeat(3, 1fr);
	}

	.formcontainer {
		width: 60%;
		margin: 1em auto;
	}

	.details {
		max-width: 75%;
        flex-direction: row; 
        align-items: center; 
		margin: 0 auto;
    }

}