body {
    background-color: #f0f0f0 !important
}

a {
    text-decoration: none !important
}

.underline {
    text-decoration: underline !important
}

.login-wrapper .login-form {
    padding: 40px 40px 30px 40px;
    border-radius: 5px;
    margin: 0 auto
}

    .login-wrapper .login-form .warning {
        color: gray
    }

.login-wrapper .register-form {
    padding: 40px 40px 30px 40px;
    border-radius: 5px
}

.menu h6 {
    margin-bottom: 20px
}

.menu a {
    color: #515151;
    background-color: #fff;
    border-radius: 25px;
    height: 50px;
    margin-bottom: 10px;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 60px
}

    .menu a.home {
        /*margin-bottom: 40px;*/
        justify-content: center;
        background: #003366;
        color: #fff;
        padding: unset;
        transition: 0.3s background-color;
        margin-right: 90px
    }

        .menu a.home:hover {
            background-color: #0089cb;
            color: #fff
        }

    .menu a.library {
        margin-right: 90px
    }

        .menu a.library.active {
            color: #CD6155
        }

        .menu a.library span {
            background: #CD6155
        }

    .menu a.book {
        margin-right: 90px
    }

        .menu a.book.active {
            color: #AF7AC5
        }

        .menu a.book span {
            background: #AF7AC5
        }

    .menu a.classroom {
        margin-right: 90px
    }

        .menu a.classroom.active {
            color: #5DADE2
        }

        .menu a.classroom span {
            background: #5DADE2 !important
        }

    .menu a.homework {
        margin-right: 90px
    }

        .menu a.homework.active {
            color: #48C9B0
        }

        .menu a.homework span {
            background: #48C9B0
        }

    .menu a.question {
        margin-right: 90px
    }

        .menu a.question.active {
            color: #F4D03F
        }

        .menu a.question span {
            background: #F4D03F
        }

    .menu a.report {
        margin-right: 90px
    }

        .menu a.report.active {
            color: #EB984E
        }

        .menu a.report span {
            background: #EB984E
        }

    .menu a.profile {
        margin-right: 90px
    }

        .menu a.profile.active {
            color: #AAB7B8
        }

        .menu a.profile span {
            background: #AAB7B8
        }

    .menu a.help {
        margin-right: 90px
    }

        .menu a.help.active {
            color: #566573
        }

        .menu a.help span {
            background: #566573
        }

    .menu a span {
        position: absolute;
        top: 0;
        left: -10px;
        height: 50px;
        width: 50px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #fff;
        font-size: 1.6em;
        transition: .3s all
    }

    .menu a.link {
        padding: 0 10px;
        overflow: hidden;
        transition: .3s all
    }

        .menu a.link.active {
            color: #f63
        }

        .menu a.link:hover {
            color: #f63
        }

        .menu a.link span {
            color: #515151;
            position: unset;
            width: unset;
            height: unset;
            left: unset;
            border-radius: unset;
            top: unset
        }

    .menu a.no-link {
        padding: 0 20px;
        font-size: 0.9em;
        overflow: hidden;
        transition: .3s background
    }

        .menu a.no-link.active {
            background: #52b059;
            color: #fff
        }

        .menu a.no-link:hover {
            background: #52b059;
            color: #fff
        }

    .menu a.back-btn {
        background-color: #c4c4c4;
        color: #fff;
        padding: 0 10px;
        margin-top: 50px;
        /*margin-right: 90px*/
    }

        .menu a.back-btn span {
            position: unset;
            width: unset;
            height: unset;
            left: unset;
            border-radius: unset;
            top: unset
        }

        .menu a.back-btn b {
            flex: 1;
            text-align: center
        }

    .menu a:hover {
        color: #515151
    }

        .menu a:hover span {
            left: calc(100% - 50px)
        }

a.list-group-item:hover {
    background-color: #a8a4a4 !important;
}

.bg-library {
    background-color: #CD6155 !important
}

.bg-green {
    background-color: #52b059 !important
}

.bg-home {
    background-color: #003366 !important
}

.bg-book {
    background-color: #AF7AC5 !important
}

.bg-classroom {
    background-color: #5DADE2 !important
}

.bg-homework {
    background-color: #48C9B0 !important
}

.bg-question {
    background-color: #F4D03F !important
}

.bg-report {
    background-color: #EB984E !important
}

.bg-profile {
    background-color: #AAB7B8 !important
}

.bg-help {
    background-color: #566573 !important
}


