body {
    text-align: center;
    font-family: sans-serif;
    white-space: nowrap;
}
body * {
    white-space: normal;
}
#bkgrd {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
}
#start-screen, #pause-screen, #end-screen, #load-screen, #instr-screen {
    position: fixed;
    z-index: 100;
    width: 100%;
    height: 100%;
    padding: 100px;
    left: 0;
    top: 0;
}
#start-screen>ul {
    display: inline-block;
    margin: 20px;
    width: 150px;
    cursor: pointer;
}
#pause-screen, #instr-screen {
    color: #fff;
    z-index: 200;
    background-color: rgba(0,0,0,0.96);
}
#end-screen {
    color: #fff;
    z-index: 300;
    background-color: rgba(0,3,6,0.66);
}
#load-screen {
    background-color: rgba(250,250,250,0.36);
}
#pause-screen>img {
    margin: 30px;
}
#instr-screen {
    overflow-y: scroll;
}
#instr-screen { text-align: left; }
#instr-text h4 { margin-top: 20px; }
#instr-text li { font-size: 16px; }
#instr-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 30px;
    cursor: pointer;
}
#winscr-value {
    display: inline-block;
    position: relative;
    top: -4px;
    width: 50px;
    margin: 0 10px;
    font-size: 20px;
    text-align: left;
}
#winscr-slider {
    display: inline-block;
    width: 200px;
    margin: 10px 0 0 25px;
    -webkit-appearance: none;
    appearance: none;
    height: 25px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}
#winscr-slider:hover { opacity: 0.9; }
#winscr-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: #337AB7;
    cursor: pointer;
}
#logo {
    display: block;
    width: 550px;
    margin: auto;
    margin-bottom: 60px;
}
.restart-btn, #start-btn, #instr-btn {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100px;
    width: 150px;
    font-weight: bold;
    margin-left: auto;
    margin-right: auto;
}
#instr-btn { bottom: 150px; }
#loading-icon {
    position: fixed;
    z-index: 99;
    top: 50%;
    left: 50%;
    width: 200px;
    margin-top: -100px;
    margin-left: -100px;
    border-radius: 100px;
}
.game-area {
    width: auto;
    display: inline-block;
    margin: 50px 50px 0;
}
.board, .preview {
    border: 8px solid #123;
    padding: 3px;
}
.board {
    border-radius: 6px;
}
.preview {
    position: relative;
    border-top-right-radius: 70px;
    border-bottom-right-radius: 70px;
    border-left-width: 0;
    top: -250px;
}
.next-label {
    position: relative;
    left: 150px;
    top: -400px;
    font-size: 25px;
    font-weight: bold;
    transform: rotate(25deg);
    margin-bottom: -25px;
}
.score-label, .lines-label {
    position: relative;
    top: -230px;
    left: 230px;
    width: 120px;
    height: 88px;
    padding: 10px;
    border-radius: 5px;
    font-size: 18px;
    text-align: left;
    color: #ccc;
    background-color: #123;
}
.score-value, .lines-value {
    width: 100%;
    float: right;
    text-align: right;
    margin-top: 10px;
    background-color: #323c50;
    padding: 10px;
    border-radius: 3px;
}
#footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 150;
    color: #555;
    background-color: rgba(250,250,250,0.5);
}