@import url("reset.css");
/* Google web fonts for headers (Bree Serif) and body (Open Sans) */
@import url('https://fonts.googleapis.com/css?family=Bree+Serif|Open+Sans');

html {
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background-color: #fffff0;
    color: #262626;
}

h1,h2,h3,h4,h5,h6 {
    font-family: 'Bree Serif', serif;
}


h1 {
    font-size: 2.8rem;
}
h2 {
    font-size: 2.3rem;
}
h3 {
    font-size: 1.8rem;
}

h3.topichead {
	color: #819a3f;
    text-align: center;
    font-weight: bold;
}

h3.homepage{
	text-align: center;
  	padding-left: 35px;
  	color: #890f0e;
}

h4 {
    font-size: 1.3rem;
}

h4.topicnav a{
	text-decoration:none;
}

h4.audioClip{
	color: #880f0e;
}

h5.landing{
	padding-left:1em;
}

p cite {
	font-style:italic;
}

p.caption {
	text-align:center;
  	font-size:.75em;
  	color: #888;
  	width:100%;
  	transform: translateY(-75%);
}

p.blockquote {
    display: block;
    font-size: .85em;
    color: #555;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: 40px;
    margin-right: 40px;
    width: 70%;
    text-align: justify;
}

p.verticalnav {
    margin: 1rem;
  	padding:0;
}

a {
    color: #8a0f0f;
  	font-weight:bold;
}

a:visited {
    color: #600000;
    font-size: 1.5em;
}

a:hover {
    color: #ff531a;
}

nav#mainnav {
    width: 100%;
    height: 4em;
    background-color: #8a0f0f;
    color: #fffff0;
}

nav ul,
footer ul {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    vertical-align: middle;
    height: 100%;
    text-align: center; 
}

nav li,
footer li {
    flex: 1;
    font-family: 'Bree Serif', serif;
    margin: auto;
}

nav#mainnav a {
    color: #fffff0;
    text-decoration: none;
}

nav#mainnav a:visited {
    color: #eee;
    text-decoration: none;
}

nav#mainnav a:hover {
    color: #ff531a;
    text-decoration: none;
}

nav.breadcrumb ul {
    display: inline-flex;
    flex-direction: row;
}

nav.breadcrumb li::after {
    content: ">";
}

#content {
    flex: 1;
    padding: 1.5rem;
    background-color: #890f0e;
}

#homecontent{
  	flex: 1;
  	padding:1.5rem;
  	background-color: #fffff0;
}

section {
    padding: 0.5rem;
}

/* Wagtail CSS to make images fit their container */
.rich-text img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 60%;
}

.responsive-object {
    position: relative;
}

.responsive-object iframe,
.responsive-object object,
.responsive-object embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

article.freeform {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  	background-color: #fffff0;
    margin-right: auto;
    margin-left: auto;
    padding: 1em 2.5em;
}

article.freeform h1,h2,h3,h4,h5,h6 {
    width: 100%;
  	padding-left:3.5rem;
}

article.freeform img {
    display: block;
  	margin-left: auto;
  	margin-right: auto;
  	width: 60%;
    max-width: 80%;
    height: auto;
}

article.freeform .freeform-block {
    width: 100%;
}

article.freeform .freeform-html{
	width: 100%;
}

article.cultivarindex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 80%;
  	background-color: #fffff0;
    margin-right: auto;
    margin-left: auto;
    padding: 1em 2.5em;
}

article.cultivarindex h1,h2,h3,h4,h5,h6 {
    width: 100%;
}

article.cultivar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 80%;
  	background-color: #fffff0;
    margin-right: auto;
    margin-left: auto;
    padding: 1em 2.5em;
}

article.cultivar h1,h2,h3,h4,h5,h6 {
    width: 100%;
}

article.person {
    display: block;
    flex-direction: row;
    flex-wrap: wrap;
    width: 80%;
  	background-color: #fffff0;
    margin-right: auto;
    margin-left: auto;
    padding: 1em 2.5em;
}

article.person img{
    display:inline-grid;
    width: auto;
    height: 230px;
    background-position: center center;
    margin:5px;      
}

div.topic-container {
  margin: 10px;  
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;  
  -webkit-flex-flow: row;
  display: flex;
  justify-content: space-evenly;
  flex: 1;
  width: 22%;
  
}

div.topic-container img.topic-image {
    width:100px;
    height:100px;
    padding: 0;
    margin: 0;
}

.topic-box{
  display:flex;
  align-items:center;
  justify-content:center;
  width:150px;
  height:150px;
  background-color:#819a3f;
  font-size:1.25em;
  font-family:'Bree Serif';
  text-align:center;
  color:#fffff0;
  box-shadow: 3px 3px 5px 0px rgba(0,0,0,0.7);
}

.topic-box:hover{
  background-color:#8a0f0f
}

