/* Full-page layout */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Roboto, sans-serif;
}

/* Container for the entire layout */
#container {
  display: flex;
  flex-direction: column;
  height: 100vh; /* Full viewport height */
}

/* Header (top content) */
#header {
  padding: 10px;
  display: flex;
}

#question-info {
  flex: 1;
  text-align: center;
  span {
    margin: 0px .2em;
  }
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  border: 0;
  height: 1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

#section {
  font-weight: bold;
  display: none;
}

#category {
  font-weight: bold;
}

#skill {
  
}

#difficulty {
  font-style: italic;
  color: #666;
}

#main {
  flex: 1;
  display: flex;
  overflow: hidden;
}

#stimulus, #question {
	overflow-y: auto;
	padding: 10px;
}

#stimulus, #question, #desmos {
	flex: 1;
	max-height: 100%;
}

#bottom-bar {
  padding: 10px;
  text-align: center;
}

#sprInput.correct {
	outline-color: #008000;
	background-color: #f0fff0;
	border-color: #40a040;
}

#sprInput.incorrect {
	outline-color: #800000;
	background-color: #fff0f0;
	border-color: #a04040;
}

#sprInput {
	border: .8px solid #767676;
	border-radius: 2px;
}

.correct.reveal > .mcqBtn {
	background-color: #f0fff0;
	border-color: #008000;
}
.incorrect.reveal > .mcqBtn {
	background-color: #fff0f0;
	border-color: #800000;
}
.reasoning {
	display: none;
}
.reveal .reasoning {
	display: block;
}
.mcqBtn {
	font-size: unset;
	background-color: unset;
	font-family: unset;
	display: block;
  border: 2px solid black;
  padding: 5px;
  margin: 5px;
  border-radius: 10px;
  text-align: left;
  width: 100%;
}
:not(.reveal) > .mcqBtn {
	cursor: pointer;
}
:not(.reveal) > .mcqBtn:hover {
	opacity: 0.5;
}
.mcqBtn p {
	display: inline;
}
.mcqOption p {
	margin: 0px;
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
#sprInput {
  font-family: monospace;
  font-size: 1.5em;
}



/* select questions css */
div, span, label, form {
  box-sizing: border-box;
}
#question-selector-container {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.1);
  padding: 8vh;
  overflow-y: hidden;
}
#question-selector {
  background-color: white;
  height: 100%;
  border: solid black 2px;
  border-radius: 20px;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  .selector-header {
    text-align: center;
    h1 {
      margin: 0px;
    }
  }
  .selector-footer {
    display: flex;
    flex-direction: row;
  }
  .selector-footer-left {
    flex: 1;
  }
  .selector-footer-right {
    flex: 1;
    text-align: end;
  }
  .section-columns {
    flex: 1;
    overflow: hidden;
    display: flex;
    gap: 20px;
  }
  .section {
    overflow-y: auto;
    flex: 1;
    margin: none auto;
  }
  .section-title {
    margin-top: 0px;
    margin-bottom: 0.5em;
  }
  a {
    font-weight: normal;
    text-decoration-thickness: 0.1em;
    margin-left: 0.5em;
    font-size: 0.85em;
  }
  .categories {
    display: grid;
    grid-template-columns: min-content auto;
    /* grid-column-gap: 0px; */
    .category-title {
      grid-column: 1 / -1;
      margin-bottom: 0px;
      margin-top: 0.5em;
    }
    input {
      margin-left: 20px;
    }
    /* .skill {
      margin-left: 20px;
    } */
  }
  .difficulty-title {
    display: inline;
  }
  .difficulty {
    vertical-align: bottom;
    display: inline-block;
    overflow: hidden;
    & > input {
      appearance: none;
      width: 50px;
      height: 1em;
      border: 2px solid black;
      border-left: none;
      display: inline-block;
      cursor: pointer;
      background-color: #eee;
      margin: 0px;
      &:checked {
        /* background-color: #4080ff; */
        background-color: #0874fc;
      }
      &:hover {
        opacity: 0.7;
      }
      &:first-of-type {
        border-top-left-radius: 1em;
        border-bottom-left-radius: 1em;
        border-left: 2px solid black;
      }
      &:last-child {
        border-top-right-radius: 1em;
        border-bottom-right-radius: 1em;
      }
    }
  }
}

button {
    font-weight: normal;
}