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

body {
  background-color: #122024;
  text-align: center;
  position: relative;
  min-width: 380px;
}

.page-title {
  width: 50%;
  max-width: 500px;
  margin: 0 25% 4rem;
}

.gameWrapper {
  margin: auto;
  width: 80%;
}

.gameContainer {
  position: relative;
  box-sizing: content-box;
}

#myCanvas {
  width: 100%;
  background-color: #e9fbff;
}

.canvas-flipped {
  transform: scaleX(-1);
}

@media screen and (orientation: portrait) {
  #myCanvas {
    height: 40vh;
  }
  .dropdown-menu-level-select {
    height: 40vh;
  }
}
@media screen and (orientation: landscape) {
  #myCanvas {
    height: 80vh;
  }
  .dropdown-menu-level-select {
    height: 60vh;
  }
}

.dropdown {
  position: relative;
  align-self: center;
  font-family: Montserrat, Tahoma, sans-serif;
  /* font-size: 2vw; */
}

.dropdown-menu,
.dropdown-menu-level-select {
  margin: 0;
  padding: 0;
  overflow-y: auto;
}

.dropdown-toggle,
.dropdown-item {
  /* font-size: 1.4rem; */
}

.dropdown-item {
  display: flex;
  justify-content: flex-end;
  flex-direction: row-reverse;
  align-items: center;
  padding: 0.4rem 1rem;
}

.dropdown-item-highlighted {
  background-color: #83b88e;
}

.dropdown-item:active {
  background-color: #83b88e;
}

.star-icon {
  padding-right: 0.6rem;
}

.star-icon-unhighlighted {
  color: rgba(0, 0, 0, 0.09);
}

.star-icon-highlighted {
  color: rgba(255, 231, 125, 1);
}

@media (max-width: 500px) {
  .dropdown-toggle,
  .dropdown-item {
    /* font-size: 1.2rem; */
  }
}

/* HOME BUTTON */
.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;
}

/* FLIP HORIZONTAL BUTTON */
.flip-button {
  box-sizing: border-box;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 90;
  text-decoration: none;
  outline: none;
  border: none;
  background-color: #00000000;
  position: absolute;
  bottom: 0;
  left: 0;
  color: #333333;
  font-family: Montserrat, Tahoma, sans-serif;
  font-size: clamp(1.4rem, 3vw, 3rem);
  cursor: pointer;
  margin: 0rem 0.6rem;
  padding: 0;
}

.flip-button:hover {
  color: #3e565e;
}

/* HEADER */

.page-header {
  width: 100%;
  text-align: center;
  position: relative;
  margin-bottom: 3rem;
}

.header-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background-image: url("assets/images/header-stars.svg");
  background-repeat: repeat;
  transform: scale(0.5) translate(-50%, -50%);
}

.header-img {
  width: 30%;
  transform: translateX(-4%);
  margin: 1rem 0 0;
  min-width: 14rem;
  max-width: 40rem;
  transition: transform 0.3s ease;
  position: relative;
}

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

.game-border-top {
  position: relative;
  z-index: 500;
  /* transform: translateY(-92%); */
}

.bottom-ui {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-toggle {
  font-size: clamp(1rem, 1.5vw, 6rem);
}

.dropdown-menu {
  font-size: clamp(1rem, 1.5vw, 6rem);
}

#tension-button {
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  background: none;
  border: 1.8px solid #ffffff;
  cursor: pointer;
  margin-right: 2rem;
  outline: none;
  /* font-size: 1.5rem; */
  padding: 0.2rem 0.7rem;
  border-radius: 1rem;
}

#tension-button:hover {
  background-color: #ffffff;
  color: #2c3234;
}

.tension-button-hidden {
  display: none;
}

.tension-button-visible {
  display: inline;
  align-self: center;
}

/************ SOUND TOGGLE ***********/
/* The switch - the box around the slider */
.soundSwitchGroup {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.sound-icon {
  transform-origin: left center;
  transform: scale(0.5);
}

.soundSwitch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  transform: translateX(-40%);
  margin-bottom: 0;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #8ec099;
}

input:focus + .slider {
  box-shadow: 0 0 1px #8ec099;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

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

.bar-bot {
  width: 100%;
  height: 6.8rem;
  display: block;
}

.footer {
  position: relative;
  width: 100%;
  z-index: 17;
  overflow: hidden;
  flex-direction: column;
  display: flex;
  align-items: center;
  margin-top: 4rem;
}

.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: 2.4rem;
  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 1rem;
}

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

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

  .footer-links {
    font-size: 1.8rem;
    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;
  }

  #tension-button {
    /* font-size: 1.4rem; */
    padding: 0.3rem 0.6rem;
    border-radius: 0.9rem;
  }
}

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

  .footer-links {
    font-size: 1.2rem;
    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;
  }

  #fullscreenButton {
    padding: 0.8rem 1.2rem;
    font-size: 1.2rem;
    margin: -1rem 0 0rem;
    border-radius: 1rem;
  }

  /* .dropdown-toggle,
  .dropdown-item {
    font-size: 1.2rem;
  } */
}

@media only screen and (max-width: 550px) {
  .title-img {
    width: 75%;
  }

  .footer-content {
    bottom: 30%;
  }

  .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.5rem 0;
  }

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

  #fullscreenButton {
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border-radius: 1rem;
  }

  .soundSwitchGroup {
    display: none;
  }

  .bottom-ui {
    display: flex;
    flex-direction: column;
  }

  .dropdown-toggle {
    margin-top: 1rem;
  }
}

@media only screen and (max-width: 340px) {
  .title-img {
    width: 90%;
  }

  .footer-content {
    bottom: 35%;
  }
  .copyright {
    font-size: 0.6rem;
  }

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

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

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

  .placeholder {
    font-size: 1rem;
    width: 100%;
  }

  .bottom-ui {
    margin-top: 0.6rem;
  }

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

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

  .home-button {
    padding: 0.2rem 0.4rem;
    font-size: 1.2rem;
    margin: 1rem 0.8rem;
  }

  #fullscreenButton {
    padding: 0.6rem 1rem;
    font-size: 1rem;
    margin: -15rem 0 0rem;
    border-radius: 1rem;
  }
}
