@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Nabla&display=swap");
:root {
  --bg-color: #1e0b30;
  --box-color: rgb(85, 13, 139);
  --title-color: #eaaf57;
  --bar-color: #973610;
  --border-radius: 4px;
}
* {
  padding: 0;
  margin: 0;
  color: #fff;
  box-sizing: border-box;
}
body {
  margin: 20px auto;
  max-width: 800px;
  font-family: "Chakra Petch", sans-serif;
  background-color: var(--bg-color);
}
.app {
  display: flex;
  flex-direction: column;
  height: 95vh;
  background-color: var(--bg-color);
  text-align: center;
  color: #fff;
}
.bottom {
  visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.welcome {
  display: flex;
  max-width: 420px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
}
.welcome > h1 {
  font-family: "Nabla", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "EDPT" 100, "EHLT" 12;
  font-size: 4em;
}
.welcome > p {
  font-family: "Chakra Petch", "serif";
}
.board {
  visibility: hidden;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.stars {
  flex: 1;
}
.money {
  visibility: hidden;
}
#audioControl {
  font-size: 3rem;
  cursor: pointer;
}
.box {
  height: 80px;
  background-color: var(--box-color);
  color: var(--title-color);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px;
  cursor: pointer;
  border-radius: var(--border-radius);
}
.q {
  font-size: 3em;
  text-shadow: 2px 2px 1px #973610;
}
.answered {
  visibility: hidden;
}
.end {
  display: none;
}
.endgame {
  display: none;
  margin: 3rem auto;
  height: auto;
  width: 600px;
}
.sub-title {
  font-size: 2.5rem;
}
.category {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cat-title {
  line-height: 0.9;
  overflow: hidden;
  font-size: 28px;
  cursor: default;
}

.choices {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 16px;
}

.q-option {
  width: 250px;
  height: 70px;
  padding: 1rem;
  border: 2px var(--title-color) solid;
  border-radius: var(--border-radius);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 1.5rem;
}

input {
  text-align: center;
  padding: 0 8px;
  margin: 20px 0;
  vertical-align: middle;
  border-radius: 2px;
  width: 200px;
  min-height: 36px;
  background-color: #ffffff;
  color: #444;
  border: 1px solid rgba(36, 28, 21, 0.3);
  transition: all 0.2s ease-in-out 0s;
  font-size: 16px;
  line-height: 18px;
  font-weight: normal;
  :focus {
    outline: none;
    border: 1px solid #007c89;
    box-shadow: inset 0 0 0 1px #007c89;
  }
}

.btn {
  background-color: transparent;
  font-size: 2rem;
  padding: 24px 0;
  font-family: "Bebas Neue", sans-serif;
}

#money::before {
  content: "$";
}

.modal {
  box-sizing: unset;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  height: 100%;
  width: 100%;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  padding: 3rem;
  height: auto;
  width: 40%;
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: auto;
  border: 10px solid #eaaf57;
  position: relative;
}

.opened {
  display: flex;
  justify-content: center;
  align-items: center;
}
.swal2-title {
  font-size: 2.5rem;
  padding: 0.5em 1em 0.2em;
}
.swal2-confirm {
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
  font-family: "Bebas Neue", sans-serif;
}
.swal2-actions {
  margin: 0;
}
.highlight {
  color: var(--title-color);
}
#money {
  font-size: 3rem;
}
small {
  color: #a6a6a6;
  font-size: 0.7rem;
  font-family: "Verdana", serif;
  margin: 0 auto;
  align-self: flex-end;
}
.timer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: var(--bar-color);
  transition: width 1s linear;
}
.q.box {
  transition: all 0.2s linear;
}
.q.box:hover {
  background-color: #eaaf57;
  color: var(--box-color);
}
@media screen and (max-width: 480px) {
  body {
    margin: 10px auto;
  }
  .modal-content {
    padding: 2rem;
    height: auto;
    width: 85%;
  }
  .welcome > h1 {
    font-size: 3em;
  }
  .q {
    font-size: 2.5em;
  }
  .box {
    margin: 5px;
  }
  .cat-title {
    font-size: 1.25em;
  }
}
