/* --- Global colors ------------------------------------------------------------ */
:root
{
  --white: 			#ffffff;
  --lgreen-1:   #d6f1e5;
  --lgreen-2:   #30FFA6;
  --green-1:    #009E5A;
  --green-2:    #007F49;
  --green-3:    #00C16E;
  --green-4:    #006238;
  --lblue-1: 		#87cefa;
  --lblue-2: 		#c4e3fc;
  --lblue-3: 		#cfedfd;
  --blue-1:     #87cefa;
  --blue-2:     #70A2CD;
  --dblue-1:    #1d3e5a;
  --green: 			#4fffb2;
  --lred:				#ff99a3;
  --red:        #cd071e;
  --gray: 			#444444;
  --grey:       #b6b6b6;
  --black: 			#000000;
  --yellow:			#fef7ca;
  --font: 			"Arial";
  --info: 			#17b7d2;
  --font-size: 	15px;
  font-family: 	var(--font);
  font-size: 		var(--font-size);
  --frame-sm: 525px;
  --frame-lg: 1010px;
}

/* --- Theme colors ------------------------------------------------------- */

.theme .theme-lg {

}

.bg-lblue-3 {
  background-color: var(--lblue-3);
}

/* --- General ------------------------------------------------------------ */

.inline-block
{ display: inline-block;}

body
{ font-family: Arial, "Liberation Sans", sans-serif;
  font-size:   14px;
  color:       #444;
  line-height: normal;
  background:  #e0f2fb;
}

h1
{ font-size:     155%;
  font-weight:   700;
  /*
  margin-top:    1em;
  */
  margin-bottom: 0.3em;
}
h2
{ font-size:     115%;
  font-weight:   700;
  margin-top:    .9em;
  margin-bottom: 0.3em;
}
h3
{ font-size:     110%;
  font-weight:   600;
  margin-top:    .8em;
  margin-bottom: 0;
}
h4
{ font-size:     105%;
  font-weight:   600;
  margin-top:    .7em;
  margin-bottom: 0;
}

.text-container > *:first-child
{ margin-top: 0;}

.toggleable
{ cursor: pointer; cursor: hand;
  margin-top: 1em;
}

span.icon
{ background-repeat: no-repeat;
  display:           block;
  overflow:          hidden;
  text-indent:       -99999px;
  margin:            4px 4px 0 0;
  height:            9px;
  width:             9px;
  float:             left;
  vertical-align:    middle;
}

.faq-question
{ color:      black;
  background: #AAA;
  display:    none;
  width:      36em;
  padding:    0.5em;
  margin:     0.5em 0 0 0;
  overflow:   auto;
}

p, dl, ol, ul
{ margin: 0 0 1rem 0;}

.teachers p, dl, ol, ul
{ margin: ; }

/*
h3 + ol, h3 + ul, h4 + ol, h4 + ul
{ margin-top: 0;}
*/

ul.spacy li, ol.spacy li
{ margin-top:    .3em;
  margin-bottom: .3em;
}

li.separator
{ line-height: .5em;}

p.new-topic, dl.new-topic, ol.new-topic, ul.new-topic, li.new-topic
{ margin-top: .6em;}

img.center
{ margin-left:  auto;
  margin-right: auto;
}

