/* height 100% needed to stop page expanding*/
html, body { 
    height: 100%; 
    width: 100%; 
    margin: 0; 
}
#root {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    height: 100%;
    overflow: hidden;
}
header {
    flex-basis: 10%;
    display: flex;
    flex-direction: row;
    color: #666B6E;
    font-family: 'Noto Sans', sans-serif;
    align-items: center;
    justify-content: space-between;
}
#home-wrapper {
    flex: 0 0 400px;
    display: flex;
    flex-direction: row;
}
#home-wrapper > a{
    margin: 0 5px 0 10px;
    transition-duration: 0.4s;
}
#home-wrapper > a:hover {
    opacity:0.6; 
}
h1 {
    margin: 2px 5px;
    font-size: 25pt;
    font-weight: bold;
}
form {
    flex: 0 0 480px;
    font-family: 'Noto Sans', sans-serif;
    font-size: 10pt;
    display: flex;
    color: black;
    justify-content: center;
}
.form-group {
    margin:15px 0 0 15px;
}
#dropContainer {
    border: 1px dashed #696969;
    border-radius:3px;
    color: #696969;
    font-size: 9pt;
    flex: 0 0 250px;
    word-break: break-all;
    cursor: pointer;
    display:flex;
    justify-content: center;
    align-items: center;
}
#dropContainer:hover {
    opacity:0.6; 
}
#buttons {
    flex: 0 0 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#uploadStatus.warning{
    color: red;
}
#dropContainer.warning{
    border-color: red;
}
#dropContainer > i {
    flex: 15%;
    margin-left: 20px;
    font-size: 12pt;
    font-weight: bold;
}
#dropContainer > span{
    flex:85%;
    margin-right: 10px;
}
input[type="file"] {
    display: none;
}
#buttons > label {
    padding-bottom: 5px;
    font-weight: bold;
}
#pubDateBtn {
    height: 2rem;
    width: 10rem;
}
button {
    font-size: 11pt;
    background-color:#087acc;
    color:#fff;
    border-radius:3px;
    padding: 5px;
    height: 2rem;
    width: 4rem;
    border: none;
    margin: 2px;
    transition-duration: 0.4s;
    cursor: pointer;
}
button:hover {
    opacity:0.6; 
}
button[disabled] {
    opacity:0.6; 
    cursor: not-allowed;
}
.container {
    flex-basis: 90%;
    display: flex;
    flex-flow: row nowrap;
    margin: 10px 10px 10px 10px;
    overflow: hidden;
}
#editor {
    flex-basis: 55%;
    margin-right: 10px;
    overflow: hidden;
}
#resizer{
    border-top: 1px solid #cfcfcf;
    border-bottom: 1px solid #cfcfcf;
    border-right: 1px solid #cfcfcf;
    background-color: #f3f3f3;
    border-radius: 3px;
    width: 7px;
    cursor: col-resize;
    height: 100%;
}
#resizer:hover {
    opacity:0.6; 
}
#results {
    margin-left: 10px;
    flex-basis: 45%;
    font-family: 'Noto Sans', sans-serif;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.status {
    color: #696969;
    margin-bottom: 10px;
    font-weight: bold;
}
.results-status {
    margin-right: 10px;
    height: 20px;
    vertical-align:text-top;
}
#dtd {
    margin-bottom: 20px;
}
#schematron {
    margin-top: 20px;
}
/* parents must have overflow hidden for this to work */
.table-scroll {
    height: 100%;
    overflow: hidden;
    overflow-y: scroll; 
}
/* always show scrollbar*/
::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 7px;
}
::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(0, 0, 0, .5);
    box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}
