 body { overflow: hidden; }
 .w3-container { margin-left: 150px; }
 .tab { height: 650px; text-align: center; }
 .w3-sidebar { width: 150px; }
 #myBar { height: 24px; width: 0; transition: width 1s; }

.switch {
  position: relative;
  display: inline-block;
  width: 25px;
  height: 5px;
  top: 10px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 15px;
  width: 15px;
  border: .5px solid #666;
  left: 0px;
  bottom: -5px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #0e6e12;
}

input:focus + .slider {
  box-shadow: 0 0 1px #0e6e12;
}

input:checked + .slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/*  ON-CLICK CARDS */
.scene {
  width: 100%;
  height: 650px;
  perspective: 600px;
}

.card {
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  font-size: 20px;
  transform-style: preserve-3d;
  transform-origin: center right;
  transition: transform 1s;
}

.card.is-flipped {
  transform: translateX(-100%) rotateY(-180deg);
}

.card__face {
  position: absolute;
  width: 100%;
  height: 100%;
  color: white;
  text-shadow: 1px 1px black;
  text-align: center;
  backface-visibility: hidden;
}

.card__face p {
  background: rgba(0,0,0,0.5);
  border-radius: 10px;
  padding: 10px;
}

.card__face--front {
  background: crimson;
  background-repeat: no-repeat;
  background-size: cover;
}

.card__face--back {
  background: slateblue;
  transform: rotateY(180deg);
}

@media only screen and (max-width: 600px) {
  .w3-display-middle {
    width: inherit;
    font-size: initial;
  }
  .scene {
    width: 100%;
    height: 400px;
  }
  .w3-container {
    margin-left: 0px !important;
  }
  .w3-margin-top {
    margin-top: 0px !important;
  }
  .w3-container, .w3-panel {
    padding: 0px;
  }
}