.content a, .mimic-link
{ color: #0645AD;}
.content a.btn-default
{ color: inherit;}

.btn-default {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
    /*height: 25px;*/
    /*margin-top: -4px;*/
}


.btn.btn-link
{ font-size:      inherit;
  font-weight:    inherit;
  vertical-align: inherit;
  color:          #0645AD;
  border:         0;
  padding:        0;
}

.vertical-middle, .vertical-top
{ display:    inline-block;
  text-align: left;
  float:      none;
}
.vertical-top
{ vertical-align: top;}
.vertical-middle
{ vertical-align: middle;}

.error
{ color: red;}

.red {
  color: #cd071e;
}

.hide {
  display: none;
}

.invisible {
  visibility: hidden;
}

/* --- Markdown ----------------------------------------------------------- */

code
{ color: #444;}

.markdown pre
{ margin: .3em 0 0 0;}

/* --- Tables ------------------------------------------------------------- */

/*table
{ margin:          .5em 0 0 0;
  border-collapse: separate;
  border-spacing:  2px;
  border-color:    grey;
}

table th, table td
{ padding:        0.5em;
  vertical-align: top;
}
table td
{ border: solid 1px;}
table th
{ border-style: none;}

table.paragraph
{ margin: .3em 0 0 0;}

table.orjhlab th td
{ font-size: 16px;}

table.orjhlab td
{ vertical-align: top;
  font-size:      100%;
}

table.fine-print tbody td
{ font-size: 80%;}

table.noborder th, table.noborder td
{ padding: .2em 0 0 .5em;}

table.noborder td
{ border-style: none;}

table.noborder th:nth-child(1), table.noborder td:nth-child(1)
{ padding-left: 0;}

table.dictionary th:nth-child(1), table.dictionary td:nth-child(1)
{ font-weight: bold;}

table.one-liner tbody tr td
{ padding-top: 0;}

table.one-liner tbody tr.heading td
{ padding-top: .5em;
  font-weight: bold;
}

table.one-liner tbody tr td.heading
{
  font-weight: bold;
}

table.centered
{ margin-right: auto;
  margin-left:  auto;
  text-align:  left;
}*/

/* --- menus -------------------------------------------------------------- */

.vertical-menu
{ margin:          10px 0 0 0;
  padding:         0;
  list-style-type: none;
}

.vertical-menu.dropdown-menu
{ min-width: 250px;}

.vertical-menu li
{ display: block;
  margin:  0.5em 0;
  padding: 0;
}

.nav ul.dropdown-menu li
{ padding-left: 20px;}

.vertical-menu li a, .vertical-menu li form
{ display:         inline;
  text-decoration: none;
  color:           #444;
  padding:         0;
  line-height:     normal;
}

.vertical-menu li .number
{ width: 20px;
  float: left;
}

.vertical-menu li .smiley
{ margin: 0 5px 0 0;
  float: right;
}
.right-wrapper .vertical-menu li .smiley
{ margin: 0;}

.vertical-menu li .smiley img
{ display: block;
  height:  20px;
}

.vertical-menu li > a:hover
{ text-decoration:  underline;
  background-color: transparent;
}

.vertical-menu li.heading
{ font-weight: bold;}

.vertical-menu li + .heading
{ margin-top: 1em;}

/* --- Forms -------------------------------------------------------------- */

.form-group
{ margin-top:    .5em;
  margin-bottom: 0;
}

.form-control
{ height:         1.7em;
  padding-top:    0;
  padding-bottom: 0;
  line-height:    normal;
}

.form-horizontal .control-label
{ padding-top:   0;
  padding-right: 0;
}

.btn
{ font-weight: bold;
  line-height: normal;
  padding:     .2em .4em;
}

.btn + .btn
{ margin-left: 1em;}

/* --- Gadgets ------------------------------------------------------------ */

.orjhlab-flash .notice
{ color: green;}

.orjhlab-flash .warning
{ color: goldenRod;}

.orjhlab-flash + *
{ margin-top: 1em;}

/* --- Finish Modal ------------------------------------------------------- */

.exercise-finish-modal {
  background-color: var(--lblue-2);

  width: 50vw;
  border-radius: 1em;
  border-color: var(--dblue-1) !important;
  border: solid;

  left: -10vw;

  max-height: 90vh;
}

.finish-title {
  font-size: 3em;
  font-weight: bolder;

  color: var(--blue-2);
  text-shadow: 1px 1px black;
}

.finish-text {
  display: inline-block;
  background-color: white;
  padding: 0.5em 0.5em 0;
  border-radius: 0.4em;
  margin-bottom: 1em;
  min-width: 300px;
}

.modal-content.finish
{ box-shadow:     10px 20px 30px rgba(0, 128, 0, 0.33);
  border-radius:  20px;
  border:         5px solid darkgreen;
  font-size:      30px;
  color:          green;
  font-weight:    bold;
  text-align:     center;
  vertical-align: middle;

}

button.btn.help
{ background-color: #ff9c00;
  font-size:        x-large;
  padding:          .2em .5em !important;
  border-radius:    1.3em;
  margin: 10px;
}

.plugin-btn {
  background-color: var(--blue-1);
  text-decoration: none;
  color: white;
  font-weight: bold;
  width: max-content;
  padding: 0.25em;
  margin-bottom: 0.5em;
  text-shadow: 0.05em 0.05em black;
}

.finish-exercises-container {
  background-color: white;
  border-radius: 0.5em;
  padding-top: 1em;
  padding-bottom: 1em;
  width: 31vw;
  margin: auto;
}

@media screen and (max-width: 900px) {
  .exercise-finish-modal {
      height: auto;
      width: 95vw;
      left: 2vw;
      top: 1vh;
  }

  .finish-exercises-container {
    max-height: 50vh;
    overflow-y: scroll;
    width: 80vw !important;
  }
}

/* --- Heading and navbar ------------------------------------------------- */

.admin-navbar a
{ color: #0645AD;}

.navbar
{ min-height:    25px;
  padding: 0;
  /*margin-bottom: 5px;*/
}

.navbar .navbar-brand
{ font-size: 15px;
  /*align-self: center;*/
  font-size: 16px;
  /*margin-bottom: 5px;*/
}

.navbar-border-wrapper {
    background-color: #f8f8f8;
    border-color: #e7e7e7;
    border-width: 1px;
    border-style: solid;
    border-radius: 5px;
}

.navbar .navbar-brand .negative-left-margin
{ margin-left: -5px;}

.navbar-brand img
{ height:  25px;
  width:   auto;
  padding-left: .2em;
  margin:  0 0 0 0px;
}

.navbar-grades
{
  font-size: 17px;
  padding-left: 11px;
  font-family: 'JobberWackyNF';
  font-weight: bold;
}

.navbar-grades .navbar-text a {
    color: rgba(0,0,0,.4);
}

/*
.navbar .navbar-collapse {
  margin-left: -20px;
}
*/
.navbar .flex-column {
  /*min-width: 700px;*/
  max-width: 1200px  ;
}
.navbar .flex-column .row {
  margin: 0;

}

.navbar-toggle
{ margin-bottom:  0;
  margin-top:     0;
  padding-bottom: .4em;
  padding-top:    .4em;
  border:         none;
}
/*
.navbar-nav {
  align-items:center;
}
*/
.navbar-nav > li > a
{ padding: .15em .5em;}

.navbar-text
{ padding: .3em;
  margin:  0;
}


.navbar-top
{ margin-right:  0px;
}

.navbar-right
{ /*align-items: center;*/
  float: right;
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

.navbar-text.grade {
    padding: .1em;
}

.navbar-text.grade .nav-link{
    padding: 0;
}

.navbar-text.grade .red{
    color: #cd071e;
    font-weight:bold;
}

.navbar-light .navbar-text.red{
    color: #cd071e;
}

.navbar-collapse .vertical-menu li {
    margin: 0 0 0.5em 0;
}

.nav-log{
  text-decoration: none;
  color: rgba(0,0,0,.55);
}

.dropdown-menu .heading .teacher-info {
    font-size: 12px;
}

.login-button {
  background-color: #FFFFFF;
  border: 1px solid rgb(209,213,219);
  border-radius: .5rem;
  box-sizing: border-box;
  color: #111827;
  font-family: "Inter var",ui-sans-serif,system-ui,-apple-system,system-ui,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25rem;
  padding: .2rem .5rem;
  text-align: center;
  text-decoration: none #D1D5DB solid;
  text-decoration-thickness: auto;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.login-button:hover {
  background-color: rgb(249,250,251);
}

.login-button:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.login-button:focus-visible {
  box-shadow: none;
}

/* bell-icon blink */

.bell-icon{
  width: 30px;
}

.bell-icon svg{
  fill: #a5a4a4;
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.blinking svg{
    animation:blinkingText 0.8s infinite;
}
/*
@keyframes blinkingText{
    0%  { fill: #cf3124;
          width: 15px; }
    49% { fill: #cf3124;
          width: 13px; }
    50% { fill: #cf3124;
          width: 15px; }
    99% { fill: #f8f8f8;
          width: 13px; }
    100%{ fill: #cf3124; }
}
*/

@keyframes blinkingText{
    0%  { fill: #cf3124;
          width: 12px; }
    49% { fill: #cf3124;
          width: 14px; }
    50% { fill: #cf3124;
          width: 15px; }
    99% { fill: #f8f8f8;
          width: 15px; }
    100%{ fill: #cf3124;
          width: 15px; }
}

@media (max-width:991.98px) {

  .navbar #login-before-collapse {
      display:none;
  }
  .navbar #dropdown-chapter-after {
    display: none;
  }
}

@media (min-width:992px) {
  .navbar #login-after-collapse {
      display:none;
  }
  .navbar #dropdown-chapter-before {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .navbar #dropdown-chapter-before {
    display: none;
  }
  .navbar #dropdown-chapter-after {
    display: block;
  }

  .navbar .navbar-brand {
    margin-right:0;
  }
}

/*.dropdown.dropdown-chapter {
    padding-left: 10px;
}*/

/* NAVBAR END */

/* fixed layout for large screens */

.top-wrapper
{ width:         940px;
  margin-bottom: 10px;
  margin-top:    10px;
}

.top-wrapper .heading-1, .top-wrapper .heading-2
{ font-weight: bold;
  color:       #cd071e;
}

/* fluid layout for small screens */

.navbar-wrapper
{ width:     100%;
  max-width: 940px;
}

.navbar-header .navbar-text
{ color: #cd071e;}

.navbar-header .navbar-text.grade
{ margin-left: -.3em;}

/* --- Start page --------------------------------------------------------- */

/*
.header h1, .header h2, .header h3
{ font-weight: bold;
}
*/

.top-level .header h1
{ margin:      0;
  font-family: JobberWackyNF, sans-serif;
  font-size:   58px;
  color:       #d2232a;
  padding:     30px 0;
  text-align:  center;
}

.top-level .start
{ font-size:     16px;
  margin-bottom: .75em;
}

div.choose-book
{ width:           220px;
  height:          230px;
  margin-left:     10px;
  margin-right:    10px;
  margin-left:     auto;
  margin-right:    auto;
  margin-top:      10px;
  margin-bottom:   10px;
  padding-left:    10px;
  padding-right:   10px;
  box-shadow:      5px 5px 2px #888888;
  position:        relative;
  text-align:      center;
  background-size: 100% 100%;
}

div.choose-book-login
{ width:           220px;
  margin-left:     10px;
  margin-right:    10px;
  margin-left:     auto;
  margin-right:    auto;
}

div.choose-book .link-spanner
{ position: absolute;
  width:    100%;
  height:   100%;
  top:      0;
  left:     0;
  z-index:  1;
}

div.p-login
{
  padding-right: 7%;
}

div.choose-book span:hover
{ box-shadow: 0 0 15px 5px #85BAD3;}

#forteachers-bg, #muchas-gracias-bg
{ background:  #FFF;
  text-align:  left;
  font-size:   16px;
  line-height: 1.4;
}

#orjan-logo-container
{ height:        250px;
  margin-right:  10px;
  padding-right: 10px;
  float:right;
}

#orjan-logo-container img
{ margin-top:    160px;
  height:        60px;
  border:        0;
  padding-right: 10px ;
}

/* --- Book layout -------------------------------------------------------- */

.book .top-wrapper.logo
{ height: 150px;}

.book .top-wrapper .heading-1, .book .top-wrapper .heading-2
{ margin:      0 50px 0 0;
  font-size:   25px;
}

.book .top-wrapper .heading-2
{ float: right;}

.book .top-wrapper .heading-1.logo, .book .top-wrapper .heading-2.logo
{ line-height: 150px; }

.book .top-wrapper img
{ float: left;}

.book .content
{ /* background: #e8f4fd; */
  font-size:  15px;
  width:      535px;
  padding:    0 5px 20px 5px;
}

.img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
}

@media (max-width: 767px)
{ .book .content
  { max-width: 100%;}
}

.book .content ol
{ margin:  .3em 0 .3em 1.2em;
  padding: 0;
}

.book .content ul
{ margin:          .3em 0 .3em 1.2em;
  padding:         0;
  list-style-type: disc;
}
.book .content h3 + ul, .book .content h4 + ul
{ margin-top: 0;}
.book .content ul li
{ margin:  0;
  padding: 0;
}

.book .footer, .chapter .footer
{ margin:    0;
  padding:   40px 0 0 0;
  font-size: 11px;
}

.book .footer.right, .chapter .footer.right
{ text-align: right;}

.book .left-wrapper
{ width:   180px;
  margin:  0 5px 0 0;
}

.book .right-wrapper
{
  /*width:  200px;*/
  margin: 0 0 0 10px;
}

/* Book start page */

.book .content.start
{ padding:          5px;
  border:           2px solid #444;
  margin-top:       10px;
  background-color: #fff;
}

.book .content.start .text
{ color:      #cd071e;
  text-align: center;
}

.teacherweb p, dl, ol, ul {
    margin: 0;
}

.teacherweb h1 {
  margin-top: 0;
  font-size: 2rem;
  color: #ab0000;
}

.teacherweb h2 {color: #ab0000;}
.teacherweb h3 {color: #ab0000;}
.teacherweb h4 {color: #ab0000;}
.teacherweb h5 {color: #ab0000;}
.teacherweb h6 {color: #ab0000;}

.teacherweb button {
  font-size: 1rem;
  padding: 8px;
  font-weight: normal;
}

/**
 * Modals
 */

/*.modal-open {
    padding-right: 0px !important;
}*/

.listening-modal-open .modal-inner-wrapper {
    border-radius: 10px;
    width:65%;
    background-color:#cfffcb;
}

.listening-modal-open .modal-title {
  margin-top: 0;
}

.listening-modal-open .modal {
  font-size: 18px;
}

.listening-modal-open .modal h1 {
  font-size: 2.5rem;
}

.listening-modal-open .modal h2 {
  font-size: 1.5rem;
}

.listening-modal-open .modal-content {
    padding: 20px;
    background-color: #f5fafe;
}

.listening-modal-open .modal .close {
    font-size: 60px;
}

.listening-modal-open .modal-backdrop {
    background-color: #e0f2fb;
}

.listening-modal-open .modal-backdrop.show {
    opacity: 1;
}

.listening-modal-open .modal .exit-listening-text {
    font-size: 18px;
}

.modal .modal-footer {
  justify-content: center;
}

.listening-modal-open .modal .modal-footer {
  justify-content: flex-end;
}

.custom-modal {
  margin-left:auto;
  margin-right:auto;
}

@media print {
  .modal-header, .modal-footer, .font-changer, .audio, p {
    display: none;
  }

  .font-changer {
    position: unset;
  }

  .modal .markdown h1 {
    font-size: 16px;
    font-weight: normal;
  }

  .modal-lg {
    max-width: 95% !important;
  }
}

/* --- Empty layout ------------------------------------------------------- */

.content .return a
{ color: inherit;}

.empty .content
{
  padding: 20px 0;
}

/* Not sure if .embed-responisve is necessary after bs5 upgrade */
.empty .content .embed-responsive {
  width:   940px;
}

.empty .content .ratio-16x9 {
  width:   940px;
}

.empty .content.wide
{ width: 1200px;
}

@media (max-width: 991px)
{ .empty .content
  { max-width: 100%;}
}

/* Book digtests page */

/* .empty .content.digtests
{ font-size:  16px;}

.empty .content.digtests .header
{ margin:     20px 0 25px;
}

.empty .content.digtests .center
{ text-align: center;
} */

.big
{ font-size:  36px;
  font-family: JobberWackyNF, sans-serif;
  color: #d2232a;
}

table.digtests
{
      white-space: nowrap;
      width:auto;
      text-align: left;
      display: table !important;
}

/* padding to match emoji space */
table.digtests .no-audio
{
  padding: 0 21px 0 0;
}

/* .digtests .clozetest-start {
  padding: 0 25px;
}

.digtests .translate-start {
  padding-right: 25px;
} */

.digtests-th{
  z-index: 999;
  position: sticky;
  top: 0px;
  background-color: #e0f2fb;
}


/* forms */

.empty .content.form .header
{ padding-bottom: 30px;}

.empty .content.form h1, .empty .content.form h2, .empty .content.form h3
{ text-align:  center;
  font-weight: normal;
  color:       inherit;
  padding:     0;
}
.empty .content.form h1
{ font-size: 36px;}
.empty .content.form h2
{ font-size: 30px;}
.empty .content.form h3
{ font-size: 24px;}

/* iframe */

.empty .content.iframe .return
{ text-align:  center;
  padding-top: 10px;
}
.empty .content.iframe .return .btn
{ font-weight: normal;}

/* --- Chapter ------------------------------------------------------------ */

.chapter .objectives
{ font-weight: bold;
  color:       #cd071e;
}

.chapter .document
{ margin-top: 15px;}

.chapter .document a
{ color: #0645AD;}

.chapter .audio
{ margin-top: .5em;}

.chapter .image
{ text-align: center;}

.chapter .image img
{ margin-bottom: 18px;
  margin-top:    18px;
  max-width:    100%;
}

.chapter .licensed-student
{ background: #f5fafe;
  margin:     10px -5px;
  padding:    5px;
}

.chapter .licensed-student > *:first-child
, .chapter .licensed-student > *:first-child > *:first-child
, .chapter .licensed-student > *:first-child > *:first-child > *:first-child
{ margin-top: 0;}

.chapter .licensed-student > *:last-child
, .chapter .licensed-student > *:last-child > *:last-child
, .chapter .licensed-student > *:last-child > *:last-child > *:last-child
{ margin-bottom: 0;}

.chapter fieldset, .teachers fieldset
{ border:      1px solid grey;
  padding:     .35em .625em .75em;
  margin-top:  .5em;
  margin-left: -10px;
  width:       104%;
}

.chapter fieldset
{ background:  #f5fafe;}

.chapter fieldset legend, .teachers fieldset legend
{ font:    inherit;
  width:   auto;
  padding: 0 .15em;
  border:  0;
  margin:  0;
}

/* --- Exercises ---------------------------------------------------------- */

div.exercise
{ text-align: center;}

div.exercises
{ display:    inline-block;
  text-align: left;
  /*width:      100%;*/
}

.exercises .question-name
{ text-transform: uppercase;
  font-size:      large;
}
/*
.exercises .header, .exercises .footer
{ padding-top:    .5em;
  padding-bottom: .5em;
} */

.exercises .heading, .exercises .footer
{ color:       #ca0000;
  font-size:   large;
  font-weight: bold;
}

/* --- Digtests ----------------------------------------------------------- */

.content.teachers:fullscreen::backdrop {
  background-color: #bbffe2;
}

.digtest-ok-btn {
  position: relative;
  left: 45%;
  margin-top: 1em;
  font-weight: bold !important;
}

.digtest-info {
  position: absolute;
  left: 35vw;
  top: 30vh;

  width: auto;
  height: auto;

  border-style: solid;
  border-color: green;
  border-radius: 0.5em;
  padding: 1em;
  background-color: white;

  font-size: x-large;
  font-weight: bold;

  box-shadow: 0 1em 1em rgb(0 0 0 / 0.2);
}

.digtest-header {
  background-color: green;
}

.header #titleText {
  margin-left: auto !important;
}

/* --- Teachers layout ---------------------------------------------------- */

.teachers
{ background-color: WhiteSmoke;
  padding-bottom:   30px;
  /* min-height: 100vh; */
}

.teachers .top-wrapper
{ text-align:  center;}

.teachers .top-wrapper .heading-1, .teachers .top-wrapper .heading-2
{ font-size:  16px;}

.teachers .top-wrapper img
{ vertical-align: middle;
  margin:         0 12px;
}

.teachers .content
{ font-size: 16px;
  width:     735px;
  padding:   10px 0 20px 20px;
}

.teachers .content.wide
{ width: 940px;
  padding-right: 20px;
}

@media (max-width: 991px)
{ .teachers .content, .teachers .content.wide
  { max-width: 100%;
    padding:   10px 10px 20px 10px;
} }

.teachers .content > *:first-child
{ margin-top: 0;}

.teachers .content img.right
{ float:       right;
  margin-left: 1em;
}

.teachers .left-wrapper
{ width: 180px;}

@media (max-width: 991px)
{ .teachers .left-wrapper
  { display: none;}
}

.menu-teacher ul
{ padding-right: 10px;
  border-right: 1px solid grey;
}

.menu-teacher .red
{ color: #cd071e;
}

.menu-teacher .bold
{ font-weight: bold;
}

.teachers .license-deliver-text
{ padding-top: 2px;
  padding-bottom: 3px;
}

.hover-btn:hover
{
  background-color: var(--grey);
}

/* register user page */

.teachers .content .create-school, .teachers .content .license-create-receiver,
.teachers .content .license-purchase
{ display: none;}

/* printStyle */
/*
.btn-info.print-foreign {
  color: yellow;
  background url

}

.btn-info.print-native {
  color: yellow;
} */

#printStyle h1, #printStyle h2
, #printStyle h3, #printStyle h4
{ margin: 3em 1em 1em 1em;}

#printStyle table
{ margin: 1em;}

#printStyle table th
{ padding:     4px;
  font-size:   11px;
  font-weight: bold;
}

#printStyle table td
{ padding:   4px;
  font-size: 11px;
}

.btn-margin-fix
{ margin-top: 10px;
  margin-left: -5px; }


/* report index */

.report-index .user
{ margin-left: 2em;}

.report-index .report-list
{ margin-top: .6em;}

.report-index .form-inline .form-group
{ margin-right: .5em;}

.report-index .form-inline input[type="text"]
{ width: 230px;}

.report-index table
{ border-width:    1px;
  border-color:    #666;
  border-collapse: collapse;
}

.report-index table th
{ border-width:     1px;
  font-size:        11px;
  padding:          8px;
  border-style:     solid;
  border-color:     #666;
  background-color: #dedede;
}

.report-index table td
{ border-width:     1px;
  padding:          8px;
  margin:           0;
  font-size:        10px;
  border-style:     dashed;
  border-color:     #666;
  background-color: White;
}

.report-index table td.form
{ padding: 3px 8px;}

.report-index table td input[type="text"]
{ padding: 0;
  width:   6em;
}

.report-index a.btn-default {
  height: 26px;
}

.report-index #forPrinting
{ display: none;}

/* report show page */

.reportShow .report-table {
  font-size: 13px;
}

.reportShow .report-table td{
  padding: 5px .75rem 5px .75rem;
}

.reportShow .report-table td .correct {
  background-color: #ffff67;
  padding: 3px;
}

.reportShow .summary .test-date
{ font-size: 70%;}

.reportShow .details table
{ margin-top: 1em;
  font-size: 11px;
  color: #333;
  border-style: none;
}

.reportShow .details table th, .reportShow .details table td
{ padding: 8px;
  border-style: none;
}

.reportShow #forPrinting
{ display: none;}

/* --- Results page ------------------------------------------------------- */

@media (max-width:767.9px){
  .results-table{
    width: 100%;
  }
}

@media (min-width: 768px){
  .results-table{
    width: 60%;
    margin-left: 20%;
  }
}

.teacher-table {
  table-layout: fixed ;
  width: 100% ;
}

.teacher-table td:nth-child(-n + 3) {
  width: 25% ;
}

.teacher-table td:nth-child(4) {
  width: 12.5% ;
}

/* --- Admin -------------------------------------------------------------- */

.admin
{ width:  1200px;
  font:   13px Arial, "Liberation Sans", sans-serif;
  margin: 15px auto;
}

.admin h3
{ margin-top: 2em;}

.admin .modal-body h3
{ margin-top: 0;}

.admin input[type="file"]
{ display: inline-block;}

.admin .markdown-enabled {
  background-color: #e8abff;
}

.admin .markdown-enabled .orjhlab-label {
  font-weight: bold;
}

.admin .markdown-enabled .orjhlab-input textarea
{
  background-color: #ffc6f9;
  height: 125px;
}


.orjhlab-input-container
{ width:950px;
  margin: .3em 0;
  padding-top: .5em;
  height:auto !important;
}

.orjhlab-input-container > *
{ vertical-align: middle;}

.orjhlab-input-container .orjhlab-label,
.orjhlab-input-container .orjhlab-input
{ display: inline-block;
  margin-left: 1em;
}

.orjhlab-input-container .orjhlab-label:first-child,
.orjhlab-input-container .orjhlab-input:first-child,
.orjhlab-input-container .orjhlab-wide
{ margin-left: 0;}

.orjhlab-input-container .orjhlab-label
{ vertical-align: top;
  width: 150px;
}

.col.orjhlab-input-container .orjhlab-label
{
  width:auto;
}

.orjhlab-input-container .orjhlab-form-text
{ display: block;
  white-space: pre-wrap;
  margin-top: .15em;
  margin-bottom: .5em;
  padding: .3em;
  background: white;
  border: .1em solid grey;
  border-radius: .3em;
}

.orjhlab-input-container .orjhlab-caption
{ width: 450px;}

.orjhlab-input-container.orjhlab-submit
{ margin-top: 2em;}

.orjhlab-input-container.orjhlab-inline
{ display: inline-block;}

.orjhlab-input-container.orjhlab-inline .orjhlab-label
{ width: auto;}

.orjhlab-input-container.orjhlab-inline .orjhlab-input-container
{ display: inline-block;
  width: 470px;
}

.orjhlab-input-container.orjhlab-inline .orjhlab-input textarea
{ width: 415px;}

.orjhlab-input-container.orjhlab-inline select,
.orjhlab-input-container.orjhlab-inline .orjhlab-input
{ display: inline-block;}

.orjhlab-input textarea
{ display: inline-block;
  width: 940px;
  padding-left: .3em;
}

.orjhlab-input textarea.orjhlab-high
{ height: 10em;}

.orjhlab-input input[type="text"]
{ display: inline-block;
  width: 480px;
}

.orjhlab-input.orjhlab-input-short input[type="text"]
{ width: 50px;}

.orjhlab-input.orjhlab-input-medium input[type="text"]
{ width: 150px;}

.orjhlab-input .textarea-big {
  height: 340px;
}

fieldset.orjhlab-fieldset
{ border:       1px solid grey;
  padding:      0 0 .75em .75em;
  margin-top:   .5em;
  /*margin-left: -.5em;
  margin-right: .5em;*/
}

fieldset.orjhlab-fieldset legend
{ width:         auto;
  margin-bottom: 0;
  font-size:     inherit;
  border-bottom: 0;
}

.orjhlab-input a.orjhlab-button
{ background:    #fff;
  color:         #444;
  border:        1px #888 solid;
  border-radius: .3em;
  padding:       .2em .4em .2em .4em;
  margin-top:    0;
}

table.orjhlab-display-model
{ padding-bottom: 1em;}

table.orjhlab-display-model th, table.orjhlab-display-model td
{ text-align:     left;
  vertical-align: top;
  padding:        1px 1px 1px 2em;
  border:         none;
}

table.orjhlab-display-model th:first-child,
table.orjhlab-display-model td:first-child
{ padding-left: 0;}

.orjhlab-index-tabs
{ display: inline-block;
  margin: 1em 0 .5em 0;
  padding: 0;
  width: 100%;
  font: 13px Arial, "Liberation Sans", sans-serif;
  line-height: 30px;
}

.orjhlab-index-tabs .orjhlab-index-tabs-first,
.orjhlab-index-tabs .orjhlab-index-tabs-last
{ display: inline-block;}

.orjhlab-index-tabs .orjhlab-index-tabs-first
{ width: 90%;}

.orjhlab-index-tabs .orjhlab-index-tabs-last
{ width: 10%;
  text-align: right;
}

.orjhlab-index-tabs a
{ margin: 0 .6em;}
.orjhlab-index-tabs a.selected
{ font-style: italic;}

.orjhlab-index-tabs .orjhlab-index-tabs-filler
{ margin: 0 0 0 .6em;}

table.orjhlab-index-list
{ width: 100%;
  border-collapse: collapse;
}

.orjhlab-index-row
{ width: 100%;}

.orjhlab-index-entry
{ text-align: left;
  color: #111111;
  font-size: 12px;
  padding: 3px 5px;
  border-bottom: 1px solid #999;
}

.orjhlab-index-row:first-child div.orjhlab-index-entry
{ border-top: 1px solid #999;}
.orjhlab-index-row:first-child div.orjhlab-index-entry.orjhlab-index-heading
{ border-top: none;}

th.orjhlab-index-entry
{ font-weight:  bold;
  border-top:   none;
  border-right: none;
  border-left:  none;
}
.orjhlab-index-heading.orjhlab-index-entry
{ border-top:   none;
  border-right: none;
  border-left:  none;
}

th.orjhlab-index-entry,
td.orjhlab-index-entry
{ height: auto;}

div.orjhlab-index-entry
{ display: inline-block;}

div.orjhlab-index-entry,
td.orjhlab-index-entry
{ font-weight: normal;
  border-right: 1px solid #999;
}
td.orjhlab-index-entry.orjhlab-index-join
{ border-right-style: none;}

td.orjhlab-index-entry.orjhlab-index-change
{ width: 6.5%;}

td.orjhlab-index-entry.orjhlab-index-remove
{ width: 3%;}

.orjhlab-odd .orjhlab-index-entry
{ background: #fff;}

.orjhlab-even .orjhlab-index-entry
{ background: #eee;}

.orjhlab-unacknowledged .orjhlab-index-entry
{ background: #fdb;}

td.orjhlab-index-entry:first-child,
div.orjhlab-index-entry:first-child
{ border-left: 1px solid #999;}

.orjhlab-index-entry.orjhlab-index-heading
{ font-weight: bold;}

.orjhlab-index-entry .orjhlab-index-main
{ font-weight: bold;}

.orjhlab-submit button[type=submit]
{ color:        red;
  border-color: red;
}

/* breadcrumbs */

.orjhlab-breadcrumbs
{ list-style: none;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.orjhlab-breadcrumbs li
{ display: inline-block;}

.orjhlab-breadcrumbs li a
{ color: white;
  text-decoration: none;
  padding: 5px 0 5px 20px;
  background: blue;
  background: hsla( 208, 56%, 35%, 1);
  position: relative;
  display: block;
}

.orjhlab-breadcrumbs li a:after
{ content: " ";
  display: block;
  width: 0;
  height: 0;
  border-top: 30px solid transparent;
  border-bottom: 30px solid transparent;
  border-left: 15px solid hsla( 208, 56%, 35%, 1);
  position: absolute;
  top: 50%;
  margin-top: -30px;
  left: 100%;
  z-index: 2;
}

.orjhlab-breadcrumbs li a:before
{ content: " ";
  display: block;
  width: 0;
  height: 0;
  border-top: 30px solid transparent;
  border-bottom: 30px solid transparent;
  border-left: 15px solid white;
  position: absolute;
  top: 50%;
  margin-top: -30px;
  margin-left: 1px;
  left: 100%;
  z-index: 1;
}

.orjhlab-breadcrumbs li:first-child a
{ padding-left: 10px;}

.orjhlab-breadcrumbs li:nth-child(2) a
{ background: hsla( 208, 56%, 42%, 1);}

.orjhlab-breadcrumbs li:nth-child(2) a:after
{ border-left-color: hsla( 208, 56%, 42%, 1);}

.orjhlab-breadcrumbs li:nth-child(3) a
{ background: hsla( 208, 56%, 49%, 1);}

.orjhlab-breadcrumbs li:nth-child(3) a:after
{ border-left-color: hsla( 208, 56%, 49%, 1);}

.orjhlab-breadcrumbs li:nth-child(4) a
{ background: hsla( 208, 56%, 56%, 1);}

.orjhlab-breadcrumbs li:nth-child(4) a:after
{ border-left-color: hsla( 208, 56%, 56%, 1);}

.orjhlab-breadcrumbs li:nth-child(5) a
{ background: hsla( 208, 56%, 63%, 1);}

.orjhlab-breadcrumbs li:nth-child(5) a:after
{ border-left-color: hsla( 208, 56%, 63%, 1);}

.orjhlab-breadcrumbs li:nth-child(6) a
{ background: hsla( 208, 56%, 70%, 1);}

.orjhlab-breadcrumbs li:nth-child(6) a:after
{ border-left-color: hsla( 208, 56%, 70%, 1);}

.orjhlab-breadcrumbs li:nth-child(7) a
{ background: hsla( 208, 56%, 77, 1);}

.orjhlab-breadcrumbs li:nth-child(7) a:after
{ border-left-color: hsla( 208, 56%, 77%, 1);}

.orjhlab-breadcrumbs li:nth-last-child(2) a:before
{ border-left: 15px transparent !important;}

.orjhlab-breadcrumbs li:last-child a
{ background: transparent !important;
  color: black;
  pointer-events: none;
  cursor: default;
}

.orjhlab-breadcrumbs li:last-child a:before,
.orjhlab-breadcrumbs li:last-child a:after
{ border: 0;}

.orjhlab-breadcrumbs li a:hover
{ background: hsla( 208, 56%, 25%, 1);}

.orjhlab-breadcrumbs li a:hover:after
{ border-left-color: hsla( 208, 56%, 25%, 1) !important;}

/* popup */

.orjhlab-popup-overlay
{ position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.5);
  transition: opacity 300ms;
  visibility: hidden;
  opacity: 0;
}

.orjhlab-popup-overlay .orjhlab-popup-cancel
{ position: absolute;
  width: 100%;
  height: 100%;
  cursor: default;
}

.orjhlab-popup-overlay:target
{ visibility: visible;
  opacity: 1;
}

.orjhlab-popup-popup
{ margin: 75px auto;
  padding: 20px;
  background: #fff;
  width: 400px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  position: relative;
}

.orjhlab-popup-popup.orjhlab-popup-finish
{ box-shadow: 10px 20px 30px rgba(0, 128, 0, 0.33);
  border-radius: 20px;
  border: 5px solid darkgreen;
}

.orjhlab-popup-finish-text
{ font-size: 30px;
  color: green;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
}

.orjhlab-popup-control
{ margin: 50px 0 0 120px;}

.orjhlab-chapter-exercises-button
{ font-family: Arial, "Liberation Sans", sans-serif;
  font-weight: bold;
  background: #c00;
  color: #fff;
  border: 1px solid #999;
  margin-top: .4em;
  padding: .2em .4em;
}

input[type="button"]:disabled.orjhlab-chapter-exercises-button
{ color: lightgrey;}

.orjhlab-chapter-exercises-button.orjhlab-popup-ok-button
{ background-color: #5CB811;
  border: 1px solid #3B7808;
}

.orjhlab-national-popup{
  top: 20vh;
  right: 20%;
  position: fixed !important;
  border-radius: 0.5em;
  padding: 1em 1em;
  background-color: white;
  z-index: 99;

  border: 2px solid rgb(255, 255, 255);
  margin: 50px auto;
  animation: pulsate 1.75s infinite;
  box-sizing: content-box;
  box-shadow: 0.1em 0.1em 1em gray;

  font-size: 1.5em;
  max-width: 60vw;
}

@keyframes pulsate {
  0% {
    border: 2px solid rgb(255, 255, 255);
  }
  50% {
    border: 2px solid rgb(255, 0, 0);
  }
  100% {
    border: 2px solid rgb(255, 255, 255);
  }
}

.bi-x-circle {
  cursor: pointer;
  position: absolute;
  top: 0.5em;
  right: 0.5em;
}

.bi-x-circle:hover{
  color: #272727;
}

.bi-x-circle:active{
  color: #0e0e0e;
}

/* --- Textbook -------------------------------------------------------------- */

.icon-wrapper {
  position: absolute;
  right: 0px;
  top: 0px;
}

.icon {
    width: 25px;
    margin: 10px;
    /*padding: 3px;*/
    /*background-color: beige;*/
    fill: #000;
    /*box-shadow: 2px 2px 5px grey;*/
    border-radius: 5px;
}


.icon:hover {
    /*fill: #6c757d;*/
    cursor: pointer;
}

.icon:active {
    /*fill: #fff;*/
    /*box-shadow: none;*/
    right: -4px;
    top: -4px;
}

.icon {
    right: -2px;
    position: absolute;
    top: -6px;
}

.icon.active {
    background-color: rgba(255,255,255, 0.7);
}

.icon .help-icon {
  height: 100%;
}


svg:hover {
  -webkit-filter: drop-shadow(3px 3px 2px rgba(0, 0, 0, 0.5));
  filter: drop-shadow(3px 3px 2px rgba(0, 0, 0, 0.5));
}

svg:active {
    -webkit-filter: none;
  filter: none;
}

/* Popup */

.popup {
  position: relative;
  max-height: 12vh;
  min-width: 100vw;
  z-index: 9000;
  overflow: auto;
  background-color: white;
  display: none;
  box-shadow: 2px 2px 4px #000000;
  overflow: hidden;
}

.popup-content {
  margin: 1em;
  max-height: 10vh;
  overflow: hidden;
}

.popup .header{
  font-family: JobberWackyNF, sans-serif;
  font-size: 150%;
  color: var(--red);
}

/* .popup-btn{
  display: flex;
  justify-content: center;
} */

/* CSS */
.popup-btn {
  align-items: center;
  background-clip: padding-box;
  background-color: #d6d6d6;
  border: 1px solid transparent;
  border-radius: .25rem;
  box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: system-ui,-apple-system,system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size: 16px;
  font-weight: 600;
  justify-content: center;
  line-height: 1.25;
  margin: 0;
  min-height: 3rem;
  padding: calc(.875rem - 1px) calc(1.5rem - 1px);
  position: relative;
  text-decoration: none;
  transition: all 250ms;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
  width: auto;
  margin-bottom: 50%;
}

.popup-btn:hover,
.popup-btn:focus {
  background-color: #858585;
  box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
}

.popup-btn:hover {
  transform: translateY(-1px);
}

.popup-btn:active {
  background-color: #373737;
  box-shadow: rgba(0, 0, 0, .06) 0 2px 4px;
  transform: translateY(0);
}

.popup-btn.accept-all{
  background-color: rgb(0, 221, 0);
}

.popup-btn.accept-all:hover{
  background-color: rgb(0, 105, 0);
}

.popup-btn.accept-all:active{
  background-color: rgb(0, 48, 0);
}

.popup-buttons{
  position: absolute;
  top: 2.5em;
  right: 1em;
}

.dropdown-mobile{
  display: none;
}

.mobile-popup-content{
  display: none;
}

@media screen and (max-width: 990px) {

  .mobile-popup-content{
    display: block;
    margin: 1em;
  }
  .popup{
    max-height: 50vh;
  }

  .popup-content {
    display: none
  }

  .popup-btn{
    margin-bottom: 0;
    width: 100%;
  }

  .popup-buttons{
    position: relative;
    margin: 1em;
    top: unset;
    right: unset;
  }


  .dropdown-mobile{
    display: block;
  }

  .navbar{
    width: 100vw;
    min-height: 7vh;
  }

  .navbar-text{
    font-size: large;
  }

  .nav-link{
    font-size: large;
  }

  .vertical-menu{
    font-size: large;
    margin: 1em;
  }

  li{
    margin-top: 0.2em;
  }

}

/* Groups Page */

.group{
  padding: 10px;
  margin-top: 22px;
  margin-bottom: 22px;
  background-color: #e8f4fd;
  border-radius: 12px;
}

.groups-info{
  font-weight: bold;
  padding: 1em;
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 1px 1px 0 0#000;
}

.groups-collapse{
  background-color: #e8f4fd;
  border-radius: 12px;
}

.groups-btn:hover{
  background-color: #ebebeb;
}

@media only screen and (min-width: 769px) {
  .desktop {
    display: block;
  }

  .mobile {
    display: none;
  }

  .digtests-info{
    width: 50%;
  }
  .table.digtests {
      display: table;
  }
}

@media only screen and (max-width: 768px) {
  .desktop {
    display: none;
  }

  .mobile {
    display: block;
  }

  .digtests-info{
    width: 100%;
  }
  .table.digtests {
    display: none !important;
}

}

.orjhlab-teacher-guide{
  position: relative;
  background-color: #fffd9f;
}

.orjhlab-loading{
  visibility: hidden;
}

.orjhlab-spinner{
  position: absolute;
  bottom: 5%;
  right: 40%;
}
.orjhlab-spinner-text{
  position: absolute;
  bottom: 6.5%;
  right: 22%;
  background-color: #d8cef5;
}