/*******************************************************************************
/* HTML redefines
/******************************************************************************/
header { height: 0; }
body, input, select, button, textarea { font-family: 'Open Sans', sans-serif; box-sizing: border-box; }
body { background-color: #f2f2f0; margin: 0; min-width: 650px; min-height: 450px; 
    overflow: hidden auto; width:100%; height: 100%;
}
button { border: none; color: grey; background-color: transparent; cursor: pointer; font-weight: 700; font-size: 16px; }
button:hover { color: #171d2a; }


/*******************************************************************************
/* Generic classes
/******************************************************************************/
.center { text-align: center; }
.box { display: inline-block; vertical-align: top; }
.box h2 { padding: 10px; margin: 0;
    background-color: #e98a0e; color: white; font-size: 16px; font-weight: normal; text-align: center; }


/*******************************************************************************
/* INTRO
/******************************************************************************/
#intro_video { display: flex; flex-direction: column; justify-content: space-evenly; }
#intro_video_con { height: 75%; }
#intro_video video { width: 50%; float: left; margin-left: 5%; margin-top: 10%; }
.intro_text { float: right; width: 35%; margin-right: 5%; margin-top: 5%; text-align:justify; }
#start_tuto { display: block; margin: auto; color: #f28f0e; }
#start_tuto:hover { color: #171d2a; }

#intro_footer { position: fixed; bottom: 0; width:100%; height: 8%;
    background-image: url(../img/logo.png); background-size: contain;  background-repeat: no-repeat; 
    background-position: left bottom;
    border-bottom: 10px solid #f28f0e;
}

#main_content { display: none; background-color: black; }

/*******************************************************************************
/* TUTORIALS
/******************************************************************************/
#tutorial { position: absolute; width: 100%; height: 100%; left: 0; top: 0; background-color: rgba(65, 65, 65, 0.8); z-index: 10; display: none; 
    min-width: 650px; min-height: 450px; text-align: center; }
.tuto_elem { position: absolute; top: 40%; font-style: italic; font-size: 16px; color: white; }
#tutorial_0 { top: 53px; width: 68%; left: 18%; }
#tutorial_1 { left: 2%; width: 32%; }
#tutorial_2 { left: 39%; width: 18%; }
#tutorial_3 { left: 61%; width: 37%; }
#tutorial_4 { left: 61%; top: 75%; width: 37%; }
#start_record { color: rgb(80, 80, 80); }
#start_record:before { content: ' '; background-color: red; display: inline-block;
    border-radius: 10px; width: 16px; height: 16px; margin-right: 10px; position: relative; top: 1px; }
#start_record:hover { color: white; }

#tutorial .feel_gauge_tolerance { display: block; }

/*******************************************************************************
/* LAYOUT
/******************************************************************************/
.main_container { margin: 0; }
#sound_container { display: block; margin-bottom: 2.3%; text-align: center; }
.main_flex_container { display: flex; justify-content: space-between; }
#text_container { width: 36%; }
#segment_container { width: 20%; }
#feeling_container { width: 40%; background-color: transparent;}
#feel_current_container { margin-bottom: 5%; }
.container_elem { background-color: #f2f2f0; font-size: 12px; }


/*******************************************************************************
/* SOUND SPECTRUM (top)
/******************************************************************************/
.spectrum { background-color: rgb(75, 75, 75); display: block; width: 100%; height: 50px; }
.sound_bottom { height: 46px; }
#end_record, #restart_record { padding: 12px; }
#restart_record:before { content: ' '; background-color: red; display: inline-block;
        border-radius: 8px; width: 16px; height: 16px; margin-right: 5px; position: relative; top: 1px; }
#loading { padding: 10px; font-size: 16px; }
#play_record, #pause_record { float: left; width: 36px; height: 36px; margin: 5px; cursor: pointer; display: none; }
#play_record { background-image: url(../img/play_button.png); }
#pause_record { background-image: url(../img/pause_button.png); }

#sound_container { position: relative; }
#spectrum_cursor { position: absolute; width: 1px; background-color: white; height: 55px; top: 41px; display: none; }
.spectrum_segment { position: absolute; height: 50px; top: 42px; opacity: 0.2; cursor: pointer; background-color: #73C6A8; }
.spectrum_segment.selected { opacity: 0.5; }

/*******************************************************************************
/* TEXTS (left)
/******************************************************************************/
#text_select {
    display: inline-block;
    vertical-align: top;
    padding: 2px;
    margin-left: 10px;
    vertical-align: top;
    height: 22px;
    font-size: 12px;
    position: relative;
    z-index: 11;
}
.text_content { overflow: auto; position: relative; z-index: 11; }
#text_auto { z-index: 1; }
.text_content > p { margin: 5px; padding: 5px; text-align: justify; }
.text_elem { margin: 5px; padding: 5px; border-radius: 8px; cursor: pointer; width: calc(100% - 10px); 
    background-color: transparent; border: 0; outline: 0; font-size: 12px; display: block;
}
.text_elem.selected { background-color: rgb(75, 75, 75); color: white; }
.text_loading { position: relative; left: 47%; top: 10px; width: 16px; height: 16px; background-image: url(../img/mini-loader.gif); }
#copy_text { font-size: 10px; cursor: pointer; display: inline-block; margin-left: 5px; position: relative; top: -1px; }
#copy_text:hover { text-decoration: underline; }

