/*==========================================================================
  Trap Drawer 1.0 Base Styles 
==========================================================================*/ 

/*Container*/
.trapdrawer-container {
  width: 100%;
  overflow-x: hidden;
  -webkit-box-sizing:border-box;
  -moz-box-sizing:border-box;
  -ms-box-sizing:border-box;
  box-sizing: border-box;
}

.trapdrawer-container:before,
.trapdrawer-container:after {
  content: " "; 
  display: table; 
}

.trapdrawer-container:after {
  clear: both;
}

/*Main*/

.trapdrawer-main {
  position: relative;
  z-index: 16;
  float:left;
  width: 100%;
  -webkit-box-sizing:border-box;
  -moz-box-sizing:border-box;
  -ms-box-sizing:border-box;
  box-sizing:border-box;
}

/*Trays*/
.trapdrawer-tray {
  z-index: 100;
  -webkit-box-sizing:border-box;
  -moz-box-sizing:border-box;
  -ms-box-sizing:border-box;
  box-sizing:border-box;
  overflow-y: scroll;
  min-height: 1px;
}

.trapdrawer-tray:before {
  content: "";
  background: red;
  position: absolute;
  top: 0;
  height: 100%
  left: 0;
  right: 0;
  z-index: -1;
}

.trapdrawer-left,
.trapdrawer-right {
  z-index: 1; 
  overflow-x: hidden;
} 

/*Overlay*/
.trapdrawer-overlay {
  visibility: hidden;
  position: absolute;
  top: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 99999;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
  opacity: 0;
  -webkit-transition: visibility 0s linear 200ms,opacity 200ms linear;
  -moz-transition: visibility 0s linear 200ms,opacity 200ms linear;
  -o-transition: visibility 0s linear 200ms,opacity 200ms linear;
  -ms-transition: visibility 0s linear 200ms,opacity 200ms linear;
  transition: visibility 0s linear 200ms,opacity 200ms linear;
  box-shadow: 0 0 30px -10px #000;
}

.trapdrawer-open .trapdrawer-overlay {
  visibility: visible;
  opacity: 1;
  -webkit-transition-delay:0s;
  -moz-transition-delay:0s;
  -o-transition-delay:0s;
  -ms-transition-delay:0s;
  transition-delay:0s;
}

/*Buttons*/
.trapdrawer-toggle {
  cursor: pointer;
  display: none;
  margin: 1px;
  padding: 0;
  line-height: 20px;
  color: #ddd;
}

.trapdrawer-active .trapdrawer-toggle {
  display: inline-block;
  vertical-align: middle;
  margin: 0;
}

.trapdrawer-close {
  position: absolute;
  top: 0;
  left: 0;
  margin: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  color: #DDD;
  font-weight: bold;
}

.trapdrawer-toggle-right {
  float: right;
}

/*transitions*/
.trapdrawer-main,
.trapdrawer-left,
.trapdrawer-right {
  -webkit-transition: .2s margin ease;
  -moz-transition: .2s margin ease;
  -o-transition: .2s margin ease;
  -ms-transition: .2s margin ease;
  transition: .2s margin ease;
}

/*Tray states: default values may be overriden by trapdrawer.js*/
.trapdrawer-left {
  float: left;
  margin-left: -260px;
  width: 260px;
}

.trapdrawer-right {
  float: left;
  width: 260px;
  margin-right: -200%;
}

.trapdrawer-open-left .trapdrawer-main {
  margin-right: -100%;
}

.trapdrawer-open-left .trapdrawer-left {
	background: #FFF;
  	margin-left: 0;
}

.trapdrawer-open-left .trapdrawer-right {
   margin-right: -100%;
   float: right;
}

.trapdrawer-open-right .trapdrawer-main {
  margin-left: -260px;
}

.trapdrawer-open-right .trapdrawer-left {
  margin-left: -200%;
}

.trapdrawer-open-right .trapdrawer-right {
   margin-right: -200%;
   float: left;
   background: #fff;
}

.trapdrawer-open-right .trapdrawer-close {
  right: 0;
  left: auto;
}

/*Get rid of mobile tap highlight*/
.trapdrawer-overlay, 
.trapdrawer-toggle {
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0); 
}