.bg-blue {
    background-color: #0089cb !important
}

.bg-orange {
    background-color: #f63 !important
}

.bg-yellow {
    background-color: #ffcd00 !important
}

.bg-red {
    background-color: #c20000 !important
}

.bg-boldblue {
    background-color: #666699 !important
}

.bg-purple {
    background-color: purple !important
}


.fg-white {
    color: #fff !important
}

.mt-70 {
    margin-top: 70px
}

.btn-big {
    padding: 7px 50px !important
}

.header {
    height: 80px
}

    .header .search-wrapper {
        flex: 1
    }

        .header .search-wrapper .search-container {
            position: relative;
            width: 50%
        }

            .header .search-wrapper .search-container input {
                padding-right: 60px
            }

            .header .search-wrapper .search-container span {
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
                font-size: 2em;
                right: 20px
            }

    .header .logout-btn {
        background-color: #669999;
        color: #fff;
        border-radius: 25px;
        border: none;
        padding: 10px 20px;
        transition: 0.5s background
    }

        .header .logout-btn:hover {
            background: #0089cb
        }

        .header .logout-btn span {
            margin-right: 10px
        }

main {
    border-radius: 10px;
    background-color: #fff;
    margin-bottom: 50px
}

    main .main-header {
        height: 90px;
        padding: 30px;
        background: #52b059;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        color: #fff;
        font-size: 1.4em
    }

    main .main-content {
        padding: 40px;
        min-height: 800px
    }

        main .main-content.large-padding {
            padding: 100px 80px !important
        }

        main .main-content.book-gray {
            background: url(../imgs/book-gray.png) no-repeat center center
        }

        main .main-content h4 {
            margin-bottom: 40px
        }

        main .main-content .books .col {
            margin-right: 60px;
            margin-bottom: 60px
        }

            main .main-content .books .col:last-child {
                margin-right: 0
            }

        main .main-content .books .book-item {
            display: flex;
            flex-direction: column;
            text-align: center;
            color: #515151;
            font-weight: bold;
            border: solid 1px #f90;
            padding: 5px;
            margin-bottom: 10px;
        }

            main .main-content .books .book-item .text {
                margin-top: 0;
                color: #515151;
                margin-bottom: 10px;
                border-bottom: solid 1px #f90;
                padding-bottom: 5px 
            }

            main .main-content .books .book-item .img-container {
                position: relative
            }

                main .main-content .books .book-item .img-container .eye {
                    visibility: hidden;
                    opacity: 0;
                    position: absolute;
                    top: 0;
                    left: 0;
                    background-color: rgba(255,205,0,0.4);
                    width: 100%;
                    height: 0;
                    display: flex;
                    align-items: center;
                    transition: .3s all;
                    justify-content: center
                }

                    main .main-content .books .book-item .img-container .eye span {
                        font-size: 2em;
                        color: #52b059;
                        background-color: #fff;
                        width: 50px;
                        height: 50px;
                        border-radius: 50%;
                        display: flex;
                        align-items: center;
                        justify-content: center
                    }

            main .main-content .books .book-item img {
                width: 100%;
                object-fit: cover
            }

            main .main-content .books .book-item:hover, main .main-content .books .book-item.lock {
                cursor: pointer
            }

                main .main-content .books .book-item:hover .eye, main .main-content .books .book-item.lock .eye {
                    visibility: visible;
                    opacity: 1;
                    height: 100%
                }

.pdf-wrapper {
    position: relative;
    margin: auto;
    width: 100%
}

.canvas-wrapper {
    position: relative
}

#the-canvas {
    margin: auto
}

.pdf {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    padding-bottom: 50px
}

.media {
    position: absolute;
    cursor: pointer;
    z-index: 10;
    width: 20px;
    height: 20px;
    background: transparent;
    background-repeat: no-repeat
}

 

    .media.sound { 
        background-image: url(../imgs/sound.png);
        background-size: 20px 20px;
    }

    .media.video { 
        background-image: url(../imgs/video.png);
        background-size: 20px 20px;
    }

    .media.file { 
        background-image: url(../imgs/file.png);
        background-size: 20px 20px;
    }

    .media.link { 
        background-image: url(../imgs/link.png);
        background-size: 20px 20px;
    }

    .media.question { 
        background-image: url(../imgs/question.png);
        background-size: 20px 20px;
    }

#canvas-container {
    display: inline-block;
    position: relative;
    margin: auto
}