/*******************************************************************************
/* SEGMENTS (middle)
/******************************************************************************/
#segment_list { overflow: auto; }
.segment { text-align: center; border-radius: 8px; cursor: pointer; color: grey; margin: 5px; padding: 5px; position: relative;}
.segment > span { display: inline-block; vertical-align: middle; margin: 0 3px;  }
.segment_duration { font-size: 10px; border-radius: 8px; padding: 2px 5px; color: white; }
.segment.silence .segment_duration { background-color: grey; }
.segment.chunk .segment_duration { background-color: green; }

.segment.selected { background-color: rgb(75, 75, 75); color: white; }
.segment_loading { position: absolute; right: 0; top: 6px; width: 16px; height: 16px; background-image: url(../img/mini-loader.gif); }

/*******************************************************************************
/* FEELINGS (right)
/******************************************************************************/
#feel_current, #feel_global { overflow-y: auto; padding-top: 30px; }
.feel_gauge { margin: 10px 2%; }
.feel_gauge > span { display: inline-block; vertical-align: middle; }
.feel_gauge_name { font-size: 16px; margin-right: 5px; }
.feel_gauge_bar { height: 16px; background-color: rgb(241, 181, 63); margin-right: 5px; border-radius: 8px; }
.feel_gauge_value { font-size: 16px; }
.feel_gauge_tolerance {
    height: 16px;
    width: 96%;
    margin: 2% 2% 35px;
    background: linear-gradient(0.25turn, red, orange, yellowgreen, #1d981d, yellowgreen, orange, red);
    border-radius: 8px;
    position: relative;
    display: none;
}
.feel_gauge_tolerance_cursor { position: absolute; left: 50%; top: -14px; font-size: 33px; }
.feel_words { position: absolute; left: 50%; font-weight: bold; top: 25px; font-size: 12px; }

#feel_global_container { position: relative; }
.feel_global_loading { position:absolute; top: 14px; right: 15%; width: 16px; height: 16px; background-image: url(../img/mini-loader-green.gif); }

/*******************************************************************************
/* Glow animation effect
/******************************************************************************/
.glow {
    color: #fff;
    text-align: center;
    -webkit-animation: glow 1s ease-in-out infinite alternate;
    -moz-animation: glow 1s ease-in-out infinite alternate;
    animation: glow 1s ease-in-out infinite alternate;
}
.glow_white {
    -webkit-animation: glow_white 1s ease-in-out infinite alternate;
    -moz-animation: glow_white 1s ease-in-out infinite alternate;
    animation: glow_white 1s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px grey, 0 0 20px grey;
    }
    to {
        text-shadow: 0 0 10px rgb(34, 71, 58), 0 0 20px rgb(34, 71, 58);
    }
}

@keyframes glow_white {
    from {
        text-shadow: 0 0 10px transparent, 0 0 20px transparent;
    }
    to {
        text-shadow: 0 0 10px rgb(255, 255, 255), 0 0 20px rgb(255, 255, 255);
    }
}


/*******************************************************************************
/* Responsive
/******************************************************************************/
/*
.feel_gauge_tolerance.mini { margin-bottom: 30px; }
.feel_gauge.mini { margin: 6px 2%; }
.feel_gauge.mini > .feel_gauge_bar { height: 14px; }
.feel_gauge.mini > .feel_gauge_name, .feel_gauge.mini > .feel_gauge_value { font-size: 14px; }
*/
@media only screen and (max-height: 600px) {
    #tutorial_0 { top: 42px; }
    .spectrum_segment { top: 32px; }
    #spectrum_cursor { top: 31px; }
    .feel_global_loading { top: 8px; }
    .box h2 { padding: 5px; }
    .feel_gauge_tolerance { margin-bottom: 20px; height: 11px; }
    .feel_gauge_tolerance_cursor { font-size: 22px; top: -12px; }
    .feel_words { top: 16px; }
    .feel_gauge { margin: 0 2%; }
    .feel_gauge > .feel_gauge_bar { height: 11px; }
    .feel_gauge > .feel_gauge_name, .feel_gauge > .feel_gauge_value { font-size: 12px; }
}

@media only screen and (max-width: 900px) {
    .text_content { font-size: 10px; }
}

@media only screen and (max-width: 785px) {
    .spectrum_segment { top: 28px; }
    #spectrum_cursor { top: 27px; }
    .tuto_elem { font-size: 13px; }
    .box h2 { font-size: 13px; padding: 5px; }
    #text_select { margin-left: 3px; font-size: 10px; height: auto;}
    #copy_text { margin-left: 2px; font-size: 8px; }
    .segment { margin: 5px 2px; padding: 5px 3px;}
    .text_content { font-size: 9px; }
}



/*******************************************************************************
/* Tooltip
/******************************************************************************/
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
visibility: hidden;
width: 140px;
background-color: rgb(75, 75, 75);
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px;
position: absolute;
z-index: 1;
bottom: 150%;
left: 50%;
margin-left: -75px;
opacity: 0;
transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: rgb(75, 75, 75) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
}