iframe {
  border: 0;
}

.bg {
  background-image: url(/teaching/board/slideshow_backgrounds/road-1072821.jpg);
  background-size: cover;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

#bg2 {
  display: none;
}

body {
  font-family: "Quicksand";
  font-weight: 900;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

#board {
  width: 1600px;
  height: 800px;
  text-align: center;
  position: relative;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  z-index: 2;
  overflow-y: auto;
}

@media screen and (max-width: 1019px) {
  #board {
    width: 1200px;
    height: 800px;
  }
}

@media screen and (max-width: 699px) {
  #board {
    width: 900px;
    height: 800px;
  }

  #board.tall {
    width: 900px;
    height: 1000px;
  }
}

#board::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

#board::-webkit-scrollbar-thumb {
  background-color: #777;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
}

#board::-webkit-scrollbar-track {
  background-color: transparent;
}

#board::-webkit-scrollbar-corner {
  background: rgba(0, 0, 0, 0);
}

#scaleable-wrapper {
  resize: both;
  position: relative;
  height: 100%;
}

.card {
  background: #fff;
  border-radius: 7px;
  padding: 3px;
  height: 275px;
  width: 275px;
  margin: 10px 5px;
  position: relative;
  vertical-align: middle;
  display: inline-block;
}

.card .hide {
  position: absolute;
  right: -2px;
  top: -2px;
  background: #000;
  border: 2px #aaa solid;
  font-size: 25px;
  color: #fff;
  width: 31px;
  border-radius: 0 0 0 14px;
  padding-left: 2px;
  padding-bottom: 2px;
  display: none;
  cursor: pointer;
}

.card:hover .hide {
  display: block;
}

.translucent_cards .card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px);
  box-shadow: 0 0 3px #000;
  overflow: hidden;
}

.volume_frame {
  height: 220px;
  width: 220px;
}

.clock_frame {
  width: 270px;
  height: 270px;
}

.timer_frame {
  width: 270px;
  height: 270px;
}

.message_card, .embed_card {
  width: 520px;
  resize: both;
  max-width: 70%;
}

.message_card button.increase_font {
  position: absolute;
  left: 0;
  z-index: 10000;
  background: #000;
  color: #fff;
  bottom: 0;
  border-radius: 0 14px 0 6px;
  padding: 5px 12px;
  border: 2px #aaa solid;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: none;
}

.message_card:hover button.increase_font {
  display: block;
}

.embed_card>div, .embed_card iframe {
  width: 100% !important;
  height: 100% !important;
}

.translucent_cards .message {
  background: rgba(255, 255, 255, 0.7);
}

.message {
  font-size: 34px;
  border-radius: 7px;
  position: absolute;
  top: 7px;
  left: 7px;
  right: 7px;
  bottom: 7px;
  border: 0 !important;
  text-align: left;
  padding: 3px;
  font-family: "Quicksand";
  font-weight: 900;
  resize: none;
  overflow: hidden;
}

.message:focus, .message:focus-visible {
  border: 0 !important;
  outline: 0 !important;
}

#add {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background: #fff;
  color: #000;
  font-size: 36px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  padding: 0px 14px;
  box-sizing: border-box;
  box-shadow: 0 0 10px #000;
  z-index: 1000;
  cursor: pointer;
}

#fade_zone {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1001;
}

#widget_picker {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  background: #eee;
  max-width: 500px;
  max-height: 500px;
  overflow: auto;
  margin: auto;
  border-radius: 7px;
  z-index: 1002;
  padding: 15px;
}

.timer_card {
  font-size: 100px;
  width: 350px;
  text-align: center;
}

.timer_card input {
  display: inline-block;
  border: 0;
  font-size: 100px;
  width: 60px;
  background: transparent;
}

.timer_card input[readonly] {
  outline: 0 !important;
  border: 0 !important;
  cursor: default;
  user-select: none;
}

/* Chrome, Safari, Edge, Opera */
.timer_card input::-webkit-outer-spin-button,
.timer_card input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.timer_card input[type=number] {
  -moz-appearance: textfield;
}

.timer_card button {
  display: block;
  font-size: 80px;
  border-radius: 50%;
  background: #269;
  width: 105px;
  height: 105px;
  padding: 11px 16px;
  color: #fff;
  border: 2px #000 solid;
  margin: 20px auto;
  cursor: pointer;
}

.image_card {
  width: 350px;
}

.image_card div {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

#widget_picker .widget {
  height: 150px;
  box-shadow: 0 0 3px #000;
  border-radius: 7px;
  background: #fff;
  display: inline-block;
  overflow: hidden;
  margin: 10px;
  cursor: pointer;
}

#widget_picker .widget:hover {
  box-shadow: 0 0 15px #000;
}

#widget_picker .widget img {
  height: 150px;
}
