
/*
 #9588e8
 #c9c2f9
 #f5f5f5
 #ffffff
 #bbc0d9
 ##80868C


 https://www.behance.net/gallery/183443905/MyDNA-AI-Powered-Healthcare-UIUX?tracking_source=curated_galleries_list

*/

html{
    height: 100%;
    width: 100%;

}

body {
    margin: 0;
    width: 100%;
    height: 100%;
    font-family: 'Poppins';
    font-size: 0.6vw;
    display:block;
    justify-items: center;
    align-items: center;
    background-color: white;
}

h3 {
    margin-top: 0.1vw;
    margin-bottom: 0.1vw;
    font-size: 0.8vw;
}

h4 {
    margin-top: 0.1vw;
    margin-bottom: 0.1vw;
    margin-left: 0.3vw;
    font-size: 0.6vw;
}

h5 {
    margin-top: 0.1vw;
    margin-bottom: 0.1vw;
    font-size: 0.6vw;
}

p {
    font-weight: bold;
}

input, button, select, textarea {
    font-family: 'Poppins';
    font-size: 0.8vw;
    white-space: nowrap;
}

label {
    white-space: nowrap;
}

button {
    border-radius: 10px;
    background-color: white;
    border: 0;
    display: inline;
    /*width: 6vw;*/
}

/* LOGIN modal style */

.modal {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    font-size: 1.2vw;
    display: none;
    justify-items: center;
    align-items: center;
    text-align: center;
    background-color: rgb(255,255,255); /* Fallback color */
    background-color: rgba(0,0,0,0.2); /* Black w/ opacity */
}

/* The Close Button */
.close {
    color: #ccc;
    float: right;
    width: 1.2vw;
    height:1.2vw;
    font-size: 1.2vw;
    line-height: 1.2vw;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border:2px solid #ccc;
    border-radius: 50%;
    transition:0.2s;
}

.close:hover{
    color: white;
    border:2px solid white;
    transition:0.2s;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #4AA2D9;
    height: 32px;
    width: calc(100% - 20px);
    font-size: 1.2vw;
    font-weight: bold;
    color: white;
    text-align: left;
    padding: 4px 10px;
}

.modal-frame {
    display:flex;
    flex-direction: column;
    background-color: #F2F2F2;
    margin: 5% auto;
    width:50%;
    height: 75%;
    font-size: 0.8vw;
    border-radius: 8px;
    box-shadow: 0 0 5px 2px grey;
}

.element {
    display:flex;
    width: calc(100% - 10px);
    padding: 5px;
    justify-content: center;
    align-items: center;
    /*border: #4AA2D9 solid 2px;*/

}

.element .field-name{
    flex-basis: 20%;
    flex-grow: 0;
    text-align: right;
    margin-right: 8px;
    font-weight: bold;
}

.element .field-icon{
    flex-basis: 24px;
    flex-grow: 0;
    height: 24px;
   /* border: 1px solid #aaa;*/

}

.element .field-input{
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 4px;
    justify-content: flex-start;
    align-items: flex-start;
    /*flex-wrap: wrap;*/
    flex-basis: 50%;
    /*text-align: left;*/
    padding-left: 8px;
   /* outline: 2px red solid;*/
}

.wrap{
    flex: 0 0 12em;
}

.modal-frame .label {
    width:33%;
}

.modal-frame button {
    flex-basis: fit-content;
    flex-grow: 0;
    align-items: baseline;
    align-content: space-around;

}

.dialogue-content {
    background-color: white;
    margin: 5% auto;
    width:30%;
    height:20%;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 5px 2px grey;
}

#login-overlay {
    background-color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    margin: 10% auto;
    width:30%;
    height: 50%;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 5px 2px grey;
    background-image: url("/images/WER co 1.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-origin: content-box;
}

#login-error-msg-holder {
    width: 100%;
    height: 100%;
    display: grid;
    justify-items: center;
    align-items: center;
}

#login-error-msg {
    width: 40%;
    text-align: center;
    margin: 0;
    padding: 5px;
    font-size: 0.4vw;
    font-weight: bold;
    color: #8a0000;
    border: 1px solid #8a0000;
    background-color: #e58f8f;
    opacity: 0;

}

#error-msg-second-line {
    display: block;
}

#login-form {
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
}

.login-form-field::placeholder {
    color: #3a3a3a;
}

.login-form-field {
    border: none;
    border-bottom: 1px solid #3a3a3a;
    margin-bottom: 10px;
    border-radius: 3px;
    outline: none;
    padding: 0 0 5px 5px;

}

#login-form-submit {
    width: 100%;
    padding: 7px;
    border: none;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    background-color: #200532;
    outline: none;
    margin-bottom: 5px;
}

#login-form-submit:hover {
    background-color: #471362 !important;
}

/* Main screen layout */

#main-viewport {
    left: 0;
    right: 0;
    position: fixed;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    height:100%;
    font-weight: lighter;
}

/* Top level containers  */
#main-selection-box {
    flex-basis: 20%;
    flex-grow: 0;
    flex-shrink: 0;
    height:100%;
    /*margin:2px;*/
    background-color: #F2F2F2;
    background-image: url("/images/spencerBG.jpg");
    /*background-image: url("/images/garyPalmerBG.jpg");*/
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
   /* border:1px solid #aaa;*/
}

