html,
body,
* {
  font-family: sans-serif;
  font-size: 12px;
  margin: 0px;
  padding: 0px;
  list-style: none;
  box-sizing: border-box;
}

:root {
  --col-lightgray: #dddddd;
  --col-accent-blue: #0066cc;
  --col-red: #dd0000;
  --col-green: #8fdf68;
  --col-accent-green: #316219;
  --col-accent-yellow: #ffcc00;

  --header-height: 60px;
  --footer-height: 30px;
  --side-width: 200px;
  --padding-main: 20px;

}


a {
  text-decoration: none;
  color: var(--col-accent-blue);
}

html,
body {
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
}

#wrap {
  display: flex;
  position: fixed;
  top: var(--header-height);
  bottom: var(--footer-height);
  width: 100%;
  background: #ffffff;
}

#header {
  position: fixed;
  top: 0px;
  height: var(--header-height);
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--col-lightgray);
  z-index: 10;
}

#sidebar {
  width: var(--side-width);
  border-right: 1px solid var(--col-lightgray);
  padding: var(--padding-main);
}

#sidebar i {
  font-size: 10px;
  margin-right: 5px;
}

#sidebar dt {
  font-weight: bold;
}

#sidebar dt,
#sidebar dd {
  display: flex;
  align-items: center;
  width: 100%;
}

#sidebar dd a {
  display: block;
  padding-top: 10px;
  padding-left: 10px;
  width: 100%;
  cursor: pointer;
}

#sidebar dd a:hover {
  opacity: 0.7;
}

#sidebar dl {
  margin-bottom: 20px;
}

#main {
  width: calc(100% - var(--side-width));
  padding: var(--padding-main);
  overflow: auto;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

#main h2 {
  font-size: 16px;
}

#footer {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 0px;
  width: 100%;
  background: #ffffff;
  height: var(--footer-height);
  border-top: 1px solid var(--col-lightgray);
}

#copyright {
  font-size: 10px;
}

#branding {
  width: 400px;
  height: 100%;
  display: flex;
  align-items: center;
}

#branding h1 a {
  font-size: 24px;
  padding: 20px;
}

#pauling {
  /* display: none; */
}

#header_menu_toggle {
  position: absolute;
  right: 10px;
  top: 15px;
  background: #ffffff;
  height: 30px;
  border: 1px solid #000000;
  border-radius: 50px;
  display: flex;
  align-items: center;
  padding: 0px 5px 0px 15px;
  gap: 10px;
  color: #000000;
}

#header_menu_toggle i {
  font-size: 20px;
}

#header_menu_toggle em {
  font-style: normal;
}

#header_menu {
  position: fixed;
  right: 10px;
  top: 59px;
  background: #ffffff;
  border: 1px solid var(--col-lightgray);
  min-width: 150px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 10;
}

#header_menu a {
  padding: 10px;
  margin: 0px 10px;
  display: block;
  border-bottom: 1px solid var(--col-lightgray);
}

#header_menu li:last-child a {
  border-bottom: 0px;
}

#header_menu a i {
  display: inline-block;
  margin-right: 5px;
}

.back_course {
  margin-bottom: 10px;
}

.back_course i {
  margin-right: 10px;
}

#user_list table,
.lesson_list dt:not(:first-child) {
  margin-top: 10px;
}

.lesson_list_thumb {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--col-lightgray);
  width: 100%;
  position: relative;

}

#course_contents .lesson_list_thumb {
  display: flex;
  border-bottom: 0px;
  margin-top: 40px;
}

#course_contents .lesson_list_thumb dt {
  display: none;
}

#course_contents .lesson_list_thumb dl {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 40px 20px;
  justify-content: center;
}

.lesson_couse_title {
  padding: 5px;
  color: #000000;
}

.lesson_course_progress {
  padding: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--col-lightgray);
}

.lesson_progress * {
  font-size: 10px;
}

.lesson_list_thumb .lesson_course {
  width: 200px;
  min-width: 200px;
  background: #ffffff;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3);
}

.lesson_list_thumb .thumb img {
  display: none;
}

.lesson_list_thumb .thumb {
  aspect-ratio: calc(16/9);
  background-size: cover;
  background-position: center center;
  background-repeat: none;
}

#course_list .lesson_list_thumb dl {
  display: flex;
  gap: 20px;
  width: calc(100% - 200px);
  overflow: hidden;
  padding: 10px 50px 10px 40px;
  /* position: relative; */
  margin-left: -10px;
}

