/*------------------------------- BODY -------------------------------*/
body{
  background-color: #fef08f45;
}
/*------------------------------- PAGE, CONTAINER, CHAPTER -------------------------------*/
.page{
  margin:auto;
  margin-top:70px;
  width: 60%;
  padding: 1%;
  min-height:90%;
  border:none;
  background-color: #F9F8F4;
  border-radius:5px;
  box-shadow: #878051 0px 0px 10px;
}
.logo{
  font-family:'arial';
  font-weight:900;
  font-size:24px;
}
.container, .subcontainer{

}
.chapter{
  margin:auto;
  width: 94%;
  padding:1%;
  min-height: 100px;
  border: dashed 1px #ccccbb;
  background-color:transparent;
  border-radius: 5px;
  box-shadow:none;
}
/*------------------------------- AUTO RESIZE TEXTAREA, PARAGRAPH -------------------------------*/
.para{
  display:grid;
  border-top: dotted 1px #ddddcc;
  border-bottom: dotted 1px #ddddcc;
}
.para::after{
  content: attr(data-replicated-value) " ";
  white-space: pre-wrap;
  visibility: hidden;
}
.para > textarea{
  resize:none;
  overflow: hidden;
}
.para > textarea:focus{
  outline:none !important;
  border:solid #FEF08F 3px;
}
.para > textarea, .para::after{
  width: 100%;
  padding:0%;
  min-height:0px;
  border: solid transparent 3px;
  background-color:transparent;
  border-radius:0px;
  box-shadow:none;
  grid-area: 1 / 1 / 2 / 2;
}
.minh{
  min-height:300px !important;
}
/*------------------------------- TITLES AND SUBTITLES (ON PAGE) -------------------------------*/
.title, .subtitle{
  width: 100%;
  padding:0%;
  border: solid transparent 3px;
  background-color: transparent;
  border-radius: 0px;
  box-shadow:none; 
}
.template{
  width: 70%;
  font-style: italic;
}
.tag{
  width: 25%;
  font-style: italic;
  font-size:11px !important;
  color:grey !important;
  text-align: right !important;
}
.title:focus, .subtitle:focus{
  outline:none !important;
  border:solid #FEF08F 3px;
}
/*------------------------------- BARS (ON PAGE) ON HOVER -------------------------------*/
.bar{
  margin:auto;
  width: 96%;
  height: 20px;
}
.subbar{
  margin:auto;
  width: 100%;
  height: 20px;
}
.plus, .subplus{
  margin:auto;
  width: 70%;
  height: 20px;
  padding:0;
  display:block;
  line-height:20px;
  text-align:center;
  background-color:transparent;
  transition:color 2s;
}
.plus:hover, .subplus:hover{
  animation-name: plus;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  cursor: pointer;
  transition-delay:2s;
  color:#524d2a;
}
@keyframes plus {
  0% {
    background-color: transparent;
  }
  10% {
    background-color: #FEF08F;
    width: 70%;
  }
  100% {
    background-color: #FEF08F;
    width: 100%;
  }
}
/*------------------------------- MENUS (ON PAGE) -------------------------------*/
.menu, .submenu{
  position:absolute;
  margin:auto;
  height: auto;
  background-color: rgba(250, 250, 250, 0.6);
  box-shadow: 0px 10px 10px 10px rgba(250, 250, 250, 0.6);
 }
.menu{
  width: 56.8%;
}
 .submenu{
  width: 55.5%;
 }
