.spacer {
    height: 10px;
}
.text-center {
    text-align: center;
}
#game_container h1,
#game_container h2,
#game_container h3,
#game_container h4,
#game_container h5,
#game_container h6 {
    color: white;
}
#game_container a {
    text-decoration: none;
    font-weight: bold;
    color: #333333;
    transition: all .3s;
}
#game_container a:hover {
    color: black;
}
#game_container input[type=button],
#game_container button {
    margin: 3px;
    padding: 9px 13px;
    border: 2px solid rgba(255, 255, 255, 0.5);;
    border-radius: 5px;
    background:rgba(255, 255, 255, 0.5);
    color: black;
    font-size: 20px;
    cursor: pointer;
    transition: all .3s;
}
#game_container input[type=button]:hover,
#game_container button:hover {
    background: white;
    color: black;
}
#game_container input[type=text],
#game_container input[type=number],
#game_container input[type=password] {
    margin: 3px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.5);;
    border-radius: 5px;
    outline: none;
    background:rgba(255, 255, 255, 0.5);
    color: black;
}
#game_container input,
#game_container button {
    margin: 3px;
    padding: 5px;
    font-size: 20px;
}
#game_container {
    position: fixed;
    z-index: 8;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    /* border: 1px solid yellowgreen; */
    overflow: auto;
}
.hidden {
    display: none;
}
.visible {
    display: block;
}
/* #leaderboard {
    margin: 10px;
    padding: 20px;
    border: 1px solid black;
    box-sizing: border-box;
}
#waiting_room {
    margin: 10px;
    padding: 5px;
    border: 1px solid black;
    box-sizing: border-box;
}
#waiting_room ul.player {
    list-style: none;
    margin: 10px;
    padding: 10px;
    background: #eeeeee;
}
#waiting_room ul.player li {
    display: inline-block;
}
#invitation {
    margin: 10px;
    padding: 20px;
    border: 1px solid black;
    box-sizing: border-box;
}
#game_scene {
    margin: 10px;
    padding: 10px;
    border: 1px solid black;
    box-sizing: border-box;
} */
#game_scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    /* border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2); */
    transition: all 0.4s;
    color: #333333;
    text-align: center;
}
#game_scene .top {
    display: table;
    width: 96%;
    margin: 2%;
    padding: 5px;
    /* border: 1px solid black; */
    box-sizing: border-box;
}
#red {
    display: table-cell;
    width: 40%;
    color: #bd4848;
    font: bold 50px/1.2em Helvetica, sans-serif;
    text-shadow: 0 0 1px black;
}
#time {
    display: table-cell;
    width: 20%;
    text-align: center;
    color: #ffffff;
    font: bold 50px/1.2em Helvetica, sans-serif;
    text-shadow: 0 0 1px black;
}
#blue {
    display: table-cell;
    width: 40%;
    text-align: right;
    color: #1981b1;
    font: bold 50px/1.2em Helvetica, sans-serif;
    text-shadow: 0 0 1px black;
}
@media only screen and (max-width: 768px) {
    #red,
    #time,
    #blue {
        font-size: 30px;
    }
}
#max_score {
    color: white;
}
#game_result {
    margin: 10px;
    padding: 10px;
    border: 1px solid black;
    box-sizing: border-box;
    text-align: center;
}
#login_form {
    position: fixed;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 300px;
    max-width: 98%;
    height: 300px;
    margin-top: -200vh;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s;
    color: #333333;
    text-align: center;
}
#login_form.hidden {
    z-index: 0;
    margin-top: -200vh;
    transition: all 0.4s;
}
#login_form.visible {
    z-index: 3;
    margin-top: 0;
    transition: all 0.4s;
}
#game_container .close {
    position: absolute;
    top: 20px;
    right: 20px;
    left: auto;
    width: 40px;
    height: 40px;
    padding: 5px;
    border-radius: 50%;
    background: #cccccc;
    font-size: 40px;
    line-height: 27px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
#game_container .close:hover {
    background: white;
    color: black;
}
#waiting_room {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 80%;
    max-width: 98%;
    max-height: 80%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s;
    color: #333333;
    text-align: center;
}
#waiting_room.hidden {
    z-index: 0;
    margin-top: -200vh;
}
#waiting_room.visible {
    z-index: 3;
    margin-top: 0;
    transition: all 0.4s;
}
#waiting_room h1,
#waiting_room h2,
#waiting_room h3,
#waiting_room h4,
#waiting_room h5,
#waiting_room h6 {
    color: white
}
#waiting_room .players {
    width: 100%;
    height: 80%;
    overflow-y: auto;
}
#waiting_room .players .player {
    display: table;
    width:96%;
    height: 80px;
    margin: 3px 2%;
    border-radius: 9px;
}
#waiting_room .players .player > span,
#waiting_room .players .player > button,
#waiting_room .players .player > div {
    display: inline-table;
    vertical-align: top;
}
#waiting_room .players .player .avatar {
    float: left;
    width: 80px;
    height: 80px;
}
#waiting_room .players .player .avatar img {
    width: 100%;
    height: 100%;
    vertical-align: top;
}
#waiting_room .players .player > .username {
    float: left;
    min-width: 45%;
    padding-left: 20px;
    box-sizing: border-box;
    line-height: 80px;
    font-weight: bold;
    text-align: left;
}
#waiting_room .players .player .invite {
    float: right;
    padding: 10px;
    margin: 16px;
}
#waiting_room .players .player  .note {
    line-height: 80px;
    text-align: right;
    padding-right: 20px;
    box-sizing: border-box;
}
@media only screen and (max-width: 768px) {
    #waiting_room .players .player > .username {
        display: none;
    }
}
#leaderboard,
#leaderboard.hidden {
    position: fixed;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 80%;
    max-width: 98%;
    max-height: 80%;
    margin-top: -200vh;
    overflow: hidden;
    overflow-y: auto;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s;
    color: #333333;
    text-align: center;
}
#leaderboard.visible {
    z-index: 3;
    margin-top: 0;
    transition: all 0.4s;
}
#leaderboard .players {
    width: 100%;
}
#leaderboard .players thead {
    font-weight: bolder;
}
#leaderboard .players thead tr th {
    padding: 10px;
}
#leaderboard .players tbody tr td {
    margin: 0;
    padding: 0;
    line-height: 1em;
    vertical-align: middle;
}
#leaderboard .players tbody img {
    width: 50px;
    height: 50px;
    margin: 2px;
}
#invitation,
#game_result {
    position: fixed;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 300px;
    max-width: 98%;
    margin-top: -200vh;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s;
    color: #333333;
    text-align: center;
}
#invitation.hidden {
    z-index: 0;
    margin-top: -200vh;
    transition: all 0.4s;
}
#invitation.visible {
    z-index: 5;
    margin-top: 0;
    transition: all 0.4s;
}
#invitation #reject {
    background: black;
    color: white;
    border: 2px solid black;
}
#invitation #reject:hover {
    background: #333333;
}
#game_result.visible {
    z-index: 6;
    margin-top: 0;
    transition: all 0.4s;
}