body {
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #a6c1ee;
}
html, body {
    margin: 0;
    padding: 0;
}
div p {
    text-align: left;
    margin: 0;
}

.clear {
    clear: both;
}

div#header {
    background-image: linear-gradient(to top, #a6c1ee 0%, #fbc2eb 100%);
    margin-bottom: 0.2em;
    color: cornsilk;
}

div#header h1 {
    margin: 0;
    padding: 0.2em 1em;
    font-size: 0.75em;
    float: left;
}
div#header p {
    margin: 0;
    padding: 0.2em 1em;
    font-size: 0.75em;
    float: right;
}

/* block */

div#main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

div#main p {
    font-size: 0.87em;
    line-height: 1.2em;
    margin: 0;
    padding: 0.3em 1em;
}

div#colum_image {
}
div#area_control {
}
div#area_video {
}
div#area_video video {
    vertical-align: top;
}
div#area_photoandgraph {
    display: flex;
    align-items: stretch;
}
div#area_photo {
    flex-basis: 75%;
}
div#area_photo img {
    width: 100%;
    vertical-align: top;
}
div#area_graph {
    flex-basis: 25%;
    background-image: url('../img/back_photoside.png');
    background-position: 0 0;
    background-repeat: no-repeat;
    background-size: cover;
}

/* block label bar : mobile */
div.arealabelbarbox {
    font-size: 0.5em;
    margin: 0.2em 0;
}
div.arealaberl_a, div.arealaberl_b {
    padding: 0.2em 1em;
    color: silver;
}
div.arealaberl_a {
    background-color: rgb(56, 53, 59);
}
div.arealaberl_b {
    background-color: rgb(64, 73, 72);
}
div#arealabel_mob div.arealaberl_a {
    display: flex;
    justify-content: space-between;
}

/* Control Area Positioning : normal */

#area_control {
}
div#control_data {
}
div#control_scoring {
}
div#control_vcontrol {

}
/* Inner Control Area */

div#control_data_log h3 {
    margin: 8px 0.5em 6px 0;
    padding: 2px;
    font-size: 0.65em;
    background-color: #a6c1ee;
    border-radius: 0 7px 7px 0;
}
div#control_vcontrol h3, div#control_scoring h3 {
    display: none;
}
div#control_vcontrol {
    margin: 0.5em 0;
}
div#control_data_log_box {
    background-color: white;
    border: 1px inset silver;
    margin: 0 5px;
    width: 100%;
    height: 5em;
    display: flex;
    flex-direction: column-reverse;
    overflow-x: hidden;
    overflow-y: scroll;
}
div#area_description {
    display: none;
}

/* data area */
div.log_low {
    border-bottom: 1px dotted gray;
    font-size: 0.87em;
    padding: 2px 0.5em;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
div.log_low p {
    padding: 0 0.5em;
}
div.log_low p.log_low_no {
    font-size: 0.5em;
    font-weight: bold;
    border: 1px solid silver;
    display: block;
    width: 1.5em;
    text-align: center;
}
div.log_low p.log_low_editbot {
    text-align: right;
    flex-grow: 5;
}
div.log_low p.log_low_editbot a {
    border-radius: 0.2em;
    font-size: 0.4em;
    padding: 1px 1em;
    text-decoration: none;
    background-color: cornflowerblue;
    color: white;
}
div.log_low p.log_low_time {
    flex-basis: 7em;
}
div.log_low p.log_low_score1, div.log_low p.log_low_score2 {
    flex-basis: 2em;
    text-align: right;
}


/* Video Control */
div#control_vcontrol button {
    margin: 0;
    padding: 2px;
    background: rgb(31,31,31);
    background: linear-gradient(180deg, rgba(62,62,62,1) 0%, rgba(31,31,31,1) 50%, rgba(62,62,62,1) 100%);
    color: white;
    border-radius: 0.5em;
}
div#control_vcontrol button.w3 {
    width: 30%;
}
div#control_vcontrol button.w2 {
    width: 20%;
}
div#control_vcontrol button.w1 {
    width: 10%;
}
div#control_vcontrol button img {
    width: 2em;
}

/* parts */

video#moviefile {
    width: 100%;
}
img#logo_bottom {
    height: 20px;
}

div#scorevotesframe {
    margin: 0.3em 0.5em;
    border: 1px solid gray;
    border-radius: 0.5em;
    background-color: rgba(255, 255, 255, 0.75);
}
div#scorevotesframe p {
    font-size: 0.75em;
    padding: 0.2em 1em;
    border-bottom: 1px dotted silver;
    text-align: right;
    color: gray;
}
div#scorevotesframe p.descp_alt {
    color: rgb(214, 65, 65);
}
div#scorevotes {
    padding: 0.5em 3em 0 0.5em;
}
div#scorevotesinner {
}
div.scorevotes_row {
    display: flex;
    padding: 0.3em 0;
}
div.scorevotes_row div.scorevotes_row_h {
    flex-basis: 5em;
    font-size: 0.65em;
}
div.scorevotes_row div.scorevotes_row_i {
    flex-grow: 1;
    font-size: 0.75em;
}
#vote1handle, #vote2handle {
    width: 3em;
    height: 1.6em;
    top: 50%;
    margin-top: -.8em;
    text-align: center;
    line-height: 1.6em;
    color: white;
}
#vote1handle {
    background-color: green;
}
#vote2handle {
    background-color: purple;
}

/* timeline */

