/*
Theme Name:     Clearview Farm 2021
Theme URI:      http://clearview-farm.com
Description:    Clearview Farm 2021 theme - child theme for WP Bootstrap
Author:         Nikki Blight
Author URI:     http: //nlb-creations.com
Template:       wp-bootstrap-starter
Version:        1.0
*/

#bottom-ribbon {
	width: 400px;
	height: 50px;
	position: fixed;
	z-index: 100;
	bottom: 0px;
	right: 25px;
	text-align: center;	
}

#bottom-ribbon a.donate-link {
	display: block;
	width: 200px;
	height: 50px;
	text-indent: -9000px;
	background: url(img/donate-shop-sprite.png) 0px 0px no-repeat;
	float: left;
}

#bottom-ribbon a.clearview-retail {
	display: block;
	width: 182px;
	height: 50px;
	text-indent: -9000px;
	background: url(img/donate-shop-sprite.png) -200px 0px no-repeat;
	float: left;
}

#bottom-ribbon a.donate-link:hover {
	background: url(img/donate-shop-sprite.png) 0px -100px no-repeat
}

#bottom-ribbon a.clearview-retail:hover {
	background: url(img/donate-shop-sprite.png) -200px -50px no-repeat
}


@font-face {
    font-family: 'frank_ruhl_librebold';
    src: url('fonts/frankruhllibre-bold-webfont.woff2') format('woff2'),
         url('fonts/frankruhllibre-bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'frank_ruhl_libreregular';
    src: url('fonts/frankruhllibre-regular-webfont.woff2') format('woff2'),
         url('fonts/frankruhllibre-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'nunito_sansbold';
    src: url('fonts/nunitosans-bold-webfont.woff2') format('woff2'),
         url('fonts/nunitosans-bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'nunito_sansregular';
    src: url('fonts/nunitosans-regular-webfont.woff2') format('woff2'),
         url('fonts/nunitosans-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'nunito_sanssemibold';
    src: url('fonts/nunitosans-semibold-webfont.woff2') format('woff2'),
         url('fonts/nunitosans-semibold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

html, body {
  height: 100%;
}

body {
	margin: 0;
	font-family: nunito_sansregular, sans-serif !important;
	color: #553010 !important;
}

h1, h2, h3, h4, h5, h6 {
	font-family: frank_ruhl_librebold, serif;	
}

/* Header and Main Menu */

header#masthead .social-info {
	display: none;
}

header#masthead {
	background: url(img/clearview-header.png) no-repeat;
	background-size: contain;
	background-position: center;
	background-color: transparent;
	height: 230px;	
	position: relative;
	z-index: 100;
	box-shadow: none;
}

nav.navbar {
	display: flex;
	width: 100%;
	height: 20%;
	align-items: baseline;
	justify-content: center;
}

nav li.menu-item {
	margin: 0 20px;
	display: block;
}

body:not(.theme-preset-active) #masthead .navbar-nav > li > a {
	color: #9d6a32;
	font-weight: 600;
	font-size: 0.7em;
}

body:not(.theme-preset-active) #masthead .navbar-nav > li > a:hover,
body:not(.theme-preset-active) #masthead .navbar-nav > li.current_page_item > a {
	color: #8d602f;
	font-weight: 600;
	
}

nav li.menu-item a{
	text-decoration: none;
	text-transform: uppercase;
	font-family: nunito_sansbold, sans-serif;
	font-size: 0.7em;
	padding-left: 0px !important;
	padding-right: 0px !important;
	text-align: center;
	padding-top: 25px !important;
	padding-bottom: 30px !important;
}

nav li.menu-item a.dropdown-item {
	padding-top: 5px !important;
	padding-bottom: 5px !important;
}

.dropdown-menu {
	top: 70% !important;	
}

.menu-logo {
	width: 200px;
	height: 100%;
}

.menu-logo a {
	display: block;
	width: 200px;
	height: 200px;
	padding-top: 10px !important;
	text-indent: -9000px;
}

/* Front Page Slider */

.front-slider {
	position: relative;	
	width: 100%;
	padding-left: 15px;
	padding-right: 15px;
}

.front-slider .caption { /* display an overlay on top of the image */
	position: absolute;
	top: 30%;
	left: 10%;
	width: 40%;
	height: 50%;
	display: block;
	background: url(img/gray-bg.jpg) #f7f3f0;
	padding: 30px;
}

.front-slider span.title-text {
	display: block;
	font-family: frank_ruhl_librebold, serif;
	margin-bottom: 20px;
	color: #9d6a32;
	font-size: 2em;
}

ul.slick-dots {
    position: absolute;
    bottom: 20px !important;
    list-style-type: circle;
}

ul.slick-dots li button {
	color: transparent;
	background: transparent;
	border-radius: 100%;
	border: 3px solid #ffffff;
	width: 15px;
	height: 15px;
	margin-top: 2px;
	margin-left: 2px;
}

ul.slick-dots li button:before {
	color: transparent !important;
}

ul.slick-dots li.slick-active button:before {
	color: #ffffff !important;
	opacity: 1;
	font-size: 16px;
}

.slick-dotted.slick-slider {
	margin-bottom: 0px !important;	
}

/* Farm Info and Crop Block */

#front-farm-info {
	background-color: #ffffff;
	padding-top: 20px;
	padding-bottom: 10px;
}

#front-farm-info h1,
#front-farm-info h2 {
	color: #9d6a32;
	font-family: frank_ruhl_librebold, serif;
}

