@import url(https://fonts.googleapis.com/css?family=Roboto:100,300,700&subset=latin,latin-ext);

body{
  background: #1B1B1B;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 300;
  padding: 0;
  margin: 0;
  line-height: 1.5em;
  text-align: center;
}
#wrapper{
  background: #fff;
}

a{
  color: #22225C;
  cursor: pointer;
}

a:hover, a:focus{
  color: #00F;
}

h1, h2, h3{
  font-weight: 100;
}

h1{
  font-size: 40px;
  line-height: 1.3em;
}

h2{
  font-size: 30px;
  line-height: 1.3em;
}

h3{
  font-size: 20px;
  line-height: 1.3em;
}

b, strong, h4, h5, h6, th {
  font-weight: 700;
}

hr{
  border: none;
  border-bottom: solid 1px #ddd;
}

input[type="text"], input[type="url"], input[type="email"], input[type="password"], textarea{
  padding: 7px 10px;
  border-radius: 3px;
  border: solid 1px #bbb;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.1);
}
input[type="text"], input[type="url"], input[type="email"], input[type="password"], textarea{
  width: 80%;
}
textarea{
  height: 100px;
}
input[type="button"], input[type="submit"], button, .button{
  /*-webkit-appearance: none;*/
  padding: 7px 20px;
  border: solid 1px #fff;
  background: #22225C;
  border-radius: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
  cursor:pointer;
  color:#fff;
  text-decoration: none;
  font-weight: 100;
}
input[type="button"]:hover, input[type="submit"]:hover, button:hover, .button:hover, a.button:hover{
  background: #00F;
  color: #fff;
}
input[type="button"]:disabled, input[type="submit"]:disabled, button:disabled{
  cursor: default;
  color: #999;
  opacity: .6;
  border-color:#999;
}
a.button{
  display: inline-block;
}
select{
  height:30px;
  background:#fff;
  padding-left: 10px;
  border-radius: 3px;
  border: solid 1px #ddd;
}

fieldset{
  border: solid 1px #ddd;
  padding: 10px 4%;
}

#site-header{
  position: relative;
  max-width: 1080px;
  padding: 1px 4%;
  margin: 0 auto;
  text-align: left;
  display: block;
}

h1#site-title{
  color: #fff;
  text-shadow: 1px 1px 1px #000;
  text-align: left;
  margin: 1% 0 0 -4%;
  float: left;
  max-width: 90%;
}
h1#site-title img{
  max-width: 100%;
}
#pm-header-right{
  float: right;
  padding: 10px 0;
  text-align: right;
  margin-right: -3%;
}
#pm-header-phone{
  color: #A60D13;
  font-size: 36px;
  line-height: 1.33;
  font-weight: 100;
  font-style: italic;
  padding: 4% 0 0;
}

#pm-header-underPhone{
  color: #666;
  line-height: 1;
}

#site-nav{
  height: 50px;
  display: block;
/*  overflow: auto;*/
}
#site-nav-toggle{
  display: none;
}
#site-nav .MainMenu{
  float: none;
  margin: 0 auto;
  max-width: 1190px;
}

