.CodeMirror-dialog .CodeMirror-search-field {
  background: rgb(51,51,51);
}

.CodeMirror {}
.CodeMirror-focused .cm-matchhighlight {
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAFklEQVQI12NgYGBgkKzc8x9CMDAwAAAmhwSbidEoSQAAAABJRU5ErkJggg==);
  background-position: bottom;
  background-repeat: repeat-x;
}

.CodeMirror-selection-highlight-scrollbar {background-color: lightsalmon}

@font-face {
font-family: ray-toy-logo-font;
src: url(../fonts/HARLOWSI.TTF);
}
@font-face {
font-family: ray-toy-code;
src: url(../fonts/Menlo-Regular.ttf);
}

body {
  /*background-color: #E6E4D8;*/
  /*background-color: black;*/
  background-color: rgb(255,255,255);
  border: 0;
  margin: 0;
  padding: 0;
}
@media only screen and (min-width: 1024px) {
  #rg-view-footer {
    background: rgb(51,51,51);
    color:white;
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    height: 2.5rem;
    overflow: hidden;
  }
}

@media only screen and (max-width: 1024px) {

}

@media only screen and (max-width: 1919px) and (min-width: 1440px) {

}

@media only screen and (min-width: 1919px) {

}

#canvas-toolbar {
  margin: 0 auto;
  background: lightgray;
  border: 4px solid lightgray;
  border-radius: 4px;
}

#ray-toy-canvas {
  /*width: 100%;*/
  /*height: 69%;*/
  /*min-width:256px;
  min-height:540px;
  max-width:720px;
  max-height:540px;*/
  /*border-top-right-radius: 6px;
  border-top-left-radius: 6px;*/
  /*box-shadow: 0 0px 3px 4px #ccc;*/
}

.ray-toy-table {
  display: table;
  width: 100%;
}
.ray-toy-table-row {
  display: table-row;
}
.ray-toy-table-cell {
  display: table-cell;
  position:relative;
}
/* Style the tab */
.rg-editor-tab {
  display: flex;
  flex-wrap: wrap;
  /*box-shadow: 0 0px 3px 4px #ccc;*/
  border-top-right-radius: 4px;
  border-top-left-radius: 4px;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  /*text-align: left;*/
}

/* Style the buttons inside the tab */
.rg-editor-tab button {
    border: none;
    outline: none;
    cursor: pointer;
    padding: 6px 16px;
    transition: 0.3s;
    font-size: 16px;
    background-color: rgb(0,0,0);
    color: rgb(218,165,32);
}

.rg-editor-tab a {
    cursor: pointer;
    padding: 6px 16px;
    transition: 0.3s;
    font-size: 16px;
    background-color: rgb(0,0,0);
    color: rgb(218,165,32);
    margin-right: -5px;/* bad hack ..... */
}


/* Change background color of buttons on hover */
.rg-editor-tab button:hover {
    background-color: #ddd;
}

/* Create an active/current tablink class */
.rg-editor-tab button.active {
    background-color: rgb(23,23,23);
    color:white;
}

.rg-editor-tab a:hover {
    background-color: #ddd;
}

/* Create an active/current tablink class */
.rg-editor-tab a.active {
    background-color: rgb(23,23,23);
    color:white;
}

/* Style the tab content */
.ray-toy-editor-tab {
  display: none;
  /*box-shadow: 0 0px 3px 4px #ccc;*/
  border-radius: 0 4px 0 0;
  height:100%;
}

.ray-toy-editor-btns {
  color:white;
  padding:0;
  margin:0;
  border:0;
  font-size: 16px;
  background-color: rgb(23,23,23);
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
  padding: 14px 16px;
}

.CodeMirror-scroll {
  overflow-y: none;
  overflow-x: none;
}

.CodeMirror {
  font-size: 12px;
  border-top-right-radius: 4px;
  font-family: ray-toy-code;
}

.CodeMirror .CodeMirror-cursor {
  width: auto;
}

.CodeMirror .CodeMirror-overwrite .CodeMirror-cursor {
    width: auto;
    border-left: 8px solid white;
    opacity: 0.5;
}

.CodeMirror-linewidget {
  position: relative;
  z-index: 2;
  font-size: 22px;
  overflow: auto;
}

#ray-toy-content {
  min-height:1000px;
}

