/**
 * Header
 */

.header {
  box-sizing: border-box;
  font-size: 16px;
  height: 85px;
  line-height: 40px;
  padding: 20px 70px 0px 70px; /* TRouBLe */
  position: fixed;
  width: 100%;
  z-index: 1000;
  margin: 0;
  border-bottom: 5px solid #00a7e9;
}

.header h1 {
  flex: 1;
  font-size: 20px;
  font-weight: 400;
}

.header button {
  border: solid 2px #fff;
  background-color: rgb(128, 127, 131);
  color: #fff;
  margin-left: 20px;
  height: 30px;
}

.header button:hover {
  background-color: rgb(128, 127, 131);
  color: #000;
}

button {
  height: 25px;
  font-size: 16px;
  border-radius: 15px;
  padding-left: 20px;
  padding-right: 20px;
  border-width: 2px;
}

body {
  font-family: proxima-nova, sans-serif;
  font-style: normal;
  font-weight: 400;
  margin: 0;
}

p {
  margin: 0;
}

input, select, button, label {
  font-weight: 600;
  outline: none;
}

div.left {
  float: left;
  display: flex;
  align-items: center;
}

div.right {
  float: right;
  display: flex;
  align-items: center;
}

div.clear {
  clear: both;
}

.Adafruit-Logo {
  width: 600px;
  height: 50px;
  /*object-fit: contain;*/
  object-position: 0mm;
}

.main {
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: 80px;
}

.hidden {
  display: none;
}

.notSupported {
  padding: 1em;
  margin-top: 1em;
  margin-bottom: 1em;
}

.subheader {
  height: 90px;    /*originally 100px*/
  line-height: 90px;/*originally 100px*/
  padding-left: 70px;
  padding-right: 70px;
}

.subheader .title {
  font-size: 36px;
  font-weight: 500;
}

#dashboard {
  position: relative;
  /*margin-top: 10em;*/
  height: calc(85vh - 190px);/*height: calc(60vh - 190px);*/
  margin: 0 auto;
  overflow-y: auto;
  padding: 0 60px;
}
/* 框框改这里 */
#dashboard > div {
  /* width:244px ; */
  width: 1300px; 
  height: 400px;
  /*margin: 0 10px 20px;*/
  margin:  10px 20px;
  border-width: 1px;
  border-style: solid;
  border-radius: 4px;
  float: left;
}

#dashboard .title {
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  line-height: 44px;
  padding-left: 10px;
  text-overflow: ellipsis;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
}

#dashboard .content {
  height: 200px;
  width: 244px;
  font-size: 24px;
  font-weight: 600;
}

/* Text Panel */
#dashboard .text .content {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

#dashboard .text .content p {
  padding: 10px;
  /* padding: 1px; */

}

#dashboard .graph .content,
#dashboard .color .content,
#dashboard .model3d .content {
  position: relative;
}

/* Graph Panel */
#dashboard .graph .content .text {
  /* height: 95px; */
  width: 2400px;
  height: 35px;
}

#dashboard .graph .content .chart {
  /* height: 105px; */
  height: 300px;
  width: 1300px;
}

#dashboard .graph .text {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

#dashboard .graph .text p {
  padding: 10px;
}

#log {
  height: calc(35vh - 190px);/*(40vh - 190px)*/
  width: 100%;
  font-family: pt-mono, monospace;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  overflow-x: hidden;
  overflow-x: auto;
  transition : color 0.1s linear;
  padding: 0 50px;
  /*border: 20px solid #000; deleted*/
  

}

.footer {
  height: 20px;
  line-height: 20px;
  padding-left: 70px;
  padding-right: 70px;
}

.footer button {
  font-size: 14px;
  margin: 100 100px;
  margin-top: 2mm;/*newly added*/
}

.remix {
  display: flex;
  justify-content: center;
  height: 110px;
  position: relative;
}

.remix button {
  position: absolute;
  bottom: 11px;
}

#templates {
  display: none;
}

/* On/Off Switch Widget */
.onoffswitch {
  display: inline-block;
  position: relative;
  width: 50px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  margin-left: 10px;
}

.onoffswitch-checkbox {
  display: none;
}

.onoffswitch-label {
  display: block;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #900;
  border-radius: 15px;
  transition: border 0.3s ease-in 0s;
}

.onoffswitch-inner {
  display: block;
  width: 200%;
  margin-left: -100%;
  transition: margin 0.3s ease-in 0s;
}

.onoffswitch-inner:before,
.onoffswitch-inner:after {
  display: block;
  float: left;
  width: 50%;
  height: 25px;
  padding: 0;
  line-height: 25px;
  font-size: 14px;
  color: white;
  font-family: proxima-nova, sans-serif;
  font-style: normal;
  font-weight: 600;
  box-sizing: border-box;
}

.onoffswitch-inner:before {
  content: "on";
  padding-left: 6px;
  background-color: #8ec641;
  color: #fff;
}

