/*
 Theme Name:   Twenty Seventeen Child for FDS
 Theme URI:    https://wordpress.org/themes/twentyseventeen/
 Description:  Twenty Seventeen Child Theme
 Author:       Ian Lee
 Author URI:   https://www.idlee.co.uk
 Template:     twentyseventeen
 Version:      1.0.2
 Tags:         
 Text Domain:  
*/
@import url("../twentyseventeen/style.css");

/* =Theme customization starts here
-------------------------------------------------------------- */

.wrap {
	max-width: 980px;
	padding-left: 0.5em;
	padding-right: 0.5em;
}
.page-one-column .panel-content .wrap {
	max-width: 980px;
	background-color: #fff;
}
.panel-content .wrap {
	padding-bottom: 1.0em;
	padding: 0 !important;
}

body.has-header-image .site-title, body.has-header-video .site-title, body.has-header-image .site-title a, body.has-header-video .site-title a {
	max-width: 900px;
}
.page:not(.home) #content {
	padding-bottom: 1.0em;
}
.site-content {
	padding: 0;
}
body:not(.twentyseventeen-front-page) .entry-header {
	padding: 0;
}
.site-content-contain {background-color: #fff;}

.single-post:not(.has-sidebar) #primary, 
.page.page-one-column:not(.twentyseventeen-front-page) #primary, 
.archive.page-one-column:not(.has-sidebar) 
.page-header, 
.archive.page-one-column:not(.has-sidebar) #primary {
	max-width: 980px;
}

.twentyseventeen-front-page .site-branding {
	margin-bottom: 180px !important;
}

.entry-content {
	color: #333;
	font-family: Tahoma, "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
	font-size: 16px;
	padding: 0 5px;
}
	
h1, h2, h3, h4, h5, h6 {
	clear: both;
	line-height: 1.4;
	margin: 0 0 0.75em 0;
	padding: 0;
}
h2 {font-weight: 600; font-size: 1.60rem;}
h3 {font-weight: 600; font-size: 1.40rem; color: #666;}
p {
	margin: 0 0 0.8rem 0;
	padding: 0;
	font-size: 1.2rem;
	line-height: 1.6rem;
}
p.block {
	overflow: auto;
	clear: both;
}

hr {
	clear: both;
	margin: 0.5rem 0;
	width: 100%;
	overflow: auto;
}

div .content-block {
width: 100%;
overflow: hidden;
margin: 0px;
}

ol, ul {
padding-left: 2.5em;
line-height: 1.5em;
}
ul {
}

b,strong {font-weight: 600;}

a:link {
	padding: 0 3px;
	}

.main-navigation ul {
	background-color: #eee;
	line-height: 1.0em;
}
.main-navigation ul ul {
	background-color: #eee;
	line-height: 1.5em;
	word-wrap: normal;
}
.main-navigation li {
	background-color: #ddd;
	min-width: 38px;
	padding: 0 10px;
}
.main-navigation a {
	padding: 0.6em 0.45em; /* use to shorten menu bar */
}
.main-navigation a:hover {
	color: #ffffff;
	background-color: #3d6393; //#279a35
}
.main-navigation ul ul a {
	padding: 0.3em 0.5em;
	width: 15em;
}

.fb-icon, .fb-icon a {
	background-image: url('https://www.fdahs.org.uk/wp-content/themes/twentyseventeen-child/facebook-logo.png');
	background-repeat: no-repeat;
	background-position: center;
}
.fb-icon a, .fb-icon a:hover {
	color: #000000;
	}

.site-header .menu-scroll-down {
	background-color: #ddd;
}
@media screen and (min-width: 1050px) {
.site-header .menu-scroll-down {
	right: -18px;
	}
}

button[type="submit"], input[type="submit"] {
	color: #222;
	background-color: #ddd;
}
button[type="submit"]:hover, input[type="submit"]:hover {
	color: #fff;
	background-color: #3d6393;
}
label {
	display: contents;
	font-weight: normal;
}

.page .panel-content .entry-title, .page-title, body.page:not(.twentyseventeen-front-page) .entry-title {
	font-size: 2.0rem;
	text-transform: none !important;
}
.entry-header .entry-title {
	margin-bottom: 0;
	padding: 0.5em 0;
}
body:not(.twentyseventeen-front-page) .entry-header {
	padding: 0;
}
.page.page-one-column .entry-header, .twentyseventeen-front-page.page-one-column .entry-header, .archive.page-one-column:not(.has-sidebar) .page-header {
	margin-bottom: 0;
}
.site-footer {
	margin-top: 0em;
}
.site-footer p {
	font-size: 0.85rem;
	margin-bottom: 2em;
}
.site-footer .wrap {
	padding-bottom: 1.0em;
	padding-top: 0em;
}
.site-footer .widget-area {
    padding-bottom: 0 !important;
    padding-top: 0 !important;
}
h2.widget-title {
    margin-bottom: 0em !important;
}
.widget {
    padding-bottom: 2.0em !important;
}
.wp-caption .wp-caption-text {
	margin: 0.3em 0;
}

.entry-content a:hover {
	color: #ffffff;
	background-color: #3d6393;
}

a img {
	text-decoration: none;
	box-shadow: inset 0 -1px 0 rgba(15, 15, 15, 1);
}

a:link.nohighlight, a:hover.nohighlight {
	color: inherit;
	background-color: inherit;
	text-decoration: none;
	box-shadow: none;
}

img.alignleft {
float: left;
margin: 0px 10px 5px 0px;
}
img.alignright {
float: right;
margin: 0px 0px 5px 10px;
}
img.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
text-align: center;
}

