body {
    background: #424242;
    padding: 0;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

#navigation {
    position: relative;
    top: 20px;
    color: #414141;
    background: #A6A6A6;
    width: 964px;
    height: 40px;
    margin: auto;
    border: 2px solid #414141;
    z-index: 2;
}

#navigation p {
    position: relative;
    left: 10px;
    padding: 0;
    margin-top: 10px;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
}

a:visited { text-decoration: none; color:#414141;}
#grbr:hover, #grbr:active { text-decoration: underline; color:white;}

#graphics:hover, #graphics:active { text-decoration: underline; color:green;}


#container {
    width: 960px;
    height: 840px;
    margin: auto;
    margin-top: 26px;
    border: 0.1em solid #A6A6A6;
    border-radius: 0.5em;
    background: #585858;
    position: relative;
}

#instructions {
    margin: auto;
    position: relative;
    top: 20px;
    width: 100px;
    height: 40px;
}

#cells {
    position: relative;
    z-index: 15;
}

#expansionSliderContainer {
  position: absolute;
  bottom: 0;
  right: calc(50% - 10em);
  margin-bottom: 0.75em;
}

#expansionSlider {
  margin: auto;
  width: 20em;
}

#expansionSliderLabel {
  font-size: 1.5em;
  text-align: center;
  padding-bottom: 0.75em;
}

#about {
    margin: auto;
    position: relative;
    top: 20px;
    width: 100px;
    height: 40px;
}

#jokes {
    margin: auto;
    position: relative;
    top: 20px;
    width: 100px;
    height: 40px;
}

#aboutText {
  transition: opactity 3s ease-in;
  cursor: pointer;
  background: #FFFFFF;
  width: 600px;
  height: 1350px;
  border: 4px solid #424242;
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    color: #FFFFFF;
    width: 100%;
    height: 100%;
}

#crystalType {
    font-size: 40px;
    margin: 0;
    position: absolute;
    text-align: center;
    top: 30px;
    width: 100vw;
}

#controlButtons {
    position: relative;
    z-index: 15;
}

#crystalSelector {
    width: 160px;
    height: 20px;
}

#displaySelector {
    position: relative;
    top: 20px;
    width: 160px;
    height: 20px;
}

#legend {
    margin: auto;
    position: relative;
    top: 20px;
    width: 100px;
    height: 40px;
}

#color {
    margin: auto;
    position: relative;
    top: 20px;
    width: 100px;
    height: 40px;
}

#closeAbout {
  font-size: 3em;
  padding: 0.5em;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  background: none;
  border: none;
}

#closeAbout:hover {
  color: #ccc;
}

#closeAbout:active {
  color: #aaa;
}

#return {
    margin: auto;
    position: relative;
    top: 20px;
    width: 150px;
    height: 40px;
}

#simulation {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: hidden;
}

#legendText {
    /*width: 960px;*/
    height: 0px;
    margin: auto;
    margin-top: 26px;
    line-height: 22vh;
    top: 50vh;
    right: calc(50% - 31.5px);
    position: absolute;
    z-index: 10;
    float: top;
}

#legendText center {
  position: relative;
  top: -40vh;
  display: flex;
  flex-direction: column;
}

#legendText center p {
  padding: 0;
  margin: 0;
}

#hcpHighlightTypeSelector {
  z-index: 20;
  font-size: 1.5em;
  position: absolute;
  float: right;
  top: 0;
  right: 0;
  background-color: #ccc;
  border: 0.1em solid #444;
  border-top: none;
  border-right: none;
  border-bottom-left-radius: 5px;
}

#hcpRingAndLevelSelector {
  font-size: 1.5em;
  position: absolute;
  float: right;
  bottom: 0;
  right: 0;
  background-color: #ccc;
  border: 0.1em solid #444;
  border-bottom: none;
  border-right: none;
  border-top-left-radius: 5px;
  padding: 1em;
}

#viewModeSelector {
  font-size: 1.5em;
  position: absolute;
  float: left;
  bottom: 0;
  left: 0;
  background-color: #ccc;
  border: 0.1em solid #444;
  border-bottom: none;
  border-left: none;
  border-top-right-radius: 5px;
  padding-left: 1em;
  padding-right: 1em;
}

#controlContainer {
  z-index: 20;
  font-size: 1.5em;
  position: absolute;
  float: left;
  top: 0;
  left: 0;
  background-color: #ccc;
  border: 0.1em solid #444;
  border-top: none;
  border-left: none;
  border-bottom-right-radius: 5px;
  padding-left: 1em;
  padding-right: 1em;
}

/*-------------------------------- ADDED BY JD 2021 06 28 ---------------------------------------*/

.insetTopright{
  position: relative;
  float:right;
}

.info-div{
  position:absolute;
  right:30px;
  top:30px;
  left:30px;
  background-color:#eee;
  padding:10px 20px;
  border-radius:5px;
  border:solid 1px #000;
  overflow-y:auto;
  z-index:1;
  max-height:80vh;
  transition: right 1s,left 1s,top 1s,bottom 1s;
}

.insetRight{
  left:70%;
  right:10px;
}

.insetLeft{
  right:70%;
  left:10px;
}

.insetCenter{
  left:10px;
  right:10px;
}

.insetBottom{
  top:auto;
  bottom:10px;
}

.insetTop{
  top:10px;
  bottom:auto;
}

.insetFill{
  left:10px;
  right:10px;
  bottom:10px;
  top:10px;
}

.my-2 {
    margin-top: .5rem!important;
    margin-bottom: .5rem!important;
}
.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}
.alert-dismissible {
    padding-right: 3rem;
}
.alert {
    position: relative;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
}
.fade {
    transition: opacity .15s linear;
}
.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
        user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    border-radius: .25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: .25em .25em;
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: .25rem;
    opacity: .5;
}

.btn-dark {
    color: #fff;
    background-color: #212529;
    border-color: #212529;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}
.alert-dismissible {
    padding-right: 3rem;
}
.alert {
    position: relative;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
}

@media only screen and (max-width: 768px) {
  /* For small screens */
  .insetRight{
    bottom:0px;
    top:auto;
    left: 0px;
    right:0px;
    max-height: 40vh;
  }

  .insetLeft{
    bottom:0px;
    top:auto;
    left: 0px;
    right:0px;
    max-height: 40vh;
  }

  .insetCenter{
    top:0px;
    bottom:0px;
  }

  .insetBottom{
    top:auto;
    bottom:0px;
  }

  .insetTop{
    top:0px;
    bottom: auto;
  }

  .insetFill{
    left:0px;
    right:0px;
    bottom:0px;
    top:0px;
  }


}

/* CSS added by JD */
.glow{
  -webkit-animation: mymove 4s infinite;
          animation: mymove 4s infinite;
}

@-webkit-keyframes mymove {
  50% {
    box-shadow: 0px 0px 10px 10px gold;
    background-color: gold;
  }
}

@keyframes mymove {
  50% {
    box-shadow: 0px 0px 10px 10px gold;
    background-color: gold;
  }
}
