body {
  margin: 0;
  background-color: #2c3234;
  font-family: "Montserrat", "Tahoma", "Geneva", sans-serif;
  font-weight: 400;
}

.output {
  /* display: none; */
  position: absolute;
  top: 0;
  z-index: 1000;
  color: white;
}

/* JUMBOTRON ACCELEROMETER MESSAGE */
.jumbotron-collapse {
  position: fixed;
  z-index: 100;
  display: none;
}

.jumbotron-container {
  padding: 20px;
}

.home-button {
  text-decoration: none;
  position: absolute;
  top: 0;
  left: 0;
  border: 2px solid;
  color: #fcf3ca;
  font-family: Montserrat, Tahoma, sans-serif;
  padding: 0.6rem 0.8rem;
  border-radius: 2rem;
  z-index: 50;
  font-size: 2rem;
  cursor: pointer;
  margin: 1rem 0.6rem;
}

.home-button:hover {
  background-color: #fcf3ca;
  color: #2c3234;
}

.enable-accel {
  margin: 0;
  border-radius: 0;
  background-color: #41bdd7;
  width: 100vw;
}

.enable-message {
  font-size: 1.2rem;
  padding: 0;
  margin: 0;
  margin-bottom: 14px;
  color: #fff;
}

.btn-enable-accel {
  padding: 5px 10px;
  border-radius: 15px;
  margin-right: 10px;
  font-weight: 500;
  color: #11cbd7 !important;
}

.btn-cancel {
  color: #fff;
}

.btn-cancel:hover {
  color: rgba(255, 255, 255, 0.4);
}

/* HEADER */

.page-header {
  width: 100%;
  text-align: center;
}

.header-stars {
  position: absolute;
  width: 100%;
}

.header-img {
  width: 28%;
  transform: translateX(-4%);
  margin: 1rem 0 0;
  min-width: 12rem;
  max-width: 24rem;
  transition: all 0.3s ease;
  z-index: 5;
}

.header-img:hover {
  transform: translateX(-4%) scale(1.06);
  -webkit-filter: drop-shadow(0px 5px 0px rgba(0, 0, 0, 0.6));
  filter: drop-shadow(0px 5px 0px rgba(0, 0, 0, 0.6));
}

.title-img {
  position: relative;
  z-index: 6;
  width: 90%;
  min-width: 18rem;
  max-width: 55rem;
  display: block;
  margin: 1.5rem auto 3rem;
}

.game-border {
  display: block;
}

.game-border-top {
  /* background-color: #2c3234; */
  border-bottom: 2px solid #fcf3ca;
  transform: translateY(-80%);
  position: relative;
  z-index: -1;
}

.game-border-bottom {
  /* background: #8ec099; */
  transform: scaleY(-1) translateY(-80%);
  margin-top: -2px;
  position: absolute;
  bottom: 0;
  z-index: -1;
}

/* FORCE DIAGRAM SECTION */
.desktop-message {
  position: absolute;
  z-index: 60;
  width: 100vw;
  display: none;
  top: 1rem;
  left: 50%;
  font-size: 1.6rem;
  transform: translateX(-50%);
  text-align: center;
}

.force-diagram-section {
  width: 100vw;
  height: 640px;
  position: relative;
  background-color: #fcf3ca;
  z-index: 5;
}

/* VERTICAL FORCE DIAGRAM */
.vertical-force-diagram {
  width: 340px;
  height: 640px;
  position: absolute;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 45%;
  z-index: 6;
}

.phone-system {
  position: absolute;
  transform: scale(0.7);
  z-index: -1;
}

.vertical-vector,
.gravity-vector {
  position: absolute;
  background-color: #f3775b;
  width: 14px;
  height: 108px;
}

.vertical-vector {
  bottom: 50%;
  transform: translateY(-42px);
  transform-origin: center bottom;
  z-index: 50;
}

.gravity-vector {
  top: 50%;
  transform: translateY(42px);
}

.vertical-vector-head,
.gravity-vector-head,
.vertical-vector-head-inverted {
  position: absolute;
  width: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
}