.front-block h2 {
	font-size: 1.5em;
	margin-top: 30px;
}

.front-block h3 {
	font-size: 1em;
	margin-top: 30px;	
}

#front-farm-info .farm-info-pdf-file {
	background-color: #9d6a32;
	border: none;
	color: white;
	text-transform: uppercase;
	font-family: nunito_sansbold, sans-serif;
	text-decoration: none;
	text-align: center;
	padding: 10px 15px 10px 15px;
	display: inline-block;
	border-radius: 12px;
	font-size: 0.7em;
	margin: 20px;
}

#front-farm-info .farm-info-pdf-file:hover {
	color: #ffffff;
	background-color: #8d602f;
	text-decoration: none;
}

#front-farm-info .farm-info-side-image {
	position: absolute;
	top: -33%;
	right: 10px;	
}

#front-current-crop .current-crop-info {
	padding-top: 20px;
	padding-bottom: 20px;
	padding-left: 5%;
	padding-right: 20px;
}

.front-block h2.current-crop-title {
	font-size: 2em;
}

.front-block h3.current-crop-tagline {
	font-size: 1.5em;
}

.current-crop-content {
	margin-left: 10px;	
}

.crop-pdf-file {
	border: none;
	text-transform: uppercase;
	font-family: nunito_sansbold, sans-serif;
	text-decoration: none;
	text-align: center;
	padding: 10px 15px 10px 15px;
	display: inline-block;
	border-radius: 12px;
	font-size: 0.7em;
	margin: 20px;
}

/* Front Sunflower Gauge Block */
#front-sunflower-gauge {
	padding: 30px;
	margin-top: 10px;
	margin-bottom: 10px;
	border: 10px solid #ffd500;
	border-radius: 10px;
}

#front-sunflower-gauge div.current-crop-image {
	padding: 20px;
}

/* Front Instagram Block */

#front-instagram {
	padding-top: 30px;
	padding-bottom: 30px;
	padding-left: 5%;
	padding-right: 5%;
}

.insta-icon {
	text-align: center;
	padding-bottom: 20px;
}

.insta-user {
	font-weight: 600;
	display: block;
}

.insta-gallery-actions {
	display: none;	
}

/* Front Map and Live Clearview Blocks */

#front-map {
	background: url(img/tan-bg.jpg);
}

.map-info,
.front-live-info {
	padding-top: 50px;
	padding-bottom: 50px;
	padding-left: 20% !important;
}

.front-map-script {
	padding-left: 0px !important;
}

#front-map h2,
#front-live-clearview h2 {
	color: #9d6a32;
	font-family: frank_ruhl_librebold, serif;
	font-size: 1.75rem;
}

#front-map .map-directions-button,
#front-live-clearview .live-clearview-button {
	background-color: #9d6a32;
	border: none;
	color: white;
	text-transform: uppercase;
	font-family: nunito_sansbold, sans-serif;
	text-decoration: none;
	text-align: center;
	padding: 10px 15px 10px 15px;
	display: inline-block;
	border-radius: 12px;
	font-size: 0.7em;
	margin: 20px;
}

#front-live-clearview {
	background: url(img/gray-bg.jpg);
}

/* Partner Block */

#front-partners {
	padding-left: 5%;
	padding-right: 5%;
	padding-top: 40px;
	padding-bottom: 40px;	
}

#front-partners h2 {
	color: #9d6a32;
	font-family: frank_ruhl_librebold, serif;
	text-align: center;
	font-size: 1.75rem;
}