.entry-content img.photo {
padding: 5px;
border: 1px solid #BBBBBB;
margin: 4px 8px 4px 8px;
color: inherit;
background-color: #FFFFFF;
}

.right-panel {
position: relative;
float: right;
width: 100%;
max-width: 130px;
height: auto;
border: 1px solid #BBBBBB;
border-radius: 5px;
color: inherit;
background-color: #eee;
text-align: center;
overflow: hidden;
padding: 5px 5px 10px 5px;
margin: 5px 0px 6px 10px;
font-weight: 400;
}
.right-panel a:link {padding: 0; font-weight: 400;}
.right-panel img {margin: 0; padding: 0;}
.right-panel p {margin: 0;}

.page .panel-content .entry-title,
.page-title,
body.page:not(.twentyseventeen-front-page) .entry-title {
	letter-spacing: 0.12rem;
}

@media screen and ( max-width: 580px ) {
	img.alignleft, img.alignright, .wp-caption {
	float:none;
	display: block;
	margin-left: 0;
	margin-right: 0;
	}
}

/* change height of image on front page - originally 100vh */

.has-header-image.twentyseventeen-front-page .custom-header {
	height: 60vh;
}
.has-header-image:is(.twentyseventeen-front-page) .custom-header-media img {
	padding-bottom: 200px;
}

div.myFooter {
	margin: 0 auto;
	text-align: center;
	background-color: #8e9c6f //D4DEBD;
}
.site-footer p {
	padding-bottom: 10px;
}
div.myFooter a img {
	max-height: 25px;
	width: auto;
	margin: 0 5px;
}

table.table0 { /* tai chi  */
width: 100%;
margin: 0px auto 0px auto;
padding: 0 10px;
border: none;
background: #f1f1f1;
}

table.table1 { /* form lists/classes/links/book list pages */
width: 100%;
margin: 0px auto 10px auto;
border: 1px solid #000000;
border-collapse: collapse;
border-spacing: 0px;
color: inherit;
background: #f1f1f1;
}

table.table1 th {
padding: 5px 10px;
border: 1px solid #000000;
background: #8e9c6f;
font-weight: 400;
color: #FFFFFF;
}
table.table1 th h2 { color: #FFFFFF; }

table.table1 td {
padding: 10px;
border: 1px solid #000000;
}

.table1 a img {
	box-shadow: 0 0 0 0px #fff;
}

.box50 { /* side-by-side videos */
position: relative;
float: left;
width: 50%;
margin: 0px 0px 0px 0px;
text-align: center;
}

/* Turns off home page title
.page.page-one-column .entry-header, .twentyseventeen-front-page.page-one-column .entry-header, .archive.page-one-column:not(.has-sidebar) .page-header {
	display: none;
  }
*/

/***************
** CONTACT FORMS
*****************/
div.contact_form {
	width: 100%;
	border: 1px solid #AAAAAA;
	border-radius: 10px;
	background-color: #f6f6f6;
	padding: 20px 20px 15px 20px;
	/* margin: 0 auto 20px auto; */
	clear: both;
}

div.contact_form input[type=text],
div.contact_form input[type=submit],
div.contact_form input[type=button],
div.contact_form input[type=email],
div.contact_form input[type=tel],
div.contact_form textarea,
div.contact_form select {
    width: 100%;
    padding: 5px 5px;
    margin: 10px 0;
    border: 1px solid #aaa;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: Verdana,Arial,Helvetica,Sans-Serif;
    font-size: 16px;
}

div.contact_form input[type=submit],
div.contact_form input[type=button] {
    font-size: 18px;
}

div.contact_form textarea {
    height: 150px;
    resize: vertical;
}

div.contact_form span {
    font-size: 15px;
    color: #1d2d82;
}

div.contact_form span.wpcf7-not-valid-tip {
    font-size: 15px;
    color: #ca0000;
}

.wpcf7 form.invalid .wpcf7-response-output {
    color: #ca0000;
}

div.contact_form h3 {
    font-size: 18px;
}

div.contact_form table {
    width: 100%;
    border: 1px solid #aaa;
    border-radius: 5px;
    border-collapse: collapse;
}

div.contact_form td {
    padding: 5px;
    border: 1px solid #aaa;
}

input,button,select,textarea {
	cursor: pointer;
	margin: 1px 2px 5px 2px;
	padding: 5px 5px;
	font-size: 14px;
}
button, select, input[type="button"] {
	color: #222;
	background-color: #ddd;
	border-radius: 5px;
	box-sizing: border-box;
	border: 1px solid #aaa;
	padding: 5px 5px;
	font-weight: 400;
}

input:focus,
button:focus,
select:focus,
text:focus,
textarea:focus,
input:hover,
button:hover,
select:hover,
text:hover,
textarea:hover {
	background-color:#fff8e2 !important;
}

.wpcf7-tel:focus,
.wpcf7-text:focus,
.wpcf7-captchar:focus,
.wpcf7-radio:focus,
.wpcf7-checkbox:focus,
.wpcf7-tel:hover,
.wpcf7-text:hover,
.wpcf7-captchar:hover,
.wpcf7-radio:hover,
.wpcf7-checkbox:hover {
	background-color: #fff8e2 !important; //yellow
}
.wpcf7-submit:focus,
.wpcf7-submit:hover,
input[type="submit"]:focus,
input[type="submit"]:hover,
input[type="button"]:focus,
input[type="button"]:hover {
	color: #fff;
	background-color:#3D6393 !important; //blue
}
.wpcf7-radio,
.wpcf7-checkbox {
	padding-right: 10px;
}

#Enquiry-Form span.wpcf7-list-item,
#Review_Form span.wpcf7-list-item {
	display: block;
}