.new, .subnew{
  display:block;
  border:solid 1px #F9F8F4;
  line-height:20px;
  height:20px;
  width:100%;
  text-align:center;
  background-color:#FEF08F;
}
.new:hover, .subnew:hover{
  background-color: #524d2a;
  color:white;
  cursor: pointer;
}
/*------------------------------- TEXTS -------------------------------*/
.title{
  font-size:24px;
  font-weight:700;
  font-family:"arial";
  color:#524d2a;
}
.subtitle{
  font-size:12px;
  font-weight:700;
  font-family:"arial";
  color:#524d2a;
}
.text, .para{
  font-size:12px;
  font-weight:200;
  font-family:"arial";
  text-align: justify;
  color:#524d2a;
}
.new, .subnew{
  text-align:center;
  font-size:12px;
  font-weight:200;
  font-family:"arial";
  color:#524d2a;
}
.plus, .subplus{
  font-size:12px;
  font-family:"arial";
  font-weight:700;
  color:transparent;
}
.header{
  font-size:15px;
  font-weight:400;
  font-family:"arial";
  color:#524d2a;
}
.footer{
  font-size:15px;
  font-weight:400;
  font-family:"arial";
  color:#524d2a;
}
.small{
  font-size:12px;
  line-height:12px;
  font-style:italic;
  color:#524d2a;
}
.tooltipleft, .tooltipright, .tooltipelement{
  font-size:12px;
  font-weight:400;
  font-family:"arial";
  line-height: 12px;
  color:#524d2a;
}
.tooltipoptions{
  font-size:12px;
  font-weight:400;
  font-family:"arial";
  line-height: 12px;
  color:white;
}
/*------------------------------- OPTIONS MENU -------------------------------*/
.fa{
  float:right;
  cursor: pointer;
}
i.fa-th-large{
  color: #cccccc;
  margin:3px;
  width: 12px;
  height: 12px;
}
i.fa-close{
  color: #cccccc;
  margin:3px;
  width: 12px;
  height: 12px;
}
i.fa-arrow-circle-up{
  color: #666666;
  margin:3px;
  width: 12px;
  height: 12px;
}
i.fa-arrow-circle-down{
  color: #666666;
  margin:3px;
  width: 12px;
  height: 12px;
}
i.fa-trash{
  color: #666666;
  margin:3px;
  width: 12px;
  height: 12px;
}
i.fa-tag{
  color: #666666;
  margin:3px;
  width: 12px;
  height: 12px;
}
.buttons{
  position: absolute;
  right: 20%;
  background-color:#F9F8F4;
}
.hide{
  display:none !important;
  visbility:hidden !important;
}
.flash{
  animation-name: flash;
  animation-duration: 1s;
  animation-fill-mode: forwards
}
@keyframes flash {
  0% {
    background-color: #FEF08F;
  }
  100% {
    background-color: transparent;
  }
}
/*------------------------------- NAVBAR -------------------------------*/
.footer{
  display:block;
  position: fixed;
  bottom: 20px;
  padding:5px;
  right:7px;
  width: 24px;
  height: 110px;
  background-color: #FEF08F;
  color: #524d2a;
  z-index:10;
  box-shadow: #878051 0px 2px 5px;
  border-radius:8px;
}
.footnav{
  display:block;
  margin-top:10px;
  margin-left:4px;
  margin-right:4px;
  width:16px;
  height:16px;
  line-height: 16px;
  font-size:16px;
  right:0px;
}
.tiny{
  height:12px;
  line-height:12px;
  font-size:12px;
  margin-right:0px;
  
}
.header{
  display:block;
  position: fixed;
  top: 7px;
  left:7px;
  right:7px;
  width: auto;
  height: 50px;
  background-color: #FEF08F;
  color: #524d2a;
  z-index:10;
  box-shadow: #878051 0px 2px 5px;
  border-radius:8px;
}
.nav{
  display:block;
  margin:5px;
  padding:5px;
  height: 30px;
  line-height: 30px;
  float:left;
}
.right{
  right: 0px;
  top:0px;
  position: absolute;
}
.left{
  left: 0px;
  top:0px;
  position: absolute;
}
.center{
  margin: auto;
  width: 400px;
  text-align:center;
}
.navcenter{
  display:block;
  margin:5px;
  padding:5px;
  height: 12px;
  line-height: 12px;
  
}
input.doc_title.navcenter{
  background-color:transparent;
  text-align:center;
  width:400px;
  height: 20px;
  border:none;
  color:#524d2a;
}
input.doc_title.navcenter:focus{
  outline:none !important;
  border:none;
  background-color:white;
}
a.nav, i.nav{
  text-decoration:none;
  color:#524d2a;
  cursor: pointer;
}
/*i.nav:hover{
  background-color:black;
  color:white;
  border-radius:3px;
}*/
/*------------------------------- SCROLLBAR -------------------------------*/
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px #878051; 
  border-radius: 10px;
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: #fef08f; 
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #878051; 
}
/*------------------------------- TOOLTIP NAVBAR -------------------------------*/

