* {
  padding: 0;
  box-sizing: border-box;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

body, html {
  width: 100%;
  height: 100%;
  color: white;
}

a {
  text-decoration: none;
}

body {
  background: #39363f;
}
/* Custom HTML Tags */
warn, success {
  min-width: 300px;
  padding: 10px;
  background: #432e2e;
  border: 2px solid #a32b2b;
  color: white;
  display: table;
  border-radius: 5px;
  position: relative;
  margin: 10px 0;
}

warn::before, success::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 600;
  content: "\f071";
  width: 20px;
  height: 20px;
  color: white;
  margin-right: 10px;
}

success {
  background: #2e4336;
  border-color: #2ba33f;
}

success::before {
  content: "\f00c";
}
.xbutton.orange {
  background: orange;
}
.xbutton.black {
  background: black;
}
/* width */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #eee;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 5px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.xbutton {
  background: #654195;
  cursor: pointer;
  border-radius: 5px;
  border: 1px solid #000;
  display: inline-block;
  padding: 7px 15px;
  color: white;
}

.xbutton.green {
  background: #41955b;
}

.xbutton.red {
  background: #bc3131;
}

.note {
  font-size: 13px;
  opacity: 0.7;
  color: white;
}

.wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  margin-top: 25px;
}

.top-ribbon {
  width: 100%;
  height: 25px;
  background: #2c2a2e;
  padding: 3px;
  font-weight: bold;
  color: #b0aabb;
  position: fixed;
  top: 0;
  left: 0;
}

#sidebar {
  width: 300px;
  height: calc(100vh - 25px);
  position: fixed;
  left: 0;
  top: 25px;
  background: #312f36;
  padding: 5px;
  z-index: 100;
  transition: transform .5s;
}

#sidebar.opened {
  transform: inherit !important;
}

#sidebar .close-open {
  position: absolute;
  top: 0;
  left: 100%;
  width: 30px;
  height: 30px;
  border: 1px solid #000;
  border-left: 0;
  background: #000;
  border-radius: 0 5px 5px 0;
  background: #312f36;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  display: none;
}

#sidebar .close-open .fas {
  transition: transform .3s;
}

#sidebar.opened .close-open .fas {
  transform: rotate(180deg);
}

#sidebar .item {
  width: 100%;
  padding: 20px;
  background: transparent;
  color: #ffffff77;
  font-size: 17px;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color .1s, color .1s;
  margin: 3px 0;
}

#sidebar .item:hover {
  color: #ffffff99;
  background: #ffffff11;
}

#sidebar .item .icon {
  width: 50px;
  height: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

#sidebar .item.selected {
  color: white;
  background: #ffffff22;
}

.page-body {
  width: 100%;
  height: 100%;
  padding: 20px;
  padding-left: 350px;
}

.page-body .page-title {
  width: 100%;
  border-bottom: 1px solid #2e2c30;
  padding: 5px 10px;
  color: #fff;
  font-weight: bold;
}

.page-body .page-title i {
  color: #ffffff77;
  margin: 0 7px;
}

.page-body .screen-container {
  width: 80%;
  margin: 0 auto;
  margin-top: 20px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
}

