/* general style and background */

html, body {
    overflow: hidden;
}

body, html, .container {
    height: 100%;
}

.sound-box {
    background: #00A06E;
    border-radius: 5px !important;
    -webkit-box-shadow: 0px 0px 2px 0px #ffffff; /* Android 2.3+, iOS 4.0.2-4.2, Safari 3-4 */
    box-shadow: 0px 0px 2px 0px #ffffff; /* Chrome 6+, Firefox 4+, IE 9+, iOS 5+, Opera 10.50+ */
}

.form-check, .form-switch {
    text-align: left;
    width: 200px;

}

.background-triangle {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 0;
    height: 0;
    border-bottom: 100vh solid #00A09A;
    border-left: 280vw solid transparent;
    z-index: -2;
}

/* fade in animations */

@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.fadeIn {
    -webkit-animation: fadeIn 2.5s;
    /* Chrome, Opera 15+, Safari 5+ */
    animation: fadeIn 2.5s;
}

.fadeInShort {
    -webkit-animation: fadeIn 1s;
    /* Chrome, Opera 15+, Safari 5+ */
    animation: fadeIn 1s;
}


#container {
    margin: 0px auto;
    width: 500px;
    height: 375px;
    border: 10px #333 solid;
}

/* style for controls part */

.controls {
    padding-right: 0 !important;
}

/* style for duration */


/* remove the arrows from number input Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* remove the arrows from number input Firefox */
input[type=number] {
    -moz-appearance: textfield;
}


#duration {
    font-size: 20px;
    width: 59px;
    height: 44px;
    border: 2px solid black;
    box-shadow: rgba(0, 0, 0, 0.62) 1px 1px;
    text-align: center !important;
}

#duration_div {
    height: 72.8px;
    border: black 2px solid;
    background: #005FAB;
    border-radius: 10px
}

#duration_col {
    margin-top: 4px;
}

.duration_buttons, .duration_input {
    display: flex;
    align-items: center;
}

#duration_buttons_col {
    padding-right: 0;
}

.duration_input {
    font-size: 15px;
    justify-content: space-evenly;
}

.duration_buttons, .duration_buttons button {
    height: 100%;
}

#button_plus {
    border-radius: 0 10px 10px 0;
}

#button_plus, #button_minus {
    background: #00A06E;
}

#button_plus:hover, #button_minus:hover {
    background: #07805d;
}

.fa-minus, .fa-plus {
    font-size: 1.5rem;
    color: white;
}

.alert {

}

#duration_label {
    font-weight: bold;
    color: white;

}

/* style for hint part */

.hints {
    background: white;
    border-radius: 10px;
    border: 2px black solid;
    height: 228px;
    font-size: 17px;
}

#hints_row {
    height: 66%;
}

.hint_lines {
    height: 80%;
}

.hint_lines {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;
}

.title {
    font-weight: bold;
}

/* style for words info */

#words {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.header {
    position: relative;
    font-size: 1.6vw;
    background: #005FAB;
    color: white;
    z-index: -1 !important;
}

#current_div {
    width: 110%;
    margin-left: -20px;
    height: 60%;
}

#file_input {
    color: white;
    background: #00A09A;
    height: 92%;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none;
}

.file_hint{
    border: 1px solid black;
    padding: 10px 11px;
    background: #005FAB;
    text-decoration: none;
    color: white;
}
.file_hint:hover{
    cursor: pointer;
    color: #f0f0f0;
}

#current_sub_div {
    height: 72%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
}

#current_word {
    font-size: 2.5vw;
    font-weight: bold;
    color: white;
}

#next_div {
    width: 110%;
    margin-left: -17px;
    height: 38.7%;
}

#next_sub_div {
    height: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#next_word {
    color: white;
    font-size: 2.2vw;
}

.content {
    position: relative;
    height: 100%;
}

h4 {
    font-weight: normal !important;
}

/* style for video feed */

.display {
    padding-right: 0 !important;
}

#webcam {
    position: relative;
    text-align: right
}

#video, #webcam {
    width: 100%;
    display: inline;
    z-index: 2;
}

#wrapper {
    position: relative;
}