div.tooltipleft{
  display:block;
  opacity:0;
  visibility:hidden;
  position:absolute;
  top: 60px;
  left: 70px;
  padding:2px;
  background-color: #524d2a;
  border-radius:5px;
  height: 12px;
  width: 190px;
  text-align: center;
  color:white;
  transition:opacity 0.5s ease-in;
}
div.tooltipright{
  display:block;
  opacity:0;
  visibility:hidden;
  position:absolute;
  top: 60px;
  right: 5px;
  padding:2px;
  background-color: #524d2a;
  border-radius:5px;
  height: 12px;
  width: 115px;
  text-align: center;
  color:white;
  transition:opacity 0.5s ease-in;
}
.nav.fa.fa-floppy-o:hover ~ div.tooltip-floppy,
.nav.fa.fa-folder-open-o:hover ~ div.tooltip-folder,
.nav.fa.fa-files-o:hover ~ div.tooltip-file,
.nav.fa.fa-plus:hover ~ div.tooltip-plus,
.nav.fa.fa-cog:hover ~ div.tooltip-cog,
.nav.fa.fa-sign-out:hover ~ div.tooltip-sign,
.nav.user:hover ~ div.tooltip-user,
.nav.fa.fa-tags:hover ~ div.tooltip-tags,
.nav.fa.fa-download:hover ~ div.tooltip-download,
.nav.fa.fa-paragraph:hover ~ div.tooltip-myelements,
.nav.fa.fa-pencil:hover ~ div.tooltip-newelement{
  visibility:visible;
  opacity:1;
  transition-delay:0.5s;
}

/*------------------------------- TOOLTIP OPTIONS MENU -------------------------------*/
div.tooltipoptions{
  display:block;
  opacity:0;
  visibility:hidden;
  position:absolute;
  top:5px;
  left: 70px;
  padding:2px;
  background-color: #666666;
  border-radius:5px;
  height: 24px;
  width: 100px;
  text-align: center;
  color:white;
  transition:opacity 0.5s ease-in;
}
.fa.fa-trash:hover ~ div.tooltip-trash,
.fa.fa-tag:hover ~ div.tooltip-tag,
.fa.fa-arrow-circle-down:hover ~ div.tooltip-down,
.fa.fa-arrow-circle-up:hover ~ div.tooltip-up,
.fa.fa-close:hover ~ div.tooltip-close{
  visibility:visible;
  opacity:1;
  transition-delay:0.5s;
}

/*------------------------------- CUSTUM ALERT BOX -------------------------------*/
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css");

/* ---------------Animation---------------- */

.slit-in-vertical {
  -webkit-animation: slit-in-vertical 0.45s ease-out both;
          animation: slit-in-vertical 0.45s ease-out both;
}

@-webkit-keyframes slit-in-vertical {
  0% {
    -webkit-transform: translateZ(-800px) rotateY(90deg);
            transform: translateZ(-800px) rotateY(90deg);
    opacity: 0;
  }
  54% {
    -webkit-transform: translateZ(-160px) rotateY(87deg);
            transform: translateZ(-160px) rotateY(87deg);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateZ(0) rotateY(0);
            transform: translateZ(0) rotateY(0);
  }
}
@keyframes slit-in-vertical {
  0% {
    -webkit-transform: translateZ(-800px) rotateY(90deg);
            transform: translateZ(-800px) rotateY(90deg);
    opacity: 0;
  }
  54% {
    -webkit-transform: translateZ(-160px) rotateY(87deg);
            transform: translateZ(-160px) rotateY(87deg);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateZ(0) rotateY(0);
            transform: translateZ(0) rotateY(0);
  }
}

/*---------------#region Alert--------------- */

#dialogoverlay{
  display: none;
  opacity: .8;
  position: fixed;
  top: 0px;
  left: 0px;
  background: #524d2a78;
  width: 100%;
  z-index: 10;
}