.mm {
    position: absolute;
    border: solid 3px #000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%
}

    .mm.active {
        display: block
    }

.pdf-toolbar {
    position: fixed !important;
    z-index: 1;
    bottom: 0px;
    padding: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1)
}

    .pdf-toolbar .nav-link {
        display: flex;
        align-items: center
    }

    .pdf-toolbar .nav-item {
        padding: 0 5px
    }

    .pdf-toolbar span.material-icons {
        font-size: 2em
    }

#the-canvas.canvas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1em
}

[id^=media-] {
    position: fixed;
    width: 100%;
    opacity: 0;
    bottom: -100%;
    transition: all 500ms;
    z-index: 11
}

    [id^=media-].show {
        bottom: 5em;
        opacity: 1
    }

    [id^=media-].mp4 {
        width: 100%
    }

        [id^=media-].mp4 video {
            height: 25em
        }

    [id^=media-].mp3 video::-webkit-media-controls-panel {
        background: rgba(255,165,0,0.25) !important;
        box-shadow: rgba(0,0,0,0.25) 0px 54px 55px,rgba(0,0,0,0.12) 0px -12px 30px,rgba(0,0,0,0.12) 0px 4px 6px,rgba(0,0,0,0.17) 0px 12px 13px,rgba(0,0,0,0.09) 0px -3px 5px
    }

    [id^=media-] .nav-item {
        background: #fff;
        margin: 0 10px;
        box-shadow: 0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center
    }

        [id^=media-] .nav-item span {
            color: #333;
            font-size: 2em
        }

@keyframes pulse {
    0% {
        background-color: yellow
    }

    50% {
        background-color: #fff
    }

    100% {
        background-color: yellow
    }
}

.btn.bg-green:hover {
    background-color: #1d7124 !important;
}
#modalDetails .modal-content {
    height: 90vh;
    overflow-y: auto;
}

#modalDetails .modal-body {
    margin-top: -30px;
}
#modalDetails .modal-header {
    position: relative;
    z-index: 10;
}

#divQuestionDetail input[type=text], #divQuestionDetail .form-select {
    text-align: center;
}

#divQuestionDetail input[type=text] {
    border: none;
    outline: 0;
}

.navbar-light .navbar-nav .nav-link:focus, .navbar-light .navbar-nav .nav-link:hover {
    color: #f00!important;
}
 

#canvas-container.scale1 .media {
    width: 27px;
    height: 27px;
    background-size: 27px 27px;
}

#canvas-container.scale125 .media  {
    width: 32px;
    height: 32px;
    background-size: 32px 32px;
}

#canvas-container.scale15 .media  {
    width: 37px;
    height: 37px;
    background-size: 37px 37px;
}

#canvas-container.scale175 .media  {
    width: 42px;
    height: 42px;
    background-size: 42px 42px;
}

#canvas-container.scale2 .media {
    width: 47px;
    height: 47px;
    background-size: 47px 47px;
}
.infoQuestion {
    border: none;
    border-bottom: 2px solid #0d6efd;
    background-color: #e9ecef;
    padding:5px;
}

.standartQuestion {
    resize: none;
    overflow: hidden;
    padding:10px!important;
}

.footerContainer .links a:hover {
    text-decoration: underline!important;
    color: #f00;
}

#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999999;
    background: #000;
    opacity: 0.7; 
    justify-content: center;
    align-items: center;
    display:none;
}

    #preloader:after {
        content: "Loading...";
        color: #fff;
        position: absolute;
        margin-top: 78px;
    }

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