div.topic-container a{
  text-decoration:none;
}

div.topic-container p {
    font-size:1.25em;
    font-family:'Bree Serif';
}

nav.family div.topic-container{
  display:inline-flex;
  padding:10px;
  flex-wrap:wrap;
  vertical-align:middle;
}

div.timeline {
  background-color:#8a0f0f;
  padding: 0;
  margin:0;
  overflow: overlay;
  width: 111%;
  transform: translate(-4.75%, -5%);
}

div.citation{
  width:80%;
}

div.audioRow{
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;  
  -webkit-flex-flow: row;
  display:flex;
  flex-wrap:wrap;
}

div.audioColumn{
  flex:50%;
}

div.landingRow{
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;  
  -webkit-flex-flow: row;
  display:flex;
  flex-wrap:wrap;
  width:80%;
  padding-bottom:60px;
}

div.landingColumn{
    padding: 0;
    margin: 0;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
  	flex: 50%;
    align-items: center;
    justify-content: center;
  	flex-wrap:wrap;
}

div.topic-container-landing {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;  
  -webkit-flex-flow: row;
  display: flex;
  justify-content: space-evenly;
  flex: 1;
  width: 22%;
}

div.topic-container-landing a{
  text-decoration:none;
}

div.topic-container-landing p {
    font-size:1.25em;
    font-family:'Bree Serif';
}

div.collapsebutton{
	padding:0rem 7.5rem;
}

nav.family div.topic-container-landing{
  display:inline-flex;
  padding:10px;
  flex-wrap:wrap;
  vertical-align:middle;
  align-self:flex-start;
}

.videoEmbed {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 25px;
	height: 0;
}
.videoEmbed iframe {
	position: absolute;
	top: 0;
	left: 0;
	align: center;
	padding:10px;
	width: 100%;
	height: 100%;
}

div.mapembed {
	padding-left:7.5em;
}

.collapsible {
  background-color: #819a3f;
  color: #fffff0;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 18px;
  font-family:"Bree Serif"; serif;
  text-align:center;
}

.active, .collapsible:hover {
  background-color: #5d6f2e;
}

.collapsible:after {
    content: '\02795'; /* Unicode character for "plus" sign (+) */
    font-size: 13px;
    color: #fffff0;
    float: right;
    margin-left: 5px;
}

.active:after {
    content: "\2796"; /* Unicode character for "minus" sign (-) */
}

.content {
    padding: 0 18px;
    background-color: #819a3f78;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

blockquote {
    display: block;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: 40px;
    margin-right: 40px;
    font-size: .90em;
    color: #555;
    text-align:justify;
    width:90%;
}

footer {
    width: 100%;
    height: 4em;
    background-color: #8a0f0f;
    color: #eee;
    display: flex;
    text-align: center;
}

footer li {
    padding-left: 2rem;
    margin: auto;
}
footer img {
    height: 3em;
}
b {
    font-weight: bold;
}
p {
    margin: 1rem;
  	padding:0rem 6.5rem;
}

.mobile {
    display: none;
}
.rich-text ul {
    list-style: initial;
    padding-left: 2rem;
}
@media (max-width: 849px) {
     .mobile {
        display: inline;
    }

    .full {
        display: none;
    }
  article.freeform {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 90%;
    background-color: #fffff0;
    padding: 0.5em 0em .5em 0.5em;
	}
  article.freeform img {
    display: block;
  	margin-left: auto;
  	margin-right: auto;
    width: 100%;
    height: auto;
	}
   article.freeform .freeform-html{
     padding:0;
   }
   #content {
    background-color: #890f0e;
    padding:.3em;
	}
   p{
    width:100%;
    flex: 1;
    font-size:.85em;
    padding:0.5em;
	}
   article.freeform h1,h2,h3,h4,h5,h6,p {
    width: 90%;
	}
    div.topic-container {
    justify-content: flex-start;
    flex: 1;
    width: 100%;
    }
  	h5.landing{
	padding-left:2.5em;
	}
   p.caption {
	text-align:left;
  	transform: translateY(-20%);
    }
  	p.verticalnav {
    width: 100%;
    flex: 1;
    font-size: .85em;
    padding: 0.5em;
    margin-top: -1px;
    padding-left: 2.5rem;
	}
   .videoEmbed iframe {
	padding:20px;
	}
   div.mapembed {
	padding-left:1.5em;
	}
  
  	.audioRow{
	padding-right:30px;
	}
	div.timeline {
    width: 114%;
    transform: translate(-7%, -5%);
	}

	div.collapsebutton {
    padding-right: 0.5rem;
  	padding-left: 0rem;
	}
  
    nav li,
	footer li {
    flex: 1;
    font-family: 'Bree Serif', serif;
    margin: auto;
    font-size: 80%;
    padding: .5em;
	}
}

