/*font*/
@font-face {
    font-family: "Cabin";
    src: url('/res/font/cabin/Cabin-SemiBold.ttf');
}

@font-face {
    font-family: "Riffic";
    src: url('/res/font/riffic/RifficFree.ttf');
}
.ff-riffic {
    font-family: Riffic;
}

body {
    background-color: white;
    font-family: "Cabin";
}


#introContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}
#introVideo {
    max-width: 100%;
    max-height: 100%;
}

/* colors */
.bg-red {
    background-color: #DF0101;
}
.bg-yellow {
    background-color: #FFD800;
}

/* nav */
.pane {
    display: none;
    background-color: white;
    overflow: hidden;
}

/* landscape pane */
#landscape {
    position: absolute;
    top: 0;
    left: 0;    
    color: black;
    text-align: center;
    font-family: Cabin;
    z-index: 9999;
}
#landscape div {
    font-size: 20px;
    position: relative;
    top: 50%;
    transform: translateY(calc(-50%));    
}
#landscape div .bi {
    font-size: 100px;
}

/* loader */
#loader > div {
    width: 50%;
    position: relative;
    margin-bottom: 30px;
    left: 50%;
    top: 50%;
    transform: translateX(calc(-50%)) translateY(calc(-50% - 40px));    
}
#loader img {
    width: 100%;
    margin-bottom: 30px;
}
#progress {
    width: 80%;
    margin: auto;
    position: relative;
    height: 10px;
    border: solid 2px black;
    border-radius: 5px;
    position: relative;
}
#progress > div {
    background-color: black;
    height: 100%;
    width: 0;
}

/* login */
#login .container {
    position: relative;
    top: 50%;
    transform: translateY(calc(-50%));
}
#login .logo {
    width: 60%;
}
#login form {
    padding: 20px;
}
#login form input {
    font-family: "Riffic";
    text-align: center;
}
#room {
    text-transform: uppercase;
    letter-spacing: 2px;
}
#login button {
    margin-top: 10px;
}

/* main */
.file {
	width: 0px;
	height: 0px;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	z-index: -1;
}
#hmu img{
    vertical-align: bottom;
}

#buzzer {
    display: inline-block;
    width: 280px;
    margin-bottom: auto;
    cursor: pointer;
}
#buzzer .text-required {
    display: none;
}
#buzzer img {
    width: 100%;
}

#galery img{
    width: 40px;
}
#state {
    position: absolute;
    bottom: 20px;
    width: 100%;
}
#stateroom {
    font-family: "Riffic";
    letter-spacing: 1px;
}
#state a {
    color: lightblue;
    text-decoration: underline;
}

.toolbox {
    position: absolute;
    top: 15px;
    width: 50px;
    border-radius: 25px;
    color: white;
    background-color: rgba(90, 90, 90, 0.5);
    opacity: 1;
}
.toolbox.active {
    color: white;
    background-color: #222;
}
.toolbox-left {
    left: 15px;
}
.toolbox-right {
    right: 15px;
}
.sub-toolbox {
    top: 75px;
    display: none;
}
.tool, .subtool {
    height: 40px;
    width: 40px;
    padding-top: 8px;
    text-align: center;
    /* border: solid 1px red; */
    margin: 6px auto;
}
.tool .fa, .subtool .fa {
    font-size: 20px;
    line-height: 22px;
}
.tool.off {
    /* font-size: 20px; */
    padding-top: 4px;
}
.tool.off .fa::after {
    display: block;
    content: 'Non';
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: bold;
}
#textbox_color div {
    width: 22px;
    height: 22px;
    margin: auto;
    border: solid 2px black;
    border-radius: 4px;
}

/* pickr */
.pcr-color-chooser {
    margin: 10px 10px 0px -40px!important;
}
.pcr-swatches {
    margin-left: 5px;
    margin-bottom: 10px;
}

/* the interaction zone */
#zone {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(calc(-50%)) translateY(calc(-50%));
    overflow: hidden;
    border-radius: 10px;
    /* border: solid 1px red; */
}
#photo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(calc(-50%)) translateY(calc(-50%));
}
#watermark {
    width: 100%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(calc(-50%)) translateY(calc(-50%));    
}
#canvas {
    position: absolute;
    display: block;
    /* z-index: 9999; */
}
#trash {
    position: absolute;
    width: 50px;
    height: 50px;
    bottom: 10px;
    left: calc(50% - 25px);
    /* background-color: red; */
    line-height: 50px;
    font-size: 35px;
    text-align: center;
    color: black;
    display: none;
}
#menubar {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 80px;
    padding: 10px 15px;
    opacity: 1;
}
#menubar button {
    height: 40px;
    border: none;
    padding: 0 20px;
    border-radius: 20px;
    font-family: Riffic;
    black-space: nowrap;
    overflow: hidden;
    background-color: #DF0101;
    color: white;    
}

/* css transition */
.toolbox, #menubar {
    transition: opacity 0.3s;
}
#menubar button {
    transition: width 0.3s;
}