/* ------- Page Setup ----------------------------------------------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  background-color: rgb(249, 245, 245);
  font-family: "Gotham 5r", sans-serif;
}

.hidden {
  display: none;
}

.show {
  display: show;
}

.rotate-img{
  position: fixed;
  z-index: 10001;
  background-color: white;
  inset: 0;
  max-width: 100%;
  max-height: 100vh;
  object-fit: fill;
}

@font-face {
  font-family: "lato-bold";
  src: url(../assets/fonts/lato/Lato-Bold.ttf);
  }

  @font-face {
  font-family: "lato-light";
  src: url(../assets/fonts/lato/Lato-Light.ttf);
  }

  @font-face {
  font-family: "lato-regular";
  src: url(../assets/fonts/lato/Lato-Regular.ttf);
  }


/* ------- Block Sizes -------------------------------------------------------------------------------*/
.create-background-block {
  width: 156px;
  height: 40px;
}

.setup-block {
  width: 40px;
  height: 40px;
}

.draw-background-block {
  width: 129px;
  height: 28px;
}

.loop-block {
  width: 40px;
  height: 40px;
}

.create-planet-block {
  width: 291px;
  height: 26px;
}

.draw-all-planets-block {
  width: 119px;
  height: 26px;
}

.create-string-block {
  width: 174px;
  height: 27px;
}

.draw-string-block {
  width: 90px;
  height: 28px;
}

.if-planet-crosses-string-block {
  width: 130px;
  height: 40px;
}

.pluck-string-block {
  width: 92px;
  height: 28px;
}

.set-planet-drum-block {
  width: 163px;
  height: 28px;
}

.create-planet-input-block {
  width: 223px;
  height: 40px;
}

.play-planet-drum-block {
  width: 125px;
  height: 28px;
}

.set-planet-note-block {
  width: 153px;
  height: 28px;
}

.set-planet-note-scale-block {
  width: 290px;
  height: 28px;
}

.play-planet-note-block {
  width: 120px;
  height: 28px;
}

/* ------- Navbar ------------------------------------------------------------------------------------*/
.navbar {
  width: 100%;
  height: 5em;
  background-color: #8777B2;
  font-family: "lato-regular";
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  display: block;
  padding-left: 1em;
}

.nasa-logo {
  width: 48px;
  height: 40px;
}

.navbar-middle-container {
  display: flex;
  justify-self: center;
  align-items: center;
  gap: 10px;
}

.prev-next {
  font-family: "lato-regular";
  font-size: 1.6em;
  color: white;
  text-decoration: none;
  letter-spacing: 0.08em;
}

.prev-next:hover {
  text-decoration: underline;
}

