* {
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

*::-webkit-scrollbar {
  width: 0.65rem;
  height: 0.65rem;
}

*::-webkit-scrollbar-track {
  background: #f1f1f1;
}

*::-webkit-scrollbar-thumb {
  background: #888;
}

*::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.invisible {
  visibility: hidden;
}

.visible {
  visibility: visible;
}

body {
  background: #f2f2f2;
  color: white;
  height: 100%;
}

.app,
#root {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  height: 100vh;
}

.modal,
.game {
  width: 100%;
  height: 100%;
}

.logo,
.help-container {
  width: 9rem;
}

.logo {
  font-size: 2.3rem;
  font-family: 'Monoton', sans-serif;
  width: 12.2rem;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  margin: 0;
  padding-left: 0.3rem;
  line-height: 1;
}

.level-title,
.level-title-active {
  font-size: 1.3rem;
  font-family: 'Roboto Condensed', sans-serif;
  text-align: center;
  width: 9rem;
  color: white;
  margin: 0.2rem;
  padding: 0.3rem;
  border: 0.05rem solid #7f1c01;
  background-color: #8e0000;
  box-shadow: 0 0 0.2rem rgba(0, 0, 0, 0.12),
    0 0.2rem 0.4rem rgba(0, 0, 0, 0.24);
}

.level-title:hover,
.level-title-active {
  background-color: #ab0000;
  box-shadow: 0 0 0.4rem rgba(0, 0, 0, 0.14),
    0 0.4rem 0.8rem rgba(0, 0, 0, 0.28);
}

.level-index {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.3rem;
  max-height: calc(100% - 6.5rem);
  width: 10rem;
  line-height: 3.5;
  overflow-y: auto;
  overflow-x: hidden;
  position: fixed;
  top: 2.75rem;
  left: calc(50% - 5.07rem);
  z-index: 10;
  border-radius: 0.3rem;
  margin: 0.2rem;
  padding: 0;
  background-color: #fafafa;
  box-shadow: 0rem 0.3rem 1.5rem 0.8rem rgba(0, 0, 0, 0.5);
}

.level-index::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}

.level-item-active,
.level-item-inactive,
.level-item-current {
  width: calc(100% - 0.6rem);
  text-align: center;
  padding: 0 0.3rem;
  position: relative;
  border-bottom: 0.05rem solid #c6c6c6;
}

.level-item-active {
  color: #333;
}

.level-item-inactive {
  color: #ccc;
}

.level-item-active:hover,
.level-item-current {
  color: #333;
  box-shadow: 0 -0.1rem 0 #e0e0e0, 0 0 0.2rem rgba(0, 0, 0, 0.12),
    0 0.2rem 0.4rem rgba(0, 0, 0, 0.24);
  background-color: #fff;
}

.level-item-active:hover {
  cursor: pointer;
  z-index: 11;
}

.level-index:hover .level-item-current {
  background-color: #fafafa;
  border-bottom: 0.05rem solid #c6c6c6;
}

/* .level-index:hover .level-item-current:hover {
  color: #333;
  box-shadow: 0 -0.1rem 0 #e0e0e0, 0 0 0.2rem rgba(0, 0, 0, 0.12),
    0 0.2rem 0.4rem rgba(0, 0, 0, 0.24);
  background-color: #fff;
  border-bottom: 0.05rem solid #c6c6c6;
} */

.level-item-sidenote {
  font-size: 0.9rem;
  position: absolute;
  bottom: 0.2rem;
  right: 0.4rem;
  line-height: 1;
}

.level-item-sidenote i {
  font-style: italic;
}

.sentence-index {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: calc(100vw - 2rem);
  min-height: calc(100vh - 7.89rem);
  padding: 3.74rem 1rem 3.6rem 1rem;
  background: transparent;
}

