/*
 *  Common Page CSS
 */


html,
body {
  width: 100%;
  height: 100%;
}
body {
  font-family: 'Source Sans Pro', Verdana, Arial, sans-serif;
  background-color: #f7f7f7;
  padding-top: 50px;
  margin: 0;
  font-size: 12px;
  line-height: 1.42857143;
}
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4 {
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px 0;
}
h5, .h5,
h6, .h6 {
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 12px 0;
}
p:first-child {
  margin-top: 0;
}
h1, .h1 {
  font-size: 300%;
}
h2, .h2 {
  font-size: 250%;
}
h3, .h3 {
  font-size: 183.33%;
}
h4, .h4 {
  font-size: 150%;
}
h5, .h5 {
  font-size: 150%;
}
h6, .h6 {
  font-size: 125%;
}
p, .p {
  font-size: 116.67%;
}
label,
textarea,
input {
  font: inherit;
  font-size: 116.67%;
}
hr {
  margin: 20px 0 16px 0;
}
strong {
  font-weight: 600;
}
a img {
  border: 0;
}
.btn-link,
a {
  color: #700;
  text-decoration: none;
}
.btn-link:active,
.btn-link:focus,
.btn-link:hover,
a:active,
a:focus,
a:hover {
  outline: 0;
  color: #a44;
  text-decoration: none;
}
*,
*::after,
*::before {
  box-sizing: border-box;
}

input {
  border: 1px solid #aaa;
  box-shadow: none;
  -webkit-border-radius: 0;
     -moz-border-radius: 0;
          border-radius: 0;
}
button {
  text-align: center;
}
textarea,
input[type=text],
input[type=password] {
  padding: 6px 12px;
  border: 0;
}

textarea:focus,
button:focus,
input:focus {
  outline: none;
}

input::-ms-clear {
  display: none;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  padding: 0;
  border: 0;
}


/** Font: Source Sans Pro */

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  src:local('Source Sans Pro'),
    url('/fonts/sourcesanspro-regular-webfont.woff2') format('woff2'),
    url('/fonts/sourcesanspro-regular-webfont.woff') format('woff');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  src:local('Source Sans Pro'),
    url('/fonts/sourcesanspro-semibold-webfont.woff2') format('woff2'),
    url('/fonts/sourcesanspro-semibold-webfont.woff') format('woff');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 700;
  src:local('Source Sans Pro'),
    url('/fonts/sourcesanspro-bold-webfont.woff2') format('woff2'),
    url('/fonts/sourcesanspro-bold-webfont.woff') format('woff');
}


.btn {
  text-transform: none;
}

.btn-cancel,
.btn-submit {
  margin: 2px 0;
  padding: 1px 0;
  border: 0;
  color: #ccc;
  font-size: 125%;
  font-weight: 600;
  line-height: 36px;
}
.btn-cancel:hover:active,
.btn-submit:hover:active {
  margin: 1px 0 3px 0;
  padding: 2px 0 0 2px;
  box-shadow:
    inset 1px 1px 0 rgba(0,0,0,0.5),
    inset -1px -1px 0 rgba(255,255,255,0.05);
}

.btn-cancel {
  background: #4b2727;
  /* @alternate */ background: rgba(120,54,54,0.5);
}
.btn-cancel:hover,
.btn-cancel:focus {
  background: rgba(120,54,54,0.65);
  color: #eee;
}
.btn-cancel:hover:active {
  background: rgba(120,54,54,0.75);
}
.btn-submit {
  background: #2b303f;
  /* @alternate */ background: rgba(80,90,120,0.5);
}
.btn-submit:hover,
.btn-submit:focus {
  background: rgba(80,90,120,0.65);
  color: #eee;
}
.btn-submit:hover:active {
  background: rgba(80,90,120,0.75);
}
.btn-submit:disabled,
.btn-submit:disabled:active {
  margin: 2px 0;
  padding: 1px 0;
  background: rgba(225,225,255,0.2);
  color: #666672;
  box-shadow: none;
}
.btn-submit:disabled:hover:active {
  color: #585862;
}