#front-partners .partner-block {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;	
}

#front-partners .partner-block img {
	padding: 10px;
	max-width: 175px;	
}

/* Education Page */
.education-main #tabs-2 a {
	color: #207c3e;
	font-weight: bold;
}

.education-main #tabs-2 small {
	font-style: italic;	
}

.education-main #tabs-3 img {
	padding: 20px;
}

/* Kids Page */

.page-for-kids h1.entry-title {
	color: #096E28;
	font-size: 3rem;
	text-indent: -9999px;
	background: url(img/kids/kids-section-title-yellow.png) 0 0 no-repeat;
	background-position: center;
	min-height: 100px;
}

h2.clearview-kids {
	color: #096E28;
	font-size: 2rem;
	height: 110px;
	text-indent: 100px;
	line-height: 100px;
	border-bottom: 6px ridge lightgreen;
	margin-bottom: 20px;
}

#kids-heading-1 {
	background: url(img/kids/kids-section-icon-01.png) 0 0 no-repeat;
}

#kids-heading-2 {
	background: url(img/kids/kids-section-icon-02.png) 0 0 no-repeat;
}

#kids-heading-3 {
	background: url(img/kids/kids-section-icon-03.png) 0 0 no-repeat;
}

#kids-heading-4 {
	background: url(img/kids/kids-section-icon-04.png) 0 0 no-repeat;
}

#kids-heading-5 {
	background: url(img/kids/kids-section-icon-05.png) 0 0 no-repeat;
}

#kids-heading-6 {
	background: url(img/kids/kids-section-icon-06.png) 0 0 no-repeat;
}

table.clearview-kids-table td {
	width: 33%;
	text-align: center;
	border: 4px solid #ffffff;
}

table.clearview-kids-table td.cvk-green1 {
	background-color: #075F14;	
}

table.clearview-kids-table td.cvk-green2 {
	background-color: #0D731A;	
}

table.clearview-kids-table td.cvk-green3 {
	background-color: #0F851F;	
}

table.clearview-kids-table td a {
	color: #ffffff;
	text-decoration: none;
	display: block;
	width: 100%;
	padding: 15px;
}

table.clearview-kids-table td:hover,
table.clearview-kids-table td:focus {
	background-color: #000000;
}

table.clearview-kids-table a:hover,
table.clearview-kids-table a:focus {
	color: #01fe26;
	text-decoration: none;
}

table.clearview-kids-table th {
	text-align: center;
	padding: 10px;
}

/* Crops page */

.current-crop-block {
	border: 1px solid #333333;
	background-color: #eeeeee;
	padding: 10px;
}

.current-crop-block .crop-wrapper {
	display: flex;
}

.current-crop-block .crop-wrapper .cur-crop {
	margin: 5px;
}

/* News Page */
.blog-main h2.entry-title {
	font-size: 1em;	
}

/* Other Main Content */
body a,
body a:hover {
	color: #207c3e;
}

#page-header-image {
	padding: 0px 15px 0px 15px;
}

.posted-on, .byline, .comments-link {
	color: #333333;
}

.entry-content .wpcf7-submit {
	background-color: #006CD8;
}

#content.site-content {
	position: relative;
	margin-top: -196px;
	padding-bottom: 0px;
	background-color: #ffffff;
}

h1.entry-title {
	margin-top: 20px;	
}

#secondary {
	margin-top: 20px;
	background: url(img/gray-bg.jpg);
	padding: 15px;
	border: 1px solid #dddddd;
}

#secondary h2 {
	font-size: 1.25rem;
}

body:not(.theme-preset-active) footer#colophon {
	background-color: #ffffff;
}

#footer-widget.clearview-footer {
	background-color: #ffffff;
	padding-top: 40px;
}

#colophon .container {
	background: url(img/tan-bg.jpg);
	text-align: center;
	color: #9d6a32;
}

#footer-widget span.widget-title {
	color: #9d6a32;
	font-size: 1em;
	font-weight: bold;
	display: block;
	margin-bottom: 10px;
}

#social-icons {
	margin-left: -25px;	
}

#social-icons ul {
	list-style: none;
	float: left;
}

#social-icons li {
	display: block;
	padding-left: 10px;
	float: left;
}

#social-icons li a {
	color: #9d6a32;
	font-size: 25px;
}

.footer-text {
	padding-top: 5%;
}

