body {
    margin: 0;
    padding: 0;
    font-family: Tahoma;
    background: url("../images/texture.png");
}

* {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    -webkit-focus-ring-color: rgba(255, 255, 255, 0);
    outline: none;
    -moz-user-select: -moz-none;
    -o-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

input, textarea {
    -moz-user-select: text;
    -o-user-select: text;
    -khtml-user-select: text;
    -webkit-user-select: text;
    user-select: text;
    -webkit-text-size-adjust: none;
}

img {
    border: 0;
    vertical-align: top;
}

.hidden {
    display: none !important;
}

.visibility {
    visibility: hidden;
}

.animation {
    -webkit-transition: background-color 0.7s, color 1s, opacity 0.5s;
    -ms-transition: background-color 0.7s, color 1s, opacity 0.5s;
    -o-transition: background-color 0.7s, color 1s, opacity 0.5s;
    -moz-transition: background-color 0.7s, color 1s, opacity 0.5s;
    transition: background-color 0.7s, color 1s, opacity 0.5s;
}

@media screen and (min-width: 1024px) {
    body {
        font-size: 100%;
    }
}

@media screen and (min-width: 800px) and (max-width: 1023px) {
    body {
        font-size: 100%;
    }
}

@media screen and (min-width: 600px) and (max-width: 799px) {
    body {
        font-size: 100%;
    }
}

@media screen and (min-width: 480px) and (max-width: 599px) {
    body {
        font-size: 80%;
    }
}

@media screen and (min-width: 320px) and (max-width: 479px) {
    body {
        font-size: 60%;
    }
}

@media screen and (min-width: 240px) and (max-width: 319px) {
    body {
        font-size: 40%;
    }
}

@media screen and (max-width: 239px) {
    body {
        font-size: 40%;
    }
}

#board {
    margin: 0 auto;
    border: 5px solid rgba(110, 65, 19, 0.5);
    box-shadow: 0px 0px 15px white;
}

#board td, .td {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
	width: 12.5%;
	height: 12.5%;
}

#board td {
    background: url("../images/black.jpg") no-repeat;
    background-size: 100% 100%;
}

#board td.white {
    background: url("../images/white.jpg");
    background-size: 100% 100%;
}

#board td > img {
    width: 100%;
}

.board_containter_table {
    width: 100%;
    height: 100%;
}

.board_containter_td {
    background: none;
    text-align: center;
}

.button {
    width: 3em;
    cursor: pointer;
}

.button:hover {
    opacity: 0.9;
}

.restart {
    position: absolute;
    top: 1em;
    right: 1em;
    opacity: 0.4;
    max-width: 40px;
}