#analysis-container {
    flex: 1 1 auto;
    flex-basis: 50%;
    /*height:100%;*/
    background-color: #F2F2F2;

    padding: 10px;
    transition: 0.3s;
}

.video-container {
    flex-basis: 30%;
    flex-grow: 0;
    flex-shrink: 0;
   /* max-width: 50%;*/
    /*height:100%;*/
    background-color: #F2F2F2;
    /*position: relative;*/
   /* margin:2px;*/
    /*position: relative;*/
}

#no-content-overlay {
    display: flex;
    position: absolute;
    left: 20%;
    top:0;
    width: 80%;
    height:100%;
    justify-content: center;
    align-items: center;
    background-color: #eee;
    margin: 2px;
    color: #555;
    font-size: 1.5em;
    /*z-index: 1;*/
}


/* Selection container */

#club-header {
    width: 100%;
    text-align: center;
    font-size: 0.8vw;
    padding: 12px;
    font-weight: bold;
    background-color: rgba(0,0,0,0.2);
    color:white;
}

/*
#club-logo-thumb {
    border: 1px solid red;
    width:32px;
    height:32px;
    background-size: contain;
}
*/
#selection-header{
    display: flex;
    flex-flow: row;
    padding: 14px 0;
    justify-content: space-around;
    /*overflow: hidden;*/
    width: 90%;

}
#assessment-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width:100%;
    height: 96%;
    overflow-y: auto;
    /*background-color: inherit;*/
}

.assessment {
    width:90%;
    height:6%;
    background-color: rgba(255,255,255,0.8);
    padding: 2px 4px;
    color: #222;
    font-size: 0.6vw;
    margin: 5px 10px;
    border: 1px solid #80868C;
    border-radius: 6px;
    transition: 0.3s;
    position: relative;
}

.assessment.new {
    font-size: 2.2vw;
    color: #aaa;
    border: dashed #aaa 2px;
    background-color: rgba(255,255,255,0.5);
    text-align: center;
}

.assessment-coach {
    display: flex;
    position: absolute;
    height:1vw;
    width: 1vw;
    right: 10px;
    top: 10px;
    background-color: lightsteelblue;
    border-radius: 50%;
    color: white;
    align-items: center;
    font-size: 0.6vw;
    justify-content: center;

}


.assessment:hover {
    background-color: #B4DFFB !important;
}

.analysis-content{
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    background-color: white;
    height: 94%;
    border: 1px solid #80868C;
    /*margin: 10px;*/
    display: none;
    padding: 6px 12px;
    border-radius: 0 6px 6px 6px;
    overflow-y: auto;
}

.edit-form {
    width:100%;
}

/* The input where the coach make selections */
.edit-form input {
    width: 98%;
    font-size: 1em;
}

.edit-form textarea {
    width: 100%;
    resize: none;
    font-size: 1em;
}

.phase-container{
    background-color: #eee;
    width: calc(100% - 12px);
    /*flex-basis: 100px;*/
    align-self: center;
    margin:5px 5px 10px 5px;
    border-radius: 4px;
    padding: 2px 0 1px 0;
}

.phase-container > .header {
    height: 24px;
    background-color: #eee;
    border-radius: 8px 8px 0 0;
    color: #444;
    padding-left:10px;
}

.phase-container > .metric{

    flex-basis: 50px;
    /*width: calc(100%- 20px);*/
    background-color: white;
    padding: 4px 8px;
    margin: 8px 4px;
    border-radius: 4px;
    color: #666;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}



.metric {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.metric:hover {
    outline: 4px solid #B4DFFB;
    color: black;
}

/* Title and Text on top of each other */
.metric-content {
    flex-basis: 90%;
    display: flex;
    flex-direction: column;
    /*outline:1px solid green;*/
}

.metric-header {
    flex-basis: 100%;
    display: flex;
    flex-direction: row;
   /* outline:1px solid aquamarine;*/
}

.metric-buttons {
    flex-basis: 10%;
    display: flex;
    flex-direction: row;
   /* outline:1px solid red;*/
}

.metric-set-keyframe{

}

.optionSelect {
    flex-direction: column;
}

.optionSelect:hover {
    cursor:pointer;
    font-weight: bold;
}

/* Alternate to metric for video edits - consolidate once layout final */
.phase-container > .control-group {

    /*flex-basis: 50px;*/
    /*width: calc(100%- 20px);*/
    background-color: white;
    padding-left: 8px;
    margin: 8px 4px;
    border-radius: 4px;
    color: #666;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    font-size: 0.8vw;
    /*outline: green 2px solid;*/
}

.radio-group{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    align-content: center;
    /*border: red 2px solid;*/
    margin-right: 8px;
}

.keyframe-group{
    display: flex;
    justify-content: left;
    align-items: center;
    /*border: blue 2px solid;*/
    margin-right: 4px;
    margin: 2px;
}

.keyframe-group button{
    font-size: 0.8em;
}



/* Video Panel */

.keyframe-indicator{
    /*height:100%;
    aspect-ratio: 1 / 1;*/
    flex-basis: 32px;
    height:32px;
    flex-grow: 0;
    margin: 2px;
    background-image: url("/images/icons/eyeGrey.png");
    background-size: contain;
}

.warning-indicator{
    flex-basis: 32px;
    height:32px;
    flex-grow: 0;
    margin: 2px;
    /*background-image: url("/images/icons/grey-warning.png");*/
    background-size: contain;
}

.warning{
    background-image: url("/images/icons/grey-warning.png");
}

.speed{
    background-image: url("/images/icons/grey-speed.png");
}

.metric:hover .speed{
    background-image: url("/images/icons/speed-select.png");
}

.metric:hover .warning{
    background-image: url("/images/icons/grey-warning-select.png");
}


.metric:hover .keyframe-indicator{
    background-image: url("/images/icons/eyeGreySelect.png");
}





#upload-video-container{
    /*position: relative;*/
    top: 0;
    left: 0;
    background-color: #eee;
    width:100%;
    height:100%;
    display: none;
    justify-content: center;
    align-items: center;
    background-image: url("/images/spencerBG.jpg");
    background-size: cover;
}

#upload-video-container > button{
    width: 4vw;
    height:2vw;
}

