body {
  font-family: 'Roboto', sans-serif;
}

h1, h2 {
  font-family: 'Roboto', sans-serif;
}

.content {
  margin-top: 70px;
}

.custom-toggler {
  padding: 0.25rem;
  background-color: transparent;
  border: none;
}

.custom-select {
  width: 100%;
}

.button,
.button-homescreen,
.button-card-md {
  display: inline-block;
  margin: 5px;
  padding: 10px;
  border-radius: 25px;
  transition: background-color 0.3s;
  background-color: #ef1941;
  color: #FFFFFF;
  border: none;
  text-decoration: none !important;
  cursor: pointer;
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button-card-md {
  display: flex;
  align-items: center;
  justify-content: center;
}

.button-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  /* align-items: stretch; */
  width: 100%;
  padding: 0;
  margin: 0 auto;
  box-sizing: border-box;
}

.button-homescreen,
.cardbutton {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 100%;
  padding: 12px;
  margin: 5px;
  background-color: #ef1941;
  color: #FFFFFF;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  white-space: normal;
  line-height: 1.2;
  font-size: 1rem;
}

.bordered-container {
  border: 5px solid #0f104d;
  background-color: #fff;
  padding: 1rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
  border-radius: 1rem;
}

.table-responsive{
  overflow-x: auto;
}

.textarea {
  text-align: left; /* Set text alignment to left */
}

.question-container{
  display: none;
}

.students-container{
  display: none;
}

.loading-container {
  display: none;
}

/* ---------------- Form Group ---------------- */

table {
  width: 100%;
  border-collapse: collapse;
}

.table thead th {
  background-color: rgba(239, 25, 65, 0.6);
  color: #FFFFFF;
  border-bottom: none;
}

td, th {
  padding: 0.5rem;
  text-align: center;
}

/* ---------------- Form Group ---------------- */
.form-group.row{
  display: flex;
  align-items: center;
  margin-left: 0;
  margin-right: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group .button {
  width: 100%;
  max-width: 150px;
  margin: 0 auto;
}

.button.ml-2 {
  margin-left: 10px;
}

.bordered-container .form-group .col-md-4,
.bordered-container .form-group .col-md-8 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.form-control {
  border-radius: 6px;
  padding: 0.75rem;  /* Adding padding for better visual balance */
}

select.form-control {
  box-sizing: border-box;
  line-height: 1.5 !important;
  height: calc(1.5em + .75rem + 2px) !important; /* matches Bootstrap default */
  min-height: calc(1.5em + .75rem + 2px) !important;
  padding-top: .375rem !important;
  padding-bottom: .375rem !important;
  font-family: inherit !important;
}


.text-md-right {
  text-align: right;
}

/* ---------------- Nav Bar ---------------- */

.navbar {
  background-color: #0f104d;
  height: 60px;
  padding: 0 1rem;
  z-index: 1030; /* Ensure it stays on top */
}

.nav-logo {
  max-height: 120px;
}

.nav-separator {
  position: relative;
  margin: 0 0.5rem;
  text-decoration: none;
}

.nav-separator::after {
  content: "|";
  position: absolute;
  right: -0.6rem;
  color: white;
}

.nav-separator:last-child::after {
  content: ""; /* No separator after last item */
}

.navbar-nav .nav-link {
  padding: 0.5rem 1rem;
  transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
  color: #f8c94c; /* Highlight on hover */
}

.navbar-toggler-icon {
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%2370d6ea' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ----------------------------------------------------------------------- */
.image-container {
  /* Make sure container doesn't collapse */
  overflow: visible;
}

.image-wrapper {
  display: inline-block;
  margin: 0.5rem;
  border: 1px solid #ccc;
  padding: 4px;
  border-radius: 6px;
  max-width: 150px;  /* limit max size */
  max-height: 150px;
  vertical-align: middle;
}

.image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}
/* ----------------------------------------------------------------------- */







