:root {
  --success: #26bc2694;
}

body {padding: 0;margin: 0;font-family: system-ui;font-size: 14px;color: #373737;}
body.gridQuestions {
    margin-bottom: 180px;
}

/* Header */
.header {background-color: #3030ff;text-align: center;font-weight: 500;font-size: 20px;color: white;position: fixed;width: 100%;top: 0;padding-bottom: 0;box-shadow: 0px 0px 18px -2px #000000c7;z-index: 2;}
.header .icoMenu {display: block;text-align: center;background-image: url(images/menu.png);background-size: cover;width: 25px;background-repeat: no-repeat;background-origin: content-box;padding: 6px;height: 25px;color: white;position: absolute;cursor: pointer;filter: invert(1);/* display: none; */top: -1px;}
.header .icoAdd{right: 0;top: 0;background-image: url(images/add.png);}
.header .icoStar {right: 0px;top: 3px;background-image: url(images/star0.png);width: 17px;height: 17px;}
.gridQuestions .header .icoQuestions {
    /* transform: rotateX(180deg); */
    /* transform: scaleY(-1); */
    /* -webkit-transform: scale(-1, -1); */
    filter: invert(-2);
    /* opacity: 2; */
}
.header .icoQuestions {right: 30px;top: 3px;background-image: url(images/flexWrap.png);width: 19px;height: 17px;}
.header .icoRefresh {right: 65px;top: 0px;width: 19px;height: 17px; background: none; filter: invert(0);}
.favorites .header .icoStar {background-image: url(images/star1.png);filter: none;}
.header .title {
    padding: 5px;
    display: block;
}
.header .results{
    display: flex;
    font-size: 14px;
    background-color: #e7e7e7;
    padding: 2px;
    color: #606060;
}
.header .results .errors {
    color: red;
}
.header .results .success {
    color: var(--success);
}
.header .results > div { flex: 1; }
.subtitle {padding: 5px 10px 0;/* text-align: end; */margin-top: 65px;display: flex;user-select: none;}
.subtitle .countQuestions {
    flex: 1;
    text-align: end;
}
#lblShuffle, #lblExpandAll {
    cursor: pointer;
    display: flex;
    flex: 1;
}
#lblShuffle input, #lblExpandAll input {margin-right: 7px;width: 14px;height: 14px;cursor: pointer;}
.item {border: 2px solid #b8b8b8ad;margin: 20px 10px;border-radius: 0 0 10px 10px;border-radius: 5px;}
.item.showAnswers .option[answer=true] {
    /* background-color: var(--success) !important; */
}
.item.showAnswers .option[answer=true] .chkOption, .showAnswers .error .chkOption {
    display: none;
}
body.expandAll .item .body { display: block; }
/*.item.bodyHide .title { border: none; }*/
.item.answered {border-width: 2px;}
.item.error {border-color: red;}
.item.answered .title {
    font-weight: 500;
    color: white; }
.item.error .title {
    background-color: red;
}
.item.success {border-color: var(--success);}
.item.success .title {
    background-color: var(--success);
}
.item .title {
    /* border-bottom: 1px solid #b8b8b8ad; */
    background-color: #bebebe4a;
    padding: 7px 10px;
    cursor: pointer;
}
.item[isFavorite] .title {
    background-color: #ffb752;
    color: white;
    font-weight: 500;
}
.item .body {
    display: none;
    padding: 10px;
}
.item.bodyShow .body {
  display: block;
}
.item.bodyHide .body {
  display: none !important;
}

code {
    background-color: #e3e3e3; 
    display: block;
    margin: 10px 0px;
    padding: 7px 10px;
    font-size: 12px;
    border-radius: 3px;
    overflow-wrap: anywhere;
    padding: 20px;
}
code .tab, .option .tab {
    margin-left: 20px;
}

.options {
    margin-top: 10px;
    font-weight: 500;
}
.showAnswers .options { margin-bottom: 0; }
.options .option {
    cursor: pointer;
    padding: 5px 5px;
    display: flex;
    border-radius: 10px;
    margin-top: 2px;
    line-height: 23px;
    user-select: none;
}
.showAnswers .options .option:hover { background-color: inherit; }
.options .option:hover {background-color: #dddddd6e;}
.option input {/* top: 45px; */width: 16px;height: 25px;/* border: 20px solid; */margin-top: 5px;margin: 0;/* vertical-align: baseline; *//* position: absolute; */display: table;vertical-align: baseline;cursor: pointer;}
.option .text {
    /* margin-left: 113px; */
    /* display: inline-block; */
    flex: 1;
    margin-left: 10px;
    overflow-wrap: anywhere;
}
.buttons {/* margin-top: 10px; */}
.flex { display: flex; }
.btnAnswer, .btnNextQuestion, .btnReload {flex: 1;padding: 10px;background-color: #3030ff;color: white;font-weight: 600;font-family: unset;letter-spacing: 0.7px;border-radius: 10px;cursor: pointer;border: none;margin-top: 10px;}
.showAnswers .btnAnswer, .btnNextQuestion {display: none;}
span.btnReload, .explanation {display: none;}
.showAnswers .btnNextQuestion {display: block;background-color: #e4e4e4;color: inherit;}
.showAnswers .error .icoStatus {display: block;background-image: url(images/error.png);}
.showAnswers .icoStatus {display: none;background-size: cover;width: 16px;height: 16px;margin-top: 5px;}
.showAnswers .option[answer=true] .icoStatus {display: block;background-image: url(images/success.png);margin-top: 4px;}
.showAnswers .btnReload {display: block;background-color: #e4e4e4;margin-right: 10px;color: inherit;text-align: center;/* width: auto; */flex: none;/* width: min-content; */background-image: url(images/replay.png);background-size: cover;width: 25px;background-repeat: no-repeat;background-origin: content-box;padding: 7px;}
.showAnswers .explanation {display: block;margin: 10px 0;}
.showAnswers .divOption .explanation {font-weight: 400;margin: 0;margin-left: 32px;margin-top: -9px;margin-bottom: 5px;}
.showAnswers .divOption[answer=true] .explanation {
    margin-top: 2px;
}

/* Menu */
body.showMenu #mySidenav {/* left: 0; */width: 100%;}
body.showMenu #mySidenav a {
    display: block;
}
#mySidenav {/* left: -250; */width: 250px;width: 0;top: 0;padding-top: 65px;}
#mySidenav a {
    display: none;
    transition: 1s;
}
/* The side navigation menu */
.sidenav {
    height: 100%; /* 100% Full-height */
    width: 0; /* 0 width - change this with JavaScript */
    position: fixed; /* Stay in place */
    z-index: 1; /* Stay on top */
    /* top: 36px; */ /* Stay at the top */
    left: 0;
    background-color: #111; /* Black*/
    overflow-x: hidden; /* Disable horizontal scroll */
    padding-top: 10px; /* Place content 60px from the top */
    /* transition: 0.5s; */ /* 0.5 second transition effect to slide in the sidenav */
  }
  
  /* The navigation menu links */
  .sidenav a {
    padding: 8px 8px 8px 20px;
    text-decoration: none;
    font-size: 23px;
    color: #bcbcbc;
    display: block;
    transition: 0.3s;
    cursor: pointer;
  }
  
  /* When you mouse over the navigation links, change their color */
  .sidenav a:hover {
    color: #f1f1f1;
  }
  
  /* Position and style the close button (top right corner) */
  .sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
  }
  
  /* Style page content - use this if you want to push the page content to the right when you open the side navigation */
  #main {
    transition: margin-left .5s;
    padding: 20px;
  }

/* Popup */
body.popupShow {
    overflow: hidden;
}
.popup {
    z-index: 101;
    display: block;
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    display: none;
    font-size: 22px;
}

.popup .window {
    z-index: 99999;
    display: none;
    color: #000;
    margin: 0 auto;
    text-align: justify;
    text-transform: none;
    background-color: white;
    padding: 20px;
    padding: 0;
    border-radius: 10px;
    box-shadow: 20px 20px 20px 5px #00000063;
    display: inline-block;
    max-width: calc(100%);
    max-height: 100%;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    margin: 20px;
}

.popup .close {
  width: 18px;
  height: 18px;
  padding: 5px;
  border-radius: 100%;
  cursor: pointer;
  float: right;
  background-color: #ea1e1e !important;
  border: 0px solid #3e3e3d !important;
  margin-top: -10px;
  margin-right: -10px;
}

.popup .title {
  text-align: center;
  padding: 20px;
}

.popup .body {
    overflow: auto;
    height: calc(100% - 120px);
    padding: 20px;
}

.popup .preview {
  /* font-family: monospace; */
  font-size: 14px;
  /* border: 1px solid #d1d1d1; */
  padding: 10px;
  margin-top: 10px;
  text-align: left;
  display: none;
}

.popup .txtPreview {
    width: 100%;
    border: 1px solid #d8d8d8;
    height: 200px;
    resize: none;
}
#btnCopy {position: relative;top: 22px;right: -5px;float: right;border-color: white;cursor: pointer;}
.popup .options { display: none; }

.popup .footer {
    display: flex;
    column-gap: 10px;
    margin-top: 20px;
    display: none;
}
.popup .footer button {
  flex: 1;
  padding: 7px;
  border-radius: 7px;
  border-width: 2px;
  border-color: #cccccc;
  cursor: pointer;
  border-style: solid;
  opacity: 1;
  display: none;
}
#btnSave { display: none; }
.footer button:active{opacity: 0.7;}

.spnTitle {
    font-weight: 400;
    font-size: 16px;
    margin-bottom: 5px;
    display: block;
    margin-top: 10px;
}
.tox-tinymce-aux {display: inherit;display: none;}

/* Minimap */
.gridQuestions .minimap {
    display: block;
}
.minimap {
    background: #e8e8e8;
    position: fixed;
    bottom: 0;
    display: none;
    width: 100%;
}
.favorites .minimap .content {
    height: 100px;
    }
.minimap .content {
    display: flex;
    flex-wrap: wrap;
    overflow: auto;
    height: 150px;
    padding: 5px;
    justify-content: center;
    /* width: 100%; */
    }
.minimap .item {
    border-color: #b2b2b2;
    color: #424242;
    width: 30px;
    text-align: center;
    margin: 5px;
    line-height: 30px;
    cursor: pointer;
    background-color: white;
    font-weight: 500;
    max-height: 30px;
    user-select: none;
}
.minimap .item.error {
    background-color: red;
    color: white;
}
.minimap .item.success {
  background-color: var(--success);
  color: white;
}

  /* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
  @media screen and (max-height: 450px) {
    .sidenav {padding-top: 15px;}
    .sidenav a {font-size: 18px;}
  }



.lineline {
    width: 700px;
    width: 100%;
    margin: 50px auto 0;
    background: #ececec;
    padding: 20px;
    overflow: auto;
    text-align: left;
    margin: 15px 0;
    width: calc(100% - 40px);
}
  
  .lineline-numbers {
    width: 20px;
    border-right: 1px solid #ccc;
    padding-right: 5px;
    color: #777;
  }
  
  .lineline-lines {
    padding-left: 20px;
    white-space: pre;
    white-space: -moz-pre;
    white-space: -pre;
    white-space: -o-pre;
    word-wrap: break-word;
  }
  
  .lineline-code {
    font-family: 'Consolas';
    font-size: 12px;
    line-height: 18px;
    width: 100%;
    white-space: nowrap;
  }