/* roboto-300 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/roboto-v30-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  
  /* roboto-300italic - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 300;
    src: url('../fonts/roboto-v30-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  
  /* roboto-regular - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-v30-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  
  /* roboto-italic - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 400;
    src: url('../fonts/roboto-v30-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  
  /* roboto-900 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/roboto-v30-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  
  /* roboto-900italic - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 900;
    src: url('../fonts/roboto-v30-latin-900italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  

*{
    padding:0;
    margin:0;
    box-sizing: border-box;
    user-select: none;
}
html,body{
    height: 100%;
    /*overscroll-behavior: none;*/
}
body{
    font-family: 'Roboto';  
    color:#333; 
    background: #fff;    
}
body.assessments{
    background-color: #E6EEF4;
}

.form-parent{
    display: flex;
    justify-content: center;
    height:100%;
}
.container{
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
   
    padding-top: 80px;
}
.container.fullscreen{
    max-width:none;
}

.head{
    background: #fff;
    border-bottom: 2px solid #EE1D25;
    line-height: 60px;   
    padding-left: 20px;
    padding-right: 20px;    
    display: flex;
    justify-content: space-between;
    position: fixed;
    width: 100%;
    top:0;
    z-index: 2;
}
.head-title{
    display: flex;
    color:#00548E;
    background: #fff;
}
.head.unsaved-mode{
    background: #EE1D25;
}
.head.unsaved-mode .head-title{   
    color:#ffffff;
    background: #EE1D25;
}
.head-title i.fa-chevron-left{
    width: 30px;
    align-self: center;
    font-size: 18px;
}
h1{
    font-size: 20px;
    align-self: center;
}
h2{
    font-size: 20px;
    font-weight: normal;    
    line-height: 60px;
}
#login-error{
    color: #EE1D25;    
    text-align: center;
    line-height: 42px;
}
.form{
    align-self: center;    
    padding: 30px;
    border-radius: 4px;   
    width:80%;    
}
.form button{
    width: 100%;
    border:none;
    background: #B71A20;
    color:#fff;
    margin-top: 10px;    
    line-height: 48px;
    font-size: 16px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
textarea{
    padding:8px 10px;
    border:none; 
    width:100%;
    background: #E6EEF4;
    font-size: 1rem;
    font-weight: 400;
    outline: none;
    border: 1px solid #00548E;
    font-family: 'Roboto'; 
}
input::placeholder, textarea::placeholder{
    font-size: 1rem;
}

input[type="date"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    box-sizing: border-box;
  }
  input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
  }
  
/*
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-year-field,
::-webkit-datetime-edit-text {
    color:#8BB1CB;
}
::-webkit-inner-spin-button { display: none; }
input[type="date"]::-webkit-calendar-picker-indicator {
    font-size: 15px;
  }
  */
textarea{ 
    height: 300px; 
    background: #fff;
    border: 1px solid #00548E;
}

button.log-out{
   color:#EE1D25;
   font-size: 20px;
   background: none;
   border: none;
}
body.edit-mode button.log-out{
    color: #fff;
}
button.icon-text-button{
    display: flex;
}
label{
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

#overlay{
    position: fixed;
    left:0;
    top:0;
    width:100%;
    height: 100%;    
    background: #fff;
    display:none;
}
#overlay.show{
   display: block;
}
#flash-message{
    position: fixed;
    left:0;
    top:0;
    width:100%;
    height: 100%;     
    justify-content: center;    
    transform: translate(0,-100%);
    transition: 1s ease-in-out;
    display:flex;
    justify-content: center;
}

#flash-message.flash{   
    transform: translate(0,0);
}
#flash-message #message{
   background:  #B71A20;
   color: #fff;
   max-width: 500px;
   align-self: center;   
   z-index: 30000;
   padding:30px;
   font-size: 24px;   
   border-radius: 3px;
}
#flash-message.info #message{
    background:  #12405E;   
}
#flash-message.success #message{
    background:  #E6EEF4;   
    color: #333;
}