#ray-toy-content-preview {
  width: 100%;
  height: 100%;
  text-align: center;
}

#ray-toy-content-preview-holder {
  text-align: center;
  width: 100%;

}

.div-table {
  display: table;
  width: 100%;
  background-color: rgb(0,159,225);
  border-spacing: 5px; /* cellspacing:poor IE support for  this */
}
.div-table-row {
  display: table-row;
  clear: both;
}
.div-table-col {
  position: relative;
  float: left; /* fix for  buggy browsers */
  display: table-column;
  background-color: rgb(0,159,225);
}

 /* The navbar container */
.topnav {
    background-color: #333;
}

/* Navbar links */
.topnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

/* Links - change color on hover */
.topnav a:hover {
    background-color: #ddd;
    color: black;
}

.content {
    padding-top: 10px;
    padding: 10px 20px;
    flex: 1;
}


/* Left and right column */
.content.side {
    width: 5%;
}

#ray-toy-console {
  width: 100%;
  height: 200px;
  margin-top: 20px;
  padding: 10px 10px 10px 10px;
  resize: none;
  display: none;
}

/* Middle column */
.content.preview {
    /*min-width:512px;
    max-width:1024px;
    min-height:512px;
    max-height:1024px;*/
    text-align: center;
}

.content.editor {
    width: 100%;
}

@media screen and (min-width: 620px) {
    .content.editor {
	min-width: 700px;
	/* width: 100%; */
    }
}

.rg-nav {
    float: left;
}

/* Left and right column */
.rg-nav.side {
    width: 5%;
}

/* Middle column */
.rg-nav.preview {
    width: 45%;
}

.rg-nav.editor {
    width: 45%;
    padding: 7px;
}

* {
    box-sizing: border-box;
}

#main-page {
  /*
  width:100%;
  height:85%;
  position: absolute;
  */
}

.container-project-view {
  display: flex;
 flex-direction: row;
 flex-wrap: wrap;
 justify-content: flex-start;
 /*overflow: hidden;*/
 /*justify-content: space-around;*/
 /*justify-content: space-between;*/
 /*align-content: space-between;*/
 margin-bottom: 32px;
}

#ray-toy-editor-middle {

  height:700px;
  height: 80vh;
}

/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */
/*@media screen and (max-width: 1200px) {*/
@media screen and (max-width: 1500px) {
  /*.content.side, .content.editor, .content.preview {
    width: 100%;
  }*/

  #rg-view-footer {
    background: rgb(51,51,51);
    position: relative;
    color:white;
    width:100%;
  }
}

.lint-error {
  font-family: arial;
  font-size: 70%;
  background: #ffa;
  color: #a00;
  padding: 2px 5px 3px;
}
.lint-error-icon {
  color: white;
  background-color: red;
  font-weight: bold;
  border-radius: 50%;
  padding: 0 3px;
  margin-right: 7px;
}

/* Tooltip container */
div.tooltip {
    position: relative;
    display: inline-block;
    /*border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
    cursor: pointer;
}

div.tooltip img {
  margin-left: 5px;
  margin-right: 5px;
  width:  32px;
  height: 32px;
}

/* Tooltip text */
.preview-toolbar-items2 .tooltiptext,
.tooltip .tooltiptext {
    transition:visibility 0.1s ease, opacity 0.1s ease;
    visibility: hidden;
    opacity:0;

    width: 130px;
    bottom: 100%;
    left: 50%;
    margin-left: -60px; /* Use half of the width (120/2 = 60), to center the tooltip */

    background-color: #000a;
    color: #fff;
    text-align: center;
    padding: 5px 5px;
    border-radius: 4px;

    /* Position the tooltip text - see examples below! */
    position: absolute;
    z-index: 9999;
}

/* Show the tooltip text when you mouse over the tooltip container */
.preview-toolbar-items2:hover .tooltiptext,
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity:1;
}

/* Tooltip text */
.preview-toolbar-items2 .rg-tooltip-menu,
.tooltip .rg-tooltip-menu
{
    transition:visibility 0.1s ease, opacity 0.1s ease;
    visibility: hidden;
    opacity:0;

    width: 100px;
    bottom: 100%;
    left: 50%;
    margin-left: -50px; /* Use half of the width (120/2 = 60), to center the tooltip */

    background-color: lightgray;
    color: #fff;
    text-align: center;
    padding: 5px 5px;
    border-radius: 4px;

    /* Position the tooltip text - see examples below! */
    position: absolute;
    z-index: 9999;
}

