.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.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: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.editor {
  grid-area: edit;
}

.rowblock {
  grid-area: recmenu;
}

.video-feed {
  grid-area: vidfeed;
}

.slidecontainer {
  grid-area: timel;
}

.row {
  /*padding-top: 10px;*/
  display: grid;
  grid-template-areas:
    'edit  edit  edit  edit  edit  edit  edit  recmenu vidfeed vidfeed '
    'edit  edit  edit  edit  edit  edit  edit  runBtn  vidfeed vidfeed '
    'edit  edit  edit  edit  edit  edit  edit  term    term    term '
    'edit  edit  edit  edit  edit  edit  edit  term    term    term '
    'edit  edit  edit  edit  edit  edit  edit  term    term    term '
    'edit  edit  edit  edit  edit  edit  edit  term    term    term '
    'edit  edit  edit  edit  edit  edit  edit  term    term    term '
    'timel timel timel timel timel timel timel space   space   space '
    'play  play  downl downl t     reset reset space   space   space '
    'upl   upl   s1    s1    s2    s2    s3    space   space   space ';
    grid-template-rows: 120px 30px 62px 62px 62px 62px 62px 20px 40px 40px;

  column-gap: 20px;
  row-gap: 3px
}

.play-btn {
  margin-left: 20%;
  margin-right: 5%;
  background-image: url('/static/images/play.png');
  background-size: 40px 40px;
  cursor: pointer;
  opacity: 1;
  width: 40px;
  height: 40px;
  grid-area: play;
}

.downl-btn {
  grid-area: downl;
}

.reset-btn {
  grid-area: reset;
}

#runCode {
  grid-area: runBtn;
}

#upload-public {
  grid-area: upl;
}

#mic {
  grid-area: s3;
}

#term {
  grid-area: term;
  padding: 5px;
  font-family: system-ui;
}

#back-home {
  grid-area: s1;
}

/*for popup*/

#overlay {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  background: #999;
  width: 100%;
  height: 100%;
  opacity: 0.8;
  z-index: 100;
}

.popup {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  background: #fff;
  width: 500px;
  height: 500px;
  margin-left: -250px; /*Half the value of width to center div*/
  margin-top: -250px; /*Half the value of height to center div*/
  z-index: 200;
}

.popupclose {
  float: right;
  padding: 10px;
  cursor: pointer;
}

.popupcontent {
  padding: 10px;
}
