body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fefefe;
  color: #333;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px 30px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #008774;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.inline-logo {
  height: 50px;
  width: auto;
}

.intro {
  font-size: 1.05em;
  margin-bottom: 30px;
  color: #555;
}

.quiz-intro, .quiz-instructions {
  background-color: #e0f2f2;
  border-left: 4px solid #008774;
  padding: 15px 20px;
  border-radius: 6px;
  margin-bottom: 25px;
}

.quiz-instructions h2 {
  margin-top: 0;
  font-size: 1.3em;
}

.quiz-instructions ul {
  padding-left: 20px;
  margin: 0;
}

.quiz-instructions li {
  margin-bottom: 8px;
}

.quiz-start {
  margin-top: 40px;
  padding-top: 10px;
  border-top: 2px solid #e5f2f1;
}

.quiz-start h2 {
  color: #008774;
  font-size: 1.6em;
  margin-bottom: 10px;
}

.question {
  margin-bottom: 30px;
}

.question p {
  font-weight: 600;
  color: #000;
  font-size: 1.1em;
  margin-bottom: 15px;
}

.question h2 {
  font-size: 1.2em;
  color: #008774;
  margin-bottom: 10px;
}

.question label {
  display: block;
  margin-bottom: 10px;
  padding: 10px;
  background-color: #f2f8f7;
  border: 1px solid #d0e4e2;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.question label:hover {
  background-color: #e0f1ef;
}

.button-group {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

button[type="submit"], button[type="button"] {
  background-color: #008774;
  color: white;
  font-weight: bold;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #006b5c;
}

.result {
  margin-top: 30px;
  padding: 20px;
  background-color: #f2f8f7;
  border-left: 6px solid #008774;
  border-radius: 8px;
  font-size: 1.1em;
  display: block;
}

.result.hidden {
  display: none;
}

.vysledky {
  margin-top: 40px;
  font-size: 1em;
  line-height: 1.6;
}

.vysledky p {
  margin-bottom: 30px;
  background-color: #f7faf9;
  border-left: 4px solid #ccc;
  padding: 10px 16px;
  border-radius: 6px;
}

@media screen and (max-width: 768px) {
  .container {
    margin: 20px 10px;
    padding: 15px 20px;
  }

  header h1 {
    font-size: 1.4em;
  }

  .question h2 {
    font-size: 1em;
  }

  .button-group {
    flex-direction: column;
    align-items: stretch;
  }

  button {
    width: 100%;
  }

  .inline-logo {
    height: 40px;
  }
}