.rg-fb-size-selector-option {
    background-color: lightgray;
  padding:2px;
}

.rg-fb-size-selector-option:hover {
  border: 1px solid black;
}

/* Tooltip text */
.rg-user-profile-btn-container .rg-tooltip-profile-menu,
.tooltip .rg-tooltip-profile-menu
{
    transition: visibility 0.1s ease, opacity 0.1s ease;
    visibility: hidden;
    opacity:0;

    width: 120px;
    top: 130%;
    right: -5px;
    /*margin-left: -130px;*/ /* Use half of the width (120/2 = 60), to center the tooltip */

    background-color: white;
    color: black;
    text-align: left;
    padding: 5px 5px;
    border-radius: 4px;

    /* Position the tooltip text - see examples below! */
    position: absolute;
    z-index: 9999;
}


/* Show the tooltip text when you mouse over the tooltip container */
.rg-tooltip-profile-menu-separator {

}

.rg-tooltip-profile-menu-option {
    color: black;
    padding: 0px 10px;
    margin: 5px 10px;
}

.rg-tooltip-profile-menu-option:hover {
  background-color: lightblue;
}

.round {
    width: 100%;
    border-radius: 15px;
    border: 1px #000 solid;
    padding: 5px 5px 5px 25px;
    position: absolute;
    top: 0;
    left: 0;
}

.corner {
    position: absolute;
    top: 3px;
    left: 5px;
    height: 20px;
    width: 20px;
    border-radius: 10px;
    border: none;
}

.search {
    position: relative;
    width: 190px;
}

#project-name {
  text-align:left;
  color: black;
  font-weight: bold;
  padding: 0 26px;
  margin-bottom: 0;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}

#project-description {
  text-align:center;
  color: black;
  font-style: italic;
}


.preview-toolbar
{
  text-align: left;
  margin: 0 0;
  outline:0;
  padding:0;
  border:0;
  /*border-bottom-right-radius: 6px;
  border-bottom-left-radius: 6px;*/
  display:flex;
  /*flex-wrap: nowrap;
  justify-content: space-between;*/
}

.preview-toolbar-items
{
  position: relative;
  display: inline-block;
  flex: 1;
}

.preview-toolbar-items2
{
  position: relative;
  display: inline-block;
  cursor: pointer;
  /*flex: 1;*/
}

.preview-toolbar-items img {
  margin-left: 5px;
  margin-right: 5px;
  width:  24px;
  height: 24px;
}

#ray_ground_fb_resolution_wrapper {
    height:23px;
    vertical-align:middle;
    display:table-cell;
}

#ray_ground_fb_resolution {
  vertical-align:middle;
  padding:0px 5px 0px 5px;
}

.editor-toolbar {
  color:white;
  margin:0;
  border:0;
  font-size: 16px;
  background-color: rgb(0,0,0);
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
    padding:5px 5px 5px 5px;
}

.project-options span {
  margin: 0 10px;
  font-size: 1.17em;
  font-size: 1.17em;
  font-weight: bold;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  word-break: break-word;
}

.project-options span[contenteditable]:hover {
  /*border: 1px dotted black;*/
  outline: 1px solid silver;
}

.fas.fa-pause,
.fas.fa-play,
.fas.fa-image,
.fas.fa-fast-backward,
.fas.fa-sync-alt,
.fas.fa-expand-arrows-alt,
.fas.fa-info-circle {
    transition: opacity 0.3s ease;
    font-size: 26px;
    color: #000;
    opacity:0.6;
}

.fas:hover.fa-pause,
.fas:hover.fa-play,
.fas:hover.fa-image,
.fas:hover.fa-fast-backward,
.fas:hover.fa-sync-alt,
.fas:hover.fa-expand-arrows-alt,
.fas:hover.fa-info-circle {
    opacity:1;
}

.fas.fa-tools,
.fas.fa-upload,
.fas.fa-download,
.fas.fa-camera {
    transition: opacity 0.3s ease;
    font-size: 26px;
    color: rgb(218,165,32);
    padding:0px 5px 0px 5px;
    opacity:0.8;
}

.fas:hover.fa-tools,
.fas:hover.fa-upload,
.fas:hover.fa-download,
.fas:hover.fa-camera {
    opacity:1;
}