input[type="number"] {
	padding: 2px;
	width: 4.0rem;
	display: inline;
}

.link_button {
float: left;
width: 130px;
min-height: 30px;
margin: 5px;
padding: 0px;
font-size: 14px;
text-align: center;
color: #000;
background-color: #DDDDDD;
border: 2px solid #000;
border-color: #ccc #666 #666 #ccc;
}

/***************
** SIDE MENU
*****************/

div.side-menu {
	float: left;
	width: 100%;
	font-size: 1.0rem;
	font-weight: 400;
	padding: 5px 5px 0 10px;
	margin: 0px;
	border: 1px solid #AAAAAA;
	border-radius: 10px;
	background-color: #f6f6f6;
}
div.side-menu ul {
	line-height: 1.75rem;
	padding: 0;
	margin: 0;
}
div.side-menu ul li {
	list-style: none;
}
div.side-menu ul li hr {
	margin-bottom: 0.5rem;
}

/***************
** GOOGLE MAP
*****************/

div #map_canvas {
	float: right;
	width: 62%;
	height: 620px;
	margin: 0px 5px 20px 0px;
	border: 1px solid #666;
	border-radius: 10px;
	}
div #map_info {
	float: left;
	width: 33%;
	height: 620px;
	margin: 0px 0px 20px 5px;
	padding: 5px 10px;
	border: 1px solid #666;
	border-radius: 10px;
	}
div #map_info p {
	font-size: 15px;
	line-height: 1.18em;
	}
div #map_info img {
	float: left;
	padding-right: 5px;
	}

/**********************
** FLEXBOXES & CAPTIONS
** to wrap images with captions propery
** https://css-tricks.com/snippets/css/a-guide-to-flexbox/
***********************/
.flex-container {
	display: flex;
	flex-flow: row wrap;
}
.wp-caption.alignleft {
float: left;
margin: 0px 10px 0px 0px !important;
}
.wp-caption.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
text-align: center;
}
.wp-caption-text {
width: auto;
max-width: 975px;
margin: 0px -8px 4px 8px !important;
padding: 0 5px;
border: 1px solid #BBBBBB;
color: #222;
background-color: #F8F8F8;
font-size: 14px;
font-style: normal;
overflow-y: auto;
}
#production .wp-caption-text {
height: 42px;
text-align: initial;
}
.caption-textlines-1 .wp-caption-text {height: 22px;}
.caption-textlines-2 .wp-caption-text {height: 42px;}
.caption-textlines-3 .wp-caption-text {height: 60px;}
.caption-textlines-4 .wp-caption-text {height: 80px;}

/****************************************
** READMORE
** for drop down hidden texts  (FAQ page)
*****************************************/

#more {display: none;}

#moreBtn {
	font-weight: bold;
	color: #731932;
	background-color: inherit;
	padding: 0 5px 2px 5px;
	cursor: pointer;
	}

#moreBtn:hover, #myBtn:focus {
	color: #FFF;
	background-color: #DAA520;
}
.readmore {
	border: 1px solid #CCC;
	padding: 10px;
}
.readmore-btn {
	padding: 0px 10px;
	margin: 0px 0px;
}
*[id^='moreText-']{display: none;}


/**/
@media (max-width: 768px) {
	.has-header-image.twentyseventeen-front-page .custom-header {
		height: 50vh;
		min-height: 200px;
		max-height: 200px;
	}
	.has-header-image:is(.twentyseventeen-front-page) .custom-header-media img {
		padding-bottom: 350px;
	}
body:not(.title-tagline-hidden) .site-branding-text {
	display: inline-block;
	max-width: 100%;
	vertical-align: middle;
	padding-bottom: 40px;
}
.custom-logo-link img {
	display: inline-block;
	max-height: 70px;
	width: auto;
}
/*
@supports ( object-fit: cover ) {
  .has-header-image .custom-header-media img img {
  width: 100% !important;
  height: 500px !important;          /* or any responsive height mechanism */
  object-fit: cover !important;      /* enables cropping */
  object-position: bottom !important;/* keeps the bottom visible */
  }
*/
}
