/* Globale reset en basisinstellingen */
* {
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  font-size: 16px;
  height: 100%;
  overflow-x: hidden;
}

/* Landscape orientation styles */
@media (orientation: landscape) {
    body {
        font-size: 18px;
    }
}

/* Specific styles for tablets */
@media (max-width: 768px) {
    button {
        font-size: 0.9rem;
    }

    #answers-area {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

/* Specific styles for mobile devices */
@media (max-width: 480px) {

    #start-content,
    #quiz-content,
    #end-content {
        max-width: 80vw;
        padding: 15px;
    }

    button {
        font-size: 0.8rem;
        padding: 6px;
    }

    #answers-area {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

/* De dynamische achtergrond (lineaire gradient) wordt via JS op de body gezet */

/* Algemene styling voor alle schermen */
.screen {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 95vw;
  min-height: 100vh;
  padding: 10px;
  text-align: center;
  margin: 0 auto;
}

#start-content,
#quiz-content,
#end-content {
    max-width: 600px;
    margin: 0 auto;
    overflow-y: auto;
}

/* Algemene knopstijl */
button {
  min-width: 40px;
  min-height: 50px;
  margin: 10px;
  font-size: 1.2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Uniforme styling voor dropdowns en number-input */
select,
input[type="number"] {
  font-size: 1.2rem;
  padding: 8px;
  margin: 10px 0;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Startpagina */
#start-screen {}

#start-content {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  display: grid;
  grid-gap: 10px;
  width: 100%;
  z-index: 1;
  position: relative;
}

.selectie {
    width: 90%;
    margin: 0 auto;
}

/* Quizscherm */
#quiz-screen {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 100vh;
}

#quiz-content {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  width: 100%;
  margin: 20px auto;
}

#qa-container {
  position: relative;
}

#pause-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #333;
}

/* Voortgangsbalk */
#progress-container {
  width: 100%;
  background-color: #ddd;
  border-radius: 5px;
  height: 24px;
  margin-bottom: 30px;
  overflow: hidden;
}

#progress-bar {
  height: 100%;
  background-color: #4CAF50;
  width: 100%;
  transition: width 1s linear;
}

/* Antwoorden in een flexibel grid */
#answers-area {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 10px;
  margin-top: 20px;
}

.answer-btn {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  padding: 10px;
  text-align: center;
  word-wrap: break-word;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Spelling (invoerveld) */
.spelling-wrap {
  display: grid;
  grid-gap: 10px;
  margin-top: 20px;
}

.spelling-input {
  font-size: 1.4rem;
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 8px;
  width: 96%;
  margin: 0 auto;
}

.spelling-submit {
  background-color: #28a745;
  color: white;
}

.spelling-hint {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Control-knoppen */
#control-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

#control-buttons button {
  flex: 1;
  max-width: 150px;
}

/* Eindscherm */
#end-screen {}

#end-content {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  display: grid;
  grid-gap: 20px;
  width: 100%;
}

/* Specifieke knopkleuren */
.btn-start {
  background-color: #28a745;
  color: white;
}

.btn-pause {
  background-color: #fd7e14;
  color: white;
}

.btn-stop {
  background-color: #dc3545;
  color: white;
}

.btn-speak {
  background-color: #007bff;
  color: white;
}

.btn-restart {
  background-color: #28a745;
  color: white;
}

.btn-back {
  background-color: #6c757d;
  color: white;
}

/* Voor knoppen die alleen een icoon tonen */
.btn-only-icon {
  padding: 0;
}

.btn-icon {
  margin: 0;
}

/* Dynamische symbolen */
.symbol {
  position: fixed;
  z-index: -100;
  font-size: 3rem;
  font-weight: bold;
  transition: transform 3s ease-in-out;
}

/* Responsive aanpassingen */
@media (max-width: 50vw) {
  #start-content,
  #quiz-content,
  #end-content {
    padding: 20px;
  }

  button {
    font-size: 1rem;
  }
}