.btn-link {
  background: none!important;
  border: none;
  margin: 0!important;
  padding: 0!important;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.btn-link:disabled {
  font-weight: 700;
  color: #999;
}
.btn-primary:focus {
  border-color: #600;
  background-color: #800;
}
.btn-primary[disabled] {
  background-color: #b79191;
  border-color: #ac8c8c;
}
.btn-success[disabled] {
  background-color: #91b791;
  border-color: #8cac8c;
}

.ib-ph {
  position: absolute;
  display: none;
  margin-top: 1px;
  overflow: hidden;
  cursor: text;
  opacity: 0.5;
  pointer-events: none;
}
.ib-vscroll {
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}
.ib-vauto {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ib-hscroll {
  overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
}
.ib-hauto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.center {
  text-align: center;
}

#nav {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  font-size: 12px;
  z-index: 1030;
  background-color: #000;
  border: none;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  -webkit-box-shadow: 0px 0px 24px 2px rgba(0,0,0,0.4);
     -moz-box-shadow: 0px 0px 24px 2px rgba(0,0,0,0.4);
          box-shadow: 0px 0px 24px 2px rgba(0,0,0,0.4);
}
#nav-brand {
  position: absolute;
  left: 4%;
  top: 10px;
}
#nav-brand img {
  width: 222px;
  height: 31px;
}

#nav-right {
  position: absolute;
  right: 4%;
}
#nav-tools {
  height: 50px;
  line-height: 50px;
}
#nav-tools > button {
  width: 50px;
  height: 50px;
  text-align: center;
  vertical-align: top;
  transition:
    background 0.2s linear;
}
#nav-tools > button:focus,
#nav-tools > button:hover {
  background: #282828!important;
  -moz-transition:
    none;
  -webkit-transition:
    none;
  -o-transition:
    none;
  transition:
    none;
}
#nav-tools > button.nav-on {
  background: #3d1919!important;
}
#nav-tools > button > img {
  width: 25px;
  height: 25px;
}
#nav-tools > #nav-locale {
  padding-top: 1px!important;
  width: 140px;
  color: #aaa;
  text-align: right;
  text-transform: uppercase;
}
#nav-tools > #nav-locale > img {
  width: 23px;
  height: 23px;
  margin: 0 16px 3px 6px;
  vertical-align: middle;
}

#nav-hamburger {
  position: absolute;
  display: none;
  top: 7px;
  right: 0;
  width: 36px;
  height: 36px;
  background: #282828!important;
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
}
#nav-hamburger:hover {
  background: #333!important;
}
#nav-hamburger > div {
  position: absolute;
  display: block;
  width: 20px;
  top: 5px;
  left: 3px;
  height: 0;
  -webkit-box-shadow: 5px 7px 0 1.5px #fff,5px 13px 0 1.5px #fff,5px 19px 0 1.5px #fff;
     -moz-box-shadow: 5px 7px 0 1.5px #fff,5px 13px 0 1.5px #fff,5px 19px 0 1.5px #fff;
          box-shadow: 5px 7px 0 1.5px #fff,5px 13px 0 1.5px #fff,5px 19px 0 1.5px #fff;
}

#nav-menus {
  line-height: 26px;
}
#nav-menu-loc,
#nav-menu-con {
  position: absolute;
  background: #eee;
  /* @alternate */ background: rgba(225,225,225,0.95);
  border-top: 3px solid #8a5757;
  -webkit-box-shadow: 6px 6px 24px rgba(0,0,0,0.15);
     -moz-box-shadow: 6px 6px 24px rgba(0,0,0,0.15);
          box-shadow: 6px 6px 24px rgba(0,0,0,0.15);
}
#nav-menu-loc {
  left: -40px;
  width: 180px;
}
#nav-menu-con {
  left: -47px;
  width: 240px;
}
#nav-menus ul {
  list-style-type: none;
  margin: 0;
  padding: 18px 2px;
}
#nav-menus a,
#nav-menus .btn-link {
  display: block;
  width: 100%;
  padding: 0 24px!important;
  color: #000;
}
#nav-menus a:hover,
#nav-menus .btn-link:hover {
  background: #eaeaea!important;
  /* @alternate */ background: rgba(0,0,0,0.08)!important;
}
#nav-menus hr {
  margin: 12px 0;
  color: #888;
  opacity: 0.25;
}


