* {
    padding: 0px;
    margin: 0px;
    color: white;
    font-family: 'Lucida Grande', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Meiryo, メイリオ, sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

h2 {
    font-size: 28px;
}

p {
    padding: 10px;
    font-size: 20px;
}

input[type=text] {
    position: relative;
    padding: 0px 5px;
    width: -moz-calc(100% - 10px - 50px);
    width: -webkit-calc(100% - 10px - 50px);
    width: -o-calc(100% - 10px - 50px);
    width: calc(100% - 10px - 50px);
    height: 30px;
    border: none;
    outline: none;
    background-color: white;
    color: black;
    font-size: 16px;
}

input[type=submit] {
    position: relative;
    width: 50px;
    height: 30px;
    top: -2px;
    right: 0px;
    color: #66666ff;
    border: none;
    outline: none;
    border-radius: 0px;
    background-color: #333388;
}

input[type=submit]:hover {
    background-color: #4444bb;
}

input[type=submit]:active {
    background-color: #222244;
}

div#background {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: black;
    background-image: url("../img/background.jpg");
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.container {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

div#background img {
    margin: auto;
    display: block;
    height: 100%;
}

div#searching {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: black;
    background-image: url("http://giant.gfycat.com/EquatorialEmbellishedIrishwaterspaniel.gif");
    background-size: cover;
    background-position: center;
}

div#foreground {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

div#foreground * {
    pointer-events: auto;
    overflow: hidden;
}

div#chatwindow {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: absolute;
    diplay: block;
    margin: 10px;
    padding: 20px;
    border: 5px #6666ff ridge;
    border-radius: 5px;
    left: 0px;
    bottom: 0px;
    width: -moz-calc(100% - 70px);
    width: -webkit-calc(100% - 70px);
    width: -o-calc(100% - 70px);
    width: calc(100% - 70px);
    height: 175px;
    background-color: rgba(25, 25, 64, 0.7);
    overflow: hidden;
}

div#chatbox {
    position: relative;
    float: left;
    width: -moz-calc(100% - 20px);
    width: -webkit-calc(100% - 20px);
    width: -o-calc(100% - 20px);
    width: calc(100% - 20px);
    height: -moz-calc(100% - 40px);
    height: -webkit-calc(100% - 40px);
    height: -o-calc(100% - 40px);
    height: calc(100% - 40px);
    overflow: scroll;
}

div#chatbox p {
    -webkit-touch-callout: text;
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

div#confidence {
    position: relative;
    float: left;
    width: 14px;
    border: 3px #6666ff inset;
    height: -moz-calc(100% - 40px);
    height: -webkit-calc(100% - 40px);
    height: -o-calc(100% - 40px);
    height: calc(100% - 40px);
    background-color: #6666ff;
}

div#confidence div#level {
    position: absolute;
    bottom: 0px;
    width: 14px;
    background-color: #66ff66;
}

div#form {
    position: absolute;
    margin: 10px;
    border-top: 5px #6666ff ridge;
    border-left: 5px #6666ff ridge;
    left: 0px;
    bottom: 5px;
    width: -moz-calc(100% - 30px);
    width: -webkit-calc(100% - 30px);
    width: -o-calc(100% - 30px);
    width: calc(100% - 30px);
    height: 30px;
}

div#chatlog {
    position: absolute;
    padding: 10px;
    border-left: 5px #6666ff ridge;
    top: 0px;
    right: -300px;
    width: 280px;
    height: -moz-calc(100% - 20px);
    height: -webkit-calc(100% - 20px);
    height: -o-calc(100% - 20px);
    height: calc(100% - 20px);
    background-color: rgba(25, 25, 64, 1.0);
    overflow: scroll;
}

div#chatlog.chatlog-add, div#chatlog.chatlog-remove {
  -webkit-transition: all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
  -moz-transition: all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
  -o-transition: all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
  transition: all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
}

div#chatlog.chatlog,
div#chatlog.chatlog-adddiv#chatlog.chatlog-add-active {
    right: 0px;
}

div#chatlog.chatlog-removediv#chatlog.chatlog-remove-active {
    right: -300px;
}

.fade {
    opacity: 1;
}

.fade {
  -webkit-transition: all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.7s;
  -moz-transition: all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.7s;
  -o-transition: all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.7s;
  transition: all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.7s;
}

.fade.ng-hide {
    opacity: 0;
}

div#chatlog h2 {
    font-size: 18px;
}

div#chatlog p {
    font-size: 12px;
}

div#chatlog li {
    padding: 5px;
}

div#copyright {
    position: absolute;
    top: 0px;
    left: 0px;
}