/* Radio buttons for exams */
.container input {
  cursor: pointer;
}

/* Create a custom radio button size*/
.checkmark {
  height: 25px;
  width: 25px;

}

#questionBlock {
  min-height: 500px; 
  width: 85%;
  padding: 15px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: auto;
  font-size: 1.1em;
  line-height: 1.5;
}

.answerBlock {
  padding: 5px;
  border-top: 1px solid lightgray;
  border-bottom: 1px solid lightgray;
}

.buttons {
  display: flex;
  gap: 10px;
  padding: 10px 0;
}

/* The background backdrop */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it's on top of everything */
    visibility: hidden; /* Hidden by default */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* The actual spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Class to show the modal */
#loading-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Ensure only the root element handles scrolling */
html {
    height: 100%;
    overflow-x: hidden;
}

/* Ensure your Top Nav has these properties */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px; /* Match this height with your padding-top + 10px */
    z-index: 1040; /* Higher than the content */
}

body {
    /* Add padding to the bottom of the body equal to the height of the bar. 
       This prevents the bar from "sitting on top" of your last row of data.
    */
    padding-top: 60px;
    padding-bottom: 60px; 
  }

  .fixed-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #0d6efd; /* Bootstrap primary blue */
    color: white;
    font-size: small;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1030; /* Ensures it stays above other elements */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  }

.navbar-custom {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px; /* Force a height so we know how much padding-top to use */
    z-index: 1050; /* Bootstrap standard for fixed-top */
}