.page-body .screen-container .card-box {
  width: 70%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.page-body .screen-container .col {
  width: 29.5%;
  display: flex;
  flex-direction: column;
}

.page-body .screen-container .col .col-title {
  color: white;
  font-size: 13px;
}

.page-body .screen-container .col .item {
  width: 100%;
  padding: 20px;
  color: white;
  background: #232125;
  margin-bottom: 0;
  border-radius: 5px;
  margin: 5px 0px 0px 0px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  transition: background-color 1s, max-hieght 2s, opacity 1s, padding 0.5s;
  opacity: 1;
  max-height: 300px;
}

.page-body .screen-container .col .item.hide {
  max-height: 0px;
  opacity: 0;
  background: red;
  padding: 0px;
  margin: 0;
}

.page-body .screen-container .col .item .device {
  font-size: 20px;
  background: #ffffff11;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  top: 3px;
  left: 5px;
  font-weight: bold;
}

.page-body .screen-container .col .item .game-logo {
  width: 35px;
}

.page-body .screen-container .col .item .game-logo img {
  width: 100%;
}

.page-body .screen-container .card-box .col {
  width: 49.5%;
  display: flex;
  flex-direction: column;
}

.page-body .screen-container .card {
  width: 100%;
  padding: 20px;
  height: auto;
  border-radius: 5px;
  background: #232125;
  color: white;
  margin: 5px 0;
  transition: max-height 1s, opacity .7s, padding 0.5s;
  max-height: 400px;
  opacity: 1;
}

.page-body .screen-container .card.hidden {
  max-height: 0;
  padding: 0;
}

.page-body .screen-container .card p {
  padding: 10px 10px 0px 10px;
  font-size: 13px;
  border-top: 1px solid #555;
  color: #999;
}

.page-body .screen-container .card.special {
  background: rgb(141, 0, 156);
  background: linear-gradient(130deg, rgba(141, 0, 156, 1) 0%, rgba(208, 123, 201, 1) 100%);
}

.page-body .screen-container .card .title {
  font-weight: bold;
  margin: 10px 0;
}

form {
  padding: 50px;
}

form p {
  color: white;
}

form input, form select, form textarea {
  width: 300px;
  max-width: 80%;
  padding: 10px 15px !important;
  border: 1px solid #000;
  margin: 10px 0;
  outline: 0;
  border-radius: 5px;
  background: #2a292e;
  color: white;
}

form input[type="color"] {
  padding: 0;
  height: 50px;
}

form input[type="checkbox"], form input[type="radio"] {
  display: inherit;
}

input {
  position: relative;
  float: right;
}
table, th, td {
  padding: 5px;
  margin: 0;
  text-align: center;
  font-size: 15px;
  color: white;
}

th, td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

table {
  width: 90%;
  margin: 0 auto;
  max-width: 80%;
}

/* Background Shapes START */
.background-shapes {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

.background-shapes .shape {
  position: absolute;
}

.background-shapes .shape img {
  width: 100%;
}

.shape1 {
  width: 300px;
  opacity: 0.2;
  top: 200px;
  left: 300px;
}

.shape2 {
  width: 200px;
  opacity: 0.3;
  bottom: 50px;
  left: 500px;
}

.shape3 {
  width: 600px;
  opacity: 0.3;
  bottom: 40px;
  left: 400px;
}

.shape4 {
  width: 900px;
  opacity: 0.1;
  bottom: 140px;
  left: 600px;
}

.shape5 {
  width: 200px;
  opacity: 0.4;
  bottom: 30px;
  right: 200px;
}

.shape6 {
  width: 400px;
  opacity: 0.1;
  top: 300px;
  left: 400px;
}

.shape7 {
  width: 1000px;
  opacity: 0.8;
  top: 400px;
  left: 600px;
}

.shape8 {
  width: 800px;
  opacity: 0.8;
  top: 400px;
  left: 600px;
}

.shape9 {
  width: 800px;
  opacity: 0.1;
  top: 30px;
  right: 100px;
}

.shape10 {
  width: 100px;
  opacity: 0.3;
  top: 100px;
  right: 400px;
}

.shape11 {
  width: 100px;
  opacity: 0.1;
  top: 500px;
  left: 400px;
  transform: rotate(-20deg);
}

.shape12 {
  width: 60px;
  opacity: 0.1;
  top: 550px;
  right: 400px;
  transform: rotate(20deg);
}

.shape13 {
  width: 120px;
  opacity: 0.1;
  bottom: 200px;
  right: 700px;
}

/* Background Shapes END */
@media only screen and (max-width: 1700px) {
  .page-body .screen-container {
    width: 90%;
  }
}

@media only screen and (max-width: 1500px) {
  .page-body .screen-container {
    width: 100%;
  }

  .page-body {
    padding: 10px;
    padding-left: 310px;
  }

  .page-body .screen-container .col .item .device {
    font-size: 15px;
    width: 30px;
    height: 30px;
  }
}

@media only screen and (max-width: 1000px) {
  #sidebar {
    transform: translateX(-100%);
  }

  .page-body {
    padding: 0;
    margin-top: 70px;
  }

  .page-body .screen-container {
    flex-wrap: wrap;
  }

  .page-body .screen-container .card-box {
    flex-wrap: wrap;
    width: 100%;
  }
  .page-body .screen-container .card-box .col {
    width: 100%;
    margin: 20px 0;
  }


  .page-body .screen-container .col {
    width: 100%;
    margin: 20px 0;
  }

  form {
    padding: 10px;
  }

  #sidebar .close-open {
    display: flex;
  }
}

/* Customize the label (the container) */
.container {
  display: inline-block;
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  cursor: pointer;
  color: #fff;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  height: 18px;
  border: 1px solid #000;
  width: 18px;
  background-color: #8f8f8f;
}

/* On mouse-over, add a grey background color */
.container:hover input~.checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.container input:checked~.checkmark {
  background-color: #2b9f54;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.container input:checked~.checkmark:after {
  display: block;
}

.lds-dual-ring {
  /* display: inline-block; */
  display: none;
  width: 20px;
  height: 20px;
  margin: 0 10px;
}

.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 20px;
  height: 20px;
  margin: 1px;
  border-radius: 50%;
  border: 3px solid #965de1;
  border-color: #965de1 transparent #965de1 transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.login-form {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-form form {
  text-align: center;
}

.systemTut {
  display: none;
  width: 300px;
  padding: 20px;
  position: absolute;
  transform: translateY(calc(-100% + 10px));
  background: linear-gradient(45deg, #390084, #903cff);
  border-radius: 10px;
  /* border: 1px solid #000; */
  font-weight: bold;
  font-size: 19px;
}

.systemTut::after {
  content: "OK";
  cursor: pointer;
  margin: 0 10px;
  background: white;
  color: black;
  padding: 3px;
  font-size: 13px;
  border-radius: 5px;
}
