/**
 * Copyright (c) 2014 Oracle and/or its affiliates. All rights reserved.
 *
 * You may not modify, use, reproduce, or distribute this software except in
 * compliance with  the terms of the License at:
 * http://java.net/projects/javaeetutorial/pages/BerkeleyLicense
 */

body {
    background-color: #ffffff;
    font-size: 12px;
    font-family: Verdana, "Verdana CE",  Arial, "Arial CE", "Helvetica CE", sans-serif;
    color: #fff;
    margin: 10px;
    background-image: url("/javax.faces.resource/images/connectfour/palsa/background.jpg.xhtml");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#overlay {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background-color: rgba(0,0,0, 0.7);
}

#container {
    width:100%;
    height:100%;
    margin: 0;
    padding: 0;
    position: relative;
}

#container a {
    color: #000;
}

#container a:hover {
    color: #333333;
}

/* GAMEFIELD */
#gameField {
    display: none;
    position: absolute;
    left: 50%;
    transform: translate(-50%,0);
    top: 220px;
}

#gameField .new_game {
    display: none;
}

#scoreComponent {
    text-align: center;
    font-size: 16px;
    margin-bottom: 10px;
}

#scoreComponent .score {
    display: inline-block;
}
#scoreComponent .score span {
    display: block;
}
#scoreComponent .score.separator {
    margin: 0 10px;
    color: #A5A5A5;
}

#gameField table {
    border-collapse: collapse;
    position: relative;
    width: 240px;
    height: 240px;
}

#gameField tr {
    padding: 0;
}

#gameField td {
    padding: 0;
}

div#tile {
    border: 5px solid white;
    border-radius:100%;
    width: calc(240px / 4 - 10px);
    height: calc(240px / 4 - 10px);
    background: none;
}

div#tile.tile1 {
    background-color: brown;
}

div#tile.tile2 {
    background-color: yellow;
}

div#tile.game1 {
    width: calc(240px / 5 - 10px);
    height: calc(240px / 5 - 10px);
}

div#tile.game2 {
    width: calc(240px / 6 - 10px);
    height: calc(240px / 6 - 10px);
}

div#tile.game3 {
    width: calc(240px / 7 - 10px);
    height: calc(240px / 7 - 10px);
}

/* COMMENTS */
#comments {
    display: none;
    width: 250px;
    position: absolute;
    bottom: 0;
    left: 0;
}

.comments {
    width: 230px;
    height: 200px;
    padding: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: rgba(255, 255, 255, 0.2);
}

.comments .comment {
    width: 100%;
    font-size: 11px;
}

.comments .comment .date {
    color: #A5A5A5;
    margin-right: 5px;
}

.comments .comment label {
    color: #fff;
}

.comments .comment .message {
    color: #ddd;
}

#comments textarea {
    width: 100%;
    height: 50px;
    resize: none;
}

/* Game Menu */

#gameOptions {
    display: none;
    position: absolute;
    top: calc(90% - 204px);
    right: 50px;
}

#gameOptions a {
    display: block;
    width: 204px;
    height: 53px;
    margin: 0 auto;
    background-image: url("/javax.faces.resource/images/connectfour/palsa/options.png.xhtml");
    margin-bottom: 20px;
}
/* OPTIONS */

#options {
    text-align: center;
    display: none;
    position: absolute;
    top: 30%;
    left: 20%;
    width: 60%;
    padding: 20px;
    background-color: rgba(255,255,255,0.8);
    color: #000;
    z-index: 20;
}

#options div {
    text-align: left;
    margin-bottom: 5px;
}
#options div label {
    display: inline-block;
    width: 100px;
    text-align: right;
}
#options div input {
    margin-left: 5px;
}

#options div.color {
    margin-bottom: 20px;
}

#options a {
    font-size: 16px;
}

/* winDialog */

#winDialog {
    display: none;
    position: absolute;
    top: 30%;
    left: 20%;
    width: 60%;
    padding: 20px;
    background-color: rgba(255,255,255,0.9);
    color: #000;
    text-align: center;
    z-index: 20;
}

#winDialog #scoreComponent .score.separator {
    color: #000;
}

#winDialog a {
    font-size: 16px;
    margin: 10px 0 0 0;
}

/* menu */

#menu {
    position: absolute;
    top: 35%;
    left: 20%;
    width: 60%;
    padding: 20px;
    color: #000;
    text-align: center;
}

#menu a {
    display: block;
    width: 204px;
    height: 53px;
    margin: 0 auto;
    background-image: url("/javax.faces.resource/images/connectfour/palsa/play.png.xhtml");
    margin-bottom: 20px;
}

#menu a.options {
    background-image: url("/javax.faces.resource/images/connectfour/palsa/options.png.xhtml");
}

#menu a.info {
    background-image: url("/javax.faces.resource/images/connectfour/palsa/info.png.xhtml");
}

/* InfoDialog */

#infoDialog {
    display: none;
    position: absolute;
    top: 30%;
    left: 20%;
    width: 60%;
    padding: 20px;
    background-color: rgba(255,255,255,0.9);
    color: #000;
    z-index: 20;
}