#course_list .lesson_list_thumb dl dt {
  display: flex;
  align-items: center;
  position: absolute;
  height: 100%;
  top: 0px;
  left: 0px;
  padding: 10px;
  background: #ffffff;
  cursor: pointer;
  z-index: 10;
}

.lesson_list_thumb dl dt:hover i {
  opacity: 0.7;
}

#course_list .lesson_list_thumb dl dt.course_list_prev {
  left: 205px;

}

#course_list .lesson_list_thumb dl dt.course_list_next {
  left: auto;
  right: 0px;
}

#course_contents .lesson_list_thumb dl dd {
  width: 200px;
}

.lesson_list_thumb dl dt i {
  font-size: 20px;
  color: var(--col-accent-blue);
  position: relative;
}

.lesson_list_thumb dl dd {
  width: 150px;
  min-width: 150px;
  background: #ffffff;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3);
}

.lesson_list_thumb dl dd .title {
  color: #000000;
  padding: 5px;
}

.lesson_list_thumb dl dd .summery {
  border-top: 1px solid var(--col-lightgray);
  padding: 5px;
  text-align: center;
}

.lesson_list_thumb dl dd .summery span {
  background: var(--col-lightgray);
  display: inline-block;
  border-radius: 50px;
  font-size: 10px;
  display: flex;
  padding: 3px 0px;
  align-items: center;
  justify-content: center;
  margin: auto;
  width: 80px;
  color: #999999;
}

.lesson_list_thumb dl dd .summery span i {
  font-size: 8px;
  margin-right: 3px;
}

.lesson_list_thumb dl dd .summery span:has(.fa-solid) {
  background: var(--col-green);
  color: var(--col-accent-green);
}

#lesson_links ul {
  display: flex;
  justify-content: space-between;
}

#course_list .lesson_list {
  margin-top: 10px;
  max-width: 100%;
}

#user_list h2 {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

#save_report {
  margin-left: auto;
}

#user_list h2 button {
  background: var(--col-accent-blue);
  border-radius: 4px;
  border: 0px;
  color: #ffffff;
  line-height: 1em;
  padding: 0px 20px;
  cursor: pointer;
}

#user_list h2 button i {
  margin-right: 5px;
}

#user_list h2 button:hover {
  opacity: 0.7;
}

#user_list .scroll_table {
  position: relative;
  width: 100%;
  overflow-x: scroll;
}

#user_list th em {
  font-style: normal;
}

#user_list time {
  font-size: 10px;
  font-weight: normal;
  display: block;
}

#user_list input {
  display: none;
}

#user_list td i {
  font-size: 10px;
  margin-right: 3px;
}

#user_list table {
  border-collapse: collapse;
  width: 100%;
}

#user_list table tr>* {
  padding: 5px 10px;
  border: 1px solid var(--col-lightgray);
  vertical-align: top;
}

#user_list table tr th {
  background: #eeeeee;
  white-space: nowrap;
  text-align: left;
}

#user_list table tr:has(th.course_title)>* {
  border-bottom: 0px;
}

#user_list table tr:has(th.lesson_title) th,
#user_list table tr:has(th.lesson_title) td {
  border-top-width: 0px;
  border-bottom-width: 0px;
}

#user_list table th.lesson_title {
  font-weight: normal;
  padding-left: 20px;
}

#user_list table tr:last-child>* {
  border-bottom-width: 1px !important;
}

#course_header {
  background: #ffffff;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3);
  position: relative;
}

#course_header .course_header_right {
  width: calc(100% - 260px);
  position: relative;
  padding-bottom: 20px;
}

#course_header .btn_get_completion {
  position: absolute;
  right: 20px;
  top: 20px;
}

#course_header h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

#course_header .thumb {
  width: 240px;
}

#course_header .thumb {
  aspect-ratio: auto;
  background: none !important;
}

#course_header .thumb img {
  width: 100%;
  display: block;
}

#course_header .course_progress {
  position: absolute;
  bottom: 0px;
  display: flex;
  gap: 10px;
  width: 100%;
  align-items: center;
}

#course_header .course_progress label {
  font-size: 10px;
}

#course_header .course_progress .course_progress_bar {
  width: 100%;
  height: 10px;
  background: var(--col-lightgray);
  border-radius: 10px;
  overflow: hidden;
}

#course_header .course_progress .course_progress_bar span {
  display: block;
  height: 10px;
  background: var(--col-accent-blue)
}

#course_header .course_progress .course_progress_bar span:before {
  content: '';
}

