html, body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
}

#inputs {
    color: white;
    opacity: 1;
    position: fixed;
    top: 2%;
    left: 1%;
    width: 15%
}

#inputs > * {
    margin-top: 5px;
    margin-bottom: 5px;
}

#joints {
    color: white;
    opacity: 1;
    position: fixed;
    top: 2%;
    right: 1%;
    width: 15%;
    height: 70%;
    overflow: scroll;
    overflow-x: hidden;
}

#joints > * {
    margin-top: 5px;
    margin-bottom: 5px;
}

#lineDiv {
    color: white;
    opacity: 1;
    position: fixed;
    top: 2%;
    left: 2%;
    width: 8%;
    height: 60%;
    overflow: scroll;
    overflow-x: hidden;
}

#lineDiv > * {
    margin-top: 5px;
    margin-bottom: 5px;
}

#bottomDiv {
    color: white;
    width: 80%;
    position: fixed;
    bottom: 5%;
    left: 10%;
}

#bottomDiv > input {
    width: 100%;
}

#topDiv {
    color: white;
    width: 70%;
    position: fixed;
    top: 2%;
    left: 15%;
}

#topDiv > input {
    width: 100%;
}

.horizontalContainer {
    width: 100%;
}

.horizontalContainer > div {
    width: auto !important;
    display: inline-block;
    margin-right: 20px;
    vertical-align: middle;
}

#Animation-Speed-div {
    width: 20% !important;
}

.checkDiv div {
    display: inline-block;
}

.elementDiv {
    width: 100%;
}

.elementDiv > input {
    width: 100%;
}

#Robot-Selector-div {
    text-align: center;
}

#topBlock > * {
    left: 50%;
    margin-top: 5px;
    width: 50%;
}

/* https://www.w3schools.com/howto/howto_css_switch.asp */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-color: #ccc; */
    background-color: #2196F3;
    -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%;
  }

  
.toggleTable {
    color: white;
    opacity: 1;
}

#loading-screen {
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #2c3e50;
	opacity: 1;
 	transition: 1s opacity;
}

#loading-screen.fade-out {
    opacity: 0;
}

#loader {
    display: block;
    position: relative;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: white;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}
#loader:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: gray;
    -webkit-animation: spin 3s linear infinite;
    animation: spin 3s linear infinite;
}
#loader:after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: red;
    -webkit-animation: spin 1.5s linear infinite;
    animation: spin 1.5s linear infinite;
}
@-webkit-keyframes spin {
    0%   {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes spin {
    0%   {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/**/

#top {
    padding: 1rem;
    background-color: #233241;
    color: white;
}

#toggle-robot {
    float: right;
    margin-right: 1rem;
}

#toggle-physics {
    float: right;
}

select {
    padding: .5rem;
    margin-right: 1rem;
}

button {
    padding: .5rem;
}