body {
  margin: 0;
  padding: 0;
  background-color: #f9fafb;
  color: #111827;
  font-family: monospace;
}

* {
  box-sizing: border-box;
}

h2 {
  font-size: 1.5rem;
  text-align: center;
}

header {
  width: 100vw;
  height: 20vh;
  background-color: #1e3a8a;
  color: #f9fafb;
  text-align: center;

  border: #252525 solid 0px;
  border-bottom-width: 1px;
  background-color: #fafafa;
  color: #252525;
}

.header-content {
  display: flex;
  justify-content: space-around;
}

.header-logo > img {
  position: absolute;
  top: 40px;
  right: 35%;
  width: 80px;
  height: 80px;
}

.header-logo {
  display: flex;
  flex-direction: column;
  width: 40vw;
  justify-content: center;
  align-items: flex-end;
}

.header-scores {
  display: flex;
  flex-direction: column;
  width: 40vw;
  margin: 20px 0px;
  justify-content: space-between;
}
.header-scores-top {
  display: flex;
  flex-direction: column;
  width: 40vw;
  justify-content: flex-start;
  margin-bottom: 10px;
}
.header-scores-bottom {
  display: flex;
  flex-direction: column;
  width: 40vw;
  justify-content: flex-end;
  margin-top: 10px;
}

.header-scores span {
  color: black;
  text-align: right;
  font-family: monospace;
  font-size: 11pt;
  padding: 0px 10px 5px 0px;
}

.header-scores-bottom span {
  font-size: x-large;
}

.header-buttons {
  display: flex;
  flex-direction: column;
  width: 25vw;
}
.header-button {
  border: none;
  margin: 15px 0px 0px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-family: monospace;
  color: #252525;
  text-transform: uppercase;
  padding: 5px 15px;
  border-radius: 10px;
  border: 2px solid #252525;
  background: #fafafa;
  box-shadow: 3px 3px #252525;
}

main {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 73vh;
  overflow-y: auto;
  background-color: f9fafb;
}

footer {
  width: 100%;
  height: 6vh;
  display: flex;
  justify-content: center;
  align-items: center;
  border: #252525 solid 0px;
  border-top-width: 1px;
  background-color: #fafafa;
  color: #252525;
  text-align: center;
}

.game-menu {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: 40px;
  align-items: center;
}

.party-switch {
  width: min(280px, calc(100vw - 32px));
  border-radius: 10px;
  border: 2px solid #252525;
  background: #fafafa;
  box-shadow: 3px 3px #252525;
  margin: 20px 10px 6px;
  display: flex;
  overflow: hidden;
}

.party-switch-option {
  width: 50%;
  border: 0;
  background: transparent;
  padding: 7px 12px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.party-switch-option + .party-switch-option {
  border-left: 2px solid #252525;
}

.party-switch-option.is-active {
  background: #dbeafe;
}

.party-notice {
  width: min(420px, calc(100vw - 32px));
  margin: 24px auto;
  padding: 20px;
  border: 2px solid #252525;
  border-radius: 10px;
  background: #fafafa;
  box-shadow: 3px 3px #252525;
}

.party-notice p,
.party-notice li {
  line-height: 1.45;
}

.party-notice ul {
  padding-left: 22px;
}

.game-buttons {
  width: min(280px, calc(100vw - 32px));
  height: 54px;
  font-family: monospace;
  font-size: 1.2rem;
  color: #252525;
  text-transform: uppercase;
  padding: 10px 30px;
  border-radius: 10px;
  border: 2px solid #252525;
  background: #fafafa;
  box-shadow: 3px 3px #252525;
  cursor: pointer;
  margin: 10px;
}

.game-menu > .game-buttons {
  text-align: left;
}

.game-buttons-ab {
  width: min(280px, calc(100vw - 32px));
  height: 138px;
  font-family: monospace;
  font-size: 1.35rem;
  color: #252525;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 10px;
  border: 2px solid #252525;
  background: #fafafa;
  box-shadow: 3px 3px #252525;
  cursor: pointer;
  margin: 10px;
}

button:active {
  box-shadow: none;
  transform: translate(3px, 3px);
}

.question-test {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 30px 0px;
  align-items: center;
}

.question-map {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  align-items: center;
}

.map {
  width: min(360px, calc(100vw - 32px));
}

.catalonia-map,
.catalonia-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.question-ab {
  display: flex;
  flex-direction: column;
  padding: 30px 0px;
  align-items: center;
}

.question {
  padding: 0px 30px;
}

footer > p {
  margin: 0px;
}

.message {
  position: relative;
  text-align: center;
  width: 300px;
  height: 400px;
  margin: auto;
  font-size: 1.5rem;
  color: #252525;
  text-transform: uppercase;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid #252525;
}

.button {
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: monospace;
  color: #252525;
  text-transform: uppercase;
  font-size: 16px;
  padding: 10px 20px;
  border: 2px solid #252525;
  background: #fafafa;
  box-shadow: 3px 3px #252525;
  margin: 10px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.hint{
  text-transform: uppercase;
  font-size: 1.3rem;
  font-family: monospace;
  border-radius: 10px;
  border: 2px solid #252525;
  padding: 10px 30px;
  margin: 0px 0px 20px 0px;
}

.party-message {
  width: min(300px, calc(100vw - 32px));
  margin: 0 0 12px;
  padding: 8px 12px;
  border: 2px solid #252525;
  border-radius: 10px;
  background: #ffd166;
  color: #252525;
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: center;
}

.party-game-over {
  font-size: 1rem;
  line-height: 1.4;
}

.party-mode {
  background: #24111b;
  color: #fff4e7;
}

.party-mode header,
.party-mode footer,
.party-mode main {
  background: #24111b;
  color: #fff4e7;
  border-color: #ffb347;
}

.party-mode .header-scores span {
  color: #fff4e7;
}

.party-mode .header-button,
.party-mode .game-buttons,
.party-mode .game-buttons-ab,
.party-mode .button,
.party-mode .party-switch,
.party-mode .party-notice,
.party-mode .hint,
.party-mode .message {
  background: #3b1b2b;
  color: #fff4e7;
  border-color: #ffb347;
  box-shadow: 3px 3px #ffb347;
}

.party-mode .party-switch-option {
  color: #fff4e7;
}

.party-mode .party-switch-option + .party-switch-option {
  border-color: #ffb347;
}

.party-mode .party-switch-option.is-active {
  background: #7a263f;
}

.party-mode .party-message {
  background: #ffb347;
  color: #24111b;
  border-color: #fff4e7;
}

@media (max-width: 480px) {
  header {
    height: 17vh;
    min-height: 108px;
  }

  .header-logo > img {
    position: static;
    width: 58px;
    height: 58px;
  }

  .header-logo {
    align-items: center;
  }

  .header-button {
    margin-left: 10px;
    padding: 5px 10px;
  }

  .header-scores {
    margin: 12px 0;
  }

  .header-scores span {
    font-size: 9pt;
    padding-right: 6px;
  }

  .header-scores-bottom span {
    font-size: 1.1rem;
  }

  main {
    height: 77vh;
  }

  .question-test,
  .question-ab,
  .question-map {
    padding: 18px 0;
  }

  .game-buttons-ab {
    height: 114px;
  }

  .party-notice {
    margin: 18px auto;
    padding: 16px;
  }
}
