/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */


@import url(http://fonts.googleapis.com/css?family=Questrial);

@import url(http://fonts.googleapis.com/css?family=Open+Sans:400italic,400,300,600);


@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: local('Open Sans'), local('Open-Sans'), url(../font/OpenSans-Regular.ttf) format('truetype');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300;
    src: local('OpenSans Light'), local('OpenSans-Light'), url(../font/OpenSans-Light.ttf) format('truetype');
}


@font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 400;
    src: local('OpenSans Italic'), local('OpenSans-Italic'), url(../font/OpenSans-Italic.ttf) format('truetype');
}


@font-face {
    font-family: 'Open Sans';
    font-weight: 600;
    src: local('OpenSans Semibold'), local('OpenSans-Semibold'), url(../font/OpenSans-Semibold.ttf) format('truetype');
}


html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: rgba(230, 196, 141, 0.82);
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

html
{
	font-size: 100%;
	vertical-align: baseline;
	font-family: inherit;
	overflow-y: scroll;
        }

img	{max-width: 100%;}


body
{
	font-family: 'Open Sans', Corbel, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", "Bitstream Vera Sans", "Liberation Sans", Verdana, "Verdana Ref", sans-serif;
	font-size: 100%;
	font-size: 18px; /* Scale origin */
	line-height:2;
	-webkit-text-size-adjust: 100%;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-webkit-backface-visibility: hidden;
	text-rendering: optimizeLegibility;
	height: 100%;
	text-align: center;
	margin: 0;
	padding: 0;
	color: rgba(0,0,0,1);
     -ms-word-break: normal;
-webkit-word-break: normal;
word-break: normal;
-webkit-hyphens: none;
   -moz-hyphens: none;
    -ms-hyphens: none;
        hyphens: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
        
}


body#home, body#contact, body#about, body#shop, body#help, body#prices, body#acupuncture, body#massage, body#medicine, body#clinic	{
	background: url(../img/circle-art.jpg) no-repeat;
	background-position: 50% 140px;
	background-color: #ECD4A3;
}

/* justified and vertically centralized header, see http://tympanus.net/codrops/2013/07/14/justified-and-vertically-centered-header-elements/
========================================*/


header {
    padding: 1em 1% 0.5em;
    background: #334D66;
    color: #fff;
    margin-bottom: 25px;
}

/*header h1,
header nav {
    display: inline-block;
}

header::after {
    content: '';
    display: inline-block;
    width: 100%;
}

header h1,
header #medica-logo a
 {
     height: 100%; 
     margin: 0;
}
 
header h1::before,
header #medica-logo a::before 
{
    content: '';
    display: inline-block;
    vertical-align: middle;  
    height: 100%;
}

header > div,
header nav,
header div h1 {
    display: inline-block;
    vertical-align: middle;
}
 
 header nav {
	margin-top:15px;
 }
 
header > div {
    width: 25%;
    height: 100%;
    text-align: left;
}
 
header > div::before {
    content: '';
    display: inline-block;  
    vertical-align: middle;
    height: 100%;
}
*/
#medica-logo
{
	background: url(../img/medica-logo.png);
	background-image: url(../img/medica-logo.svg), none;
	background-repeat: no-repeat;
	/* background-position: 0px 0px; */
	/* background-size: 174px 72px; */
	display: inline-block;
	text-indent: -9999px;
	width: 174px;
	height: 72px;
	margin: 0 auto;
}
	

/*========================================*/


article	{
    overflow: hidden;
    max-width: 41em;
	min-height:600px;
    margin: 0 auto;
    padding: 0 3% 30px;
    text-align: left;
}


section.text 
{
background: rgba(255, 255, 255, 0.31);
padding:30px;
	border-radius: 10px;
background: -moz-linear-gradient(top,  rgba(255,255,255,0.75) 0%, rgba(255,255,255,0) 80%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.75)), color-stop(80%,rgba(255,255,255,0))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  rgba(255,255,255,0.75) 0%,rgba(255,255,255,0) 80%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  rgba(255,255,255,0.75) 0%,rgba(255,255,255,0) 80%); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  rgba(255,255,255,0.75) 0%,rgba(255,255,255,0) 80%); /* IE10+ */
background: linear-gradient(to bottom,  rgba(255,255,255,0.75) 0%,rgba(255,255,255,0) 80%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#bfffffff', endColorstr='#00ffffff',GradientType=0 ); /* IE6-9 */;
position: relative;
}

