body{
    position:relative;
}

.sidebar {
    height: 100vh;
    width: 265px;
    position: fixed;
    z-index: 1;
    bottom: 0;
    right: 0;
    background-color: black;
    transition: width 0.5s;
    overflow-x: hidden;
    padding-top: 60px;
    
    white-space: nowrap;
    color: white;
    font-family: helvetica, sans-serif;
    white-space: pre-line;
  }

  h1{
    padding-top:10vh;
    white-space: nowrap;
    color: white;
    font-family: helvetica, sans-serif;
    white-space: pre-line;
    padding-left: 8%;
    padding-right: 8%;
  }

  .sidebar p, .sidebar h1, .sidebar a {
      
    padding-left: 8%;
    padding-right: 8%;
      margin-top: 0;
    margin-bottom: 0;
  }
  
  .sidebar a {
    text-decoration: none;
    font-size: 15px;
    color: white;
    border: solid 1px;
    padding: 5px;
    border-color: white;
    text-align: right;
    margin-right: 8%;
    float: right;
  }
  
  .sidebar a:hover {
    color: #f1f1f1;
  }
  
  main .sidebar {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
  }
  .invisible {
    display:none !important;
}

#examples_container{
    height: 57vh;
    padding-left: 8%;
    padding-right: 8%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: space-between;
}

#grid{
    padding-left: 8%;
    padding-right: 8%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 1rem;
}

#grid > div {
    background: black;
    /* padding: 1rem; */
    display: grid;
  }
  
  #grid > div::before {
    content: "";
    padding-bottom: 100%;
    display: block;
  }
  
  #grid > div::before, #grid > div > img{
    grid-area: 1 / 1 / 2 / 2;
}

#grid > div > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

#my-gui-container{
    position: fixed;
    z-index: 10;
    right:0;
    bottom: 40px;
}

#myToggle {
    margin-top: 10px;
}
/* CUSTOM DAT.GUI */

.dg.a {
    margin-right: 0 !important;
}

.dg .main .a {
    background: black !important;
}

.dg.main.taller-than-window .close-button {
    border-top: 1px solid #ddd !important;
}

.dg.main .close-button {
    background-color: #ccc !important;
}
 
.dg.main .close-button:hover {
    background-color: #ddd !important;
}

.dg {
    color: white !important;
    text-shadow: none !important;
}

.dg.main::-webkit-scrollbar {
    background: #fafafa !important;
}

.dg .c .slider:hover .slider-fg{    
    background: white !important;
}
.dg.main::-webkit-scrollbar-thumb {
    background: #bbb !important;
}
 
.dg li:not(.folder) {
    background: #030303 !important;
    border-bottom: 1px solid #ddd !important;
}
 
.dg li.save-row .button {
    text-shadow: none !important;
}
.dg .c .slider:hover{
    background: black !important;
}

.dg .cr.function:hover,.dg .cr.boolean:hover {
    background: black !important;
}
 
.dg .c input[type=text] {
    background:black !important;
}
 
.dg .c input[type=text]:hover {
    background:black !important;
}
 
.dg .c input[type=text]:focus {
    background: #eee !important;
    color: #555 !important;
}
 
.dg .c .slider {
    background: #e9e9e9 !important;
}

.dg .c .slider:hover {
    background: black !important;
}

.dg .c .slider-fg {
    background: white !important;
}

.dg .c .slider {
    background:black !important;
    border: solid 0.2px !important;
    border-color: white !important;
}

.dg .cr.number, .dg .cr.function {
    border-left:none !important;
}

.dg .cr.number input[type=text] {
    color: white !important;
}

.dg.main .close-button.close-bottom{
    display: none !important;
}