*{
  box-sizing: border-box;
}    
:fullscreen #top, :fullscreen footer{
  display:none;
}

body {
  font-family: Arial, sans-serif;
  font-size: 19px;
  margin: 0;
  padding: 0;
  text-align: center;
  background-color: #f0f0f0;
  color: #333;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

header {
  background-color: #4CAF50;
  color: white;
  padding: 1rem 0;
  text-align: center;
}

header h1 {
  margin: 0;
  color: #333;
}

main {
  flex-grow : 1;
  width : 100vw;
  display : flex;
  flex-direction : column;            
  overflow : auto;
}

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1rem 0;
  width: 100%;
}

footer p {
  margin: 0;
}

/* Remove bullet points from all lists */
ul {
  list-style-type: none;
}

/* Remove bullet points from tree lists but keep indentation */
.tree {
  margin: 0;
  padding-left: 1.5rem;
}

/* Make summary elements clearly clickable */
summary {
  cursor: pointer;
}

/* Style for "Coming soon..." placeholder */
.coming-soon {
  color: #6c757d;
  font-style: italic;
  padding: 1rem;
  text-align: center;
  background-color: #f8f9fa;
  border-radius: 4px;
  margin: 0.5rem 0;
}

ol.question-list li{
  margin-bottom: 1rem;
  font-size: 1.2em;
}

section p, section ol, section ul {
  text-align: left;
}

p{
  text-indent: 30px;
  line-height: 1.2em;
}

.confetti {
  position: fixed;
  top: 0;
  animation: fall 3s linear infinite;
  opacity: 0;
}
@keyframes fall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(500px) rotate(360deg);
    opacity: 0;
  }
}
.confetti-polygon {
  left: 10%;
  animation-delay: 0s;
}

.confetti-circle {
  left: 50%;
  animation-delay: 1s;
}

question-set ul{
  position : relative;
  list-style: none;
}

content-question.hidden {
  display: none;
}   
content-question {
  display: block;
  margin: 0 auto;
  max-width: 600px;
  padding: 1rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
content-question.current {
  animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}   

.question-container {
  position: relative;
}

.question-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px;
  background: #f8f9fa;
  border-radius: 8px;
}
.question-nav-controls{
  display: flex;
  flex-grow : 1;
  justify-content: center;
}
.nav-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.nav-btn:hover:not(:disabled) {
  background: #0056b3;
}

.nav-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.progress-bar {
  flex: 1;
  position: relative;
}

.question-counter {
  font-weight: 500;
  color: #495057;
}

.view-controls {
  margin: 5px 0;
  background: #f8f9fa;
  border-radius: 6px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  padding: 5px;
}

.view-control-button {
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  border: 1px solid transparent;
}

.view-controls .view-control-button:hover {
  background-color: #e9ecef;
}

.view-control-checkbox {
  /* Visually hide the checkbox but keep it accessible */
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  cursor: pointer;
}

.view-control-checkbox:checked + svg {
  stroke: #007bff; /* Highlight color for active icon */
}

.view-controls .view-control-button svg {
  stroke: #495057; /* Default icon color */
}

.timer-section {
  margin-bottom: 20px;
}

.question-item {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin: 15px 0;
  transition: all 0.3s ease;
  position: relative;
}

.question-item.correct {
  border-color: #28a745;
  background-color: #f8fff9;
}

.question-item.incorrect {
  border-color: #dc3545;
  background-color: #fff8f8;
}

.question-item.completed {
  border-color: #17a2b8;
  background-color: #f8f9fa;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.question-title {
  margin: 0;
  color: #333;
  font-size: 1.2em;
}

.question-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: 500;
}

.status-unanswered {
  background-color: #f8f9fa;
  color: #6c757d;
}

.status-correct {
  background-color: #d4edda;
  color: #155724;
}

.status-incorrect {
  background-color: #f8d7da;
  color: #721c24;
}

.status-completed {
  background-color: #d1ecf1;
  color: #0c5460;
}

.question-feedback {
  margin: 10px 0;
  padding: 10px;
  border-radius: 4px;
  font-weight: 500;
}

.feedback-correct {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.feedback-incorrect {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.question-statement {
  margin-bottom: 20px;
  line-height: 1.6;
}

.question-inputs {
  margin-bottom: 20px;
  text-align: center;
}

.question-inputs h4 {
  text-align: center;
  margin-bottom: 15px;
  color: #333;
}

.input-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.input-list li {
  margin-bottom: 0;
  width: 100%;
  max-width: 400px;
}

.input-list .input {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}


                
        .feedback {
            padding: 8px 12px;
            border-radius: 4px;
            margin: 8px 0;
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 500;
            animation: fadeIn 0.3s ease-in;
            width: 100%;
            justify-content: center;
        }
        
        .feedback-success {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        
        .feedback-error {
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        
        .feedback-neutral {
            background-color: #d1ecf1;
            color: #0c5460;
            border: 1px solid #bee5eb;
        }
        
        .feedback-icon {
            font-size: 1.2em;
        }
        
        .correct-input {
            border-color: #28a745 !important;
            background-color: #f8fff9;
        }
        
        .incorrect-input {
            border-color: #dc3545 !important;
            background-color: #fff8f8;
        }
        
        .submit-btn {
            padding: 8px 16px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.2s ease;
            min-width: 120px;
        }
        
        .submit-btn:not(:disabled) {
            background-color: #007bff;
            color: white;
        }
        
        .submit-btn:not(:disabled):hover {
            background-color: #0056b3;
        }
        
        .submit-btn:disabled {
            background-color: #28a745;
            color: white;
            cursor: not-allowed;
        }
        
        input[type="text"] {
            width: 100%;
            padding: 10px;
            border: 2px solid #ddd;
            border-radius: 4px;
            font-size: 16px;
            text-align: center;
        }
        
        input[type="text"]:focus {
            outline: none;
            border-color: #007bff;
        }
        
        label {
            text-align: center;
            margin-bottom: 8px;
            font-weight: 500;
            color: #333;
        }
        
        .error {
            color: #dc3545;
            font-size: 0.9em;
            text-align: center;
        }

        .big-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background-color: #28a745;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.big-button:hover {
  background-color: #218838;
}
                
/* Small devices (e.g., iPhone 7 width 375px) */
@media (max-width: 500px) {
  body {
    font-size: 16px;
    height: auto;
    min-height: 100vh;
    overflow: auto; /* allow page to scroll */
  }

  main {
    width: 100vw;
    padding: 0 0.75rem;
  }

  content-question#main {
    max-width: 100%;
    padding: 0.75rem;
    border-radius: 6px;
    display: block;

  }

  .question-nav {
    gap: 8px;
    margin: 12px 0;
    padding: 4px;
  }

  .nav-btn {
    display: none;
  }
.question-counter {
  display: none;
}
  .progress-bar {
    margin: 0 10px;
  }

  .question-title {
    font-size: 1.05em;
  }

  .input-list li {
    max-width: 100%;
  }

  input[type="text"] {
    font-size: 15px;
    padding: 8px;
  }
}
#login-dialog{
  padding: 20px;
  border: none;
  border-radius: 8px;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.more-actions{
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 15px;
  font-size: xx-large;
}

/* Small devices (e.g., iPhone 7 width 375px) */
@media (max-width: 500px) {
  #main.split aside#main-aside{
    display: none;;
  }
  #main.split.started #main-aside {
    display: block;
  }

}
@media (max-height:500px) {
  #top, footer{
    display: none;
  }    
  
}