#course_detail img {
  max-width: 100%;
  height: auto;
}

#course_contents .lesson_list {
  /* margin-top: 20px; */
}

.lesson_list dt {
  font-weight: bold;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--col-lightgray);
  padding: 5px 10px;
  background: #eeeeee;
}

.lesson_list dt i {
  font-size: 10px;
  margin-right: 5px;
}

.lesson_list dt>*:last-child {
  margin-left: auto;
}

.lesson_list dd {
  padding-left: 1em;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--col-lightgray);
  margin-top: -1px;
  padding: 5px 20px;
}

.lesson_list dd a {
  display: flex;
  align-items: center;
}

.lesson_list dd a i {
  margin-right: 5px;
}

.lesson_list dd:has(+dd) {
  border-bottom: 0px;
}

.lesson_list dd+dd {
  border-top: 0px;
  padding-top: 0px;
}

.lesson_list dd i {
  font-size: 10px;
}

.lesson_list dd time {
  font-family: monospace;
  font-size: 10px;
}


#add_user form {
  max-width: 500px;
}

#profile form fieldset:has(input[type="checkbox"]),
#profile form input:not([type="checkbox"]),
#add_user form fieldset:has(input[type="checkbox"]),
#add_user form input:not([type="checkbox"]) {
  width: 100%;
  border: 0px;
  padding: 10px 10px;
  border-radius: 4px;
  border: 1px solid #999999;
}

#profile form fieldset,
#add_user form fieldset {
  position: relative;
  margin-top: 20px;
  border: 0px;
}

#profile form fieldset:has(input[type="checkbox"]),
#add_user form fieldset:has(input[type="checkbox"]) {
  display: flex;
  gap: 20px;
}

#profile form fieldset:has(input[type="checkbox"]) {
  background: #f0f0f0;
}

#profile form fieldset:has(input[type="checkbox"]) legend {
  background: linear-gradient(0deg, #f0f0f0 60%, #ffffff 60%)
}

#profile form label:has([type="checkbox"]),
#add_user form label:has([type="checkbox"]) {
  display: flex;
  gap: 5px;
  margin-top: 3px;
}

#profile form fieldset legend,
#add_user form fieldset legend {
  font-size: 10px;
  line-height: 1em;
  padding: 0px 5px;
  margin-left: 3px;
  position: absolute;
  top: -0.5em;
  left: 0px;
  background: #ffffff;
}

#profile form input:focus,
#add_user form input:focus {
  border: 1px solid var(--col-accent-blue);
  outline: 1px solid var(--col-accent-blue);
}

#btn_passview {
  position: absolute;
  right: 2px;
  top: 2px;
  border: 0px;
  background: transparent;
  color: #666666;
  cursor: pointer;
  font-size: 12px;
  width: 36px;
  height: 36px;
}

#btn_passview:hover {
  color: var(--col-accent-blue);
}

#profile #btn_submit,
#add_user #btn_submit {
  width: 100%;
  height: 40px;
  background: var(--col-accent-blue);
  border-radius: 4px;
  border: 0px;
  color: #ffffff;
  font-size: 14px;
}

#profile .error,
#add_user .error {
  color: var(--col-red);
}

.cur_pointer {
  cursor: pointer;
}

.hov_7:hover {
  opacity: 0.7;
}

#btn_lesson_comp,
.btn_get_completion {
  background: var(--col-green);
  padding: 3px 20px;
  border-radius: 100px;
  border: 1px solid var(--col-accent-green);
  border-bottom-width: 3px;
  color: var(--col-accent-green);
  line-height: 1em;
}

#btn_lesson_comp[disabled],
.btn_get_completion[disabled] {
  background: var(--col-lightgray);
  color: #999999;
  border-color: #999999;
}

.btn_get_completion i {
  font-size: 10px;
  vertical-align: middle;
  display: inline-block;
  margin-top: -2px;
  margin-right: 5px;
}

#lesson_contents section.video {
  background: #000000;
  text-align: center;
  margin: 10px 0px;
}

#lesson_contents .video_container {
  display: block;
  position: relative;
}

.video_container #video_controler:has(#video_pause.hide),
.video_container:hover #video_controler {
  display: flex;
}

#video_controler {
  position: absolute;
  bottom: 0px;
  width: 100%;
  max-width: 600px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  display: none;
  align-items: center;
  padding: 5px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
}

#video_controler span,
#video_controler span * {
  font-size: 8px;
  line-height: 1em;
}