#site-nav .sf-menu li{
  background: none;
  border:none;
}
#site-nav .sf-menu li a{
  padding: 0 30px;
  line-height: 50px;
  height: 50px;
  border:none;
  color:#666;
  font-size: 24px;
  font-weight: 100;
}
#site-nav .sf-menu li a:hover{
  color: #A60D13;
}
#site-nav .sf-menu li.selected{
  background: #bbbbbb;
  background: -moz-linear-gradient(top, #bbbbbb 0%, #ffffff 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#bbbbbb), color-stop(100%,#ffffff));
  background: -webkit-linear-gradient(top, #bbbbbb 0%,#ffffff 100%);
  background: -o-linear-gradient(top, #bbbbbb 0%,#ffffff 100%);
  background: -ms-linear-gradient(top, #bbbbbb 0%,#ffffff 100%);
  background: linear-gradient(to bottom, #bbbbbb 0%,#ffffff 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#bbbbbb', endColorstr='#ffffff',GradientType=0 );
  padding: 1px 1px 0;
}
#site-nav .sf-menu li.selected>a{
  background: #e9e9e9;
  background: -moz-linear-gradient(top, #e9e9e9 0%, #ffffff 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e9e9e9), color-stop(100%,#ffffff));
  background: -webkit-linear-gradient(top, #e9e9e9 0%,#ffffff 100%);
  background: -o-linear-gradient(top, #e9e9e9 0%,#ffffff 100%);
  background: -ms-linear-gradient(top, #e9e9e9 0%,#ffffff 100%);
  background: linear-gradient(to bottom, #e9e9e9 0%,#ffffff 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e9e9e9', endColorstr='#ffffff',GradientType=0 );
  color: #A60D13;
  line-height: 49px;
  height: 49px;
  box-shadow: inset 0 0 10px #fff;
}

#site-nav .sf-menu li ul{
  background: #fff;
  box-shadow: 0 5px 20px #000;
  text-align: left;
}
#site-nav .sf-menu li ul a{
  border-bottom: solid 1px #ccc;
  margin-bottom: -1px;
}

#site-nav .sf-arrows a.sf-with-ul{
  padding-right: 40px;
}

.sf-arrows .sf-with-ul:after{
  border-top-color: rgba(102,102,102,.5);
}
.sf-arrows > li > .sf-with-ul:focus:after, .sf-arrows > li:hover > .sf-with-ul:after, .sf-arrows > .sfHover > .sf-with-ul:after{
  border-top-color: #A60D13;
}

#main{
  background: #fff;
  background: -moz-linear-gradient(top, #dddddd 0%, #ffffff 200px);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dddddd), color-stop(200px,#ffffff));
  background: -webkit-linear-gradient(top, #dddddd 0%,#ffffff 200px);
  background: -o-linear-gradient(top, #dddddd 0%,#ffffff 200px);
  background: -ms-linear-gradient(top, #dddddd 0%,#ffffff 200px);
  background: linear-gradient(to bottom, #dddddd 0%,#ffffff 200px);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dddddd', endColorstr='#ffffff',GradientType=0 );
  padding: 1px 0;
}
#main-content{
  max-width: 1140px;
  /*background-color: #fff;
  background: rgba(255,255,255,.3);*/
  padding: 30px 10px 30px;
  margin: 0 auto;
  text-align: left;
}
#main-content>*:first-child{
  margin-top: 0;
}

.content-left{
  clear:left;
  float: left;
  width: 500px;
  max-width: 100%;
  margin-right: 4%;
}
.clear{
  clear:both;
}

.content-right{
  float: left;
  width: 500px;
  max-width: 100%;
}

label.error{
  color:#F00;
}

#pm-user-login-link{
  text-decoration: none;
  font-weight: 700;
}

.menu-side{
  list-style: none;
  margin: 20px 0;
  padding: 5px 0;
  border: solid 1px #eee;
}
.menu-side li{
  list-style: none;
  display: block;
  padding: 0;
  margin: 0;
}
.menu-side li a{
  display: block;
  padding: 2px 20px;
  text-decoration: none;
}
.menu-side li a:hover{
  background: #05A;
  color: #fff;
}

.template-item{
  height: 220px;
  width: 175px;
  padding: 0;
  overflow: hidden;
  margin: 0 8% 30px 0;
  float: left;
  font-size: 12px;
  line-height: 1.3em;
}
.template-item a{
  color: #666;
  text-decoration: none;
  display: block;
  padding: 10px;
  height: 200px;
  text-align: center;
}
.template-item a:hover{
  color:#05A;
  background: #F1F8FF;
}
.template-item img{
  border: solid 1px #eee;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.template-item a:hover img{
  border-color: #05A;
  box-shadow: 0 2px 10px rgba(0,0,0,.3), inset 0 0 10px #fff;
}
.template-item span{
  display: block;
}

#template-browser-content, #template-search-content{
  margin-left: 300px;
  margin-right: -4%;
}
#template-browser-left a{
  text-decoration: none;
} 
#template-browser-left h2{
  margin: 0;
}
#template-browser-left .menu-side{
  margin-top: 0;
}
#templateSearchForm{
  margin-bottom: 20px;
  margin-left: 20px;
}
#template-search-content-loading{
  float: right;
}

#template-details-popup{
  width: 90%;
  padding: 0;
  height: 90%;
}
#template-details-popup iframe{
  height: 99%;
}


.third-block, .fourth-block{
  width: 33%;
  float: left;
  min-height: 400px;
  border: solid 1px #eee;
  border-color: rgba(0,0,0,.1);
  margin: 0 0 0 -1px;
  background-color: #fff;
  background: rgba(255,255,255,.3);
}
.fourth-block{
  width: 24.5%;
}
.third-block-content, .fourth-block-content{
  padding: 1px 10%;
}

table.formatted{
  border: none;
  border-collapse: collapse;
  
}
table.formatted td, table.formatted th{
  text-align: left;
  border-bottom: solid 1px #eee;
  border-bottom-color: rgba(0,0,0,.08);
  padding: 3px 6px;
}

#pm-highlight-area{
  padding: 10px;
  background: #22235C;
  box-shadow: inset 0 0 50px #000;
  border-bottom: solid 1px #fff;
}
.home #pm-highlight-area{
  box-shadow: inset 0 0 200px #000;
}
.home h1#page-title{
  margin-top: -20px;
  font-weight: 600;
  color: #22225C;
}

