* {
  margin: 0;
  padding: 0;
}
body {
  font-size: 90%;
  color: #222;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.6em;
  background-image: url(../images/piano_Keys_bg.gif);
  background-repeat: repeat-x;
  background-position: top;
  background-color: #333;
}
.clearfloats {
  height: 0;
  line-height: 0;
  clear: both;
}
div#logo {
  margin: 2rem 2rem 3rem 2rem;
}
#logo h1 {
  display: inline-block;
  line-height: 2.5rem;
}
#logo .r {
  float: right;
}
#logo p {
  width: 310px;
}
#logo h3 {
  font-size: 1.4em;
  padding-right: 0.2em;
  padding-top: 0.2em;
}
#logo img {
  float: left;
  width: 445px;
}
#footer {
  text-align: right;
  height: 40px;
  width: 800px;
  color: #f7efc0;
  margin: 0 auto;
  clear: both;
}
/* The container for the tabs */
.ui-tabs-nav {
  display: block;
  margin-bottom: 0;
}

/* The active tab that should overlap the border */
li.ui-tabs-tab.ui-tabs-active {
  display: inline-block;
  position: relative;
  bottom: -1px; /* Shifts the tab down to cover the #home border */
  z-index: 2; /* Ensures the tab sits on top of the #home div */
  background-color: #ffffff; /* Must match the background of the tab/content */
  border-bottom: 1px solid #ffffff; /* Masks the top border of #home */
}

/* The content area below the tabs */
#home {
  position: relative;
  z-index: 1;
  border-top: 1px solid #dedbd1; /* Your existing border color */
}
.tabbed {
  width: 800px;
  margin: 20px auto;
  padding: 10px;
  background: #f7efc0;
  border: 8px solid #2c1c0f;
  margin-bottom: 15px;
}
.tabbed a {
  color: #222;
  text-decoration: none;
}
.tabbed a:hover {
  color: #009;
  text-decoration: underline;
}
.tabnav {
  clear: both;
}
.tabnav li {
  display: inline;
  list-style: none;
}
.tabnav li a {
  text-decoration: none;
  text-transform: uppercase;
  color: #222;
  font-weight: bold;
  padding: 4px 6px;
  outline: none;
  border: 1px solid transparent;
}
.tabnav li a:hover,
.tabnav li a:active,
.tabnav li.ui-tabs-selected a,
.tabnav li.ui-tabs-active a {
  background: #fff;
  color: #222;
  text-decoration: none;
  border: 1px solid #dedbd1;
  border-bottom: none;
  padding: 4px 6px;
}
.tabnav li:not(.ui-state-active) a:hover {
  background-color: #f9f5da;
}
.tabdiv {
  margin-top: 0px;
  background: #fff;
  border: 1px solid #dedbd1;
  padding: 20px 40px;
}
.tabdiv.float img {
  float: left;
  padding-right: 2rem;
}
.tabdiv.float p {
  clear: none;
}
.tabdiv.float p:first-of-type {
  margin-top: 0.25rem;
}
.tabdiv p {
  text-align: justify;
  margin: 1.2em;
  margin-left: 0;
  font-size: 1.2em;
}
.tabdiv img {
  margin: 5px auto;
}
.ui-tabs-hide {
  display: none;
}
#contact-us a {
  text-decoration: underline;
}
#contact-us a:hover {
  color: #2c1c0f;
}
/*image gallery*/
.img-main-wrap {
  width: 600px;
  min-height: 460px;
  background: url(../images/loader.gif) no-repeat 50% 50%;
}
.thumbs {
  margin-left: 0px;
  height: 100px;
}
.thumbs li {
  float: left;
  width: 110px;
  list-style: none;
}
.thumbs li a img {
  margin: 10px 10px 0 0;
  border: 2px solid black;
  padding: 4px;
}
.thumbs li a img.active {
  height: 75px;
  width: 100px;
}
/* Contact Us Form */
#contactForm li {
  list-style: none;
  padding-bottom: 10px;
}
#contactForm label {
  float: left;
  padding-right: 10px;
  width: 140px;
}
.statusMessage {
  color: #666;
  background-color: #ebedf2;
  background: -webkit-gradient(
    linear,
    left bottom,
    left top,
    color-stop(0, #dfe1e5),
    color-stop(1, #ebedf2)
  );
  background: -moz-linear-gradient(center bottom, #dfe1e5 0%, #ebedf2 100%);
  border: 1px solid #aaa;
  -moz-box-shadow: 0 0 1em rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 0 0 1em rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 1em rgba(0, 0, 0, 0.5);
  opacity: 0.95;
  display: none;
  margin: auto;
  width: 30em;
  height: 2em;
  padding: 1.5em;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
.statusMessage p {
  text-align: center;
  margin: 0;
  padding: 0;
}

/* Display correctly filled-in fields with a green background */

input:valid,
textarea:valid {
  background: #dfd;
}

/* The Send and Cancel buttons */

input[type='submit'],
input[type='button'] {
  float: right;
  margin: 2em 1em 0 1em;
  width: 10em;
  padding: 0.5em;
  border: 1px solid #666;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  -moz-box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.8);
  -webkit-box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.8);
  color: #fff;
  background: #0a0;
  font-size: 1em;
  line-height: 1em;
  font-weight: bold;
  opacity: 0.7;
  -webkit-appearance: none;
  -moz-transition: opacity 0.5s;
  -webkit-transition: opacity 0.5s;
  -o-transition: opacity 0.5s;
  transition: opacity 0.5s;
}

input[type='submit']:hover,
input[type='submit']:active,
input[type='button']:hover,
input[type='button']:active {
  cursor: pointer;
  opacity: 1;
}

input[type='submit']:active,
input[type='button']:active {
  color: #333;
  background: #eee;
  -moz-box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.8) inset;
  -webkit-box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.8) inset;
  box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.8) inset;
}

input[type='button'] {
  background: #f33;
}

/*ul.tabnav {
  position: absolute;
  top: 165px;
}*/
.tabdiv p {
  clear: both;
}
.caption {
  float: right;
  font-weight: bold;
  padding-bottom: 5px;
  margin-bottom: 1rem;
}
.caption:after {
  content: '';
  clear: both;
}

.responsive-iframe-wrap {
  clear: both;
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
}

.responsive-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 849px) {
  .tabbed,
  #footer,
  .img-main-wrap {
    width: calc(100% - 45px);
  }

  div#logo {
    height: auto;
    margin: 0;
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
  }

  #logo img {
    float: none;
    max-width: 445px;
    width: calc(100% - 10px);
  }

  #logo .r {
    display: block;
    float: none;
  }

  #logo p {
    margin: 0 auto;
    max-width: 320px;
    width: calc(100% - 10px);
  }

  ul.tabnav {
    position: relative;
    top: auto;
  }
  .tabdiv {
    padding: 1rem;
  }

  .tabdiv img {
    max-width: 95%;
    height: auto;
  }
  .img-main-wrap {
    width: 100%;
    min-height: 200px;
  }

  .thumbs li {
    max-height: 90px;
  }
}