.vertical-vector-head {
  border-bottom: 40px solid #f3775b;
  margin-top: -320px;
  z-index: 51;
}

.gravity-vector-head {
  border-top: 40px solid #f3775b;
  margin-top: 320px;
}

.vertical-vector-head-inverted {
  border-top: 40px solid #feb434;
  margin-top: 150px;
  transform: scaleX(0);
}

/* FORCE VECTOR LABELS */
.force-label {
  position: absolute;
  left: 50%;
  margin-left: 1.5rem;
  color: #2c3234;
  font-size: 2.8rem;
  font-family: "Montserrat", "Tahoma", "Geneva", sans-serif;
  font-weight: 600;
  white-space: nowrap;
}

.subscript {
  position: relative;
  font-size: 1rem;
  font-weight: 600;
  top: 0.6rem;
  right: 0.5rem;
}

.gravity-force-label {
  margin-top: 100px;
}

.normal-force-label {
  margin-top: -100px;
}

/* ACCELERATION VECTOR  */

.accel-vector-container {
  position: absolute;
}

.accel-vector {
  position: relative;
  transform: scale(0);
  width: 85px;
  height: 280px;
  right: 55px;
}

.accel-heading-container {
  position: absolute;
}

.accel-heading {
  position: relative;
  color: #41bdd7;
  text-decoration: underline;
  font-size: 1.3rem;
  font-family: "Montserrat", "Tahoma", "Geneva", sans-serif;
  font-weight: 600;
  right: 110px;
  bottom: 50px;
}

.accel-label-container {
  position: absolute;
}

.accel-label {
  position: relative;
  color: #41bdd7;
  font-size: 2rem;
  font-family: "Montserrat", "Tahoma", "Geneva", sans-serif;
  font-weight: 600;
  right: 120px;
  bottom: 0;
  transition: margin 0.15s ease;
}

.accel-units {
  font-size: 1.2rem;
  margin-left: 0.15rem;
}

/*///////HORIZONTAL MODE //////*/
.horizontal-force-diagram {
  /* background-color: hotpink; */
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.horizontal-accel-vector-container {
  position: absolute;
  left: 50%;
  z-index: 10;
  transform: translate(-50%, -15%) rotate(0deg);
  transform-origin: bottom center;
  /* transition: all 0.1s ease; */
}

.horizontal-accel-vector {
  height: 20rem;
  transform-origin: bottom center;
  transform: translate(-10%, 0px) scale(0);
  transition: transform 0.1s ease;
}

/* MESSAGE CENTER */
.message-center {
  position: absolute;
  z-index: 5;
}

.message {
  opacity: 1;
  font-size: 1.1rem;
  font-weight: 500;
  font-style: italic;
  color: white;
  background-color: #41bdd7;
  border-radius: 40px;
  -webkit-transition: opacity 1000ms linear;
  transition: opacity 1000ms linear;
  font-family: "Montserrat", "Tahoma", "Geneva", sans-serif;
  font-weight: 300;
}

/* HOLD PHONE UPRIGHT ALERT */

.alert-text {
  position: absolute;
  text-align: center;
  width: 100%;
  left: 0;
  visibility: hidden;
}

.alert-text-top {
  top: 100px;
}

.alert-text-bottom {
  bottom: 100px;
}

.alert-image {
  position: absolute;
  height: 200px;
  visibility: hidden;
}

/************BOTTOM UI***********/
.bottom-ui {
  width: 100%;
  position: absolute;
  bottom: 0;
  z-index: 9;
  text-align: center;
  margin-right: -10px;
}

.mode-icon {
  cursor: pointer;
  transition: all 0.25s;
}

.vert-mode-icon {
  width: 1.4rem;
  margin-right: 1.2rem;
}

.horiz-mode-icon {
  width: 4.9rem;
}

.mode-icon:hover {
  transform: scale(1.15);
}

.mode-icon:active {
  transform: scale(1.08);
}

/*************RECORD UI*************/
.slo-mo-ui {
  width: 100vw;
  height: 640px;
  position: absolute;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  z-index: 8;
}

.button-container {
  text-align: center;
}

.record-btn {
  margin: 0 auto;
  padding: 0;
  display: inline-block;
  line-height: 50px;
  text-align: center;
  position: absolute;
  border-radius: 50%;
  background-color: #8ec099 !important;
  border: none;
  height: 60px;
  width: 60px;
  left: 24%;
  top: 67%;
  transform: translate(-30px, -30px);
}

.record-btn:focus {
  outline: 0;
  box-shadow: 0;
}

/* ********SLOW MOTION SLIDER******** */
#ex1Slider .slider-selection {
  background: #8ec099;
  border-radius: 13px;
}