.sentence-items-container {
  width: 100%;
  margin-left: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.target-container {
  background-color: invisible;
  width: 0;
  display: inline-block;
  position: relative;
}

.target {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  z-index: 4;
  opacity: 0.5;
  height: 3.95rem;
  width: 3.1rem;
  top: -1.965rem;
  left: -1.565rem;
}

.target-rect {
  border-radius: 0.3rem;
  background-color: #afd3ff;
  border: 0.1rem dashed black;
  opacity: 1;
  width: 2rem;
  height: 3.95rem;
}

.target-invisible {
  opacity: 0;
  width: 0.5rem;
}

.pulse {
  box-shadow: 0 0 0 rgba(175, 211, 255, 0.8);
  animation: pulse 1s infinite;
  z-index: 5;
}

@-webkit-keyframes pulse {
  0% {
    -webkit-box-shadow: 0 0 0 0 rgba(175, 211, 255, 0.8);
  }
  70% {
    -webkit-box-shadow: 0 0 0 6rem rgba(175, 211, 255, 0);
  }
  100% {
    -webkit-box-shadow: 0 0 0 0 rgba(175, 211, 255, 0);
  }
}
@keyframes pulse {
  0% {
    -moz-box-shadow: 0 0 0 0 rgba(175, 211, 255, 0.8);
    box-shadow: 0 0 0 0 rgba(175, 211, 255, 0.8);
  }
  70% {
    -moz-box-shadow: 0 0 0 6rem rgba(175, 211, 255, 0);
    box-shadow: 0 0 0 6rem rgba(175, 211, 255, 0);
  }
  100% {
    -moz-box-shadow: 0 0 0 0 rgba(175, 211, 255, 0);
    box-shadow: 0 0 0 0 rgba(175, 211, 255, 0);
  }
}

.sentence-item,
.sentence-item-beat,
.sentence-item-parens-beat {
  font-family: 'Karla', sans-serif;
  color: #333;
  border-radius: 0.3rem;
  font-size: 1.5rem;
  background-color: #fff;
}

.sentence-item {
  cursor: move;
  padding: 0.5rem 1rem;
  border-radius: 0.3rem 0.2rem;
  border: 0.05rem solid #c6c6c6;
  margin: 0.3rem;
  box-shadow: 0 -0.1rem 0 #e0e0e0, 0 0 0.2rem rgba(0, 0, 0, 0.12),
    0 0.2rem 0.4rem rgba(0, 0, 0, 0.24);
}

.sentence-item-beat,
.sentence-item-parens-beat {
  margin: 0.3rem 0;
  background: linear-gradient(to bottom, #f8f8f8, #51a463);
  border-top: 0.05rem solid #c6c6c6;
  border-bottom: 0.05rem solid #c6c6c6;
  border-radius: 0;
}

.sentence-item-beat {
  padding: 0.5rem 0.25rem 0.5rem 0.25rem;
}

.sentence-item-parens-beat {
  padding: 0;
}

.sentence-item-beat:first-child,
.sentence-item-parens-beat:first-child {
  border-top: 0.05rem solid #c6c6c6;
  border-left: 0.05rem solid #c6c6c6;
  border-bottom: 0.05rem solid #c6c6c6;
  border-radius: 0.3rem 0 0 0.3rem;
}

.sentence-item-beat:first-child {
  padding: 0.5rem 0.25rem 0.5rem 1rem;
}

.sentence-item-beat:last-child,
.sentence-item-parens-beat:last-child {
  border-top: 0.05rem solid #c6c6c6;
  border-right: 0.05rem solid #c6c6c6;
  border-bottom: 0.05rem solid #c6c6c6;
  border-radius: 0 0.3rem 0.3rem 0;
}

.sentence-item-beat:last-child {
  padding: 0.5rem 1rem 0.5rem 0.25rem;
}

.sentence-item:hover {
  background-color: #face41;
  background: linear-gradient(to bottom, #f8f8f8, #face41);
  color: black;
}

.sentence-item-parens,
.sentence-item-parens-beat {
  font-family: 'Josefin Slab', serif;
  cursor: move;
  margin: 0;
  font-size: 2.7rem;
  color: #666;
  vertical-align: center;
}

.sentence-item-parens {
  height: 3.6rem;
  padding: 0rem 0.8rem;
  margin: 0.2rem;
  border-radius: 100%;
}

.sentence-item-parens-beat {
  height: 3.3rem;
  padding: 0rem 0.2rem;
}

.sentence-item-parens:hover {
  color: black;
  background-color: rgba(0, 0, 0, 0.23);
  border-radius: 100%;
  -webkit-box-shadow: 0px 0px 46px 7px rgba(0, 0, 0, 0.37);
  -moz-box-shadow: 0px 0px 46px 7px rgba(0, 0, 0, 0.37);
  box-shadow: 0px 0px 46px 7px rgba(0, 0, 0, 0.37);
}

.modal-screen {
  position: fixed;
  background: rgba(0, 0, 0, 0.7);
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

.modal-content {
  position: relative;
  top: calc(50% - 30vh);
  left: calc(50% - 30vw);
  width: 60vw;
  max-height: 60vh;
  background: #fafafa;
  overflow-y: auto;
  z-index: 3;
  border-radius: 0.3rem;
  box-shadow: 0rem 0.5rem 2rem 1rem rgba(0, 0, 0, 0.5);
}

.modal-content p {
  font-size: 1.5rem;
  color: #333;
  font-family: 'Roboto Condensed', sans-serif;
  margin: 2.5rem 3rem;
  text-align: justify;
  line-height: 1.5;
}

.modal-content i {
  font-style: italic;
}

.modal-button,
.modal-content p {
  position: relative;
  top: -3rem;
}

.modal-sentence-item,
.modal-sentence-item-true {
  padding: 0.15rem 0.3rem;
  border-radius: 0.3rem;
  border: 0.05rem solid #c6c6c6;
  margin: 0.05rem;
  display: inline;
  font-weight: 300;
  background-color: #fff;
}

.modal-sentence-item-true {
  background-color: #c0f2c7;
  color: black;
}

.help-container {
  width: 12.2rem;
  display: flex;
  justify-content: flex-end;
}

.modal-close,
.help {
  cursor: pointer;
  margin: 0.4rem 0;
  border-radius: 100%;
  line-height: 1;
  color: black;
}

.modal-close-container {
  position: sticky;
  top: 0;
  width: calc(100% - 2rem);
  display: flex;
  padding: 1rem;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  z-index: 4;
}

.modal-close {
  color: #333;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0.2rem;
  margin: 0.4rem 0;
  border: 0.05rem solid #c6c6c6;
  box-shadow: 0 -0.1rem 0 #e0e0e0, 0 0 0.2rem rgba(0, 0, 0, 0.12),
    0 0.2rem 0.4rem rgba(0, 0, 0, 0.24);
  border-radius: 0.3rem;
  background-color: #fff;
  width: 1.5rem;
  height: 1.5rem;
  text-align: center;
  vertical-align: center;
  z-index: 4;
}

.modal-close i {
  font-style: normal;
}

.modal-close:hover {
  background-color: #f8f8f8;
  background: linear-gradient(to bottom, #f8f8f8, #f1f1f1);
}

.help:hover {
  color: #666;
}

.modal-button,
.nav-button,
.footer-button,
.level-title,
.level-title-active {
  font-family: 'Roboto Condensed', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0.3rem;
  cursor: pointer;
}

.modal-button {
  color: #333;
  width: 10rem;
  padding: 1rem;
  font-size: 1.5rem;
  margin: 0.4rem auto;
  border: 0.05rem solid #c6c6c6;
  box-shadow: 0 -0.1rem 0 #e0e0e0, 0 0 0.2rem rgba(0, 0, 0, 0.12),
    0 0.2rem 0.4rem rgba(0, 0, 0, 0.24);
  background-color: #fff;
}

.modal-button:hover {
  background-color: #f8f8f8;
  background: linear-gradient(to bottom, #f8f8f8, #f1f1f1);
}

.navbar {
  width: 100%;
  position: fixed;
  top: 0;
  max-height: 3.24rem;
  background-color: #990000;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 0.4rem rgba(0, 0, 0, 0.14),
    0 0.4rem 0.8rem rgba(0, 0, 0, 0.28);
}

.nav-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-button,
.footer-button {
  color: white;
  margin: 0.2rem;
  padding: 0.3rem;
  border: 0.05rem solid #7f1c01;
  background-color: #8e0000;
  box-shadow: 0 0 0.2rem rgba(0, 0, 0, 0.12),
    0 0.2rem 0.4rem rgba(0, 0, 0, 0.24);
}

.nav-button {
  width: 2rem;
  height: 2rem;
  font-size: 2rem;
}

.footer-button {
  font-size: 1rem;
}

.footer-button {
  width: 7.8rem;
  height: 2rem;
}

.nav-button:hover {
  background-color: #ab0000;
  box-shadow: 0 0 0.4rem rgba(0, 0, 0, 0.14),
    0 0.4rem 0.8rem rgba(0, 0, 0, 0.28);
}

.footer {
  background: transparent;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  align-items: space;
  position: fixed;
  bottom: 0;
  width: 100%;
}

.footer i {
  font-size: 1.3rem;
}

html,
body {
  font-size: 1em;
}

@media (orientation: portrait) {
  .logo {
    font-size: 1.2rem;
    width: 6rem;
  }

  .help-container {
    width: 6rem;
  }

  .level-title,
  .level-title-active {
    width: 3.8rem;
    font-size: 1rem;
    height: 2rem;
  }

  .modal-content p {
    font-size: 1rem;
    line-height: 1.7rem;
    margin: 1rem 1rem;
  }

  .modal-button,
  .modal-content p {
    top: -1.5rem;
  }

  .modal-close-container {
    width: calc(100% - 1rem);
    padding: 0.5rem;
  }

  .modal-close {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
  }

  .modal-button {
    color: #333;
    width: 7rem;
    padding: 0.5rem;
    font-size: 1rem;
  }

  .modal-content {
    left: calc(50% - 40vw);
    width: 80vw;
  }

  .sentence-item,
  .sentence-item-beat,
  .sentence-item-parens-beat {
    font-size: 1.2rem;
    background-color: #fff;
  }

  .sentence-item-parens,
  .sentence-item-parens-beat {
    font-size: 2rem;
    height: 2.75rem;
  }

  .target {
    height: 3.35rem;
    width: 2.81rem;
    top: -1.67rem;
    left: -1.4rem;
  }

  .target-rect {
    width: 1.9rem;
    height: 3.35rem;
  }

  .level-index {
    font-size: 1rem;
    width: 8.7rem;
    left: calc(50% - 4.4rem);
  }

  .level-item-sidenote {
    font-size: 0.78rem;
    bottom: 0.15rem;
  }
}

@font-face {
  font-family: 'Monoton';
  src: url('./fonts/Monoton/Monoton-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Josefin Slab';
  src: url('./fonts/Josefin_Slab/JosefinSlab-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: normal;
  src: url('./fonts/Roboto_Condensed/RobotoCondensed-Regular.ttf')
    format('truetype');
}

@font-face {
  font-family: 'Roboto Condensed';
  font-style: italic;
  font-weight: normal;
  src: url('./fonts/Roboto_Condensed/RobotoCondensed-Italic.ttf')
    format('truetype');
}

@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 300;
  src: url('./fonts/Roboto_Condensed/RobotoCondensed-Light.ttf')
    format('truetype');
}

@font-face {
  font-family: 'Roboto Condensed';
  font-style: italic;
  font-weight: 300;
  src: url('./fonts/Roboto_Condensed/RobotoCondensed-LightItalic.ttf')
    format('truetype');
}

@font-face {
  font-family: 'Karla';
  src: url('./fonts/Karla/Karla-Regular.ttf') format('truetype');
}
