/* Colors:
 * #05386B
 * #379683
 * #5CDB95
 * #8EE4AF
 * #EDF5A1
 * #FDF6E3
 */

:root {
  font-size: 16px;
  font-family: 'Nunito', sans-serif;
}

body {
  margin: 0;
  padding: 0;
}

#header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #379683;
  color: #fdf6e3;
  font-size: 20px;
  padding: 0px;
  font-weight: bold;
  text-align: center;
  z-index: 2;
}

#menuline {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  width: calc(100% - 20px);
  text-align: left;
  display: none;
}

#menuline:after {
  content: "";
  display: table;
  clear: both;
}

#menubutton {
  padding: 5px;
  vertical-align: top;
  border-radius: 3px;
  margin: -5px 5px 0px -5px;
}

#header-title {
  font-size: 48px;
  font-weight: bold;
  text-align: center;
}

#menu {
  display: none;
  position: absolute;
  background-color: white;
  color: black;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
  padding: 0px;
  text-align: left;
  z-index: 2;
}

.menu-item {
  width: calc(100% - 30px);
  padding: 5px 15px;
  cursor: pointer;
}

.menu-item:hover {
  background-color: #ddd;
}

.menu-item-disabled {
  width: calc(100% - 30px);
  color: #888;
  padding: 5px 15px;
  cursor: pointer;
}

#menu-overlay {
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 1;
  visibility: hidden;
}

#header-questionbar {
  text-align: left;
  font-size: 24px;
  padding: 0px 10px 10px 10px;
  overflow: auto;
}

#header-timer {
  display: none;
  background-color: black;
  float: right;
  padding: 5px 10px;
  color: #fdf6e3;
  border-radius: 5px;
  font-weight: bold;
  margin: 5px 10px 5px 20px;
}

.question {
  text-align: left;
  font-size: 24px;
  padding: 0px;
  overflow: auto;
}

.continue-button {
  color: black;
  font-size: 24px;
  background-color: #f2f2f2;
  width: calc(100% - 30px);
  padding: 5px 20px;
  margin: 25px 10px 10px 10px;
  border-radius: 10px;
  display: block;
}

#login {
  display: block;
}

#lobby, #answer, #results, #final {
  display: none;
}

.login-field {
  display: block;
  margin-top: 40px;
  width: 100%;
  text-align: center;
  font-size: 24px;
}

.login-field input {
  font-size: 24px;
  margin-left: 50px;
  width: 200px;
}

#login-button {
  color: black;
  font-size: 24px;
  background-color: #f2f2f2;
  width: 120px;
  padding: 5px 20px;
  margin: 10px;
  border-radius: 10px;
  margin-top: 50px;
}

#lobby-myname {
  margin: 10px 0px;
  font-size: 32px;
  text-align: center;
}

#lobby-list-head {
  display: block;
  background-color: #f2f2f2;
  width: calc(100% - 20px);
  padding: 5px 10px;
  margin: 5px 0px;
  font-size: 24px;
}

#countdown {
  width: 100%;
  height: 100%;
  padding: 5vh 5vw;
  background-color: rgba(0, 0, 0, 0.4);
  position: fixed;
  z-index: 3;
  visibility: hidden;

  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#countdown-inner {
  width: calc(100% - 10vw);
  height: calc(100% - 10vh);
}

#countdown-window {
  width: 300px;
  height: 400px;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;

  position: fixed;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);

  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
  background: white;
  font-size: 32px;
}

#countdown-timer {
  font-size: 124px;
}

.answer-button {
  color: black;
  font-size: 24px;
  background-color: #EDF5A1;
  width: calc(100% - 30px);
  padding: 5px 20px;
  margin: 10px;
  border-radius: 10px;
  display: block;
  transition: all 0.3s ease;
}

.answer-button:disabled {
  background-color: #bbb;
  color: #555;
}

#answer-complete-text {
  text-align: center;
  margin: 30px;
  font-size: 24px;
}

#results-answerlist {
  margin: 0px 8px;
}

.results-answer {
  margin-top: 10px;
}

.results-winning-answer {
  font-size: 32px;
}

.results-losing-answer {
  font-size: 24px;
}

.player-card {
  display: inline-block;
  background-color: #05386b;
  padding: 5px 10px;
  margin: 2px 5px;
  color: #fdf6e3;
  border-radius: 5px;
  font-weight: bold;
}

.player-penalty {
  background-color: #c13b23;
  color: #fdf6e3;
  padding: 3px 3px;
  margin: 2px 5px;
  border-radius: 5px;
}


.results-score {
  color: #379683;
  float: right;
  font-size: 24px;
}

.final-player-line {
  background-color: #EDF5A1;
  width: calc(100% - 60px);
  padding: 5px 20px;
  margin: 10px;
  border-radius: 4px;
  font-size: 32px;
  overflow: hidden;
  word-wrap: break-word;
}

.player-name {
  font-weight: bold;
}

.player-score {
  float: right;
}