th {
    text-align:center;
    font-size: 10pt;
    cursor: pointer;
    border-bottom: solid 1px #cfcfcf;
    border-right: solid 1px #cfcfcf;
    background-color: #f3f3f3;
    border-radius:4px;
}
th:hover {
    opacity:0.6; 
}
th img {
    height: 20px;
}
td {
    padding:7px;
    text-align:left;
    font-size: 9pt;
    border-radius:4px;
    border-right: solid 1px #dbdbdb;
    border-bottom: solid 1px #dbdbdb;
}
tr.completed td a {
    pointer-events: none;
}
tr:not(.completed) td a:hover {
    opacity:0.6; 
}
.align-middle {
    text-align: center;
}
input[type="checkbox"] {
    cursor: default !important;
}
tr:not(.completed) input[type="checkbox"]:hover {
    opacity:0.4; 
}
.info .align-middle {
    border-left: 3px solid rgb(58, 136, 238);
}
.warning .align-middle {
    border-left: 3px solid rgb(238, 175, 58);
}
.error .align-middle {
    border-left: 3px solid rgb(238, 58, 58);
}
.odd {
    background-color:rgb(244, 251, 253);
}
.completed *{
    color:#ccc7c7be !important;
    cursor: text !important;
    text-decoration: line-through !important;
}
.message {
    cursor: pointer;
    word-break: break-word;
}
tr:not(.completed) td.message:hover {
    opacity:0.6; 
}
.mark {
    animation: highlight 1000ms ease-out;
}
@keyframes highlight {
    0% {
        background-color:rgb(252, 250, 135);
    }
    100% {
      background-color: white;
    }
}
.CodeMirror-linenumbers {
    border-right: solid 1px rgb(185, 185, 185);
    padding-right: 2px;
}
.breakpoints {
    width: 1.5em;
}
.breakpoint img{
    padding-top: 1.7px;
    width: 0.9em;
    padding-left: 4px;
}
.breakpoint div{
    width: 400px;
    position: relative;
    bottom: 10px;
    left: 14px;
    visibility: hidden;
}
.breakpoint:hover div{
    visibility: visible;
    background-color: rgb(244, 251, 253);
    border-radius: 8px;
    border: solid 1px black;
    font-size: 9pt;
    font-family: 'Noto Sans', sans-serif;
}
.breakpoint div p{
    padding-left: 5px;
    padding-right: 5px;
}
#popup {
    position: absolute;
    display:none;
    top:0;
    left:0;
    height: 100%;
    width: 100%;
    z-index: 16;
    background-color: rgb(169,169,169,0.6)
}
#popupMessage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgb(255, 255, 255);
    border-radius:4px;
    border: solid 1px #cfcfcf;
    display:flex;
    flex-direction: column;
    max-width: 450px;
}
#popup-icons{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color:rgb(244, 251, 253);
    border-radius:4px;
    border-bottom: solid 1px #dbdbdb;
}
#popup-icons > * {
    margin: 0 10px;
    font-size: 18pt;
    width: fit-content;
    background-color: inherit;
    color: black;
}
#popupMessage > div:not(:first-child) {
    margin-right: 20px;
}
#popupMessage > div {
    display: flex;
    align-items: baseline;
}
#popupMessage > div > img{
    max-width: 20px;
    margin-left: 10px;
    margin-top: 5px;
}
#popupMessage > div > p {
    margin: 10px;
    text-align: left;
    color: #696969;
    font-family: 'Noto Sans', sans-serif;
    padding-bottom: 10px;
}
#popupMessage > div:nth-child(2) {
    margin-top: 20px;
}
#popupMessage > div:not(:last-child) > p {
    border-bottom: 1px solid #696969;
}
.bounce {
    -webkit-animation-name: bounce;
    animation-name: bounce;
    -webkit-transform-origin: center bottom;
    -ms-transform-origin: center bottom;
    transform-origin: center bottom;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    }
    @-webkit-keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        -webkit-transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        -webkit-transition-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transition-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        -webkit-transform: translate3d(0, -30px, 0);
        transform: translate3d(0, -30px, 0);
    }
    70% {
        -webkit-transition-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transition-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        -webkit-transform: translate3d(0, -15px, 0);
        transform: translate3d(0, -15px, 0);
    }
    90% {
        -webkit-transform: translate3d(0,-4px,0);
        transform: translate3d(0,-4px,0);
    }
    }
    
    @keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        -webkit-transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        -webkit-transition-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transition-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        -webkit-transform: translate3d(0, -30px, 0);
        transform: translate3d(0, -30px, 0);
    }
    70% {
        -webkit-transition-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transition-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        -webkit-transform: translate3d(0, -15px, 0);
        transform: translate3d(0, -15px, 0);
    }
    90% { 
        -webkit-transform: translate3d(0,-4px,0); 
        transform: translate3d(0,-4px,0);
    }
}
.rubberBand {
    -webkit-animation-name: rubberBand;
    animation-name: rubberBand;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    }
    @-webkit-keyframes rubberBand {
    0% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
    30% {
        -webkit-transform: scale3d(1.25, 0.75, 1);
        transform: scale3d(1.25, 0.75, 1);
    }
    40% {
        -webkit-transform: scale3d(0.75, 1.25, 1);
        transform: scale3d(0.75, 1.25, 1);
    }
    50% {
        -webkit-transform: scale3d(1.15, 0.85, 1);
        transform: scale3d(1.15, 0.85, 1);
    }
    65% {
        -webkit-transform: scale3d(.95, 1.05, 1);
        transform: scale3d(.95, 1.05, 1);
    }
    75% {
        -webkit-transform: scale3d(1.05, .95, 1);
        transform: scale3d(1.05, .95, 1);
    }
    100% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
    }
    @keyframes rubberBand {
    0% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
    30% {
        -webkit-transform: scale3d(1.25, 0.75, 1);
        transform: scale3d(1.25, 0.75, 1);
    }
    40% {
        -webkit-transform: scale3d(0.75, 1.25, 1);
        transform: scale3d(0.75, 1.25, 1);
    }
    50% {
        -webkit-transform: scale3d(1.15, 0.85, 1);
        transform: scale3d(1.15, 0.85, 1);
    }
    65% {
        -webkit-transform: scale3d(.95, 1.05, 1);
        transform: scale3d(.95, 1.05, 1);
    }
    75% {
        -webkit-transform: scale3d(1.05, .95, 1);
        transform: scale3d(1.05, .95, 1);
    }
    100% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
}