/*
Copyright 2020-2021 Google LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

html, body {
  background-color: white;
}
#mainContent {
  display: none;
}
.emscripten {
  padding: 0; margin-left: auto; margin-right: auto; display: block;
}
div.emscripten { text-align: center; }
div.emscripten_border { border: 1px solid black; }
/* the canvas *must not* have any border or padding, or mouse coords will be wrong */
canvas.emscripten {
  border: 0px none; background-color: black;
  width: 100%;
  max-width: 1000px;
  max-height: 800px;
  box-shadow: 0px 0px 5px 0px gray;
}
#loadingLogo {
  padding: 1em;
}
#loadingLogo img {
  width: 100%;
  height: auto;
  max-width: 806px;
}
#spinnerInflateMode, #spinnerAnimate {
  display: none;
}
.navbar {
  box-shadow: 0px 0px 5px 0px gray;
}
.navbar-brand {
  font-weight: bold;
}
.nav-btn-header {
  font-size: 75%;
}
.buttonRecord, .buttonRecordInactive {
  width: 50px;
}
.buttonRecord div {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: white;
}
.btn-sm.buttonRecordInactive {
  width: 40px;
}
.btn-sm.buttonRecordInactive span {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: white;
}
@keyframes buttonRecordActive {
  from { background-color: firebrick; }
  to { background-color: red; }
}      
.buttonRecord.active div {
  background-color: red;
  animation-name: buttonRecordActive;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: ease-in-out;
}
.buttonRecord.disabled div {
  animation: none;
  background-color: #ababab;
}
.buttonPause div {
  width: 18px;
  height: 24px;
  border-top: 0px;
  border-right: 6px solid white;
  border-left: 6px solid white;
  border-bottom: 0px;
}
.btn-sm.buttonPauseInactive {
  background-image: url("../imgs/icon_pause.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto 19px;
  width: 35px;
}
.buttonPlay div {
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-right: 0px;
  border-left: 18px solid white;
  border-bottom: 12px solid transparent;
}
.buttonPause.disabled div {
  border-left-color: #ababab;
  border-right-color: #ababab;
}
.buttonPlay.disabled div {
  border-left-color: #ababab;
}
.btn-sm.buttonPlayInactive {
  background-image: url("../imgs/icon_play.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto 19px;
  width: 35px;
}
#buttonRedraw {
  display: none;
}

.btn:not(.dropdown-item) {
  color: white;
  background-color: #007bff;
}
.btn.dropdown-item {
}
.btn:active, .btn.active {
  background-color: #004e9d;
}
.btn.focus, .btn:focus {
}
.btn:hover:not(.disabled) {
  box-shadow: 0px 0px 0px 1px #004e9d;
}
.btn:disabled, .btn.disabled {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}
.btn.inactive:disabled, .btn.disabled.inactive {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
  opacity: 1;
}

.btn-group .btn:not(:first-child):not(.disabled) {
  border-left: 1px solid #004e9d !important;
}
.btn-group .btn {
}

.buttonModeNumbers {
  display: inline-block;
  font-weight: bold;
  color: black;
  margin-right: 0.5em;
  font-weight: bold;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: white;
  text-align: center;
}
.btn-sm .buttonModeNumbers {
  width: 20px;
  height: 20px;
}

.buttonNewProject, .buttonNewProjectInactive {
  background-image: url("../imgs/icon_new_ss2_white.svg");
  fill: white;
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto 23px;
  width: 40px;
}
.btn-sm.buttonNewProjectInactive {
  background-size: auto 18px;
  width: 30px;
}
.buttonSaveProject, .buttonSaveProjectInactive {
  background-image: url("../imgs/icon_save_ss2_white.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto 23px;
  width: 50px;
}
.btn-sm.buttonSaveProjectInactive {
  background-size: auto 18px;
  width: 39px;
}
.buttonOpenProject, .buttonOpenProjectInactive {
  background-image: url("../imgs/icon_open_ss2_white.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 30px auto;
  width: 50px;
}
.btn-sm.buttonOpenProjectInactive {
  background-size: 23px auto;
  width: 39px;
}
.buttonRotate, .buttonRotateInactive {
  background-image: url("../imgs/rotate-gizmo.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto 28px;
  width: 40px;
}
.btn-sm.buttonRotateInactive {
  background-size: auto 22px;
  width: 30px;
}
.buttonRemove, .buttonRemoveInactive {
  background-image: url("../imgs/icon_trash_ss2_white.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto 23px;
  width: 40px;
}
.btn-sm.buttonRemoveInactive {
  background-size: auto 18px;
  width: 30px;
}
label {
  margin: 0px !important;
}
@keyframes buttonFlashAnim {
  from { box-shadow: #004e9d 0px 0px 0px 0px; }
  to { box-shadow: #004e9d 0px 0px 5px 5px; }
}
.buttonFlash {
  animation-name: buttonFlashAnim;
  animation-duration: 0.5s;
  animation-iteration-count: 8;
  animation-direction: alternate;
  animation-timing-function: ease-in-out;
}
.tutorialVideos div {
  background: url("../imgs/tutorial-play.svg") rgba(0,0,0,0.6) no-repeat center center / 30% 30%;
  cursor: pointer;
}
.btn.btn-sm.buttonOtherMenu {
  width: 30px;
  height: 30px;
}
span.keyBox {
  display: inline-block;
  background-image: url("../imgs/key-box.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50px 50px;
  height: 50px;
  width: 50px;
  font-size: 125%;
  font-weight: bold;
  text-align: center;
  line-height: 50px;
}
span.keyBox.keyRect {
  background-image: url("../imgs/key-rect.svg");
  background-size: 124px 50px;
  height: 50px;
  width: 124px;
}
span.keyBox.keyRectBig {
  background-image: url("../imgs/key-rectBig.svg");
  background-size: 124px 50px;
  height: 50px;
  width: 124px;
}
.keySmallerFont {
  font-size: 80% !important;
}

#modalDialogQuickTutorial figcaption {
  display: block;
  margin: auto;
  font-style: italic;
  margin-top: 10px;
}

.navbar-mm-version {
  display: block;
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-size: 50%;
  color: gray;
}

.whatsNewTable td:first-child {
  font-style: italic;
  padding-right: 20px;
  vertical-align: top;
}

.progress #exportAnimationProgress {
  -webkit-transition: none;
  -moz-transition: none;
  -ms-transition: none;
  -o-transition: none;
  transition: none;
}
