@import url('https://fonts.googleapis.com/css2?family=Asap+Condensed&display=swap');

* {
  box-sizing: border-box;
}

body {
  color: #fff;
  background-color: #1f1f1f;
  font-family: 'Asap Condensed', sans-serif;
  margin: 0;
  padding: 8px;
}

.logo {
  display: block;
  margin: 0 auto;
}

a {
  color: white;
  text-decoration: none;
}
a:hover {
  transition: transform 0.3s ease-in-out;
}

.modalContainer {
  display: none;
  position: fixed;
  inset: 0 0 0 0;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.modalContent {
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 300px;
  padding: 24px;
  background-color: #333;
  gap: 12px;
  text-align: center;
}

#rulesModal:target {
  display: flex;
}

#rulesModal:target .rules {
  width: 500px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}

.rules {
  background-color: #333333;
  border-radius: 5px;
  padding: 2rem;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin: 10em auto;
  position: relative;
}

.rules h1 {
  text-decoration: underline;
  text-decoration-color: #D42929;
}

.close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #D42929;
  color: white;
  padding: 0.7rem;
  border-radius: 6px;
  text-decoration: none;
}

.close:hover {
  -webkit-transform: scale(0.92);
  -ms-transform: scale(0.92);
  transform: scale(.92)
}

.board {
  display: flex;
  justify-content: center;
  flex: 1;
  flex-wrap: wrap;
  gap: 24px;
  padding: 12px 0 36px 0;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card {
  position: relative;
  background-color: #333333;
  width: 320px;
  border-radius: 8px;
  padding: 24px;
}
.card.full {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card h2 {
  margin: 0 0 24px;
}

.game {
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-evenly;
  gap: 12px;
}

.hidden {
  visibility: hidden;
}

.choice {
  background-color: #333;
  border: 2px solid white;
  transition: background-color 0.2s linear;
}

.b {
  background-color: #ABDAFC;
}
.g {
  background-color: #A7E8BD;
}
.p {
  background-color: #D4ADCF;
}
.r {
  background-color: #F57266;
}
.y {
  background-color: #FFD970;
}

.good {
  background-color: #fff;
}
.bad {
  background-color: #d42929;
}

.clear_send {
  display: flex;
  justify-content: space-around;
  margin-top: 24px;
  padding: 0 48px;
}

.button_clear,
.button_send {
  cursor: pointer;
  height: 24px;
  width: 24px;
}

.button_clear:hover,
.button_send:hover {
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
}

.set {
  display: flex;
  align-items: center;
}

.proposition,
#playerChoice,
#playerSelection,
#answers {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.proposition div,
.choice,
.answer,
.selection  {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  transition: background-color 0.2s linear, color 0.2s linear;
}

.selection {
  cursor: pointer;
  border: none;
}

.selection:hover {
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
  box-shadow: 2px 2px 2px #1f1f1f;
}

.answer {
  border: 1px solid white;
}

.text {
  flex: 1;
  text-align: center;
  color: #fff;
}

.score {
  display: grid;
  grid: 15px 15px / 15px 15px;
}

.score div {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}