/*
Name: Joshua Brockschmidt
Date: 04.23.18
Section: CSE 154 AB

Stylesheet for tic-tac-toe game page and board.
*/

body {
    font-family: "Arial", sans-serif;
}

body, h1 {
    text-align: center;
}

h1, legend, main {
    text-transform: uppercase;
    font-family: "Impact";
    letter-spacing: 0.1em;
}

h1 {
    font-size: 40pt;
    margin: 30px auto 10px auto;
}

h2 {
    font-size: 20pt;
}

.inline {
    display: inline-block;
}

header {
    margin-bottom: 25px;
}

fieldset #flex {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.bordered {
    background-color: #fff;
    border: 5px solid #000;
}

fieldset {
    min-width: 250px;
    width: 80%;
    max-width: 600px;
    height: 60px;
    padding: 10px;
}

legend {
    text-align: left;
}

#turn-indicator-outer {
    padding: 2px;
    width: 40px;
    height: 40px;
}

#board, .row, .tile {
    padding: 0;
}

.row, .tile {
    margin: 0;
}

#board {
    position: relative;
    margin: 5px auto;
    width: max-content;

    /* Gets rid of pesky space between tiles and rows. */
    font-size: 0;
}

/* Used for displaying messages on the board. */
#board h2 {
    position: absolute;
    top: 35%;
    width: 100%;
    padding: 10px 0;
    color: #f00;
    background-color: #000;
}

.row {
    display: block;
}

.tile {
    width: 100px;
    height: 100px;
}

.circle, .square {
    margin: 10%;
    width: 80%;
    height: 80%;
}

.circle {
    background-color: #00f;
    border-radius: 50%;

}

.square {
    background-color: #fa0;
}

.empty:hover {
    border-color: #aaa;
}

.empty:active {
    border-color: #ddd;
}
