@keyframes move_ring{
  from{
    transform: rotate(0deg);
  }
  to{
    transform: rotate(360deg);
  }
}

*{
  box-sizing: border-box;
}
body{
  font-family: Poppins, Arial, sans-serif;
  background-color: #eee;
  margin: 0;
}
#wrapper{
  max-width: 960px;
  background-color: #fff;
  margin: 0 auto;
  padding-top: 1px;
  margin-top: 112px;
  z-index: 0;

/*      box-shadow: 0 10px 16px rgba(0,0,0,0.8);*/
}

header{
  width: 100%;
  background-color: #fff;
  height: 112px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.6);
  position: fixed;
  top:0;
}
#inner_header{
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  height: 112px;
}
#logo{
  width: 100px;
  height: 100px;
  position: absolute;
  left: 0;
  top: 8px;
}
#tagline{
  font-family: "Merriweather", "Times New Roman", serif;
  font-size: 1.7em;
  position: absolute;
  top: 8px;
  right: 0;
  height: 112px;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

#menu_button{
  display:none;
}

nav{
  position: absolute;
  right: 0;
  bottom: 0px;
  z-index: 20;
}

nav ul{
  margin: 0;
  padding: 0;
}
nav ul li{
  display: inline-block;
}
nav ul li a{
  display: block;
  text-decoration: none;
  color: #000;
  padding: 4px 10px 4px 10px;
  font-size: 1.2em;
}

main{
  min-height: 600px;
  padding: 1px 15px 1px 15px;
}

main p{
  line-height: 1.65;
}

main h1{
  font-size: 1.6em;
  font-family: "Merriweather", 'Times New Roman', serif;
  border-bottom: 2px solid #3b9dcd;
  padding-bottom: 4px;
}

main h2{
  font-size: 1.4em;
}
h3{
  margin-bottom: .2em;
}
h3 + h4{
  margin-top: 0;
  font-weight: 400;
}

.bio{
  border-bottom: 1px solid #999;
  padding-bottom: 30px;
  clear: both;
}

.bio hr{
  clear: both;
}

.bio img{
  float: left;
  margin-right: 12px;
  border-radius: 10px;
  border: 2px solid #3b9dcd;
  display: block;
}

#medicine_wheel{
  max-width: 400px;
  height: auto;
  margin: 0 auto;
}
#medicine_wheel svg #ring{
  animation: move_ring 60s linear forwards infinite;
  transform-origin: center;
}

.peeled::before{
    content: '';
    width: 75%;
    height: 85%;

    background-color: transparent;
    position: absolute;
    /* This box will be on the left, so we should position from the bottom and left. */
    bottom: 4%;
    left: 3%;
    /* transform the box. Rotate and skew. */
    transform: rotate(-3deg) skew(-8deg);
    box-shadow: 0 10px 12px rgba(0,0,0,0.85);
    z-index: -1;

  }

  .peeled::after{
    content: '';
    width: 75%;
    height: 85%;
    background-color: transparent;
    position: absolute;
    /* This box will be on the right side, so we should position from the bottom and right. */
    bottom: 4%;
    right: 3%;
    /* Same for this box, but rotate and skew the other way. */
    transform: rotate(3deg) skew(8deg);
    box-shadow: 0 10px 12px rgba(0,0,0,0.85);
    z-index: -2;
  }

.shadow{
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.clearfloat{
  clear:both;
}

.smalltext{
  font-size: 0.75em;
}

footer{
  text-align: center;
}

@media all and (max-width:960px){
  #inner_header{
    margin-left: 12px;
    margin-right: 12px;
  }
  #tagline{
    font-size: 1.4em;
  }
}

@media all and (max-width:813px){
  #tagline{
    font-size: 1.2em;
  }
}

@media all and (max-width:768px){
  #menu_button{
    display: block;
  }
  
  nav #menu_button {
    position: absolute;