.tablinks:first-of-type {
	border-top-left-radius: 4px;
}

.tablinks:last-of-type {
	border-top-right-radius: 4px;
}

/*@media only screen and (min-width: 984px) {*/
  #ray-toy-canvas {
    width : 256px;
    height: 192px;
  }

  #canvas-toolbar {
    min-width: 264px;
    max-width: 264px;
    width: 264px;
    box-sizing: border-box;
  }

  #ray-toy-canvas.square_aspect_ratio {
    height: 256px;
  }
  #ray-toy-canvas.traditional_aspect_ratio {
    height: 192px;
  }
  #ray-toy-canvas.widescreen_aspect_ratio {
   height: 144px;
  }

/*}*/

@media only screen and (min-width: 1308px) {
  #ray-toy-canvas {
    width : 512px;
    height: 384px;
  }
  #canvas-toolbar {
    min-width: 520px;
    max-width: 520px;
    width: 520px;
    box-sizing: border-box;

  }

  #ray-toy-canvas.square_aspect_ratio {
    height: 512px;
  }
  #ray-toy-canvas.traditional_aspect_ratio {
    height: 384px;
  }
  #ray-toy-canvas.widescreen_aspect_ratio {
   height: 288px;
  }

}

@media only screen and (min-width: 1696px) {
  #ray-toy-canvas {
    width : 800px;
    height: 600px;
  }

  #canvas-toolbar {
    min-width: 808px;
    max-width: 808px;
    width: 808px;
    box-sizing: border-box;
  }

  #ray-toy-canvas.square_aspect_ratio {
    height: 800px;
  }
  #ray-toy-canvas.traditional_aspect_ratio {
    height: 600px;
  }
  #ray-toy-canvas.widescreen_aspect_ratio {
   height: 450px;
  }
}

@media only screen and (min-width: 2144px) {
  #ray-toy-canvas {
    width : 1024px;
    height: 768px;
  }

  #canvas-toolbar {
    min-width: 1032px;
    max-width: 1032px;
    width: 1032px;
    box-sizing: border-box;
  }

  #ray-toy-canvas.square_aspect_ratio {
    height: 1024px;
  }
  #ray-toy-canvas.traditional_aspect_ratio {
    height: 768px;
  }
  #ray-toy-canvas.widescreen_aspect_ratio {
   height: 576px;
  }
}

@media only screen and (min-width: 2656px) {
  #ray-toy-canvas {
    width : 1280px;
    height: 960px;
  }

  #canvas-toolbar {
    min-width: 1288px;
    max-width: 1288px;
    width: 1288px;
    box-sizing: border-box;
  }

  #ray-toy-canvas.square_aspect_ratio {
    height: 1280px;
  }
  #ray-toy-canvas.traditional_aspect_ratio {
    height: 960px;
  }
  #ray-toy-canvas.widescreen_aspect_ratio {
   height: 720px;
  }
}

@media only screen and (min-width: 2984px) {
  #ray-toy-canvas {
    width : 1444px;
    height: 1083px;
  }

  #canvas-toolbar {
    min-width: 1452px;
    max-width: 1452px;
    width: 1452px;
    box-sizing: border-box;
  }

  #ray-toy-canvas.square_aspect_ratio {
    height: 1444px;
  }
  #ray-toy-canvas.traditional_aspect_ratio {
    height: 1083px;
  }
  #ray-toy-canvas.widescreen_aspect_ratio {
   height: 812px;
  }
}

@media only screen and (min-width: 3936px) {
  #ray-toy-canvas {
    width : 1920px;
    height: 1440px;
  }

  #canvas-toolbar {
    min-width: 1928px;
    max-width: 1928px;
    width: 1928px;
    box-sizing: border-box;
  }

  #ray-toy-canvas.square_aspect_ratio {
    height: 1920px;
  }
  #ray-toy-canvas.traditional_aspect_ratio {
    height: 1440px;
  }
  #ray-toy-canvas.widescreen_aspect_ratio {
   height: 1080px;
  }
}


#error-icon-scene, #error-icon-gen, #error-icon-hit, #error-icon-miss, #error-icon-pp
{
  display: none;
  color: red;
}

div.citation {
  width: 100%;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  text-align: left;
    padding: 6px 16px;
}