@import url(//fonts.googleapis.com/css?family=Raleway:400,200);

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

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

body {
    margin: 0;
    background: black;
    font-family: 'Raleway', Verdana;
    overflow: hidden;
}

#controls {
    position: absolute;
    right: 0;
    width: 250px;
    height: 100%;
    overflow: auto;

    background: -webkit-linear-gradient(top, #222, #333);
    background: -moz-linear-gradient(top, #222, #333);
    background: -o-linear-gradient(top, #222, #333);
    background: -ms-linear-gradient(top, #222, #333);
    background: linear-gradient(top, #222, #333);

    -webkit-box-shadow: inset 2px 0 5px rgba(0, 0, 0, 0.5);
    box-shadow: inset 2px 0 5px rgba(0, 0, 0, 0.5);
    color: #CCC;
}

#controls > section {
    padding: 5px;
}

#controls > label {
    display: block;
    background-color: #003C7D;
    color: white;
    padding: 5px;
    font: lighter 20px 'Raleway',Verdana;
}

#controls input[type=range] {
    width: 100%;
}

#fps:before {
    content: 'FPS: ';
}

#fps {
    position: absolute;
    top: 5px;
    left: 5px;
    font-family: Helvetica;
}

#controls.expanded {
    width: 70%;
}

section#environments > div {
    display: none;
}

#controls.expanded section#environments > div {
    display: block;
    float: left;
    width: 49%;
    margin: 2px;
}

#controls.expanded #map {
    width: 100%;
    height: 400px;
}

#controls[type=map] .mapOptions {
    display: block;
}

#map {
    width: 200px;
    height: 200px;
    margin: auto;
}

#controls.expanded #gplus {
    height: 400px;
}

#controls[type=gplus] .gplusOptions {
    display: block;
}

#gplus {
    height: 200px;
    overflow: auto;
}

#gplus > img {
    width: 100%;
    cursor: pointer;
    opacity: 0.7;
}

#gplus > img:hover {
    opacity: 1;
}

#changeEnvironment {
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    clear: both;
}

#changeEnvironment:before {
    content: 'More...';
}

#controls.expanded #changeEnvironment:before {
    content: 'Done';
}

#changeEnvironment:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    cursor: default;
}

#environmentDialog {
    display: none;
    position: absolute;
    top: 50px;
    left: 50px;
    right: 50px;
    bottom: 50px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: gray;
    cursor: pointer;
}

.close:hover {
    color: black;
}

#color {
    display: none;
}

#colorpicker > div {
    margin: auto;
}

#imageLibrary > img {
    width: 50px;
    cursor: url(//maps.gstatic.com/mapfiles/openhand_8_8.cur) 8 8, default;
    margin: 0 3px;
    background: url('textures/empty.png');
}

#textureDrop, #bumpMapDrop {
    padding-left: 55px;
    height: 60px;
    position: relative;
    background: url('textures/drop.png') no-repeat 2px 5px;
    background-size: 50px 50px;
}

#textureDrop > .preview, #bumpMapDrop > .preview {
    position: absolute;
    background-repeat: no-repeat;
    background-size: 50px 50px;
    top: 5px;
    left: 2px;
    width: 50px;
    height: 50px;
    box-shadow: inset 0 2px 3px rgba(0, 0, 0, 180), 0 1px 1px rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.googleImage {
    position: absolute;
    bottom: 50px;
    right: 250px;
    width: 500px;
    height: 500px;
    border: 0 none;
    background-color: white;
}

#addImage {
    color: #0084B4;
    text-decoration: none;
}

#addImage:hover {
    color: #00A4D4;
}