/* General elements */

body {
  margin: 0;
  font-family: "Trebuchet MS", Helvetica, sans-serif;
  background-color: #333;
  color: #ccc;
}

iframe {
  border: none;
}

hr {
  border-color: #555;
}

table { 
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  table-layout: fixed;
}

th, td { 
  padding: 8px 4px;
  text-align: center;
  word-wrap: break-word;
}

th {
  background: #444;
}

h4 {
  margin: 5px 0;
  height: 20px;
}

h3 {
  margin: 5px 0 15px;
}

h5 {
  margin: 5px 0;
}

/* Color text classes */

.gray {
  color: #888;
}

.red {
  color: #e22;
}

.green {
  color: #0a0;
}

/* Tables classes */

table a {
  color: #ccc;
  text-decoration: none;
  border-radius: 6px;
  padding: 6px 12px;
}

table a:hover {
  background-color: #050;
}

table a:active {
  background-color: #030;
}

.tableWrapper {
  overflow-y: auto;
}

.tableWrapper::-webkit-scrollbar, #chatContainer::-webkit-scrollbar {
  width: 6px;
  background-color: #333;
}

.tableWrapper::-webkit-scrollbar-thumb, #chatContainer::-webkit-scrollbar-thumb {
  background-color: #aaa;
  border-radius: 2px;
}

.fixheader {
  overflow-y: auto;
  height: 50px;
}
.fixheader thead th {
  position: sticky;
  top: 0;
}

/* Index page classes and ids */

#divTitle {
  position: fixed;
  top: 1.25vh;
  left: 0;
  width: 100%;
  height: 10vh;
}

#divLinkToWorkshop {
  position: fixed;
  box-sizing: border-box;
  top: 2.25vh;
  right: 2.5vh;
  height: 8vh;
}

#divLinkToWorkshop a {
  text-decoration: none;
  background-color: #000;
  border-radius: 5px;
  padding: 10px;
  color: #ccc;
}

#divLinkToWorkshop a:hover {
  background-color: #050;
}

#divLinkToWorkshop a:active {
  background-color: #030;
}

#divMessagesLog {
  position: fixed;
  top: 12.5vh;
  left: 2.5vw;
  width: 25vw;
  height: 85vh;
}

#divVpManagement {
  position: fixed;
  top: 12.5vh;
  left: 28.75vw;
  width: 42.5vw;
  height: 85vh;
}

#divLobbyInfo {
  position: fixed;
  top: 12.5vh;
  left: 72.5vw;
  width: 25vw;
  height: 85vh;
}

.panel {
  box-sizing: border-box;
  border: 2px solid #555;
  border-radius: 5px;
  padding: 10px;
}

/* lobbyInfo.php classes and ids */

#chatContainer {
  font-size: 11px;
  padding: 5px;
  border: 1px solid #555;
  border-radius: 3px;
  word-wrap: break-word;
}

#tableVps {
  height: calc(50vh - 39px);
}

#tablePlayers, #tableRooms {
  height: calc(25vh - 39px);
}

/* messagesLog.php classes and ids */

#wsWrapper, #chatContainer {
  box-sizing: border-box;
  height: calc(50vh - 39px);
  overflow-y: auto;
}

/* vpManagement.php classes and ids */

.layoutCol2 {
  float: left;
  width: 50%;
  height: 100%;
}

.layoutCol4 {
  float: left;
  width: 25%;
  height: 100%;
}

.layoutRow:after {
  content: "";
  display: table;
  clear: both;
}

.vpCircle {
  width: 4em;
  height: 4em;
  text-align: center;
  border: 0px solid;
  background-color: #222;
  border-radius: 50%;
  position: relative;
  margin: auto;
  vertical-align: middle;
}

.textInCircle {
  position: absolute;
  top: 50%;
  width: 100%;
  text-align: center;
  transform: translate(0, -50%);
}

#listUsers {
  margin: 5px 0;
  width: 80%;
  height: 40px;
  background-color: #222;
  border: 1px solid black;
  color: white;
}

#divSelectVp, #divVpStats {
  height: 20vh;
}

#vpStatus {
  margin-top: 5px;
}

#chartWrapper {
  width: 100%;
  height: calc(60vh - 96px);
}

#timeParagraph {
  display: none;
}

/* Rounded switch */

/* The switch - the box around the slider */
.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: #555;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: #ddd;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #4CAF50;
}

input:focus + .slider {
  box-shadow: 0 0 1px #4CAF50;
}

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%;
}