/* Base styles */
body {
  font-family: Arial, sans-serif;
  margin: 0; /* Remove default margin */
  padding: 0;
  box-sizing: border-box;
}

h1 {
  text-align: center;
}

.question-container {
  margin-bottom: 20px;
  padding: 15px 0px 15px 15px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9;
}

/* Container for each question */
.question-container {
  margin-bottom: 20px; /* Space between questions */
}

/* Wrapper for question text and symbols */
.question-wrapper {
  display: flex; /* Align items in a row */
  align-items: center; /* Center items vertically */
  margin-bottom: 10px; /* Space below the question text */
}

/* Style for the question text */
.question {
  margin-right: 10px; /* Space between question text and symbol */
}

/* Style for the symbols */
.symbol {
  font-size: 1.5em; /* Adjust size as needed */
  color: #000; /* Default color for symbols */
  margin-bottom:10px;
}

/* Style for the options container */
.options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Style for each option */
.options label {
  display: block;
  margin: 0;
  padding: 10px;
  box-sizing: border-box;
  /* background: #f0f0f0;
  border: 1px solid #ddd; */
  border-radius: 5px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  word-break: break-word;
}

/* Adjustments for screens wider than 768px */
@media (min-width: 768px) {
  .options label {
    flex: 1 1 calc(50% - 10px);
  }
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
  .options label {
    flex: 1 1 100%;
  }
}

/* Ensure no conflicting styles are applied */
.options label input {
  margin-right: 8px;
}


.buttons-main {
  position: relative;
  bottom: 0;
  /* margin-top:20px ; */
  left: 0;
  right: 0;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.questions-container-main {
  padding-bottom: 50px; /* Adjust space for fixed buttons with additional 5px */
  width: 95%;
  margin: 0 auto;
  height: 300px; /* Set a fixed height to make it scrollable */
  overflow-y: auto; /* Enable vertical scrolling */
 }

/* Webkit browsers */
.questions-container-main::-webkit-scrollbar {
  display: none; /* Hide scrollbar */
}

/* Styles for tablets and laptops */
@media (min-width: 768px) {
  .questions-container-main {
    width: 80%;
    height: 500px; /* Adjust height for larger screens */
  }
}

/* Styles for larger screens (desktops) */
@media (min-width: 992px) {
  .questions-container-main {
    width: 80%;
    height: 600px; /* Adjust height for desktops */
  }
}

/* Question Container Specific Styles */
.question-container {
  margin-bottom: 20px; /* Space between questions */
}

/* Add extra spacing to ensure the last question is above the fixed buttons */
.question-container:last-of-type {
  margin-bottom: 55px; /* Ensure space for buttons and additional 5px for visibility */
}

.question {
  font-weight: bold;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.symbol {
  font-size: 20px;
  margin-left: 10px;
}

.correct {
  color: green;
}

.incorrect {
  color: red;
}

.options {
  display: flex;
  justify-content: space-around;
}

.options label {
  display: flex;
  margin-bottom: 5px;
  padding: 5px;
}

.option {
  cursor: pointer;
}

.correct-answer {
  margin-top: 10px;
  color: #007bff;
  font-style: italic;
  display: none; /* Initially hidden */
}

button {
  margin: 0 5px; /* Adjust spacing between buttons */
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.1); /* Lightly transparent background */
  color: white;
}

button.disabled {
  background-color: rgba(0, 0, 0, 0.2); /* More transparent when disabled */
  color: #666;
  cursor: not-allowed;
}

button:not(.disabled):hover {
  background-color: rgba(0, 0, 0, 0.3); /* Slightly darker on hover */
}

.close {
  position: fixed;
  right: 15px;
  top: 5px;
  height: 43px;
  width: 43px;
  border-radius: 50%;
  background-image: url('../images/close.png');
  cursor: pointer;
}

/* Responsive Design */

/* Base styles (for mobile first) */
.questions-container-main {
  width: 95%;
  margin: 0 auto;
}

/* Styles for tablets and laptops */
@media (min-width: 768px) {
  .questions-container-main {
    width: 80%;
  }
}

/* Styles for larger screens (desktops) */
@media (min-width: 992px) {
  .questions-container-main {
    width: 80%;
  }
}

/* Additional Styles for New Elements */
.game {
  width: 1076px;
  height: 792px;
  position: relative;
  margin: 0 auto;
}

.gameContainer {
  width: 100%;
  height: 100%;
  position: absolute;
  background-image: url('.//images/CH-06.gif');
  overflow: hidden;
  background-size: 100% 100%;
}

.new-div {
  margin: 20px 10px; /* 20px top and bottom, 10px right and left */
  padding: 20px; /* Optional: Add padding to the div */
  box-sizing: border-box; /* Ensure padding is included in the total width and height */
}


input[disabled] + .option {
    cursor: not-allowed; /* Not-allowed cursor for disabled inputs */
}