.slidecontainer {
  position: absolute;
  width: 100%;
  top: 80%;
  text-align: center;
}

.slider.slider-horizontal {
  width: 70%;
}

.slider.slider-horizontal .slider-track {
  height: 26px;
  margin-top: -13px;
  border-radius: 13px;
  background-color: #79b4a7;
  background-image: url("images/slider-bar-bg.png");
}

.slider .slider-handle {
  background: #8ec099;
  border-radius: 13px;
  -webkit-transition: -webkit-transform 0.2s ease-out;
  -moz-transition: -moz-transform 0.2s ease-out;
  -o-transition: -o-transform 0.2s ease-out;
  transition: transform 0.2s ease-out;
  transform: scale(2.5);
}

.slider .slider-handle:hover {
  -moz-transform: scale(2.8);
  -webkit-transform: scale(2.8);
  -o-transform: scale(2.8);
  transform: scale(2.8);
}

.slider-handle-recording {
  background: #6c9477 !important;
}

.slider-handle-active {
  background: #8ec099;
}

.slider.slider-disabled .slider-handle {
  background: #89d1c3;
}

.slider.slider-horizontal .tooltip {
  margin-top: -6px;
  transition: opacity 0.2s linear;
  opacity: 1;
}

.slider.slider-horizontal .tooltip-inner {
  background-color: rgba(0, 0, 0, 0);
  color: #fff;
  font-family: "Montserrat", "Tahoma", "Geneva", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  border-radius: 20px;
}

