/* app/assets/style.css */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700&family=Noto+Serif+KR:wght@400;700&display=swap');

:root {
  /*--bs-body-bg: #d1dceea0;*/
}

html {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans KR', sans-serif;
}

body {
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  overflow-x: hidden;
  height: 100%;
  margin: 0;
  padding: 0;
  /*background-image: linear-gradient(
    to right,
    #8996bf80 20%,
    #8996bf80 80%
  );*/
}

.serif {
  font-family: 'Noto Serif KR', serif !important;
}

.sans {
  font-family: 'Noto Sans KR', sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans KR', sans-serif !important;
}

.accordion-button {
  background-color:  #eeeeee !important;
  color: #151515 !important;
  line-height: 1.6;
}
.accordion-button:focus {
  background-color: #eeeeee;
  color: #151515;
  box-shadow: none;
  line-height: 1.6;
}
.accordion-body {
  background-color: #eeeeeedf;
  color: #151515;
  line-height: 1.6;
}

/* Change accordion toggle arrow (chevron) color */
.accordion-button::after {
  filter: invert(0.8);
}

.card-body {
  opacity: 0.9 !important;
}

.opaque-modal-content {
  color: #e0e0e0;
  background-color: #5d6b6d;
  opacity: 1;
}

.opaque-dark {
  color: #e0e0e0;
  background-color: #303030;
  opacity: 1;
}

.dropdown-menu {
  color: #e0e0e0 !important;
  background-color: #b0b0b0;
  opacity: 1;
}

.dropdown-item: disabled {
  color: #e0e0e0;
  opacity: 0.5;
  cursor: not-allowed;
}

.Select-multi-value {
  display: flex;
  align-items: center;
  margin-right: 0.5rem;
}

.Select-multi-value-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  margin-right: 2rem; /* Prevent overlap with the close button */
}

.dropdown-style {
  white-space: nowrap;
}

.btn-outline-dark.outline-dark:hover {
  background-color: black !important;
  color: white;
  border-color: black;
}

.dash-spinner.dash-graph-spinner {
  position: absolute;
  top: 50px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 1000;
}

.vod {
  box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  background-color: #000000b0;
}

.video-wrapper {
  position: relative;
  max-width: 560px;
  width: 100%;
  aspect-ratio: 16/9;
  margin: auto;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  border: none;
}

.Select-menu {
  color: #232323;
  white-space: nowrap;
}

.radio-wrapper {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.custom-radio {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.custom-radio label {
  display: flex;
  align-items: center;
  padding: 12px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
}
.custom-radio input[type="radio"] {
    margin-right: 4px;
    cursor: pointer;
}
.custom-radio label:has(#radio-suneung) {
  background-color: #3d9bb5;
  border: 1px solid #f0f0f0e0;
}
.custom-radio label:has(#radio-grade) {
  background-color: #48ae48;
  border: 1px solid #f0f0f0e0;
}
.custom-radio label:has(#radio-international) {
  background-color: #ec4843;
  border: 1px solid #f0f0f0e0;
}
.custom-radio label:hover {
  opacity: 0.8;
}
.custom-radio input[type="radio"]:checked + label {
  box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

.circle {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid black;
  text-align: center;
  line-height: 16px;
  margin: 3px;
  font-size: 15px;
}

.rectangle {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 1px solid black;
  text-align: center;
  line-height: 20px;
  margin: 3px;
  font-size: 13px;
}

/* KNS individual problem dropdown buttons */
.problem-dropdown-outline .dropdown-toggle {
    color: #212529 !important;
    background-color: transparent !important;
    border-color: #212529 !important;
}

.problem-dropdown-outline .dropdown-toggle:hover,
.problem-dropdown-outline .dropdown-toggle:focus,
.problem-dropdown-outline .dropdown-toggle.show,
.problem-dropdown-outline.show > .dropdown-toggle {
    color: #ffffff !important;
    background-color: #212529 !important;
    border-color: #212529 !important;
}

.problem-dropdown-outline .dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.25) !important;
}


/* Generated Suneung result controls and spacing */
.kns-generation-summary-alert,
.kns-generation-item-alert,
.kns-generation-copy-controls,
.kns-generation-copy-controls .btn {
    font-family: 'Noto Sans KR', sans-serif !important;
}

.kns-generation-summary-alert {
    margin-top: 0;
}

.kns-generation-copy-controls {
    margin: 0.55rem 0 1rem;
}

.kns-generation-copy-controls .btn {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.5;
    padding: 0.2rem 0.55rem;
}

.kns-generation-item-alert {
    font-size: 0.9rem;
}

.kns-copy-question-source,
.kns-copy-solution-source {
    display: none !important;
    white-space: pre-wrap;
}

.kns-copy-question,
.kns-copy-solution {
    width: 100%;
    /* Generated exam layouts intentionally use leading and repeated spaces. */
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    tab-size: 4;
}

.kns-copy-question u,
.kns-copy-solution u {
    text-decoration-thickness: 1px;
    text-underline-offset: 0.12em;
}

/* Problem 25: screen as a real table while copy keeps the ASCII source. */
.kns-problem-25-visual {
    width: 100%;
}

.kns-problem-25-title {
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.kns-problem-25-table {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: transparent;
}

.kns-problem-25-table th,
.kns-problem-25-table td {
    text-align: center;
    vertical-align: middle;
    white-space: normal;
}

.kns-problem-25-table th:first-child,
.kns-problem-25-table td:first-child {
    text-align: left;
}