.navbar-picker {
  background-color: rgb(255, 255, 255);
  border: 1px solid #9e8cce;
  border-radius: 5px;
  width: 25em;
  height: 4em;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.level-dot {
  border: solid 2px rgb(221, 221, 221);
  background-color: rgb(255, 255, 255);
  border-radius: 50%;
  width: 1.5em;
  height: 1.5em;
  display: inline-block;
  transition: 0.5s;
}

.level-dot:hover {
  background-color: #00BFB2;
}

.level-completed {
  border: solid 1px #ddd;
  background-color: #2CA58D;
  border-radius: 50%;
  width: 1.5em;
  height: 1.5em;
  display: inline-block;
  transition: 0.5s;
}

.level-completed:hover {
  background-color: aqua;
}

.level-number {
  font-family: "lato-regular";
  margin: 0.3em 0.2em;
  width: 3.4em;
  height: 3.4em;
  max-width: 34px;
  max-height: 34px;
  border-radius: 34px;
  font-size: 1.6em;
  line-height: 1.6em;
  border-width: 2px;
  border-color: rgb(198, 202, 205);
  border-style: solid;
  color: rgb(91, 103, 112);
  background-color: rgb(255, 255, 255);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
}

.level-number:hover {
  color: rgb(91, 103, 112);
  background-color: #00BFB2;
}

.navbar-right {
  padding-right: 1em;
  display: flex;
  gap: 10px;
}

.navbar-right-break {
  height: 16px;
  border: 1px solid white;
}

/* ------- Video Modal-------------------------------------------------------------------------------------*/
/* The Modal (background) */
.modal-video {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 100; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
}

/* Modal Content */
.modal-content-video {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  width: 50%;
  /* box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19); */
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop-video;
  animation-duration: 0.4s
}

/* Add Animation */
@-webkit-keyframes animatetop-video {
  from {top:-300px; opacity:0} 
  to {top:0; opacity:1}
}

@keyframes animatetop-video {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

/* The Close Button */
.close-video{
  position: absolute;
  cursor: pointer;
  z-index: 500;
  top: -35px;
  right: -25px;
}

.close-video:hover,
.close-video:focus {
  top: -37px;
  right: -27px;
}

.modal-header-video {
  height: 0;
}

.modal-body-video {
    height: 0px;
  /* padding: 2px 16px; */
}

.video-player {
  height: 400px;
  width: 100%; 
  border: none;
  /* border: 5px solid #8777B2; */
}

.modal-cancel-img {
  width: 50px;
  height: 50px;
}

.video-player {
  width: 100%;
  margin: 0;
}

.modal-backdrop.show {
  opacity: 0.5;
}

/* ------- Completion Modal-------------------------------------------------------------------------------------*/

/* The Modal (background) */
.modal-completion {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 100; /* Sit on top */
  padding-top: 10em; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content-completion {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 3px solid #8777B2;
  width: 60em;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: animatetop-completion;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop-completion;
  animation-duration: 0.4s
}

/* Add Animation */
@-webkit-keyframes animatetop-completion {
  from {top:-300px; opacity:0} 
  to {top:0; opacity:1}
}

@keyframes animatetop-completion {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

.modal-logo-img {
  width: 117px;
  height: 90px;
}

.modal-logo {
  position: absolute;
  z-index: 500;
  top: -40px;
  left: -40px;
}

/* The Close Button */
.close-completion {
  position: absolute;
  cursor: pointer;
  z-index: 500;
  top: -15px;
  right: -15px;;
}

.close-completion:hover,
.close-completion:focus {
  top: -17px;
  right: -17px;;
}

.modal-header-completion {
  height: 0;
  background-color: #8777B2;
  color: white;
  display: flex;
  justify-content: space-between;
}

.modal-body-completion {
  padding: 2px 16px;
}

.modal-footer-completion {
  height: 0;
  background-color: #8777B2;
  color: white;
}

.model-completion-text-header {
  font-family: "lato-bold";
  color: #8777B2;
  margin: 1.3em 0em;
  line-height: 1.2em;
  font-size: 2.2em;
  text-align: center;
}

.model-completion-text {
  font-family: "lato-light";
  margin: 0.8em;
  padding-left: 5em;
  line-height: 1.2em;
  font-size: 1.9em;
}

.modal-completion-buttons {
  display: flex;
  padding: 2em 10em;
  justify-content: space-between;
  align-items: center;
}

.button-continue {
  border: 1px solid #2CA58D;
  border-radius: 5px;
  font-family: "lato-regular";
	background: #2CA58D;
  color: white;
	cursor: pointer;
  margin-right: 0.4em;
  padding: 1.2em 1.2em;
  font-size: 2em;
	outline: none;
  display: flex;
  justify-content: center;
  align-items: center;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.button-text-link {
  text-decoration: none;
}

.button-continue:hover {
  border: 1px solid #3bceb1;
	background: #38c5a9;
}

.button-replay {
  border: 1px solid #8777B2;
  border-radius: 5px;
  font-family: "lato-regular";
	background: #8777B2;
  color: white;
	cursor: pointer;
  margin-right: 0.4em;
  padding: 1.2em 0.6em;
  font-size: 2em;
	outline: none;
  display: flex;
  justify-content: center;
  align-items: center;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.button-replay:hover {
	background: #a08fcf;
}

.button-reset-cancel {
  border: 1px solid #8777B2;
  border-radius: 5px;
  font-family: "lato-regular";
	background: #8777B2;
  color: white;
	cursor: pointer;
  margin-right: 0.4em;
  padding: 1.2em 0.6em;
  font-size: 2em;
	outline: none;
  display: flex;
  justify-content: center;
  align-items: center;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.button-reset-cancel:hover {
	background: #a08fcf;
}

.button-reset-yes {
  border: 1px solid #2CA58D;
  border-radius: 5px;
  font-family: "lato-regular";
	background: #2CA58D;
  color: white;
	cursor: pointer;
  margin-right: 0.4em;
  padding: 1.2em 1.2em;
  font-size: 2em;
	outline: none;
  display: flex;
  justify-content: center;
  align-items: center;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.button-reset-yes:hover {
  border: 1px solid #3bceb1;
	background: #38c5a9;
}

.button-save {
  border: 1px solid #2CA58D;
  border-radius: 5px;
  font-family: "lato-regular";
	background: #2CA58D;
  color: white;
	cursor: pointer;
  margin-right: 0.4em;
  padding: 1.2em 1.2em;
  font-size: 2em;
	outline: none;
  display: flex;
  justify-content: center;
  align-items: center;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.button-save:hover {
  border: 1px solid #3bceb1;
	background: #38c5a9;
}

.button-saved {
  border: 1px solid #3bceb1;
  border-radius: 5px;
  font-family: "lato-regular";
	background: #38c5a9;
  color: white;
	cursor: pointer;
  margin-right: 0.4em;
  padding: 1.2em 1.66em;
  font-size: 2em;
	outline: none;
  display: flex;
  justify-content: center;
  align-items: center;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

/* ------- Main Area---------------------------------------------------------------------------------*/

.main-area {
  height: 90%;
  /* background: #ffffff; */
  margin: 1em;
  display: flex;
  justify-content: space-between;
}

/* .main-left-column {

} */

#myCanvas {
  background-color: white;
  max-width: 400px;
  max-height: 400px;
}

#defaultCanvas0 {
  background-color: white;
  max-width: 400px;
  max-height: 400px;
}

.canvas-border {
  border: 1px solid black;
}

.main-below-canvas {
  margin-top: 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.button-share-container {
  margin: 1em;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slidecontainer {
  width: 20em;
  display: flex;
  flex-direction: column;
}

.slidecontainer-icons {
  padding-bottom: 0.5em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slider {
  /* -webkit-appearance: none; */
  width: 100%;
  height: 1.1em;
  border-radius: 5px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity .2s;
}

.slider:hover {
  opacity: 1;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  background: #8777B2;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  background: #8777B2;
  cursor: pointer;
}

.slider-img-tortoise {
  width: 28px;
  height: 15px;
}

.slider-img-hare {
  width: 23px;
  height: 15px;
}

.run-button {
	border: none;
	background: #8777B2;
  font-family: "lato-bold";
	cursor: pointer;
	padding: 1em 2em;
	outline: none;
  display: flex;
  justify-content: center;
  align-items: center;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.run-button-img {
  width: 40px;
  height: 40px;
}

.run-button:hover {
	background: #a08fcf;
}

.run-button:active {
	background: #a08fcf;
	top: 0.2em;
}

.stop-button {
	border: none;
	background: #C8301B;
	cursor: pointer;
	padding: 1em 1.55em;
	outline: none;
  display: flex;
  justify-content: center;
  align-items: center;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.stop-button:hover {
	background: #ed432d;
}

.stop-button:active {
	background: #c12424;
	top: 0.2em;
}

.button-text {
  font-family: "lato-bold";
  padding-left: 0.8em;
  color: white;
  font-size: 1.8em;
  letter-spacing: 0.1em;
}

.button-share {
	border: none;
	background: #8777B2;
  font-family: "lato-bold";
	cursor: pointer;
	padding: 1em 2em;
	outline: none;
  display: flex;
  justify-content: center;
  align-items: center;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.button-share-img {
  width: 40px;
  height: 40px;
}

.button-share:hover {
	background: #a08fcf;
}

.video-button-container {
  margin-top: 2em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.video-popup {
  width: 25em;
  height: 14em;
}

.video-popup:hover {
  box-shadow: 2px 2px gray
}

.video-button-text {
  padding-top: 0.5em;
  font-size: 2em;
  letter-spacing: 0.03em;
}

.main-right-column {
  /* border: 1px solid red; */
  padding-left: 2em;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.main-right-top {
  padding-bottom: 1em;
}

.toolbox-header-container {
  height: 3.5em;
  background-color: #000D46;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* .toolbox-header {
  height: 100%;
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
} */

.toolbox-header-text {
  font-family: "lato-bold";
  font-size: 1.6em;
  color: white;
  letter-spacing: 1px;
}

.text-toolbox {
  padding-left: 6em;
  padding-right: 10em;
}

.button-reset {
  border: 1px solid #8777B2;
  border-radius: 5px;
  font-family: "lato-regular";
	background: #8777B2;
  color: white;
	cursor: pointer;
  margin-right: 0.4em;
  padding: 0.3em 0.6em;
	outline: none;
  display: flex;
  justify-content: center;
  align-items: center;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.button-reset:hover {
	background: #a08fcf;
}

.instructions-header {
  height: 3.5em;
  background-color: #000D46;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.instructions-header-text {
  font-family: "lato-bold";
  font-size: 1.6em;
  color: white;
  letter-spacing: 1px;
  padding-left: 10px;
}

.audio-button {
  background-color: #e3e3e3;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-top: 0.5em;
  margin-right: 0.5em;
  padding: 0.5em;
}

.audio-img {
  width: 25px;
  height: 25px;
}

.audio-button:hover {
  background-color: #a08fcf;
}

 .instructions-body {
   padding: 0.2em;
   height: 11em;
   width: 100%;
   background-color: #e3e3e3;
   overflow-y: auto;
   display: flex;
   flex-direction: column;
 }

 .instructions-text-box {
  background-color: white;
  border-radius: 5px;
  margin: 0.5em;
  flex-wrap: wrap;
  flex: 1;
}

.instructions-text {
  font-family: "lato-light";
  margin: 0.5em;
  line-height: 1.2em;
  font-size: 1.9em;
}

.instructions-text-row-one {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.instructions-text-box-new {
  background-color: white;
  border-radius: 5px;
  margin: 0.5em;
  flex-wrap: wrap;
  flex: 1;
}

.instructions-text-one {
  font-family: "lato-light";
  margin: 0.5em;
  line-height: 1.2em;
  font-size: 1.9em;
}

.instructions-text-two {
  font-family: "lato-light";
  margin: 0.5em;
  line-height: 1.2em;
  font-size: 1.9em;
}

.instructions-block-images {
  margin: 0 0.3em;
  vertical-align: middle;
}

.handler_horizontal {
    cursor: row-resize;
    height: 1em;
}

.resize-circles-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 0.4em;
  gap: 2px;
}

.resize-circles {
  height: 1em;
  width: 1em;
  background-color: #bbb;
  border-radius: 50%;
}

.blocklyContainer {
  /* border: 1px solid red; */
  position: relative;
  width: 100%;
  height: 100%;
}

#blocklyDiv {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}


 /*---------- Dropdown Button -------------------------------------------------------*/
 .dropbtn {
  background-color: #3498DB;
  color: white;
  padding: 0.95em 1.8em;
  font-size: 1.6em;
  border: none;
  cursor: pointer;
}

/* Dropdown button on hover & focus */
.dropbtn:hover, .dropbtn:focus {
  background-color: #2980B9;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  font-family: "lato-regular";
  font-size: 1.4em;
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 16.9em;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 0.6em 1.6em;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #ddd;}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {display:block;}


@media ((orientation: landscape) and (max-height: 850px)) or ((orientation: portrait) and (max-width: 850px)) {

  html {
      font-size: 55%;
  }

  .navbar-picker {
    width: 30em;
  }

  .prev-next {
    font-size: 1.5em;
  }

  #myCanvas {
    max-width: 350px;
    max-height: 350px;
  }

  #defaultCanvas0 {
    max-width: 350px;
    max-height: 350px;
  }

  .video-button-container {
    margin-top: 1em;
  }

  .video-popup {
    width: 20em;
    height: 11em;
  }

  .video-button-text {
    padding-top: 0.5em;
    font-size: 2em;
    letter-spacing: 0.03em;
  }
}

@media ((orientation: landscape) and (max-height: 450px)) or ((orientation: portrait) and (max-width: 450px))  {

  html {
      font-size: 45%;
  }

  .nasa-logo {
    width: 42px;
    height: 35px;
  }

  .modal-logo-img {
    width: 104px;
    height: 80px;
  }

  .navbar-picker {
    width: 30em;
  }

  .level-number {
    width: 2.4em;
    height: 2.4em;
  }

  .prev-next {
    font-size: 1.5em;
  }

  #myCanvas {
    max-width: 220px;
    max-height: 220px;
  }

  #defaultCanvas0 {
    max-width: 220px;
    max-height: 220px;
  }

  .slidecontainer {
    width: 15em;
  }

  .slider::-moz-range-thumb {
    width: 1.5em;
    height: 1.5em;
  }

  .run-button {
    padding: 0.5em 0.5em;
  }

  .stop-button {
    padding: 0.5em 0.3em;
  }

  .button-text {
    padding-left: 0.8em;
    font-size: 1em;
    letter-spacing: 0.1em;
  }

  .run-button-img {
    width: 25px;
    height: 25px;
  }

  .button-share {
    padding: 0.5em 0.5em;
  }

  .button-share-img {
    width: 25px;
    height: 25px;
  }

  .video-button-container {
    margin-top: 1em;
  }

  .video-popup {
    width: 11em;
    height: 5.5em;
  }

  .video-button-text {
    padding-top: 0.1em;
    font-size: 1.5em;
    letter-spacing: 0.03em;
  }

  .video-player {
    height: 300px;
  }

  .modal-video {
    padding-top: 70px;
  }

  .button-reset {
    padding: 0.1em 0.2em;
    font-size: 1.5em;
  }

  .button-share {
    padding: 0.1em 0.2em;
    font-size: 1.5em;
  }

  .audio-button {
    width: 35px;
    height: 35px;
  }
  
  .audio-img {
    width: 20px;
    height: 20px;
  }
}

@media ((orientation: landscape) and (max-height: 400px)) or ((orientation: portrait) and (max-width: 400px)) {

  html {
      font-size: 40%;
  }

  .nasa-logo {
    width: 40px;
    height: 33px;
  }

  .modal-logo-img {
    width: 91px;
    height: 70px;
  }

  .modal-logo {
    top: -30px;
    left: -40px;
  }

  #myCanvas {
    max-width: 185px;
    max-height: 185px;
  }

  #defaultCanvas0 {
    max-width: 185px;
    max-height: 185px;
  }

  .slidecontainer {
    width: 12em;
  }

  .slider::-moz-range-thumb {
    width: 1.3em;
    height: 1.3em;
  }

  .video-popup {
    width: 9em;
    height: 4.5em;
  }

  .video-button-text {
    padding-top: 0.1em;
    font-size: 1.5em;
    letter-spacing: 0.03em;
  }

  .video-player {
    height: 250px;
  }

  .modal-video {
    padding-top: 70px;
  }

  .audio-button {
    width: 30px;
    height: 30px;
  }
  
  .audio-img {
    width: 18px;
    height: 18px;
  }

}