.slider-handle-glow {
  box-shadow: 0px 0px 2px 1px #ffffbb;
  -webkit-transition-property: -webkit-transform;
  -webkit-transition-duration: 1s;
  -moz-transition-property: -moz-transform;
  -moz-transition-duration: 1s;
  -webkit-animation-name: growshrink;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  -moz-animation-name: growshrink;
  -moz-animation-duration: 2s;
  -moz-animation-iteration-count: infinite;
  -moz-animation-timing-function: linear;
  transition-property: -moz-transform;
  transition-duration: 1s;
  animation-name: growshrink;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@-webkit-keyframes growshrink {
  0% {
    transform: scale(2.6);
  }

  20% {
    transform: scale(2.7);
  }

  30% {
    transform: scale(2.8);
  }

  40% {
    transform: scale(2.9);
  }

  50% {
    transform: scale(3);
  }

  60% {
    transform: scale(2.9);
  }

  70% {
    transform: scale(2.8);
  }

  80% {
    transform: scale(2.7);
  }

  100% {
    transform: scale(2.6);
  }
}

@-moz-keyframes growshrink {
  0% {
    transform: scale(2.6);
  }

  20% {
    transform: scale(2.7);
  }

  30% {
    transform: scale(2.8);
  }

  40% {
    transform: scale(2.9);
  }

  50% {
    transform: scale(3);
  }

  60% {
    transform: scale(2.9);
  }

  70% {
    transform: scale(2.8);
  }

  80% {
    transform: scale(2.7);
  }

  100% {
    transform: scale(2.6);
  }
}

@keyframes growshrink {
  0% {
    transform: scale(2.6);
  }

  20% {
    transform: scale(2.7);
  }

  30% {
    transform: scale(2.8);
  }

  40% {
    transform: scale(2.9);
  }

  50% {
    transform: scale(3);
  }

  60% {
    transform: scale(2.9);
  }

  70% {
    transform: scale(2.8);
  }

  80% {
    transform: scale(2.7);
  }

  100% {
    transform: scale(2.6);
  }
}

.tooltip-min.top {
  display: none;
}

.tooltip-max.top {
  display: none;
}

/* DIVIDER BETWEEN SECTIONS */
.end-of-force-diagram-section {
  margin: 0;
  padding: 0;
}

/* FOOTER */
footer {
  /* position: fixed; */
  bottom: 0;
  border: 1px solid #e6f3e7;
  width: 100%;
  padding: 6px 14px 6px 12px;
  background-color: #f0fff3;
}

.footer-text-left {
  float: left;
  width: 50%;
  text-align: left;
  margin: 0;
}

.footer-text-center {
  float: left;
  width: 20%;
  text-align: center;
  margin: 0;
}

.footer-text-right {
  float: left;
  width: 50%;
  text-align: right;
  margin: 0;
}

.footer-link {
  color: #2b2b2b;
}

.footer-link span {
  color: #6cbc45;
}

.footer-link:hover {
  font-style: italic;
  color: #6cbc45;
  text-decoration: none;
}

.footer-link:hover span {
  color: #2b2b2b;
}

/* ANIMATIONS THAT ANDROID CANNOT HANDLE as of 5/2020 */
@supports (-webkit-touch-callout: none) {
  /* CSS specific to iOS devices */
  .vertical-vector {
    -webkit-transition: -webkit-transform 0.06s ease-out;
    -moz-transition: -moz-transform 0.06s ease-out;
    -o-transition: -o-transform 0.06s ease-out;
    transition: transform 0.06s ease-out;
  }

  .vertical-vector-head {
    -webkit-transition: -webkit-transform 0.06s ease-out;
    -moz-transition: -moz-transform 0.06s ease-out;
    -o-transition: -o-transform 0.06s ease-out;
    transition: transform 0.06s ease-out;
  }

  .vertical-vector-head-inverted {
    -webkit-transition: -webkit-transform 0.06s ease-out;
    -moz-transition: -moz-transform 0.06s ease-out;
    -o-transition: -o-transform 0.06s ease-out;
    transition: transform 0.06s ease-out;
  }

  .force-label {
    -webkit-transition: -webkit-transform 0.1s ease-out;
    -moz-transition: -moz-transform 0.1s ease-out;
    -o-transition: -o-transform 0.1s ease-out;
    transition: transform 0.1s ease-out;
  }

  .accel-vector {
    -webkit-transition: -webkit-transform 0.06s ease-out;
    -moz-transition: -moz-transform 0.06s ease-out;
    -o-transition: -o-transform 0.06s ease-out;
    transition: transform 0.06s ease-out;
  }
}

@supports not (-webkit-touch-callout: none) {
  /* CSS for other than iOS devices */
}

/*///////////GRAPH PORTION////////////*/

/* GRAPH SECTION */
.graph-section {
  background-color: #8ec099;
  width: 100%;
  height: 150vw;
  max-height: 30rem;
  max-height: 60rem;
  padding-top: 4rem;
  text-align: center;
  position: relative;
}

#graph {
  width: 100%;
  /* max-width: 80rem; */
}

svg > text {
  pointer-events: none;
}

.focus-text {
  pointer-events: none;
}

.focus-circ {
  background-color: blue;
}

/************GRAPH UI***********/
.graph-ui {
  width: 100%;
  position: absolute;
  bottom: 2.4rem;
  z-index: 9;
  text-align: center;
  /* margin-right: -10px; */
}

.graph-icon {
  cursor: pointer;
  transition: all 0.25s;
  height: 5.5rem;
  /* margin-right: 1.2rem; */
}

.graph-icon-y {
  /* width: 4.9rem; */
  margin: 0 2rem 0 1.5rem;
}

.graph-icon:hover {
  transform: scale(1.15);
}

.graph-icon:active {
  transform: scale(1.08);
}

.download-icon {
  cursor: pointer;
  height: 3rem;
  margin-left: 1.4rem;
  opacity: 0.5;
}

.download-icon:hover {
  transform: scale(1.15);
}

.download-icon:active {
  transform: scale(1.08);
}

/* ASSESSMENT SECTION */
.assessment-section {
  background-color: #41bdd7;
  height: 100vh;
}

/************ FOOTER ***********/