#overlay {
    position: absolute;
    color: white;
    font-size: 19vw;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    top: 0;
    bottom: 4px;
    left: 0;
    right: 0;
    background-color: #000;
    opacity: 0.5;
    border-radius: 20px !important;
}

#overlay_switch {
    position: absolute;
    top: 5%;
    right: 4%;
    z-index: 5;
}

.fa-sync-alt {
    color: white;
    font-size: 3.2vw !important;
}

.fa-sync-alt:hover {
    color: #b8b6b6;
    cursor: pointer;
}


#overlay_countdown {
    position: absolute;
    color: white;
    font-size: 3rem;
    text-shadow: white 0px 0px 10px;
    display: flex;
    justify-content: flex-end;
    padding-right: 35px;
    padding-left: 40px;
    z-index: 1;
    background: rgb(248, 251, 251);
    background: linear-gradient(52deg, rgba(248, 251, 251, 0) 0%, rgba(82, 78, 78, 0.9348460067620799) 100%);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 1;
    height: fit-content;
}

i.fa-circle {
    position: relative;
    font-size: 2.77rem;
    color: red;
    padding-top: -15px !important;
}

#countdown {
    font-size: 5vw;
}

i {
    margin-right: 5px;
}

#preview, #recording {
    width: 100%;
    max-height: 52vh !important;
    background-color: black;
    border: 3px black solid;
    border-radius: 20px !important;
    z-index: 2;
}

.content {
    max-height: 100vh !important;
}

.buttons {
    display: flex;
    justify-content: space-around;
    margin-left: 8px;
}

.buttons button.btn {
    padding: 1.4rem !important;
}

#controls_row {
    margin-top: 23px;
}

#bar_row {

    padding-top: 12px;
}

button.btn {

    margin-right: 19px !important;
    max-width: 250px !important;
    border-radius: 10px !important;
    border: 2px solid black;
    box-shadow: rgba(0, 0, 0, 0.67) 1px 1px;
}

.btn-primary {
    background: #E83966 !important;
}

.btn-primary:hover {
    background: #c81745 !important;
}

.btn-success {

    background: #00A06E !important;
}

.btn-success:hover {
    background: #006d4b !important;
}

/* style for the progress bar */


#bar_col {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.hp_slide {
    width: 100%;
    background: white;
    height: 29px;
    border: 3px solid black !important;
    border-radius: 10px 0 0 10px;
    margin-top: 5px;
}

.hp_range {
    width: 100%;
    background: linear-gradient(90deg, #005FAB, #00A06E);
    height: 24px;
    border-radius: 7px 0 0 7px;
}

#bar {
    transition: width 0.09s;
    transition-timing-function: linear;
}

/* style for the input screen */

.container#file_input, .container#end_screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* style for the end screen */

#end_screen {
    color: white;
    background: #00A09A;
    height: 100%;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none;
}


/* style for mobile  */

@media screen and (max-device-width: 718px) and (orientation: portrait) {
    html, body {
        width: 100% !important;
        margin: 0;
        overflow: visible;
    }

    .content {
        height: 100vh !important;
    }

    #bar_row, .display, #words, .controls {
        width: 100% !important;
    }

    #bar_row {
        margin: 0;
        padding-right: 12px;
    }

    #display_row {
        flex-direction: column;
        width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding-right: 0 !important;
    }

    #preview, #recording {
        max-height: 60vw !important;
    }

    #overlay_countdown {
        font-size: 15vw;
    }

    .display {
        padding-right: 10px !important;
        margin-bottom: 10px !important;
    }

    #words {
        display: flex;
    }

    #current_sub_div, #words {
        margin-bottom: 0 !important;
    }

    #current_word, #next_word {
        font-size: 25px;
        margin-top: 18px;
        margin-bottom: 18px;
    }

    .buttons {
        margin-top: 20px;
    }

    .duration_input {
        font-size: 12px;
    }

    #duration_label {
        font-size: 16px;
        margin-bottom: 4px !important;
    }

    #controls_row {
        margin-top: 0;
    }

    .controls {
        width: 100% !important;
    }

    #hints_col {
        display: none;
    }

    .header {
        font-size: 17px;
    }

    #current_div, #next_div {
        margin-left: 0;
        width: 100%;
    }

    .background-triangle {
        border-bottom: 1300px solid #00A09A;
    }
}
