body {
  font-family: 'Inter', Arial, sans-serif;
  background: linear-gradient(135deg, #3a4a3f, #1f2a24); 
  margin: 0;
  padding: 0;
  color: #f5f5dc; 
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

header {
  background: #2f3a32; 
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
  position: relative;
}

header h1 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  color: #f5f5dc;
  flex: 1 1 100%;
  text-align: center;
}

nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex: 1 1 100%;
}

nav button {
  background: transparent;
  border: none;
  color: #cfcfaf;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: 0.2s;
  font-size: 0.95rem;
}

nav button:hover { background: #4b5d4d; color: #fff; }
nav button.active { background: #556b2f; color: #fff; }

#settingsBtn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: #3b493d;
  border: none;
  color: #f5f5dc;
  font-size: 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  padding: 6px 8px;
  transition: background 0.2s;
}
#settingsBtn:hover { background: #556b2f; }

#settingsMenu {
  position: absolute;
  top: 45px;
  right: 16px;
  background: #2f3a32;
  border: 1px solid #556b2f;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.7);
  display: none;
  flex-direction: column;
  min-width: 180px;
  z-index: 10;
}

#settingsMenu button {
  background: transparent;
  border: none;
  color: #f5f5dc;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  font-size: 0.95rem;
  border-radius: 8px;
}

#settingsMenu button:hover {
  background: #556b2f;
  color: #fff;
}

main {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.quiz {
  background: #3a4a3f;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.quiz h2 { margin-bottom: 15px; font-size: 1.4rem; color: #f5f5dc; }

.quiz img {
  width: 100%;
  max-width: 140px;
  height: auto;
  margin: 10px 0 20px;
  border-radius: 12px;
  background: #2f3a32;
  padding: 12px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-height: 160px;
  max-height: 160px;
}

.choices { display: grid; gap: 10px; } 

.choice {
  padding: 10px 12px;
  border: 1px solid #556b2f;
  border-radius: 12px;
  background: #2f3a32;
  cursor: pointer;
  transition: all 0.25s ease;
  font-weight: 500;
  color: #f5f5dc;
  font-size: 0.95rem;
}

.choice:hover { background: #6b8e23; color: white; border-color: #6b8e23; }
.correct { background: #228b22 !important; border-color: #228b22 !important; color: #fff !important; }
.wrong { background: #8b0000 !important; border-color: #8b0000 !important; color: #fff !important; }

button.action {
  margin-top: 10px;
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  background: #556b2f;
  color: white;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.25s ease, transform 0.2s ease;
}

button.action:hover:not(:disabled) { background: #6b8e23; transform: scale(1.03); }
button.action:disabled { background: #4b4b3f; cursor: not-allowed; }

#inputPage input[type="text"],
#natoPage input[type="text"] {
  width: 100%;
  max-width: 300px;
  margin: 10px auto 10px auto;
  display: block;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #556b2f;
  background: #2f3a32;
  color: #f5f5dc;
  font-size: 0.95rem;
  box-sizing: border-box;
}

input[type="text"]:focus { outline: none; border-color: #6b8e23; }


#feedbackContainer, #feedbackContainerInput {
  display: flex;
  flex-direction: column;
  gap: 28px;          
  min-height: 320px;  
  max-height: 420px;
  padding: 16px;
  margin-bottom: 25px;
  background: rgba(0,0,0,0.05);
  border-radius: 10px;
  overflow-y: auto;
}

#feedbackContainerNato {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-height: 100px; 
  max-height: 200px;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 10px;
  box-sizing: border-box;
  text-align: left;
  background: rgba(0,0,0,0.05);
  border-radius: 8px;
}

#feedback, #feedbackInput, #natoFeedback {
  margin: 0px;
  font-weight: bold;
  font-size: 1rem;
  min-height: 60px; 
  line-height: 1.3;
}


#wrongResults, #wrongResultsInput, #wrongResultsNato {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 300px;
  scrollbar-width: none; 
}

#wrongResults::-webkit-scrollbar, 
#wrongResultsInput::-webkit-scrollbar, 
#wrongResultsNato::-webkit-scrollbar {
  display: none; 
}

.wrongListItem {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  border: 1px solid #ccc;
  padding: 4px 8px;
  border-radius: 5px;
  background: transparent;
  word-break: break-word;
  box-sizing: border-box;
}

.wrongListItem img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

.progress {
  font-size: 1rem;
  font-weight: bold;
  color: #f5f5dc;
  text-align: center;
  margin: 0 auto 10px auto;
  background: none;
  padding: 8px 12px;
  border-radius: 8px;
  border: 3px solid red;
  width: 60%;
}

#KontaktPage p a {
  color: #cfcfaf;
  text-decoration: underline;
}

#KontaktPage p a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .quiz { padding: 16px; max-width: 95%; }
  .quiz img { max-width: 120px; min-height: 120px; margin-bottom: 15px; }
  .choice { font-size: 0.9rem; padding: 8px 10px; }
  button.action { font-size: 0.9rem; padding: 8px 14px; }
  
  #feedbackContainer, #feedbackContainerInput { min-height: 180px; max-height: 240px; padding: 12px; }
  #wrongResults, #wrongResultsInput, #wrongResultsNato { max-height: 200px; }
}


