* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "fredoka light", "fredoka", serif;
}
@font-face {
  font-family: "fredoka light";
  font-weight: 300;
  src: local("fredoka light"),
    url("/public/fonts/fredoka-light.ttf") format("truetype");
}

.body {
  background: #3b2159;
  color: #fff;

  margin: 0;
  padding: 0;
}

.navbar {
  background: #150824;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  height: 80px;
  z-index: 1;
  width: 100%;
  max-width: 1300px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 50px;
  padding-left: 50px;
}

#navbar-logo {
  background-color: #fff;
  background-size: 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  font-size: 2rem;
  padding-top: 0.5rem;
}

.navbar-menu {
  display: flex;
  align-items: center;
  list-style: none;
  text-align: center;
}

.navbar-item {
  line-height: 80px;
}

.navbar-links {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  height: 100%;
  margin-inline: 1em;
}

.navbar-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
  width: 100%;
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  padding: 10px 20px;
  height: 100%;
  width: 100%;
  border: none;
  outline: none;
  border-radius: 4px;
  background: #1d1c1f;
  color: #fff;
}

.button:hover {
  background: rgb(160, 60, 166);
  transition: all 0.3s ease;
}

.navbar-links:hover {
  color: rgb(132, 96, 186);
  transition: all 0.3s ease;
}
.input-container {
  position: relative;
  display: block;
  text-align: center;
  justify-content: center;
  width: 100%;
  max-width: 1300px;
  margin: auto;
  padding: 10%;
}

.input-container .input {
  background-color: rgba(32, 15, 56, 0.5);
  border-style: none;
  width: 45%;
  padding: 2%;
  font-size: 2rem;
  text-align: center;
  border-radius: 8px;
  color: #ffffff;
  margin-bottom: 2%;
}

.input-container .input::placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
}

.input-container .input:focus,
.submit-button:focus {
  outline: none;
  box-shadow: inset 0 0 6px #131313;
}

.input-container .if-not-exists {
  display: none;
  color: #d82020;
  font-size: small;
  margin-top: 0.3%;
}

.input-container .submit-button {
  text-align: center;
  font-size: medium;
  background-color: rgb(32, 15, 56, 0.9);
  padding: 1%;
  width: 20%;
  color: #fff;
  border: none;
  border-radius: 8px;
}

.points {
  display: block;
  text-align: center;
  justify-content: center;
  margin-top: 4em;
  margin-bottom: 2em;
  color: black;
}

.opponent-container {
  display: block;
  text-align: center;
  justify-content: center;
  margin-top: 2em;
  margin-bottom: 2em;
  color: black;
}

.defeat-button {
  background-color: rgba(32, 15, 56, 0.9);
  padding: 1%;
  width: 20%;
  color: #fff;
  border-radius: 8px;
  margin-top: 3%;
  border-style: none;
}
.defeat-button:focus {
  outline: none;
  box-shadow: inset 0 0 6px rgb(0, 6, 22);
}

.contestants-list {
  font-size: 2em;
  color: #ffffff;
  text-align: center;
  padding-block: 2em;
  line-height: 2em;
  display: block;
}

.log-out-container {
  display: block;
  text-align: center;
  justify-content: center;
  width: 100vm;
}

.log-out-container .log-out-button {
  background-color: rgb(32, 15, 56, 0.5);
  padding: 1%;
  width: 15%;
  color: #fff;
  border-style: none;
  border-radius: 8px;
  margin-block: 2%;
}

.log-out-container .log-out-button:focus {
  outline: none;
  box-shadow: inset 0 0 6px #131313;
}

@media screen and (max-width: 800px) {
  .navbar-container {
    display: flex;
    justify-content: space-between;
    height: 80px;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    padding: 0;
  }

  .navbar-menu {
    display: grid;
    grid-template-columns: auto;
    margin: 0;
    width: 100%;
    position: absolute;
    top: -1000px;
    opacity: 1;
    transition: all 0.5s ease;
    height: 40vh;
    z-index: -1;
  }

  .navbar-menu.active {
    background: rgba(21, 8, 36, 0.95);
    top: 100%;
    opacity: 1;
    transition: all 0.5s ease;
    z-index: 99;
    height: 50vh;
    font-size: 1.6rem;
    border: 1px double #333;
  }

  #navbar-logo {
    padding-left: 25px;
  }

  .navbar-toggle .bar {
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background: #fff;
  }

  .navbar-item {
    width: 100%;
    display: flex;
    align-self: center;
  }

  .navbar-links {
    text-align: center;
    padding: 2rem;
    width: 100%;
    display: table;
  }

  .navbar-btn {
    padding-bottom: 2rem;
  }

  .button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: 80px;
    margin: 0;
  }

  #mobile-menu {
    position: absolute;
    top: 20%;
    right: 5%;
    transform: translate(5%, 20%);
  }

  .navbar-toggle .bar {
    display: block;
    cursor: pointer;
  }

  #mobile-menu.is-active .bar:nth-child(2) {
    opacity: 0;
  }

  #mobile-menu.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  #mobile-menu.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .log-out-container {
    display: flex;
    text-align: center;
    justify-content: center;
    top: auto;
    right: 60%;
  }
  body {
    font-size: 4vw;
  }
  .defeat-button {
    width: 60%;
    padding: 2%;
    font-size: 1.1em;
  }
  #log-out-button {
    width: 50%;
    padding: 2%;
    font-size: 1.1em;
  }
  .input-container .input {
    width: 60vw;
    font-size: 3vw;
    padding-block: 2em;
    margin-block: 2em;
  }
  .input-container .submit-button {
    width: 60vw;
    font-size: 3vw;
    padding-block: 2em;
  }
  .credits-container {
    font-size: 0.7rem;
  }
}

.footer {
  background: #11061c;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  width: 100%;
  position: fixed;
  bottom: 0;
}

.credits-container {
  display: flex;
  justify-content: space-between;
  height: -80px;
  width: 100%;
  max-width: 1300px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 5%;
  padding-left: 5%;
}

.game-not-start {
  display: flex;
  align-content: center;
  justify-content: center;
  text-align: center;
}

.error {
  color: rgb(10, 16, 34);
  padding-top: 10%;
  justify-content: center;
  text-align: center;
}