div#timeline {
    border: 2px inset silver;
    border-radius: 0.5em;
    margin: 0 0.5em;
    padding: 0.3em;
    background: rgb(31,31,31);
    background: linear-gradient(180deg, rgba(31,31,31,1) 0%, rgba(62,62,62,1) 50%, rgba(32,32,32,1) 100%);
    color: white;
}
div.timelinerow {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 2px;
}
div.timelinerowlow {
    border-bottom: 1px solid gray;
}
div.timelinerow div.timelinerow_head {
    font-size: 0.65em;
    flex-basis: 6em;
    text-align: right;
    color: silver;
}
div.timelinerow div.timelinerow_s, div.timelinerow div.timelinerow_e {
    font-size: 0.65em;
    flex-basis: 3.5em;
}
div.timelinerow div.timelinerow_s {
    text-align: left;
}
div.timelinerow div.timelinerow_e {
    text-align: right;
}
div.timelinerow div.timelinerow_l {
    flex-grow: 1;
    position: relative;
}
div#timeline_nowrange div.timelinerow_l div.rowl_bar {
    position: absolute;
    height: 1px;
    width: 100%;
    top: 49%;
    left: 0;
    background-color: gray;
}
div#timeline_nowrange div.timelinerow_l div.rowl_point {
    position: absolute;
    height: 80%;
    width: 0.5em;
    background-color: rgba(209, 39, 138, 0.616);
    border: 1px solid rgb(139, 26, 111);
    border-radius: 0.25em;
}
div#timeline_total div.timelinerow_l {
    display: flex;
    justify-content: space-between;
}
div#timeline_total div.timelinerow_l div.rowltotal_bit {
    margin: 3px 1px;
    background-color: gray;
    flex-grow: 1;
    font-size: 0.25em;
}
div#timeline_total div.timelinerow_l div.rowltotal_bit a {
    display: block;
    width: 100%;
    height: 100%;
}
div#timeline_total div.timelinerow_l div.rowbit_tar {
    background-color: rgb(219, 39, 144);
}
div#timeline_total div.timelinerow_l div.rowbit_past {
    background-color: rgb(202, 146, 179);
}
span#nowrangeno {
    display: none;
}


/* Graph on Video */
div#grhbox {
    height: 90%;
    margin-top: 10%;
    margin-left: 10%;
}
div#grhgrid {
    position: relative;
    z-index: 80;
}
div#grhgridin {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
div.grhgrid_grid {
    position: absolute;
    width: 1px;
    height: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
}
div#grhgrid_a {
    left: 1.3em;
}
div#grhgrid_b {
    left: calc((100% - 1.6em)/2 + 1.3em);
    border-right: 1px dotted rgba(255, 255, 255, 0.4);
}
div#grhgrid_c {
    right: 0.3em;
}
div#grh_main {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
}
div.grh_bar {
    /*margin: 0 2px 0 0;*/
    height: 4%;
    width: 100%;
    display: flex;
    justify-content: space-between;
}
div.grhbar_tar {
    background: rgb(236,131,90);
    background: linear-gradient(90deg, rgba(236,131,90,0) 0%, rgba(236,131,90,0.6) 20%, rgba(255,164,51,0.2) 64%, rgba(255,164,51,0.75) 100%);
}
div.grh_bar div.grh_bar_no {
    font-size: 0.35em;
    flex-basis: 0.8em;
    vertical-align: middle;
    margin: auto 0;
}
div.grh_bar div.grh_bar_bar {
    flex-basis: calc(100% - 1em);
    display: flex;
}
div.grh_bar div.grh_bar_bar div.grh_inner {
    position: relative;
    vertical-align: middle;
}
div.grh_bar div.grh_bar_bar div.grh_inner div {
    position: absolute;
}
div.grhbar_ptsubox, div.grhbar_ptsbbox {
    top: calc((100% - 0.5em)/2);
    height: 0.4em;
    width: 0.4em;
    margin: auto 0;
    border: 1px solid gray;
    border-radius: 40%;
}
div.grh_bar div.grh_bar_bar div.grhbar_ptsubox {
    left: 0;
    z-index: 101;
}
div.grh_bar div.grh_bar_bar div.grhbar_ptsbbox {
    right: 0;
    z-index: 100;
}
div.grh_bar div.grh_bar_bar div.grhbar_ptsbar {
    height: 2px;
    width: calc(100% - 3px);
    top: calc((100% - 3px)/2);
    margin: auto 0;
    border: 1px solid gray;
    z-index: 99;
}
div.grh_bar div.grh_bar_bar div.ptsbox_camera {
    background-color: rgb(21, 196, 21);
}
div.grh_bar div.grh_bar_bar div.ptsbox_movie {
    background-color: rgb(224, 26, 109);
}
div.grh_bar div.grh_bar_bar div.ptsbar_camera {
    background-color: rgb(117, 223, 117);
}
div.grh_bar div.grh_bar_bar div.ptsbar_movie {
    background-color: rgb(243, 128, 209);
}

div#continueinfo {
    padding: 0.2em;
}
div.continuebox {
    border: 1px solid rgb(161, 48, 114);
    border-radius: 0.5em;
    background-color: rgb(255, 173, 204);
}
div.continuebox p {
    font-size: 0.87em;
    padding: 0.3em 1em;
}
div#control_vcontrol div.continuebox p button {
    display: block;
    border: 1px outset rgb(70, 88, 112);
    border-radius: 0.5em;
    background-color: rgb(99, 162, 233);
    font-weight: bold;
    text-align: center;
    width: 80%;
    margin: 2px auto;
    color: white;
}