#dialogbox{
  display: none;
  position: absolute;
  background: transparent;
  transition: 0.3s;
  z-index: 10;
  top:0;
  left: 0;
  right: 0;
  margin: auto;
}
table{
  width: 100%;
  margin-left:auto;
  margin-right:auto;
  margin-top:20px;
}
.download{
  color: #524d2a;
  text-decoration: none;
  cursor: pointer;
  font-size: 30px;
  line-height: 30px;
  display: block;
  float: left;
  /* margin: 10px; */
  text-align: center;
  width: 100px;
  padding: 0px;
  height:80px;
}
.download-label{
  display: block;
  float: left;
  width: 100px;
  margin-top: 50px;
  margin-left: -100px;
  text-align: center;
  padding: 0;
  font-size:12px;
}
.fa-file-word-o{

}
.fa-file-o{

}
.fa-file-pdf-o{

}
.fa-external-link{
  color:#524d2a;
  text-decoration:none;
  cursor:pointer;
}
th{
  text-align: left;
  border-bottom: solid 1px #524d2a;
  padding:5px;
}
tr{
  padding: 10px;
}
td{
  text-align:left;
}
@media screen and (min-width:400px){
  #dialogbox{
    width: 100%;
  }
}
@media screen and (min-width:800px){
  #dialogbox{
    width: 80%;
  }
}
@media screen and (min-width:1200px){
  #dialogbox{
    width: 60%;
  }
}
@media screen and (min-width:1600px){
  #dialogbox{
    width: 40%;
  }
}

/*#dialogbox:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.911);
}*/

.pure-material-button-contained {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  border: none;
  border-radius: 4px;
  padding: 0 16px;
  margin:5px;
  min-width: 64px;
  height: 36px;
  vertical-align: middle;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  color: rgb(var(--pure-material-onprimary-rgb, 255, 255, 255));
  background-color: #524d2a;
  /* background-color: rgb(1, 47, 61) */
  box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
  font-family: var(--pure-material-font, "Roboto", "Segoe UI", BlinkMacSystemFont, system-ui, -apple-system);
  font-size: 14px;
  font-weight: 500;
  line-height: 36px;
  overflow: hidden;
  outline: none;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.pure-material-button-contained::-moz-focus-inner {
  border: none;
}

/* ---------------Overlay--------------- */

.pure-material-button-contained::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgb(var(--pure-material-onprimary-rgb, 255, 255, 255));
  opacity: 0;
  transition: opacity 0.2s;
}

/* Ripple */
.pure-material-button-contained::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  padding: 50%;
  width: 32px; /* Safari */
  height: 32px; /* Safari */
  background-color: rgb(var(--pure-material-onprimary-rgb, 255, 255, 255));
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 1s, transform 0.5s;
}

/* Hover, Focus */
.pure-material-button-contained:hover,
.pure-material-button-contained:focus {
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
}

.pure-material-button-contained:hover::before {
  opacity: 0.08;
}

.pure-material-button-contained:focus::before {
  opacity: 0.24;
}

.pure-material-button-contained:hover:focus::before {
  opacity: 0.3;
}

/* Active */
.pure-material-button-contained:active {
  box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);
}

.pure-material-button-contained:active::after {
  opacity: 0.32;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0s;
}

/* Disabled */
.pure-material-button-contained:disabled {
  color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
  background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.12);
  box-shadow: none;
  cursor: initial;
}

.pure-material-button-contained:disabled::before {
  opacity: 0;
}

.pure-material-button-contained:disabled::after {
  opacity: 0;
}

#dialogbox > div{ 
  background:#FFF; 
  margin:8px; 
}

#dialogbox > div > #dialogboxhead{ 
  background: #524d2a; 
  font-size:19px; 
  padding:10px; 
  color:rgb(255, 255, 255); 
  font-family: Verdana, Geneva, Tahoma, sans-serif ;
}

#dialogbox > div > #dialogboxbody{ 
  background:#fef08f; 
  padding:20px; 
  color:black; 
  font-family: Verdana, Geneva, Tahoma, sans-serif ;
}

#dialogbox > div > #dialogboxfoot{ 
  background: #fef08f; 
  padding:10px; 
  text-align:right; 
}
.boxinput{
  width: 40%;
  margin: 10px;
  height: 30px;
  background-color: transparent;
  border: solid #524d2a 1px;
}
.boxlabel{
  display:block;
  float:left;
  width: 30%;
  margin:10px;
  height:30px;
}
/*#endregion Alert*/
/*------------------------------- FIELD BOX -------------------------------*/
.floating{
  position:fixed;
  bottom:20px;
  left:50%;
  margin-left:-90px;
  width: 180px;
}
.elements{
  width: 150px;

}
.mainbutton{
  height:20px;
  font-size:10px !important;
  line-height:10px !important;
  width: 180px;
  margin:auto;
}
button.pure-material-button-contained.active.norm{
  width: 180px;
  height:20px;
  font-size:12px;
  line-height:12px;
  margin:2px;
}