#loading{
    position: absolute;
    left:0;
    top:0;
    width:100%;
    height: 100%;     
    justify-content: center;    
    display:flex;  
    background-color: rgba(0,0,0,0.6);  
    z-index:10;

}
#loading i{
    font-size:100px;
    align-self: center;
    color:#12405E;    
}

.scrollable{
    padding-bottom: 100px;
    
}


.topic-tree{
    
}
.topic-node{    
    background-repeat: no-repeat;
    background-position: left top;
    scroll-margin-top: 80px;
}
.topic-node.selected{    
    background: #ccc;
}
.topic-node.lvl0:first-of-type > .topic-node-title  {   
    border-top:none; 
}
.topic-node:last-child {
    
}

.topic-node-title{
    display: flex;
    height: 60px;    
    padding-left:10px;
    border-bottom: 1px solid #ccc;
}
/*
.topic-node-title.even {
    background: #E6EEF4;
}
.topic-node-title.odd {
    background: #FFF
}
*/
.topic-node.lvl1 .topic-node-title{  
    padding-left:45px        
}
.topic-node.lvl2 .topic-node-title{
    padding-left:90px 
}
.topic-node.lvl3 .topic-node-title{
    padding-left:135px     
}
.topic-node.lvl4 .topic-node-title{
    padding-left:90px     
}
.topic-node-title p{
    flex-grow: 1;
    align-self: center;
}
.topic-node-title i{
    width: 45px;     
    color:#00548E;
    font-size: 30px;
    align-self: center;
}
.topic-opener{
    display: flex;
}

.topic-btns{
    display: flex;
    align-self: center;
}
.topic-btns i{
    width:40px;
    align-self: center;
    margin-top: 0;
    font-size: 25px;
}
.content-item{
    border-bottom:1px solid #12405E;    
    margin-bottom: 5px;
   
}
.content-item-left{    
    margin-top: 15px;
    flex-grow: 1;
}
.content-item-right{
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
.avatar img{
    width:50px;
    height:50px;
    border-radius:25px;
    border:1px solid #000;
}
.content-item:last-child{
    border-bottom:none;   
}
.content-item-title{
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;   
}
.content-item-date{
    display: flex;    
    color:#00548E;
    align-self: center;   
}
.content-item-date i{
    width: 25px;   
}
.content-item-title h5{
    color:#00548E;
    font-size: inherit; 
    font-weight: normal;
}
.content-item-remark{      
    margin-bottom: 40px;
    padding:8px 10px;      
    background: #E6EEF4;
}

.new-content-view .form-floating{
    margin-top: 20px;
}


.create-options{
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    width:100%;
    border: 1px solid #00548E;
}
.create-option{
    flex-grow: 1;
}
.create-btn{
    text-align: center;
    border-right: 1px solid #00548E;
    line-height: 3.5; 
    padding-left: 13px;
    padding-right: 13px;
    color: #00548E;
}
.create-btn:last-child{
    border-right: none;
}

.create-btn i{    
    font-size: 20px;    
    align-self: center;   
    margin-right: 15px;
}  

.bottom-btns-wrap{
    position: fixed;
    width:100%;
    height:100%;
    left:0;
    top:0;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    background: rgba(0,0,0,0.5);
    z-index: 3;
}
.bottom-btns{
    width:100%;
    left:0;
    bottom:0;
    position: absolute;
    background: #fff;
    display:flex;
    justify-content: center;
    border-top: 1px solid #B71A20;
    padding-left: 20px;
    padding-right:20px;
}

.bottom-btn{        
    display:flex;
    justify-content: center;
    padding:5px;
    width:50%;
    border-right:1px solid #B71A20;   
    line-height: 55px;
    color: #00548E;
    
}
.bottom-btn.off{        
    opacity: 0.25;
}
.bottom-btn:last-child{     
    border-right:none;   
}
.bottom-btn i{
    align-self: center;
    font-size: 16px;
    
}
.bottom-btn span{   
    align-self: center;
    margin-left: 8px;
    font-size: 18px;
}

.action-btn{  
    display: flex;   
    justify-content: center;  
}
.action-btn i{      
    align-self: center;    
}
.action-btn.secondary{    
    width:40px;
    height: 40px;
    border-radius: 8px;  
    background: #fff 
}
.action-btn.secondary i{    
    font-size: 15px;    
    align-self: center;
    color:#12405E; 
}
.action-btn.primary.off{
    opacity: 0.2;
}
.action-btn.primary{   
    background: #EE1D25;     
    position: absolute;
    right: 20px;
    bottom: 20px;
    width:60px;
    height: 60px;
    border-radius: 10px;  
    font-size: 25px;   
    box-shadow: 2px 2px 0px #8BB1CB;
}
.action-btn.primary.fixed{      
    position: fixed;
}
.action-btn.primary i{
    color: #fff;    
}
#video-view .action-btn.primary{
    display:none;
    bottom:80px;
}
.has-sub-btns .action-btn.primary{      
    bottom: 70px;    
}
.video-player{
    height: 100%;
    width: 100%;
    position: absolute;
    left:0;
    top:0;   
    background: #000;   
}
.video-player video{
    width:100%;
    height:100%;  
}