#pm-highlight-area h1#page-title{
  max-width: 1140px;
  margin: 0 auto;
  color:#fff;
  text-align: left;
}

#footer-nav{
  min-height: 50px;
  overflow: auto;
  padding: 15px 10px;
  background: #666666;
  background: -moz-linear-gradient(top, #666666 0%, #4e4e4e 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#666666), color-stop(100%,#4e4e4e));
  background: -webkit-linear-gradient(top, #666666 0%,#4e4e4e 100%);
  background: -o-linear-gradient(top, #666666 0%,#4e4e4e 100%);
  background: -ms-linear-gradient(top, #666666 0%,#4e4e4e 100%);
  background: linear-gradient(to bottom, #666666 0%,#4e4e4e 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#666666', endColorstr='#4e4e4e',GradientType=0 );
  border-top: solid 1px #333333;
  border-bottom: solid 1px #999999;
  
}
#footer-nav .cms_nav, #footer-logo, #site-footer-content{
  max-width: 1140px;
  margin: 0 auto;
  float: none;
}

#footer-logo img{
  float: right;
  margin: 10px 10px -70px;
  max-width: 90%;
}

#footer-nav .sf-menu li{
  background: none;
  padding-right: 40px
}
#footer-nav .sf-menu a{
  color: #000;
  border: none;
  font-size: 14px;
  line-height: 24px;
  padding: 13px 0;
}
#footer-nav .sf-menu a:hover{
  color:#fff;
}

#site-footer{
  padding: 20px 10px 1px;
  background: #333333;
  background: -moz-linear-gradient(top, #333333 0%, #1b1b1b 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#333333), color-stop(100%,#1b1b1b));
  background: -webkit-linear-gradient(top, #333333 0%,#1b1b1b 100%);
  background: -o-linear-gradient(top, #333333 0%,#1b1b1b 100%);
  background: -ms-linear-gradient(top, #333333 0%,#1b1b1b 100%);
  background: linear-gradient(to bottom, #333333 0%,#1b1b1b 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#333333', endColorstr='#1b1b1b',GradientType=0 );
  color: #ccc;
  overflow: auto;
  font-size:12px;
}

#site-footer-content1, #site-footer-content2, #site-footer-content3{
  float: left;
  min-width: 20%;
  text-align: left;
}
#site-footer-content1, #site-footer-content2{
  margin-right: 5%;
}

#site-footer h1, #site-footer h2, #site-footer h3{
  font-size: 24px;
  margin: 8px 0;
}

#site-footer a{
  color: #ccc;
  text-decoration: none;
}
#site-footer a:hover{
  text-decoration: underline;
}
#site-footer p{
  margin: 8px 0;
}
#site-footer hr{
  border-color:#444;
}

#credits{
  text-align:center;
  font-size:12px;
  margin:50px auto;
  max-width: 380px;
  overflow: auto;
}
#credits a{
  color:#fff;
  text-decoration:none;
  opacity:.1; 
  text-shadow:-1px -1px 1px #000;
  display: block;
  float: left;
}
#credits a:hover{
  opacity:.7;
}

#pm-highlight-content{
  color: #fff;
  max-width: 1080px;
  margin: 0 auto;
  overflow: auto;
  text-align: left;
}


@media (max-width: 1200px){
  #main-content{
    padding:  20px 3%;
  }
}

@media (max-width: 999px){
  #site-nav .sf-menu li a{
    font-size: 18px;
    padding: 0 20px;
  }
  #footer-nav .sf-menu li{
    padding-right: 20px;
  }
  .fourth-block{
    width: 49%;
  }
}

@media (max-width: 699px){
  #site-nav .sf-menu, #footer-nav .sf-menu{
    display: none;
    padding-bottom: 20px;
  }
  #site-nav-toggle{
    display: block;
    max-width: 50%;
    margin: 0 auto 10px;
  }
  #site-nav .sf-menu li{
    display: block;
    float: none;
    max-width: 50%;
    margin: 0 auto;
  }
  #site-nav .sf-menu li.selected{
    padding-bottom: 1px;
    background: #bbb;
  }
  #site-nav{
    height: auto;
    overflow: auto;
  }
  #site-nav .sf-menu li ul li{
    max-width: 100%;
  }
  h1{
    font-size: 30px;
  }

  h2{
    font-size: 22px;
  }

  h3{
    font-size: 18px;
  }
  .third-block{
    width: 49%;
  }
}
@media (max-width: 499px){
  .third-block, .fourth-block{
    width: auto;
    float: none;
    min-height: 0;
  }
  #core-global-user-menu ul.sf-menu{
    display: none;
  }
  h1#site-title{
    margin-top: 30px;
  }
  #pm-header-phone{
    font-size: 24px;
  }
}