@font-face {
    font-family: "Material Icons Sharp";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("./fonts/material-icons-sharp.woff2") format("woff2"), url("./fonts/material-icons-sharp.woff") format("woff");
}

.material-icons-sharp {
    font-family: "Material Icons Sharp", serif;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "liga";
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: white;
    background-color: black;
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.twitch-extension-body {
    background-color: transparent;
}

#toggle-input-feedback, #toggle-game-visible, #toggle-input-method, #open-menu, #toggle-game-sound {
    position: absolute;
    bottom: 50px;
    left: 50px;
    cursor: pointer;
    opacity: 0.5;
    pointer-events: all;
}

#toggle-game-sound {
    left: 150px;
}

#toggle-game-visible {
    left: 200px;
}

#toggle-input-method {
    left: 100px;
}

#open-menu {
    left: 150px;
}

#open-menu .material-icons-sharp, #toggle-input-method .material-icons-sharp, #toggle-input-feedback .material-icons-sharp, #toggle-game-visible .material-icons-sharp, #toggle-game-sound .material-icons-sharp {
    font-size: 30px;
}

#open-menu:hover, #toggle-input-feedback:hover, #toggle-game-visible:hover, #toggle-input-method:hover, #toggle-game-sound:hover {
    opacity: 1;
}

#canvas canvas {
    cursor: inherit !important;
}

#canvas canvas.button-up {
    cursor: url("arrow_n.png"), n-resize !important;
}

#canvas canvas.button-right {
    cursor: url("arrow_e.png"), n-resize !important;
}

#canvas canvas.button-left {
    cursor: url("arrow_w.png"), n-resize !important;
}

#canvas canvas.button-down {
    cursor: url("arrow_s.png"), n-resize !important;
}

#canvas canvas.button-right.button-up {
    cursor: url("arrow_ne.png"), n-resize !important;
}

#canvas canvas.button-left.button-up {
    cursor: url("arrow_nw.png"), n-resize !important;
}

#canvas canvas.button-right.button-down {
    cursor: url("arrow_se.png"), n-resize !important;
}

#canvas canvas.button-left.button-down {
    cursor: url("arrow_sw.png"), n-resize !important;
}

#input-feedback-Left {
    position: absolute;
    margin-right: 380px;
    background-color: #ffffff4d;
    padding: 50px 20px 50px 200px;
    border-radius: 10px;
}

#input-feedback-Right {
    position: absolute;
    margin-left: 380px;
    background-color: #ffffff4d;
    padding: 50px 200px 50px 20px;
    border-radius: 10px;
}

#input-feedback-Jump {
    position: absolute;
    margin-bottom: 240px;
    background-color: #ffffff4d;
    padding: 50px 300px 50px 300px;
    border-radius: 10px;
}

#temp {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    font-size: 30px;
}

#temp div {
    display: inline-block;
    width: 100%;
    text-align: center;
}

#loading-indicator {
    position: absolute;
    display: none;
    align-items: center;
    justify-content: center;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

#loading-indicator.hidden {
    display: none !important;
}

#game-wrapper {
    display: flex;
    width: 100%;
    pointer-events: all;
}

.twitch-extension-body #game-wrapper {
    height: calc(74%);
}

#door {
    position: absolute;
    top: 80px;
    right: 200px;
    width: 100px;
    height: 100px;
    cursor: pointer;
}

.canvas--active + #door, .canvas--loading + #door {
    display: none;
}

.door--locked:hover.door--locked:after {
    position: absolute;
    background-color: black;
    padding: 5px;
    content: 'Please login and give identity permission to enter!'
}

#canvas {
    position: relative;
    flex: 1 0 0;
    min-width: 0;
}

.canvas--loading #loading-indicator{
    display: flex;
    background-color: black;
}

.canvas--hidden {
    display: none;
}

#hide-game {
    display: none;
    position: absolute;
    top: 50px;
    right: 50px;
    background-color: rgba(255, 255, 255, 25%);
    cursor: pointer;
    padding: 3px 7px 6px 8px;
}

#twitch-chat {
    width: 300px;
    position: relative;
}

.twitch-chat-hidden {
    display: none;
}

#toggle-chat {
    width: 25px;
    height: 20px;
    position: absolute;
    background-color: #ffffff5c;
    color: white;
    font-size: 25px;
    left: -26px;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0 0 5px 1px;
    z-index: 5000;
}


.lds-heart {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    transform: rotate(45deg);
    transform-origin: 40px 40px;
}
.lds-heart div {
    top: 32px;
    left: 32px;
    position: absolute;
    width: 32px;
    height: 32px;
    background: #d7dbdf;
    animation: lds-heart 1.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}
.lds-heart div:after,
.lds-heart div:before {
    content: " ";
    position: absolute;
    display: block;
    width: 32px;
    height: 32px;
    background: #d7dbdf;
}
.lds-heart div:before {
    left: -24px;
    border-radius: 50% 0 0 50%;
}
.lds-heart div:after {
    top: -24px;
    border-radius: 50% 50% 0 0;
}
@keyframes lds-heart {
    0% {
        transform: scale(0.95);
    }
    5% {
        transform: scale(1.1);
    }
    39% {
        transform: scale(0.85);
    }
    45% {
        transform: scale(1);
    }
    60% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(0.9);
    }
}