.footer {
  position: relative;
  width: 100%;
  z-index: 17;
  background-color: #8ec099;
  overflow: hidden;
  padding-top: 10vw;
  flex-direction: column;
  display: flex;
  align-items: center;
}

.footer-bg {
  width: 100%;
  margin-bottom: -2px;
}

.footer-image {
  position: relative;
  z-index: -1;
  margin-bottom: -10px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  bottom: 15%;
  width: 100%;
}

.connect-heading {
  color: #fcf3ca;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  background-color: #2c3234;
  padding: 0 0.5rem;
}

.social-icons {
  font-size: 4rem;
  margin-left: -1.5rem;
  text-decoration: none;
}

.social-icon {
  padding: 1rem 1rem;
  color: #fcf3ca;
  text-decoration: none;
  box-sizing: content-box;
  background: #fcf3ca;
  background-color: #2c3234;
}

.social-icon:hover {
  color: #41bdd7;
}

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

.footer-links {
  color: #fcf3ca;
  font-size: 3rem;
  font-weight: 600;
  margin-top: 1rem;
  background-color: #2c3234;
  text-transform: uppercase;
  padding-bottom: 3.5rem;
}

.footer-links a {
  color: #fcf3ca;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  padding: 1rem 1rem 0;
}

.footer-links a:hover {
  color: #41bdd7;
}

.copyright {
  display: inline-block;
  position: relative;
  width: 100%;
  z-index: 16;
  background-color: #2c3234;
  color: #fcf3ca;
  font-size: 1.2rem;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  padding: 0.5rem 0;
}

.copyright-line-2 {
  padding: 1rem 0;
}

@media only screen and (max-width: 1150px) {
  .copyright {
    /* font-size: 0.8rem; */
  }

  .footer-links {
    font-size: 1.6rem;
    padding-bottom: 3rem;
  }

  .social-icons {
    font-size: 2.4rem;
  }

  .connect-heading {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  .home-button {
    padding: 0.4rem 0.6rem;
    font-size: 1.5rem;
    margin: 1rem 0.6rem;
  }
}

@media only screen and (max-width: 850px) {
  .footer-content {
    bottom: 23%;
  }
  .copyright {
    /* font-size: 0.8rem; */
  }

  .footer-links {
    font-size: 1rem;
    padding-bottom: 1.5rem;
  }

  .social-icons {
    font-size: 1.8rem;
    padding: 0.5rem 1rem;
  }

  .social-icon {
    padding: 0.5rem 0.5rem 0;
  }

  .connect-heading {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }
  .home-button {
    padding: 0.4rem 0.6rem;
    font-size: 1.5rem;
    margin: 1rem 0.6rem;
  }
}

@media only screen and (max-width: 550px) {
  .footer-content {
    bottom: 26%;
  }

  .footer-links {
    font-size: 0.8rem;
    margin-top: 0;
    padding-bottom: 1rem;
  }

  .social-icons {
    font-size: 1.5rem;
    padding: 0;
    margin: 0;
  }

  .social-icon {
    padding: 0;
    margin: 0;
  }

  .footer-links a {
    padding: 0.5rem;
  }

  .connect-heading {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .copyright {
    font-size: 0.8rem;
  }

  .copyright-line-2 {
    padding: 0.4rem 0;
  }

  .home-button {
    padding: 0.2rem 0.3rem;
    font-size: 1rem;
    margin: 1rem 0.6rem;
  }
}

@media only screen and (max-width: 340px) {
  .footer-content {
    bottom: 50%;
  }
  .copyright-line-2 {
    padding: 0.1rem 0;
  }

  .footer-links {
    font-size: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .social-icons {
    font-size: 1.5rem;
    padding: 0;
    margin: 0;
  }

  .social-icon {
    padding: 0rem;
    margin: 0;
  }

  .footer-links a {
    padding: 0.3rem;
  }

  .connect-heading {
    font-size: 0.6rem;
    margin-bottom: 0.5rem;
  }

  .home-button {
    padding: 0.4rem 0.6rem;
    font-size: 1.5rem;
    margin: 1rem 0.6rem;
  }
}
