body {
  background: linear-gradient(135deg, #ffe6f2, #d9e8ff);
  margin: 0;
  padding: 0;
  font-family: "Nunito", sans-serif;
  font-style: normal;
  font-size: 16px;
}

header {
  width: 100%;
  text-align: center;
  padding-top: 50px;
}

h1 {
  font-size: 2.6rem;
  color: #353c7e;
}

h2 {
  font-size: 1.8rem;
  padding-left: 30px;
  padding-right: 30px;
}

h3 {
  font-size: 1.4rem;
  color: #353c7e;
}

p,
li {
  font-size: 1rem;
  font-weight: 500;
}

.container {
  text-align: center;
  width: 90%;
  padding: 25px;
  border-radius: 20px;
  display: flex;
}

.container-items {
  width: 50%;
  padding: 0 50px;
}

.intro {
  padding: 0 40px;
}

.intro span {
  color: #e35860;
  font-weight: 600;
}

.rules,
.features {
  text-align: center;
  margin: 0 auto 10px;
  width: fit-content;
  list-style-type: none;
  padding-left: 0;
}

.rules li::before {
  content: "🎓 ";
}

.note {
  font-size: 1rem;
}
.rules li {
  font-size: 1rem;
}

button {
  color: white;
  border: none;
  padding: 13px 22px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 15px;
  font-weight: 800;
  transition: 300ms ease-in-out;
  background-color: #e35860;
  margin-left: 3px;
  margin-right: 3px;
}

button:hover {
  background-color: #64c3eb;
  transition: 300ms ease-in-out;
}

.controls {
  margin-bottom: 30px;
}

select {
  padding: 13px 22px;
  border-radius: 20px;
  border: none;
  font-weight: 800;
  font-size: 0.9rem;
  margin-left: 3px;
  margin-right: 3px;
  margin-top: 15px;
  appearance: none; /* dla większości przeglądarek */
  -webkit-appearance: none; /* Safari */
  -moz-appearance: none; /* Firefox */
  background: url("down-chevron.png") no-repeat right 10px center;
  padding-right: 30px; /* miejsce na strzałkę */
  background-size: 12px;
  background-color: #353c7e;
  color: #eee;
}

option {
  font-size: 0.9rem;
  border-bottom: 1px solid #eee;
  font-weight: 500;
}
option:hover {
  color: #e35860;
}

.card {
  width: 100%;
  height: 350px;
  perspective: 1000px;
  cursor: pointer;
  margin-bottom: 15px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px,
    rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
  backface-visibility: hidden;
  background: linear-gradient(135deg, #fef3f9, #eff6ff);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-back {
  transform: rotateY(180deg);
  overflow-y: auto;
  display: block;
  text-align: center;
  overflow-y: auto;
}

.hint {
  color: #64c3eb;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 10px 0 5px;
}

#words {
  color: #333;
  font-weight: 500;
  font-size: 1.2rem;
}

.category {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64c3eb;
}

#answer {
  text-align: center;
  box-sizing: border-box; 
  padding: 70px;        
  line-height: 1.6;
  white-space: normal;
  font-size: 1.1rem;
}

#answer span.highlight-word {
  display: inline; 
  background-color: #64c3eb;
  font-weight: 800;
  color: #eee;
  padding: 1px 2px;
  border-radius: 4px;
  white-space: nowrap;
}
