/* 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;    
}

.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;
}
.head.unsaved-mode{
    background: #EE1D25;
}
.head.unsaved-mode .head-title{   
    color:#ffffff;
}
.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;
}

.form button#register-btn{
    background:#00548E;
   
}
#register-info{
    margin-bottom: 30px;
    background: #EDE8D8;
    padding:20px 20px;    
}

#register-info ul{
   margin-left: 16px;  
   margin-top: 10px;
}

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;
  }

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;
}



#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;
        
}

.topic-node.lvl1 .topic-node-title{  
    padding-left:30px        
}
.topic-node.lvl2 .topic-node-title{
    padding-left:50px 
}
.topic-node.lvl3 .topic-node-title{
    padding-left:70px     
}
.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;
    font-size: 30px;   
    color: #00548E;
    align-self: center;
}
.topic-opener {
    display: flex;
}


.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; 
    font-weight: bold;  
    color:#00548E;
    align-self: center;   
}
.content-item-title h5{
    color:#00548E;
    font-size: inherit; 
    font-weight: normal;
}
.content-item-date i{
    width: 25px;   
    
}
.content-item-remark{      
    margin-bottom: 40px;
    padding:8px 10px;      
    background: #E6EEF4;
}


.video-player{
    height: 100%;
    width: 100%;
    position: absolute;
    left:0;
    top:0;   
    background: #000;   
}
.video-player video{
    width:100%;
    height:100%;  
}







.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;
}


.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;     
}

p.no-content{
    text-align: center;
    margin-top: 50px;
    opacity: 0.5;
}


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




.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); 
}









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