#video_controler span {
  display: inline-block;
  padding-left: 5px;
}

#video_controler * {
  color: #ffffff;

}

#video_controler button:hover,
#video_controler button:focus {
  opacity: 0.7;
  outline: 0px;
}

#video_controler button {
  background: none;
  border: none;
  min-width: 30px;
  height: 30px;
  cursor: pointer;
}

#video_controler #video_ratio {
  display: flex;
  align-items: center;
  margin-left: auto;
}

#video_controler #video_pause {
  display: none;
}

#lesson_contents .full video {
  max-width: 100%;
  top: 50%;
  position: absolute;
  transform: translateY(-50%);
}

#lesson_contents .full #video_controler {
  transform-origin: center bottom;
}

#lesson_contents video {
  width: 100%;
  max-width: 600px;
  margin: auto;
  /* margin-bottom: 10px; */
  display: block;
}

.tml {
  width: 500px;
  max-width: 90%;
  margin: 40px auto;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  padding: 20px;
}

.tml-field-wrap {
  position: relative;
  margin-bottom: 20px;
}

.tml-field-wrap label:has(+input) {
  position: absolute;
  z-index: 1;
  font-size: 10px;
  line-height: 1em;
  top: -0.5em;
  margin-left: 5px;
  background: #ffffff;
  padding: 0px 4px;
}

.tml-field-wrap input:not([type="checkbox"], [type="radio"]) {
  width: 100%;
  font-size: 16px;
  padding: 10px;
  height: 40px;
  line-height: 1em;
  border: 1px solid #999999;
  border-radius: 4px;
}

.tml-links a:hover,
.tml-submit-wrap button:hover {
  opacity: 0.7;

}

.tml-links a,
.tml-submit-wrap button {
  cursor: pointer;
  display: block;
  width: 100%;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--col-accent-blue);
  color: var(--col-accent-blue);
  border-radius: 4px;
  font-size: 14px;
}

.tml-login-link a,
.tml-login .tml-button {
  background: var(--col-accent-blue);
  color: #ffffff;
}

.tml-alerts:not(:empty) {
  margin-bottom: 20px;
}

.tml-alerts:not(:empty) * {
  font-size: 10px;
}

.tml-alerts:not(:empty) li {
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  padding: 5px;
  padding-left: 10px;
  margin-bottom: 10px;
}

.tml-error {
  border-left: 3px solid var(--col-red);
}

.tml-message {
  border-left: 3px solid var(--col-green);
}

.tml-title {
  text-align: center;
}

#lesson_buttons {
  margin: 20px 0px;
  text-align: right;
}

#lesson_buttons #btn_lesson_comp {
  padding: 10px;

}

#profile .note {
  font-size: 10px;
}

@media screen and (max-width: 768px) {
  #branding h1 a {
    font-size: 18px;
  }

  #main {
    width: 100%;
    position: relative;
    overflow-y: scroll;

  }

  #sidebar {
    display: none;
  }

  #course_header {
    display: block;
    margin-top: 20px;
  }

  #course_header .thumb {
    width: 100%;
  }

  #course_header .btn_get_completion {
    top: -40px;
    right: 0px;
  }

  #course_header .course_header_right {
    width: 100%;
    margin-top: 5px;
  }

  #course_contents .lesson_list_thumb dl dd {
    width: calc((100% - 20px) / 2);
  }

  .lesson_list_thumb {
    display: block;
  }

  .lesson_list_thumb .lesson_course {
    width: 100%;
    min-width: auto;

  }

  #course_list .lesson_list_thumb dl {
    width: calc(100% + 40px);
    position: relative;
    margin: 0px -20px;
    padding: 5px;
    gap: 10px;
    overflow-x: scroll;

  }

  #course_list .lesson_list_thumb dl dt.course_list_prev {
    display: none;

  }

  #course_list .lesson_list_thumb dl dt.course_list_next {
    display: none;

  }

  .lesson_list_thumb dl dd {
    width: 10%;
    min-width: calc((100% - 42px) / 2);
  }

  #lesson_buttons #btn_lesson_comp {
    width: 100%;
  }

  #lesson_links .btn_get_completion {
    position: absolute;
    left: 0px;
    right: 0px;
    top: -40px;
    height: 30px;
  }

  #lesson_links dt a {
    display: flex;
    width: 100%;

  }

  #lesson_links dt a span {
    margin-left: auto;
  }

  #lesson_links dl.lesson_list {
    margin-top: 50px;

  }

  #video_fullscreen {
    display: none;
  }

}