html {
    height: -webkit-fill-available;
}

.element {
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    background-color: #fbeef6;
    padding: 0 1em;
}

* {
    box-sizing: border-box;
}

h1 {
    text-align: center;
}

img {
    max-width: 100%;
}

h1 img {
    width: 100%;
    max-width: 480px;
}

.buttons {
    font-size: 1.2em;
    font-weight: 450;
}

.container {
    position: relative;
    margin: 1em 0;
    width: 100%;
    text-align: center;
}

.cen {
    text-align: center;
}

#camera {
    opacity: 0;
    transform: scaleX(-1);
}

#from-video {
    position: absolute;
    top: 0px;
    left: 0px;
    transform: scaleX(-1);
    margin: 0 auto;
    width: 100%;
    z-index: 2;
}

#from-original {
    position: absolute;
    top: 0px;
    left: 0px;
    transform: scaleX(-1);
    margin: 0 auto;
    width: 100%;
    z-index: 1;
}

#cliped {
    opacity: 0;
    transform: scaleX(-1);
}

#dummy-box {
    display: none;
    margin: 1em 0;
}

#dummy-wrapper {
    display: flex;
}

#dummy {
    transform: scaleX(-1);
}

.bar {
    margin: 0 1em;
    width: 50%;
}

.range-val-wrapper {
    font-size: 1.1em;
    font-weight: bold;
}


/* @link http://shinji.ti-da.net/e6811508.html */

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    background: #eee;
    box-shadow: 0 0 10px #666;
    border-radius: 50px;
    margin: 1em 0;
}

input[type="range"]:focus,
:active {
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    background: #333;
    width: 3.5em;
    height: 3.5em;
    border-radius: 50%;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #999;
    transition: .2s;
}

input[type="range"]::-webkit-slider-thumb:active {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .8);
    transition: .2s;
}

.progress-container,
.vertical .progress-container {
    width: 100%;
    background-color: #fbe2f2;
    padding: 3px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    height: 20px;
    background-color: #ff84c8;
    width: 0%;
    /* Default width */
    border-radius: 3px;
    transition: width 0.2s ease-in-out;
}

.vertical {
    width: 20px;
    height: 300px;
    margin: 0 auto;
    position: relative;
}

.vertical .progress-bar {
    width: 100%;
    height: 0%;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: height 0.2s ease-in-out;
}

button {
    padding: 15px 30px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: #ff84c8;
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #ff84c8;
}

#countdown-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    color: white;
    font-size: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.wrap .col01 {
    width: 100%;
    display: flex;
    position: relative;
}

.wrap .colw90 {
    width: 90%;
}

.wrap .colw10 {
    width: 9%;
}

.cen {
    text-align: center;
}

#face_wrap {
    position: relative;
    height: 900px;
    overflow: auto;
}

.face_calc #qr img {
    display: inline-block !important;
    width: 100%;
    max-width: 320px;
}

.view #fetchedImage {
    display: inline-block !important;
    width: 100%;
    max-width: 420px;
}

#custom_buttons_area {
    display: none;
}

#custom_buttons_area .buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#custom_buttons_area .buttons button {
    width: 40%;
    margin-right: 10px;
    margin-bottom: 10px;
}

.none {
    display: none;
}

.view .wrap {
    display: block;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.parts_wrap .title {
    text-align: center;
    font-size: 24px;
}

.parts_wrap ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
}

.parts_wrap ul li {
    width: 30%;
    list-style: none;
    text-align: center;
    border: 1px dotted #cccccc;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 10px;
    cursor: pointer;
}

.parts_wrap ul li:hover {
    background: #ff84c830;
}

.parts_wrap .genderm {
    display: none;
}

.parts_wrap .genderw {
    display: none;
}

.parts_wrap .genderm.active {
    display: block;
}

.parts_wrap .genderw.active {
    display: block;
}