#await-video-playback {
    color: white;
    font-size: 1vw;
}


#main-video-container {
    position: relative;
}

#keyframe-container {
    width: 100%;
    height:100%;
    visibility: hidden;
    position: absolute;
    top:0;
    left:0;
    transition: 0.2s;
}


#assessment-video {
    position: absolute;
    top: 0;
    left: 0;
}

/*
#video-frame-controls {
    position: absolute;
    bottom: 10%;
    flex-direction: row;
    border: 4px solid deepskyblue;

}*/

#frame-control{
    position: absolute;
    width: 100%;
    height:32px;
    left:0;
}

.video-frame-control {
    position: absolute;
    width: 32px;
    height: 32px;
    background-size: contain;
    bottom: 0;
    /*background-color: rgba(0,0,0,0.2);*/
    transition: 0.3s;
}
.video-frame-control:hover {
    width: 40px;
    height: 40px;
    transition: 0.3s;
}

#frame-advance {
    background-image: url("/images/icons/frame-advance.png");
    right: 40%
}

#frame-rewind {
    background-image: url("/images/icons/frame-rewind.png");
    left: 40%;
}

#add-video-button {
    height: 80%;
    width: 100px;
    position: absolute;
    right: 4px;
    outline: 2px solid white;
}

#video-bar {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: space-evenly;
    top: 0;
    left:0;
    height: 48px;
    width: 100%;
    background-color: rgba(0,0,0,0.3);
}

.video-selection {
    /*position: absolute;*/
    width: 32px;
    height: 32px;
    background-size: contain;
    top: 8px;
    transition: 0.3s;
}

.video-selection:hover {
    width: 40px;
    height: 40px;
    transition: 0.3s;
}

#next-video {
    background-image: url("/images/icons/next.png");
}

#previous-video {
    background-image: url("/images/icons/prev.png");
}

#video-number {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 20%;
    font-size: 1vw;
}

#video-number >span{
    flex-basis: 4vw;
    text-align: center;
    color: white;
}

/* Form Validation */

input:not(.not-validated):read-only {
    background-color: rgb(0,255,0);
    border: 2px solid lightgreen;
}

.help {
    display: none;
    font-size: 0.8em;
    text-align: center;
    margin: 0.2em 0 1em 0;
    color: #c00;
}

.invalid .help {
    display: block;
}

.invalid label, .invalid input {
    color: #c00;
    border-color: #c00;
}



/* Main area tab navigation */

.tab {
    overflow: hidden;
}

/* Style the buttons inside the tab */
.tab button {
    background-color: white; /* Was inherit */
    height: 3%;
    float: left;
    border: 1px solid #80868C;
    border-bottom: none;
    outline: none;
    cursor: pointer;
    padding: 8px 16px;
    transition: 0.3s;
    font-size: 0.8vw;
    border-radius: 12px 12px 0 0;
    color: #222;
}

/* Change background color of buttons on hover */
.tab button:hover {
    background-color: #B4DFFB;
}

/* Create an active/current tablink class */
.tab button.active {
    background-color: #4AA2D9;
    color: white;
}

button {
    background-color: #606060;
    color: white;
    font-weight: 0.1;
    font-size: 1em;
    border-radius: 1em;
    padding: 3px 10px;
    outline: 1px solid white;
    margin: 2px;

}

button:hover {
    background-color: #3187c0;


}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 42px; /*60 */
    height: 26px; /*34*/
    margin-bottom: 0.1vw;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .2s;
}


.slider:before {
    position: absolute;
    content: "";
    height: 18px; /*26*/
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .2s;
}

input:checked + .slider {
    background-color: #4AA2D9;
}


input:focus + .slider {
    box-shadow: 0 0 1px #4AA2D9;
}

input:checked + .slider:before {
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 26px;
}

.slider.round:before {
    border-radius: 50%;
}