.box
{
	border-radius: 10px;
	border: 1px solid rgba(0,0,0,0.2);
	background: rgba(255,255,255,0.38);
}	

img.photograph	{
width: 50%;
margin: 20px auto;
display: block;
}

img.rounded	{
	box-shadow: 2px 3px 8px rgba(0,0,0,0.3);
	border-radius: 6px;
}

img.left, img.map	{
float: left;
margin: 0 20px 0 0;
}


img.right	{
float: right;
margin: 0 0 0 20px;
}


/*	top navigation
========================================*/

ul	{
margin: 0;
padding: 0;
}

#topnav
{
line-height:2.4;
margin-bottom: 0;
}


#topnav li	{
	display:inline-block;
	margin: 0;
}

#topnav li a:link, #topnav a:visited	{
	font-size: 0.9em;
	overflow:hidden;
	padding: 0px 10px;
	padding-bottom: 2px;
	color: #80D5D1;
}


#topnav li a:hover	{
	color: #3bada8;
	border-bottom: 1px #118883 solid;
	}
	
	#topnav li a:active	{
	color: white;
}

/*Highlighting current page on the navigation bar 
========================================*/

body#home a.nav-home,
body#contact a.nav-contact,
body#about a.nav-about,
body#shop a.nav-shop,
body#help a.nav-help,
body#prices a.nav-prices,
body#acupuncture a.nav-acupuncture,
body#massage a.nav-massage,
body#medicine a.nav-medicine,
body#clinic a.nav-clinic
{
	border-bottom: 1px #118883 solid;
    }

body#home #bottomnav a.nav-home,
body#contact #bottomnav a.nav-contact,
body#about #bottomnav a.nav-about,
body#shop #bottomnav a.nav-shop,
body#help #bottomnav a.nav-help,
body#prices #bottomnav a.nav-prices,
body#acupuncture #bottomnav a.nav-acupuncture,
body#massage #bottomnav a.nav-massage,
body#medicine #bottomnav a.nav-medicine,
body#clinic #bottomnav a.nav-clinic
{
	border-bottom: none;
	border-bottom: 1px rgb(143, 143, 143) solid;
 }



/*	treatments navigation
========================================*/


.btn	{	
max-width: 100%;
margin: 0 auto 38px auto;
text-align: center;
	line-height: 2;
}

.btn li	
{
	display: inline-block;
	margin: 10px 5px;
	border: 1px solid rgba(0,0,0,0.2);
	background: rgba(255,255,255,0.3);
	border-radius: 10px;	
	padding: 0px 0;
}

.btn li a:link, .btn a:visited	{
	font-size: 0.85em;
	overflow:hidden;
	padding: 0px 10px;
	color: #334D66;
}

.btn li:hover	{
	background: rgba(255,255,255,0.7);
	border: 1px solid #f9b1a1;
}

.btn li:active	{
	border: 1px solid rgba(0, 0, 0, 1);
}


.btn li:hover a	{
	color: black;
}

/*	bottom navigation
========================================*/

footer
{
	margin: 30px 0 80px;
	position: relative;
	border-top: 1px solid rgba(0,0,0,0.1);
}

/*copyright footer*/
footer div	{
font-size:0.6em;
margin-left: 3%;
margin-top: 15px;
float:left;
position: relative;
}



footer nav	{
float:right;
margin-right:3%;
}

footer nav ul
{
	padding: 0;
	margin: 5px 0 0 0;
}


footer nav li	{
	line-height:2;
	display:inline-block;
	margin: 0 12px;
	font-size: 0.88em;
}


footer a:link, footer a:visited	{
		display: block;
	
		font-size:0.95em;
 
		color: #2A4157;
}