.pose-view{
    width:100%;
    height:100%;
    position: fixed;
    left:0;
    top:0;    
    display: flex;
    justify-content: center;
}


#frame-holder{
    position: absolute;   
    left:0;
    top:0;
    width:100%;
    height: 100%;
    display:flex;
    justify-content: center;   
    background-color: #000; 
}

canvas#preview{    
    align-self: center; 
    left:0;
    top: 0;  
    pointer-events: none;    
    transform-origin:center;  
}
.display-wrap{
    /*visibility: hidden;*/
    justify-content: center;
    font-size: 22px;
    position: absolute;
    top:20px;
    left:0;
    width: 100%;
    z-index:2;
    display: flex;
    pointer-events: none;
    color:#fff;
}
.display-wrap div{
    display: flex;
}
.display-wrap-inner{
    background-color: #EE1D25;
    padding:6px 10px;
    border-radius: 8px;
}
.display-wrap .time-wrap{
    margin-right: 25px;    
}
.display-wrap div i{
    margin-right: 5px;
}

#pose-holder{
    position: relative;
    align-self: center;
    height: 100%;
}
#pose-holder .pose-canvas{
    position: absolute;
}
/*
#pose-image{
    width:auto;
    height:100%;
    opacity: 0;
}
*/
.hidden-file-input{
    display:none;
}
.file-input-fake{
    background: #004A79;
    color: #fff;
    padding: 8px 10px;
    border: none;
    border-radius: 4px;
    display: inline-block;
}

.round-icon-text-button{
    width:90px;
    height:90px;
    border-radius:45px;    
    color:#fff;
    display:flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    position: relative;
    background: #EDE8D8;
    border: 1px solid #8E8E8D;
    
}
.round-icon-text-button i{
    font-size:30px;  
    color:#8E8E8D;    
}
.round-icon-text-button i:first-child{
    font-size:20px;
    margin-bottom: 5px;
   
}
.round-icon-text-button span{
    font-size:15px;
    display: block;
}
.form-floating{
    position: relative;
    margin-bottom: 30px;
}
#pw-switch{
    position: absolute;
    right:20px;
    top:20px;
}
.form-floating #pw-switch i:last-child{
    display: none;
}
.form-floating.pw-visible #pw-switch i:last-child{
    display: block;
}
.form-floating.pw-visible #pw-switch i:first-child{
    display: none;
}
.form-floating .form-control{
    
    padding-left: 2.75rem !important;
    height: calc(3.5rem + 2px);
    line-height: 1.25;  
    transition: outline 50ms ease;
    display: block;
  width: 100%;    
  line-height: 1.5; 
  background-clip: padding-box; 
  appearance: none;
}
.form-floating label{
    position: absolute;
  top: 0;
  left: 2.75rem;
padding:4px;
  overflow: hidden;
  text-align: start;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  border: 1px solid transparent;
  transform-origin: 0 0;
  transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
  opacity: 0;

  display: inline;
}
.form-floating:focus-within label, .form-floating.active label{
    opacity: 1;
    transform: translate(-38px,-25px);    
}
.form-floating:focus-within input::placeholder{
    visibility: hidden;
}

