@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  height: 100vh;
  width: 100vw;
  position: relative;
  background-color: #003161; /* Darker background color #333;*/
  color: #fff; /* Text color */
  font-size: 20px; /* Adjust text size here */
}

#question {
  text-align: center;
  font-weight: 700;
  /* margin-top: 120px; */
  /* border: 1px solid black; */
  padding: 50px 5px;
  background-color: #003161;
}

a {
  color: #fff; /* Text color */
  text-decoration: underline; /* Underline links */
  font-weight: bold; /* Bold text */
  transition: color 0.3s; /* Smooth transition for color change */
}

a:hover {
  color: #ccc; /* Change text color on hover */
}

.pass-button {
  background-color: #4caf50;
  color: white;
  width: 200px;
  border-radius: 5px;
  border: 1px solid black;
  /* position: absolute;
  bottom: 0;
  left: 0;
  margin-bottom: 15px;
  margin-left: 15px; */
}

.fail-button {
  background-color: #f44336;
  color: white;
  width: 200px;
  border-radius: 5px;
  border: 1px solid black;
  /* position: fixed;
  bottom: 0;
  width: 50%;*/
  /* padding: 15px 0;
  border: none;
  cursor: pointer;  */
}
.skip-button {
  background-color: rgb(5, 171, 248);
  color: white;
  width: 200px;
  border-radius: 5px;
  border: 1px solid black;
}

#home-button {
  background-color: #fff;
  color: black;
  border-radius: 5px;
  border: 1px solid black;
  font-size: 0.5em;
  max-width: 120px;
}
button:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

#question-display {
  font-size: 3em;
  margin-bottom: 20px;
  min-height: 130px;
}

#input {
  /* height: 4em; */
  font-size: 1.6em;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* width: 100%; */
}

/* .app-container {
  background-color: #474747;
  width: 90%;
  margin: 0 auto;
  padding: 15px;
} */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #003161;
  padding: 20px;
  text-align: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 777;
}
header a {
  text-decoration: none;
  color: #fff;
  cursor: pointer;
}
#main-title {
  text-align: center;
  padding: 10px 5px;
  background-color: rgb(255, 166, 0);
  margin: 0 0 20px 0;
  font-size: 1.4em;
  color: white;
  font-weight: 700;
  width: 100%;
}

/* .button-container {
  display: flex;
  align-items: center;
  justify-content: center;
} */

.button {
  flex: 1;
  padding: 10px;
  /* margin: 5px; */
  border: none;
  color: white;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  font-weight: 800;
  transition-duration: 0.4s;
  cursor: pointer;
}

.button:hover {
  background-color: #45a049;
}

.failed {
  color: red;
}

.passed {
  color: green;
}

#category {
  font-size: 1.8em;
  margin-top: 2em;
}
#results-print {
  padding: 1em;
  font-size: 1.3em;
}

/* .main-topic {
  text-align: left;
  margin-bottom: 0.5em;
  /* position: absolute;
  top: 0;
  left: 0; */
/* margin-top: 15px;
  margin-left: 15px;
  font-size: 1.3em; */
/* } */
#input-error {
  text-align: center;
  color: red;
  margin-top: 10px;
}
/* Reset default list styles */
ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* Style the list items */
ul li {
  margin: 30px 0px;
  margin-bottom: 10px; /* Add some spacing between list items */
  padding: 5px;
  width: 100%;
}

/* Style the anchor elements */
ul li a {
  font-size: 2.5em;
  /* display: block; Make anchor elements block-level for full width */
  padding: 10px; /* Add padding for better clickability */
  color: #fff; /* Text color */
  text-decoration: underline; /* Remove default underline */
  font-weight: bold; /* Bold text */
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

/* Hover effect for anchor elements */
ul li a:hover {
  color: #1625f7; /* Change text color on hover */
}
/* .right-arrow{
  font-size: 3em;
} */
/* Basic styling for radio buttons */
input[type="radio"] {
  appearance: none;
  border: 2px solid #ccc;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background 0.3s;
}

input[type="radio"]:checked {
  background-color: #007bff;
  border-color: #007bff;
}

input[type="radio"]:checked::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

label {
  margin-left: 8px;
  cursor: pointer;
}

/* Basic styling for radio buttons */
input[type="radio"] {
  appearance: none;
  border: 2px solid #ccc;
  border-radius: 50%;
  width: 20px; /* Increased size for better touch experience */
  height: 20px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background 0.3s;
  margin-right: 10px; /* Space between radio button and label */
}

input[type="radio"]:checked {
  background-color: #007bff;
  border-color: #007bff;
}

input[type="radio"]:checked::before {
  content: "";
  display: block;
  width: 12px; /* Increased size for better visibility */
  height: 12px;
  border-radius: 50%;
  background: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Basic styling for checkboxes */
input[type="checkbox"] {
  appearance: none;
  border: 2px solid #ccc;
  width: 20px; /* Increased size for better touch experience */
  height: 20px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background 0.3s;
  margin-right: 10px; /* Space between checkbox and label */
}

input[type="checkbox"]:checked {
  background-color: #007bff;
  border-color: #007bff;
}

input[type="checkbox"]:checked::before {
  content: "";
  display: block;
  width: 6px; /* Increased size for better visibility */
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  position: absolute;
  top: 2px;
  left: 6px;
  transform: rotate(45deg);
}

/* Label styling */
label {
  margin-left: 8px;
  cursor: pointer;
  display: inline-block; /* Ensure labels are on the same line as inputs */
}

/* Container for radio buttons and checkboxes */
.radio-container,
.checkbox-container {
  display: flex;
  align-items: center; /* Center vertically */
  margin-bottom: 16px; /* Space between each item */
}

/* Mobile responsiveness */
@media only screen and (max-width: 768px) {
  body {
    font-size: 16px; /* Adjust text size for smaller screens */
  }

  button {
    max-width: 150px; /* Adjust button width for smaller screens */
    height: 60px; /* Adjust button height for smaller screens */
    font-size: 1.1em; /* Adjust button text size for smaller screens */
  }

  #question-display {
    font-size: 2em; /* Adjust question display font size for smaller screens */
  }

  #input {
    font-size: 1.4em; /* Adjust input font size for smaller screens */
    height: 3em;
    padding: 1.5em;
    margin: 1em auto;
  }
  .main-topic {
    text-align: center;
    margin-top: 25px;
  }
  #results-print {
    padding: 1em;
    font-size: 1.5em;
  }
  ul li a {
    font-size: 1.5em;
    padding: 5px;
    border: 1px solid black;
    background-color: #007bff;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
  }
  #home-button {
    /* font-size: 0.5em; */
    max-height: 40px;
    padding: 5px;
  }
  .radio-container,
  .checkbox-container {
    padding: 10px 0; /* Space for better touch interaction */
    justify-content: flex-start; /* Ensure left justification */
  }
  /* .tall-btn {
    margin-top: 20px;
    height: 180px;
    width: 150px;
  } */
}
