html{
    height: 100%;
    width: 100%;
    position: relative;
}
body {
    margin: 0;
    padding: 0;
    height: 100%;
    position: relative;
}
.logo {
    margin-bottom: 8px;
    max-width: 100%;
}

.wrapper {
    display: flex;
    display: -webkit-flex;
    flex: 1;
    -webkit-flex: 1;
    height: calc(100% - 165px);
    overflow: hidden;
    border: 1px solid #d6d6d6;
}
.wrapper > div {
    flex: 50;
    -webkit-flex: 50;
    margin: 0;
}

#editor_heading {
    border-right: 1px solid #d6d6d6;
}
#editor_heading, #preview_heading {
    border-bottom: 1px solid #d6d6d6;
}
.blank_space {
    padding-left: 10px;
}
.edit_icon {
    padding: 12px 26px 11px 10px;
    background: url(../../images/pencil.png) 15px / 17px no-repeat;
}
.preview_icon {
    padding: 11px 32px 11px 10px;
    background: url("../../images/preview.png") 15px / 24px no-repeat;
}
.heading {
    font: bold 18px Arial,sans-serif;
    color: #41B353; 
    padding: 7px 7px 7px 0px;
    vertical-align: middle !important;
}
.nav_item{
    font: normal 90% Arial, sans-serif;
    padding: 0px 5px;
    vertical-align: middle !important;   
    text-decoration: none;
    color: #333;
}
.nav_item:hover, .nav_item:active {
    color: #41B353; 
    cursor: pointer;
}
.nav_item_float_right{
    font: normal 90% Arial, sans-serif;
    padding: 3px 10px;
    margin: 9px 6px 5px 6px;
    vertical-align: middle !important;   
    text-decoration: none;
    color: #333;
    float: right;    
}
input#AutoRun:hover, input#AutoRun:active, label:hover, label:active {
    color: #41B353; 
}
input#AutoRun {
    margin: 13px 15px 11px 0px;
    float: right;
}
input.runit_margin{
    margin: 6px 6px auto 6px;
    line-height: 19px;
}
label.space_remove{
    margin-right: 0;
    padding-right: 8px;
}
.nav_item_right_arrow{
    padding: 0px;
    vertical-align: middle !important;   
    float: right;
}
.nav_item_right_runit{
    padding: 1px 5px 1px 10px;
    vertical-align: middle !important;   
    float: right;
}
.nav_item_right_runit:hover, .nav_item_right:hover{
    cursor: pointer;
}

.primary {
    position: relative;
    height: calc(100% - 39px);
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    overflow: auto;
}
#editor {
    position: absolute;
    height: auto;
    width: auto;
    top:0;
    bottom:0;
    left:0;
    right:0;
    margin: 0;
    padding: 5px;
    border-right: 1px solid #d6d6d6; 
}
.ace_editor{
    font-size: 100% !important;
    line-height: 1.2 !important;
}
.preview_box{
    border-left: 1px solid #d6d6d6;
    background-color: #f9f9f9;
    resize: none;
    overflow: auto;
    height: calc(100% - 35px);
}
iframe {  
    margin: 10px;  
    border: 1px solid #d6d6d6;
    background-color: white;
    box-shadow: 0 0 15px #d6d6d6;
    min-height: calc(100% - 25px);
    width: calc(100% - 20px);
}
.leaderboard_ga {
    margin: 0px auto 0px auto;
    padding: 0;
    text-align: center;
    clear: both;
}
.leaderboard_ga > div.hidden-sm > div > div {
    margin-right: auto;
    margin-left: auto;
}

@media screen and (max-width:768px) {
  .wrapper {
    display: flex;  
    flex-flow: column wrap;
    height: calc(100% - 130px);
  }
  .wrapper > * {
    padding: 0px;
    flex: 1 100%;
  }
  .editor {
    border-bottom: 1px solid #d6d6d6;
  }
  .ace_editor{
    font-size: 90% !important;
    line-height: 1.2 !important;
  }
  .edit_icon, .preview_icon {
    display: none;
  }
  .heading {
    padding: 7px 7px 7px 7px;
  }
  .leaderboard_ga {
    padding: 0;
    text-align: inherit;
  }
}

@media screen and (max-width:320px) {
  .wrapper {
    height: calc(100% - 130px);
  }
  input#AutoRun {
    margin: 13px 2px 11px 0px;
  }
}