.form-floating .icon{
    position: absolute;
    left:10px;
    top:18px;
    color: #8BB1CB;
}
.new-content-data{
    display: flex;   
    flex-wrap: wrap;
    margin-bottom: 30px; 
    /*
    background: #12405E;
    padding: 8px 10px;
    */
    min-height: 100px;
}
.new-content-data-item{    
    border: 1px solid #fff;
    margin-right: 15px;    
    margin-bottom: 15px; 
    box-sizing: border-box;
}
.new-content-data-item:nth-child(6), 
.new-content-data-item:nth-child(12),
.new-content-data-item:nth-child(18){
    margin-right:0;
}

.new-content-data-item img, .new-content-data-item video{
    pointer-events: none;
}
.new-content-data-item.selected{    
    border: 3px solid #EE1D25;    
}
.new-content-data-item img, .new-content-data-item video{
    width: 100%;   
    height: 100%;
    object-fit: cover;    
}
.image-gallery{
    height: 100%;
    width: 100%;
    position: absolute;
    left:0;
    top:0; 
    background: #000;  
    overflow: auto;
    white-space: nowrap;
}
.image-gallery.single{
    width: 100%;
    display: flex;  
    justify-content: center; 
}
.gallery-image{   
    display: inline-block;
    height: 100%;
    margin-right: 4px;
}
.image-gallery.single .gallery-image{   
    float: none;    
}
.image-gallery img{
    height: 100%;
    width:auto;     
}
.user-list{
    width:100%;
}
.user-list-item{
    width:100%;
    display: flex;       
    height: 60px;
    border-bottom: 1px solid #00548E;
}
.user-list-item:first-child{   
    border-top:none; 
    color:#00548E;
    font-weight: 700;    
}
/*
.user-list-item:nth-child(even) {
    background: #E6EEF4;
}
.user-list-item:nth-child(odd) {
    background: #FFF
}
*/
.user-list-cell{
    width: calc((100% - (50px)) / 4);
    align-self: center;
}
.user-list-cell p{
    padding-left: 10px;
}
.user-list-cell.icon{
    width: 25px;
    color:#00548E;
    font-size: 30px;
    text-align: right;
}
.user-list-cell.nr{
    width: 95px;    
}
.user-list-cell.catname{
    flex-grow: 1;    
}
p.no-content{
    text-align: center;
    margin-top: 50px;
    opacity: 0.5;
}


.flex-spacer{
    flex-grow: 1;
}


#thrubber{
    width:100%;
    height:70px;
    position: absolute;
    left:0;
    bottom:0;   
    padding-top: 5px;
    padding-bottom: 5px;
    overflow-x: auto;
    background-color: #000;
    box-sizing: content-box;
}
canvas#thumb-canvas{   
    margin-left: 50%;
    margin-right: 50%;
}
#thrub-position-line{
    width:2px;
    height:80px;
    position: fixed;
    left:calc(50% - 1px);
    bottom:0;
    background-color: #EE1D25;
}
.video-recorder-view{
    width:100%;
    height:100%;
    overflow: hidden;
    position: absolute;
    left:0;
    top:0;
}
#video-record-btn{
    position: absolute;
    bottom:20px;
    width:70px;
    height:70px;
    border-radius: 35px;
    left:calc(50% - 35px);
    display: flex;
    justify-content: center; 
    background-color: #fff;  
}
#video-record-btn i{
    font-size: 30px; 
    color:#EE1D25;
    align-self: center;  
}
#video-controls, #pose-controls{
    position: absolute;
    right: 10px;
    top:0;
    height: 100%;   
    justify-content: center;
    flex-direction: column;    
    display:none;
}
#pose-controls{  
    right: 60px;    
}
#video-controls i, #pose-controls i{
    font-size: 30px; 
    color:#fff;
}
#video-controls div, #pose-controls div{
    width:60px;
    height: 60px;
    border-radius: 10px;  
    font-size: 25px;  
    background-color: #EE1D25; 
    margin-top: 10px;
    margin-bottom: 10px;
}
.closeable-textarea{
    position: relative;
}
.closeable-textarea p.close{
    position: absolute;
    right:10px;
    bottom:10px;
    background-color: rgba(255,255,255,0.5);
    padding: 4px;
    color:#00548E;
    display:none;
}
.closeable-textarea:focus-within p{
    display: block;    
}
.header-less-back{
    position: absolute;
    left:10px;
    top:10px;
    color:#fff;
    z-index: 2;
    font-size: 25px;
    padding-right: 15px;
}
#pose-overlay{
    position: absolute;
    width: 100%;
    height: 100%;
    left:0;
    top:0;    
    background-color: rgba(0,0,0,0.7);
    z-index: 5;
    box-sizing: border-box;
    padding: 50px;
}
#pose-overlay:empty{
    display: none;
}
.pose-frame{
    width: 100%;
    height: 100%;  
    display: flex;  
    justify-content: center;
    overflow: hidden;
}
.pose-frame canvas{
    flex-grow: 0;
}