/** Mobile */

@media screen and (max-width:750px)
{
  #nav-tools {
    display: none;
  }
  #nav-hamburger {
    display: block;
  }
  #nav-menus {
    position: fixed;
    top: 50px;
    right: -240px;
    bottom: 0;
    width: 240px;
    background: #222;
    /* @alternate */ background: rgba(225,225,225,0.85);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    transition:
      box-shadow 0s 0.33s,
      transform 0.33s ease-in-out;
  }
  #nav-menus hr {
    display: none;
  }
  #nav-menu-loc,
  #nav-menu-con {
    position: static;
    width: 100%;
    background: none;
    border-top: 1px solid #888;
    transition: none;
    -webkit-box-shadow: none;
       -moz-box-shadow: none;
            box-shadow: none;
  }
  #nav-right.show-sidebar #nav-hamburger {
    background: #333!important;
  }
  #nav-right.show-sidebar #nav-menus {
    transform: translateX(-240px);
    transition:
      transform 0.33s ease-in-out;
    -webkit-box-shadow: 0 0 32px rgba(0,0,0,0.5);
       -moz-box-shadow: 0 0 32px rgba(0,0,0,0.5);
            box-shadow: 0 0 32px rgba(0,0,0,0.5);
  }
}


/** Desktop */

@media screen and (min-width:751px)
{
  #nav-menu-loc,
  #nav-menu-con {
    visibility: hidden;
    opacity: 0;
  }
  #nav-menu-loc.nav-on,
  #nav-menu-con.nav-on {
    visibility: visible;
    opacity: 1;
    transition:
      opacity 0.2s linear;
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
  }
  #nav-right.show-sidebar #nav-locale {
    background: #511!important;
  }
}


/** Print */

@media print {
  #nav {
    display: none;
  }
  body {
    padding-top: 0;
  }
  @page {
    margin: 1.5cm 1cm;
  }
}


/** Element can be shown or hidden with fade */

.fade {
  visibility: visible;
  opacity: 1;
  -moz-transition:
    opacity 0.5s linear;
  -webkit-transition:
    opacity 0.5s linear;
  -o-transition:
    opacity 0.5s linear;
  transition:
    opacity 0.5s linear;
}
.fade-hide {
  visibility: hidden;
  opacity: 0;
  -moz-transition:
    visibility 0s 0.5s, opacity 0.5s linear;
  -webkit-transition:
    visibility 0s 0.5s, opacity 0.5s linear;
  -o-transition:
    visibility 0s 0.5s, opacity 0.5s linear;
  transition:
    visibility 0s 0.5s, opacity 0.5s linear;
}


/** Cursor classes */

.grab {
  cursor: default !important;
  /* @alternate */ cursor: -webkit-grab !important;
  /* @alternate */ cursor: -moz-grab !important;
  /* @alternate */ cursor: grab !important;
}
.grabbing,
.grabbing * {
  cursor: move !important;
  /* @alternate */ cursor: -webkit-grabbing !important;
  /* @alternate */ cursor: -moz-grabbing !important;
  /* @alternate */ cursor: grabbing !important;
  pointer-events: none;
}
.waiting,
.waiting * {
  cursor: wait !important;
}
.resize-ew,
.resize-ew * {
  cursor: ew-resize;
}
.resize-ns,
.resize-ns * {
  cursor: ns-resize;
}

