@import url(http://fonts.googleapis.com/css?family=Roboto);

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

body {
    height: 100vh;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    margin: 0;
}

.container {
    width: 1000px;
    margin: 20px auto;
}

.board {
    float:left;
    margin:50px auto;
    width: 50%;
}

.rules {
    margin-top:30px;
    text-align: left;
    clear: both;
    
    font-size: 1em;
}

.rules h2 {
    text-align: left;
}

h2 {
    font-size: 2em;
    text-align: center;
}

table {
    width: 450px;
    height: 450px;
    float:left;
    margin:20px;
}
td {
    border: 1px solid #ffa500;
    border-radius: 50%

}

.ship {
    background-color: #ffa500;
}

.hit {
    background-color: #ff4252;
}

.no-hit {
    background-color: #2f2f2f;
}

footer {
    font-size: 0.8em;
    text-align: center;
}

.alert {
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    top: 0;
    min-width: 500px;
    padding: 20px;
    background-color: #bbb;
    color: #fff;
    font-size: .9em;
    text-align: center;
    opacity: 0;
}


.alert.error {
    background-color: #ff7777;
    -webkit-transition: opacity 5s ease-in;
    -moz-transition: opacity 5s ease-in;
    -ms-transition: opacity 5s ease-in;
    -o-transition: opacity 5s ease-in;
    transition: opacity 5s ease-in;
}

.alert.success {
    background-color: #55aa44;
    -webkit-transition: opacity 5s ease-in;
    -moz-transition: opacity 5s ease-in;
    -ms-transition: opacity 5s ease-in;
    -o-transition: opacity 5s ease-in;
    transition: opacity 5s ease-in;
}