/** Mobile Responsive Layout **/
@media screen and (max-width: 1199px) {
	header#masthead .social-info {
		display: block;
	}
	
	header#masthead .social-info #social-icons li a {
		font-size: 40px;
		margin: 0px;
	}
	
	header#masthead .social-info #social-icons {
		margin-left: auto;
		margin-right: auto;
		margin-top: 30px;
		width: 50%;
		display: flex;
		justify-content: center;
		padding: 0px;
	}
	
	header#masthead .social-info #menu-info-block {
		padding: 30px;
	}
	
	body:not(.theme-preset-active) #masthead .navbar-nav > li > a,
	body:not(.theme-preset-active) #masthead .navbar-nav > li > a:hover {
		font-size: 0.9em;
	}
	
	nav li.menu-item a {
		padding-bottom: 12px !important;
		padding-top: 12px !important;
		text-align: left;
		margin-left: 40%;
	}

	header#masthead {
		background: none;
	}
	
	nav.navbar {
		display: flex;
		flex-direction: column;
		align-items: end;
	}
	
	.menu-left, .menu-right, .social-info {
		background: url(img/gray-bg.jpg) #f7f3f0;
		width: 100%;
	}
	
	.navbar-toggler {
		z-index: 100;
	}
	
	.mobile-bg .mobile-header div {
		background: url(img/clearview-header.png) no-repeat;
		background-size: cover;
		background-position: center;
		background-color: transparent;
		height: 230px;
	}
	
	.mobile-bg .mobile-header div a {
		display: block;
		width: 200px;
		height: 200px;
		padding-top: 10px !important;
		text-indent: -9000px;
		margin-left: auto;
		margin-right: auto;
	}
	
	.menu-logo {
		width: 100%;
		height: 200px;
		top: 0px;
		position: absolute;
		background: url(img/clearview-header.png) no-repeat;
		background-size: cover;
		background-position: center;
		background-color: transparent;
		text-align: center;
	}
	
	.menu-logo a {
		margin-left: auto;
		margin-right: auto;
	}
	
	#menu-left-primary-navigation li:first-child {
		margin-top: 200px;
	}
	
	#menu-left-primary-navigation li ul li:first-child {
		margin-top: 0px;
	}
	
	nav li.menu-item a.dropdown-item {
		padding-top: 10px !important;
		padding-bottom: 10px !important;
		font-size: 1em !important;
	}
}

@media screen and (max-width: 1024px) {
	
	header#masthead {
		padding-left: 0px;
		padding-right: 0px;
	}
	
	.container {
		max-width: 1200px !important;
		margin-right: 0px !important;
		margin-left: 0px !important;
		padding-left: 0px !important;
		padding-right: 0px !important;
	}
	
	#front-farm-info .row,
	#footer-widget .row {
		padding-left: 20px;
		padding-right: 20px;
	}
	
}

@media screen and (max-width: 845px) {
	.front-slider .caption {
		position: relative !important;
		width: 100%;
		top: 0;
		left: 0;
	}
	
	ul.slick-dots {
		top: 60% !important;
	}
	
	#front-farm-info .farm-info-side-image {
		position: relative;
		top: 0px;
	}
	
}

@media screen and (max-width: 767px) {
	
	#front-farm-info .row .col-md-6,
	#front-current-crop .row .col-md-6,
	#front-map .row .col-md-6,
	#front-live-clearview .row .col-md-6 {
		max-width: 50%;
	}
}

@media screen and (max-width: 470px) {
	
	.slick-slide img {
		min-height:350px;
		object-fit: cover;
	}
	
	#front-farm-info .row .col-md-6,
	#front-current-crop .row .col-md-6,
	#front-map .row .col-md-6,
	#front-live-clearview .row .col-md-6 {
		max-width: 100%;
	}
	
	.farm-info-side-image {
		position: initial !important;
	}
	
	#page-header-image img {
	min-height: 200px;
	object-fit: cover;
	}
	
	section#primary {
		padding-left: 20px;
		padding-right: 20px;
	}
	
	.current-crop-image,
	.front-map-script,
	.front-live-photo {
		min-height: 300px;
	}
	
	.current-crop-tagline,
	#front-partners,
	.footer-logo {
		text-align: center;
	}
	
	.footer-logo img {
		width: 50%;	
	}
	
	.footer-text .widget {
		font-size: 1.2rem;
		text-align: center;
	}
	
	#social-icons {
	    margin-left: 25%;
	    width: 50%;
	    margin-right: 25%;
	}
	
	#social-icons li {
		padding-left: 15px;
	}
	
}