body,
html {
    width: 100%;
    /*height: 100%;*/
    height: calc(var(--vh, 1vh) * 100);
    margin: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f4f5f6;
    overflow: hidden;
}

header {
    background-color: #ffffff;
    width: 100%;
    height: 50px;
}

footer {
    /*width: 100%;*/
    height: 123px;
    text-align: center;
}

.header-logo {
    padding: 12px;
}

.container {
    margin: 10px;
    height: calc(100% - 60px - 15px - 10px - 124px);
}

.pads {
    height: calc(100% - 60px - 10px);
}

.touchpad {
    background-color: #ffffff;
    height: 85%;
    border-style: solid;
    border-color: #eaeaea;
    border-radius: 20px;
    border-width: 1px;
}

.clickpad {
    background-color: #ffffff;
    margin-top: 10px;
    height: 15%;
}

.connection-panel {
    height: 60px;
    text-align: center;
}

.connection-panel .connection-status {
    font-size: 16px;

}

.connection-panel #connectionStatusText.connected {
    color: #5fdc8e;
}

.connection-panel #connectionStatusText.disconnected {
    color: #e64949;
}

.connection-panel #connectionStatusText.connecting {
    color: #ffae42;
}

#btnDisconnect {
    position: absolute;
    background-color: #ff1950;
    color: #ffffff;
    font-size: 16px;
    border-radius: 4px;
    border: none;
    padding: 6px;
    width: 90px;
    height: 35px;
    right: 10px;
    /*top: 78px;*/
    top: 12px;
}

.hidden {
    display: none;
}

body.theme-dark {
    color: #ffffff !important;
    background-color: #232e39 !important;
}

.theme-dark .touchpad,
.theme-dark .clickpad {
    background-color: #46515d !important;
}

#snackbar {
    visibility: hidden;
    width: 85%;
    max-width: 380px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 10px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    transform: translate(-50%);
    bottom: 30px;
}

#snackbar.keyboard-visible {
    bottom: 282px;
}

#snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s;
    animation: fadein 0.5s;
}

@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

#keyboardIcon {
    display: block;
    margin: 0 auto;
    height: 15%;
}

@keyframes flickerAnimation {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

@-o-keyframes flickerAnimation {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

@-moz-keyframes flickerAnimation {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

@-webkit-keyframes flickerAnimation {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

#keyboardIcon.active {
    position: absolute;
    top: 120px;
    left: 6px;
    display: block;
    margin: 0 auto;
    width: 120px;
    height: 80px;
    filter: invert(80%) sepia(19%) saturate(1098%) hue-rotate(86deg) brightness(93%) contrast(91%);
    -webkit-animation: flickerAnimation 2s infinite;
    -moz-animation: flickerAnimation 2s infinite;
    -o-animation: flickerAnimation 2s infinite;
    animation: flickerAnimation 2s infinite;
}