.onoffswitch-inner:after {
  content: "off";
  padding-right: 6px;
  background-color: #c64141;
  color: #fff;
  text-align: right;
}

.onoffswitch-switch {
  display: block;
  width: 19px;
  margin: 3px;
  background: #fff;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 23px;
  border: 1px solid #900;
  border-radius: 15px;
  transition: all 0.3s ease-in 0s;
}

.onoffswitch-checkbox:checked + .onoffswitch-label {
  border-color: #71ae1e;
}

.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
  margin-left: 0;
}

.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
  right: 0px;
  border-color: #67ac38;
}

.footer .onoffswitch {
  margin-right: 20px;
  margin-top: 2mm;/*newly added*/
}

#fpsCounter {
  margin-right: 10px;
}

/* Tone Panel */
#dashboard .play-button .content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#dashboard .play-button .button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f89521;
  width: 75px;
  height: 75px;
  border-radius: 75px;
}

#dashboard .play-button .button span {
  width: 0;
  height: 0;
  border-top: 19px solid transparent;
  border-bottom: 19px solid transparent;
  border-left: 29px solid #fff;
  margin-left: 6px;
  display: block;
}

/* Battery Level Panel */
#dashboard .battery-level .content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#dashboard .battery-level .battery {
  border-width: 5px;
  border-style: solid;
  width: 134px;
  height: 61px;
  padding: 3px;
  border-radius: 10px;
  position: relative;
}

#dashboard .battery-level .battery:after {
  content:"";
  width: 12px;
  height: 20px;
  background: #333;
  display: block;
  position: absolute;
  right: -12px;
  top: 22px;
  border-radius: 0 2px 2px 0;
}

#dashboard .battery-level .battery:hover {cursor:pointer;}

#dashboard .battery-level .level {
  display: block;
  background: #8ec641;
  height: 100%;
}

#dashboard .battery-level .battery-alert .level {
  background: #c64141;
}

#dashboard .battery-level .battery-middle .level {
  background: #f89521;
}

#dashboard .battery-level .percentage {
  margin-top: 10px;
}

/* Switch Panel */
#dashboard .onboard-switch .content {
  display: flex;
  justify-content: center;
  align-items: center;
}

#dashboard .onboard-switch .onoffswitch {
  width: 150px;
  margin-left: 0;
}

#dashboard .onboard-switch .onoffswitch-label {
  border-radius: 38px;
}

#dashboard .onboard-switch .onoffswitch-inner:before,
#dashboard .onboard-switch .onoffswitch-inner:after {
  height: 75px;
  line-height: 75px;
  font-size: 24px;
}

#dashboard .onboard-switch .onoffswitch-inner:before {
  padding-left: 28px;
}

#dashboard .onboard-switch .onoffswitch-inner:after {
  padding-right: 28px;
}

#dashboard .onboard-switch .onoffswitch-switch {
  width: 63px;
  margin: 6px;
  right: 72px;
  border-radius: 32px;
}

#dashboard .onboard-switch .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
  right: 0px;
}

/* Buttons Panel */
#dashboard .onboard-buttons .content {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  align-items: center;
}

#dashboard .onboard-buttons .buttonpanel {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #b0b0b0;
  border: 1px solid #878787;
  border-radius: 4px;
  width: 94px;
  height: 86px;
}

/* Round Button Widget */
#dashboard .onboard-buttons .roundbtn {
  width: 50px;
  height: 50px;
  border: 5px solid #333;
  display: inline-block;
  background-color: #000;
  -moz-border-radius: 50px;
  -webkit-border-radius: 50x;
  border-radius: 50px;
  -moz-transition: all 35ms linear;
  -o-transition: all 35ms linear;
  -webkit-transition: all 35ms linear;
  transition: all 35ms linear;
  -ms-transition: all 35ms linear;
  -moz-user-select: -moz-none;
  -ms-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

#dashboard .onboard-buttons .roundbtn .inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 50px;
  height: 50px;
  background-color: #454545;
  margin-top: -8px;
  border: 1px solid #676767;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  -moz-transition: margin 35ms 35ms linear;
  -o-transition: margin 35ms 35ms linear;
  -webkit-transition: margin 35ms 35ms;
  -webkit-transition-delay: linear, 0s;
  transition: margin 35ms 35ms linear;
  -ms-transition: margin 35ms 35ms linear;
}

#dashboard .onboard-buttons .roundbtn.pressed .inner {
  margin-top: 0;

  -moz-transition: margin 35ms linear;
  -o-transition: margin 35ms linear;
  -webkit-transition: margin 35ms linear;
  -webkit-transition-delay: 0s, linear;
  transition: margin 35ms linear;
  -ms-transition: margin 35ms linear;
}

#dashboard .onboard-buttons .text {
  color: white;
  text-shadow: rgba(0, 0, 0, 0.5) 0 0 5px;
}