/* fallback */
@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format('woff2');
  }
  
  .material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
  }
  
  .selected{
    background-color:green;
    color:#fff;
  }
  .error{
    background-color:red;
    color:#fff;
  }
  
  #drawing-container,
  #text-container {
      height: 100%;
  }
  
  #drawing-container.show,
  #text-container.show {
      z-index: 1;
  }
  
  .matchButtons{
      height:150px;
  }
  
  .input-canvas {
      position: absolute;
      top: 5em;
      width: 50%;
      left: 50%;
      transform: translateX(-50%);
      border-color: black;
  }
  
  
  .drag-label {
      -webkit-touch-callout: none;
      /* iOS Safari */
      -webkit-user-select: none;
      /* Safari */
      -khtml-user-select: none;
      /* Konqueror HTML */
      -moz-user-select: none;
      /* Old versions of Firefox */
      -ms-user-select: none;
      /* Internet Explorer/Edge */
      user-select: none;
    
  }
  
  .drag-label span {
      display: block;
  }
  
  .drag-label small {
      margin: 0 5px;
      cursor: pointer;
      font-size: 16px;
  }
  
  #exam .row {
      padding: 2px 0;
      border-bottom: 1px solid #ddd;
  }
  
  #exam .row:first-child {
      padding: unset;
  }
  
  #preloader {
      position: fixed;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      z-index: 999999;
      background: #000;
      opacity: 0.7;
      display: flex;
      justify-content: center;
      align-items: center;
  }
  
  .loader {
      border: 4px solid #f3f3f3;
      border-top: 4px solid #3498db;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      animation: spin 2s linear infinite;
  }
  
  @keyframes spin {
      0% {
          transform: rotate(0deg);
      }
  
      100% {
          transform: rotate(360deg);
      }
  }

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

  #divQuestionDetail .questionInput1{
    border:none; 
    border-bottom:2px solid #0d6efd!important; 
    min-width: 150px;
    max-width: 400px;

  }

  
   
  #divQuestionDetail .questionInput4 blockquote{
    display:inline-block!important;
   
  }

  .trItem .btn {
    line-height: 120%;
}

.modal-xl{
    max-width: 90%!important;
}

.lightbox-overlay {
    height: 100vh;
    left: 0;
    overflow-x: hidden;
    position: fixed;
    text-align: center;
    top: 0;
    width: 100vw;
    z-index: 12001; 
    display: flex;
    justify-content: center;
    align-items: center;
}
.lightbox-overlay.visible { 
    opacity: 1;
    transition: opacity .6s;
}
.lightbox-overlay.visible::after{
    content: " X ";
    background-color:#000;
    display: block;
    line-height: 100%;
    padding: 5px 10px; 
    color: #fff;
    font-size: 24px;
    position: absolute;
    right:20px;
    top:20px;
    z-index: 12;
    cursor: pointer;
}

.lightbox-overlay.visible .lb-body{ 
   width: 95%;
   height: 95%;
   
   display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-overlay .p img{ 
    display: block;
    width: auto;
    height: 95%;  
}
.lightbox-overlay .l img{  
    display: block;
    width: 95%;
    height: auto;  
}

.lightbox-backdrop {
    align-items: baseline;
    background-color: #000;
    left: 0;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 12000; 
    height: 100vh; 
    opacity: 0;
}
.lightbox-backdrop.visible {
   
    opacity: .7;
    transition: opacity .5s linear;
}

.popover-body span{
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 0.875rem;
    margin-left: 0.375rem;
    margin-right: 0.375rem;
    margin-top: 0.375rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid #e6e6e6;
    box-shadow: 2px 3px #d9d9d9;
    cursor: pointer;
}

.popover .popover-header {
    background-color: #000;
    color: #fff;
}

input:focus-visible{
    outline: none;
}

 
  
  .keyboard {
      text-align: center; 
      font-family: sans-serif; 
    width:440px;
    margin:auto;
    box-shadow: 5px 6px 8px 0px rgb(110 108 108 / 40%);
    border:solid 1px #000;
    background-color: #fff;
    position: fixed;
    bottom: 70px;
    right:0;
    left:0; 
    z-index: 13000;

  }
  
  .keyboard__row {
      display: block;
      height: 2em;
      margin: .1em;
  }
   
  
  .keyboard__row > * {
      position: relative;
      background: #333;
      text-align: center;
      color: #eee;
      float: left;
      border-radius: 0.3em;
      margin: 0.2em;
      padding: 0.2em;
      width: 1.5em;
      height: 80%;
      box-sizing: border-box;
      cursor: pointer;
      -webkit-user-select: none;
      border: 1px solid #444;
      box-shadow: 0 0.2em 0 0.05em #222;
      border-bottom-color: #555;
  }
   
  .keyboard__row > div[data-pressed],
  .keyboard__row > div:active {
      background: #2a2a2a;
      color: #aaa;
      position: relative;
      top: 0.2em;
      box-shadow: 0 0 0 0.05em black;
  }
   
  .key--space {
      width: 7em;
  }
   
  
  .key--letter {
      line-height: 1.5em;
  } 
    .empty {
    background-color: transparent;
    box-shadow: none;
    border:none;
        cursor:default;
    } 

    .empty:active {
        background-color: transparent!important;
        box-shadow: none!important;
        border:none!important;
            cursor:default;
        } 
    
  
  .keyboard > .keyboard__row {
      text-align: center;
  }