footer  a:hover	{	
color: rgba(0,0,0,1);
}


/* type
========================================*/

h1, h2, h3, h4, h5, h6	{
	font-family: 'Questrial', Corbel, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", "Bitstream Vera Sans", "Liberation Sans", Verdana, "Verdana Ref", sans-serif;
	font-weight: 400;
	line-height:1;
	margin:0; /*reset the reset*/
	font-size: 2.1em; /*reset the reset*/
	color: rgba(0,0,0,0.7);
	color: #3D6081;
}

h1	{
	color: #497299;
	margin-bottom: 20px;
	line-height:1.3;
}

p+h1	{
margin-top: 55px;}

h2	{
	font-size: 1.5em;
	line-height:1;
	margin-bottom: 10px;
	margin-top: 40px;
	color: #EE866F;
}

h3	
{
	font-size: 1.4em;
	line-height: 1.3;
	font-style: italic;
	margin-bottom: 20px;
}

h2:first-of-type	{
	margin-top: 0;
}

p	{
	font-size: 1.12em;
	line-height: 1.7;
	color: rgba(0, 7, 56, 0.85);
	color: #252950;
	margin: 0 0 1em;
}

blockquote p	{
	font-family: 'Open Sans', Corbel, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", "Bitstream Vera Sans", "Liberation Sans", Verdana, "Verdana Ref", sans-serif;
	font-size: 1.65em;
	line-height: 1.8;
	font-weight: 400;
	color: #334D66;
	margin-bottom: 12px;
}

blockquote p cite	{
	margin-left: 5%; 
	font-size: 0.8em;
	font-weight: 300;
}

.sm	{
	font-size: 0.75em;
	font-weight: 600;
}

.left-space	
{
margin-left: 20px;
}

.orange	{
color: orange;
}

#logo h1
{
	display: none;
}

#logo h2	
{
font-size: 1.12em;
letter-spacing: 0.13em;
}

strong, b, .bold	{
	font-size: 1em;
	font-weight: 600;
}

.orange	{
color: #EE866F;
}

/*	links
========================================*/


a, a:visited {
	color: rgba(0,0,0,0.5);
	text-decoration: none;
	-webkit-transition-property: all;
	-webkit-transition-duration: 0.1s,0.2s;
	-webkit-transition-timing-function: linear,ease-in;
 -webkit-transition: all 0.5s ease-out; 
     -moz-transition: all 0.5s ease-out; 
       -o-transition: all 0.5s ease-out; 
          transition: all 0.5s ease-out;
}

a:hover {
	color: rgba(0,0,0,0.9);
}

a:active
{
	position: relative;
}

p a:link, p a:visited {
	color: rgba(16, 64, 124, 0.82);
    text-decoration: none;
	border-bottom: dashed thin rgba(25, 49, 16, 0.69);
    -webkit-transition: color 0.6s ease-out;
    -moz-transition: color 0.6s ease-out;
	transition: 0.6s color ease-out;
	padding-bottom:2px;
	}

p a:hover {
    color: black;
	border-bottom: none;
}




/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media screen and (max-width: 90em){
     


blockquote p	{
	font-size: 1.45em;
	line-height: 1.7;
}

}

@media screen and (max-width: 68em){

}

@media screen and (max-width: 41em){
img.left, img.right {
width: 60%;
}
}

@media screen and (max-width: 37.5em){

footer nav	{
       float:none;
        text-align:center;
}
footer div	{
display: none;
}
}

@media screen and (max-width: 37.5em){
img.map	{
float: none;
margin: 10px auto 30px;
max-width: 100%;
display: block;
}
}
@media screen and (max-width: 33em){

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

}
@media screen and (max-width: 26.67em){

h1	{
	font-size: 1.7em;
	line-height:1.1;
}

p	{
	font-size: 1em;
	line-height: 1.6;
	margin: 0 0 1em;
}

img.left, img.right {
width:100%;
margin:0 auto;
margin-bottom: 20px;
}
}

@media screen and (max-width: 23em){

}


@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