#grid-canvas{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.asset-grid{
    display:flex;
    flex-wrap: wrap;
}
.asset-grid-item{
    margin-right:15px;
    margin-bottom: 15px;    
    position: relative;
    border:1px solid #00548E;
}
.asset-grid-item:nth-child(6), 
.asset-grid-item:nth-child(12),
.asset-grid-item:nth-child(18){
    margin-right:0;
}
.asset-grid-item img,
.asset-grid-item video{
    width:100%;
    height: 100%;
    object-fit: cover; 
    pointer-events: none;     
}
.asset-grid-item .video-icon{
    position:absolute;
    left:0;
    top:0;
    width: 100%; 
    height: 100%;
    display: flex;
    justify-content: center;   
}
.asset-grid-item .video-icon i{
    align-self: center;
    font-size: 70px;
    color:#12405E;
    border-radius: 35px;
    background: rgba(255,255,255,0.5); 
}

#confirm-overlay{
    position:absolute;
    left:0;
    top:0;
    width: 100%; 
    height: 100%;
    display: flex;
    justify-content: center;   
    background: rgba(255,255,255,0.5); 
}
#confirm-overlay:empty{
   display: none;   
}
#confirm-overlay .confirm{
    align-self: center; 
    padding:30px;    
    background: #fff;
    border-radius: 5px;
    border:1px solid #ccc;
    box-shadow: 2px 2px 0px #333;
 }
 #confirm-overlay .confirm p.title{
    font-weight: bold;
    margin-bottom: 15px;
 }
 #confirm-overlay .confirm .btns{
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
 }
 .confirm-btn{
    border-radius: 4px;  
    border:2px solid #EE1D25;
    line-height: 2.5; 
    padding-left: 13px;
    padding-right: 13px;
    width:48%;
    color:#12405E;
    text-align: center;
    font-weight: bold;
    white-space: nowrap;
}
.confirm.single-choice .confirm-btn{    
    width:100%;   
}
.change-password p{
    margin-bottom: 30px;
}
.pat-cat-switch{
    display: flex;
}
.pat-cat-switch i{
    margin-left: 10px;
    margin-right: 10px;
    align-self: center;
    color: #EE1D25; 
    font-size: 24px;
}
.pat-cat-switch p:first-child{   
    color: #EE1D25;    
}
.pat-cat-switch.cat p:first-child{   
    color: #00548E;   
}
.pat-cat-switch.cat p:last-child{   
    color: #EE1D25;  
}
.pool-topic-wrap{
    margin-top: 30px;
    padding-bottom: 100px;
}
.pool-topic-grant{
    display: flex;
    height: 60px;
    border-bottom: 1px solid #ccc;
    padding-left: 10px;
    padding-right: 10px;
}
.pool-topic-grant.granted{
    font-weight: bold;
}
.pool-topic-grant p{
    flex-grow: 1;
    align-self: center;
}
.pool-topic-grant i{
    font-size: 30px;
    align-self: center;
    color: #00548E; 
}






@media only screen and (max-width: 1200px) {   
    .container{
        margin-left: 20px;
        margin-right:20px;
    }  
}
