/* ================================
   Pamatstils
================================= */
body {
  font-family: Arial, sans-serif;
  margin: 20px;
  background-color: #f9f9f9;
  background-image: url("bg.jpg")
}

h1 {
  text-align: center;
  margin-bottom: 30px;
}

/* ================================
   3 kolonnas izkārtojums (CSS Grid)
================================= */
#cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 kolonnas */
  gap: 20px;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Katrs tēmas (kategorijas) bloks */
.category-block {
  width: 100%;
  border: 2px solid #ccc;
  padding: 10px;
  background-color: #fff;
  border-radius: 6px;
  opacity: 0.9;
  background-color: #800000;
}

.category-title {
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
  text-align: center;
  color: white;
  font-size: 30px;
}

/* ================================
   Jautājumu “kartiņas”
================================= */
.cards-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card {
  background-color: #fff;
  min-height: 60px;
  border: 1px solid #aaa;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s;
  text-align: center;
  font-size: 30px;
  padding: 5px;
  font-weight: bold;
}

.card:hover {
  background-color: #e6e6e6;
}

/* ================================
   Modālais logs
================================= */
.modal {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  display: none; /* sākumā slēpts */
  justify-content: center;
  align-items: center;
  background-color: rgba(0,0,0,0.5);
  z-index: 999;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  max-width: 800px;
  width: 80%;
  position: relative;
  border-radius: 8px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

.modal-question {
  margin-bottom: 15px;
  font-weight: bold;
  text-align: center;
  font-size: 2em;
}

/* Konteiners ar atbilžu “pogām” */
.modal-answers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center; /* centrē atbildes horizontāli */
}

/* Katra atbildes “poga” */
.answer-option {
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 80%;
  text-align: center;
  font-size: 2em;
}

.answer-option:hover {
  background-color: #eee;
}

/* Ja atbilde ir pareiza */
.answer-correct {
  background-color: #c2f5c2; /* gaiši zaļš */
}

/* Ja atbilde ir nepareiza */
.answer-incorrect {
  background-color: #f5c2c2; /* gaiši sārts */
}