/*    top: 32px;*/
    right: 13px;
    z-index: 5000;
  }  
  
  nav #menu_button a#menulink {
    width: 25px;
    height: 22px;
    display: block;
    color: #000;
    line-height: 1.5em;
    text-decoration: none;
    box-sizing:content-box;
    -webkit-transition: all ease-in-out 0.2s;
    transition: all ease-in-out 0.2s;
  }

  nav #menu_button a#menulink.act {
      background-image: none;
      background-color: #ccc;
      border-radius: 50%;
      padding: 6px 3px 2px 3px;
      border: 1px solid #333;
  }

  nav #menu_button a#menulink span {
    background-color: #000;
    display: block;
    width: 100%;
    height: 3px;
    opacity: 1;
    margin-bottom: 5px;
    -webkit-transform: translateY(0px) rotate(0deg);
    transform: translateY(0px) rotate(0deg);
    -webkit-transition: transform ease-in-out .4s, opacity ease-in-out .4s;
    transition: transform ease-in-out .4s, opacity ease-in-out .4s;
  }

  nav #menu_button a#menulink.act .top_bar {
    -webkit-transform: translateY(8px) rotate(225deg);
    transform: translateY(8px) rotate(225deg);
  }

  nav #menu_button a#menulink.act .middle_bar,
  nav #menu_button a#menulink.act .menutext{
    opacity: 0;
  }

  nav #menu_button a#menulink.act .bottom_bar {
    -webkit-transform: translateY(-8px) rotate(-225deg);
    transform: translateY(-8px) rotate(-225deg);
  }
  nav #menu_button a#menulink span.menutext{
        font-size: 10px;
      text-decoration: none;
      background-color: transparent;
      height: auto;
      padding-top: 0;
      transform: initial;
      line-height: normal;
      margin-top: -3px;
  }
  
  nav {
    perspective: 2000px;
    perspective-origin: 100% 100%;
    z-index: 6000;
    position: absolute;
    top: 55px;
    right: 0px;
  }


  nav ul#navlist {
    opacity: 0;
    position: absolute;
    background-color: rgba(50,50,50,0.86);
    top: 33px;
    right: 0px;
    width: 206px;
    margin: 0px;
    z-index: 5000;
    padding: 9px;
    color: #000;
    font-family: "Lato", Verdana, sans-serif;
    font-weight: 300;
    box-shadow: 0px 8px 10px rgba(0,0,0,0.98);
    /*
    -webkit-transform-origin: 50% 0;
    transform-origin: 50% 0;
  */
    -webkit-transform: rotateY(90deg);
    transform: rotateY(90deg);
    transform-origin: right;
    -webkit-transition: ease-in-out 0.2s;
    -webkit-transition-property: opacity, transform;
    transition: ease-in-out 0.2s;
    transition-property: opacity, transform;
  }

  nav ul#navlist.open {
    opacity: 1;
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg);
  }

  nav ul#navlist li {
    list-style-type: none;
    display:block;
  }

  nav ul#navlist li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    display: block;
    margin-bottom: 2px;
    padding: 8px 3px 11px 8px;
    background-color: #272727;
  }
  nav ul#navlist li li a{
    background-color: #272727;
  }

  nav ul#navlist li.last a {
    margin-bottom: 0px;
  }

  nav ul#navlist li.submenu ul{
    padding: 0;
  }
  nav ul#navlist li.submenu ul li a{
    background-color: #565656;
    padding-left: 20px;
    text-shadow: 0 2px 3px rgba(0,0,0,0.75);
  }
  
}

@media all and (max-width: 705px){
  #tagline{
    font-size: 1.1em;
    position: static;
    margin-left:110px;
    margin-right: 60px;
    padding-top: 9px
  }
}

/* Form rules */

     #pageform label{
		display: block;
		float:left;
		width: 140px; 
	 }
	 #pageform label.radiolabel{
		float: none;
		width: auto;
		display: inline; 
	 }
	 #pageform label.above_label{
		float: none;
		display: block; 
		width: auto;
	 }
	 #pageform input[type=text],
	 #pageform input[type=email],
	 #pageform input[type=tel],
	 #pageform input[type=date],
	 #pageform input[type=password],
	 #pageform input[type=url]{
		width: 300px;
		box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.25); 
		background-color: #eee;
		color: #000;
		font-weight: bold;
		padding: 2px;
		margin-bottom: 10px;
		border: 1px solid #000;

		
		
		transition: all ease-in-out .2s;
	 }
	 #pageform textarea{
		max-width: 100%;
		box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.25); 
		background-color: #eee;
		color: #000;
		padding: 2px;
        font-size: 14px;
		margin-bottom: 10px;
		font-family: Arial, heletica, sans-serif;

		
		transition: all ease-in-out .2s;
	 }
	 #pageform textarea:hover{
		 background-color: #c1d8fc; 
	 }
	 #pageform input[type=checkbox] + label{
		 display: inline;
		 float: none;
	 }
	 
	 #pageform input[type=text]:hover,
	 #pageform input[type=email]:hover,
	 #pageform input[type=tel]:hover,
	 #pageform input[type=url]:hover,
	 #pageform input[type=date]:hover
	 #pageform input[type=password]:hover{
        background-color: #c1d8fc;
	 }
     
     span.req{
		font-size: 150%;
		color: #900; 
	 }
	 
	 span.related_field{
		display: block; 
		font-style: italic;
		margin-left: 2em;
		margin-top: .6em;
	 }
	 #pageform span.related_field input{
		width: 130px; 
	 }
     #pageform span.related_field label{
		display: block;
		float: left;
		width: 110px;
	 }
	 label.req:before,
	 p.req:before{
		 content: "*";
		 font-size: 150%;
		 color: #900;
	 }
  #content #msg{

	background-color: #ccc;
    padding: 3px;
	border: 2px solid #f00;  
	display: none;
	margin-bottom: 15px;
	
	box-shadow: 0px 3px 4px rgba(0,0,0,0.60);
  }


/* End form styles */