.oldie body, html.oldie {
  overflow-x: hidden;
}

.desk, .tab {
  display: none
}

header {
  overflow: visible;
  position: relative;
}

.home header {
  margin-bottom: -25px;
  height: 100px;
}

header nav {
  display: block;
}

.centerpos {
  width: auto;
  margin: 0 2%;
}

.textcenter {
  text-align: center;
}

.bordered,
.w50r.bordered,
.w33r.bordered {
  border-top: 1px solid #f4cfa2;
  margin-top: 30px;
  padding-top: 30px;
}

#main {
  margin: 30px 0 20px;
  padding-top: 20px;
  overflow: hidden;
  position: relative;
  z-index: 1000;
}

#content {
  border-bottom: 1px solid #B0B2B3;
  padding: 0 0 10px;
  margin: 0 0 20px;
}

.fold {
  height: 20px;
  background: #fff;
  position: relative;
  z-index: 20;
}

.fold.top {
  box-shadow: 0 7px 7px rgba(0, 0, 0, 0.25);
  margin-bottom: 60px;
}

.oldie .fold.top {
  box-shadow: 0 5px 7px #aaa;
  behavior: url(/css/pie/PIE.php);
}

.ie7 .fold.top {
  margin-top: 50px;
}

.fold.bottom {
  box-shadow: 0 -7px 7px rgba(0, 0, 0, 0.25);
  margin-top: 30px;
}

.oldie .fold.bottom {
  behavior: url(/css/pie/PIE.php);
  box-shadow: 0 -5px 7px #aaa;
}

.fold div {
  display: block;
  position: absolute;
  background: url(../img/fold.png) no-repeat center center;
  width: 130px;
  height: 50px;
  bottom: -50px;
  left: 50%;
  margin-left: -65px;
}

#about_cont {
  margin: -30px 0 20px;
  background: url(../img/orange_noise.png) repeat left top #F1DFD8;
}

@media screen and (min-width: 500px) {
  body {
    background: #fff
  }

  .tab {
    display: block
  }

  .mobileonly {
    display: none !important
  }

  header {
    height: 100px;
    border-bottom: 1px solid #B0B2B3;
  }

  .home header {
    margin-bottom: 0;
  }

  .centerpos {
    width: 95%;
    margin: 0 auto;
  }

  .w50l,
  .w50r,
  .w66l,
  .w33r {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0 auto;
  }

  #primenav {
    display: block;
    margin-left: 190px
  }

  #main {
    margin: 130px 0 20px;
  }

  body:not(.home) #main,
  body.home .wrapper {
    min-height: calc(100vh - 11.66666em - 190px)
  }

  #content {
    width: 80%;
    margin-left: 20px;
    border: none;
  }

  #sidebar {
    position: absolute;
    width: 10px;
    left: 0;
    top: 1.3em;
  }

  #sidebar.static {
    position: relative;
    width: 70%;
    left: auto;
  }

  footer {
    position: relative;
    border-bottom: 1px solid #B0B2B3;
  }

  footer:after {
    content: url(../img/bgfoot.png) !important;
    position: absolute;
    right: 13%;
    bottom: -20px;
  }

  .fold.top {
    margin-bottom: 40px;
  }
}

@media screen and (min-width: 800px) {
  body {
    background: #fff
  }

  .desk {
    display: block
  }

  .centerpos {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
  }

  .w50l,
  .w50r {
    width: 50%;
    margin: 2em auto;
  }

  .w50l {
    float: left;
    padding-right: 4%;
  }

  .w50r {
    float: right;
    padding-left: 4%;
  }

  .w50r.bordered,
  .w33r.bordered {
    border-top: none;
    border-left: 1px solid #f4cfa2;
    padding-top: 0;
  }

  .w66l {
    width: 66%;
    margin: 2em auto;
    padding-right: 4$;
    float: left;
  }

  .w33r {
    float: right;
    width: 33%;
    padding-left: 4%;
  }

  #primenav {
    margin-left: 310px
  }

  #content {
    width: 65%;
    float: right;
    margin: 0;
  }

  #sidebar, #sidebar.static {
    position: relative;
    float: left;
    width: 33%;
  }

  footer:after {}

  p.infobox {
    float: right;
    margin: 0 0 10px 5% !important;
    width: 33%;
    position: relative;
  }

  p.infobox:before {
    content: url(../img/infobox.png);
    position: absolute;
    top: -13px;
    left: 8%;
  }
}
