/* 
Colors:
Dark brown: #8B4513
Light cream: #FFF8DC
Medium coral: #FF7F50
Warm grey: #8B7355
*/



body {
  background-color: #8B4513;
  font-family: Verdana;
}

body section#main,
h1 {
  font-family: Arial;
}

#container {
  width: 960px;
  margin: auto;
  background-color: #FFF8DC;
}

h1 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  padding: 20px;
}

h1,
h2,
h3 {
  color: #8B7355;
}

h2 {
  padding: 0;
}

h3 {
  margin: 0;
}

nav {
  background-color: #FF7F50;
  height: 30px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding-top: 5px;
}

nav li {
  display: inline;
  margin-left: 10px;
  margin-right: 10px;
}

nav li a {
  color: #fff;
}

aside li a,
nav li a.mypage {
  color: #FFD700;
  text-decoration: none;
}

div.header {
  margin-bottom: 20px;
}

div.header form,
div.header table {
  display: inline;
  margin: 0;
  padding: 0;
}

div.header form select {
  width: auto;
}

aside {
  width: 180px;
  border: 0;
  float: left;
  margin-left: 30px;
  padding: 0;
}

aside li,
aside ul {
  list-style-type: none;
}

aside ul {
  padding: 0;
  margin: 0;
}

aside li {
  color: #8B7355;
  margin: 20px;
  font-size: 13px;
  font-weight: 700;
}

aside li a {
  color: #8B7355;
}

#main {
  width: 700px;
  float: right;
  margin-right: 30px;
  line-height: 20px;
}

#main a.inline,
#main p a,
table.main tbody td a.username {
  color: #B8860B;
  text-decoration: none;
}

footer {
  height: 50px;
  background-color: #D2B48C;
  clear: both;
  margin-top: 20px;
}

footer ul {
  list-style: none;
  text-align: center;
  padding-top: 15px;
}

footer li {
  display: inline;
  margin-left: 10px;
  margin-right: 10px;
}

.closebtn:hover,
footer li a {
  color: #000;
}

table.form,
table.main {
  text-align: left;
  border-collapse: collapse;
}

h2,
h3,
table tfoot,
table th {
  font-family: Verdana;
}

table.form td,
table.form th {
  padding: 3px 2px;
  vertical-align: top;
}

table.form tbody td {
  font-size: 13px;
}

table.form tfoot td {
  font-size: 12px;
}

nav,
table.chatTable tfoot .links,
table.form tfoot .links,
table.main tfoot .links {
  text-align: right;
}

table.form tfoot .links a,
table.main tfoot .links a {
  display: inline-block;
  background: #D2691E;
  color: #fff;
  padding: 2px 8px;
  border-radius: 5px;
}

table.main {
  border: 1px solid #D2691E;
  background-color: #f4f4f4;
  max-width: 650px;
}

table.main td,
table.main th {
  font-size: 13px;
  border: 1px solid #aaa;
  padding: 3px 6px;
}

table.main tbody td {
  font-size: 13px;
}

table.main tbody td.grey {
  font-size: 13px;
  color: #7f7f7f;
}

table.main tbody td.num,
table.main tbody td.num_grey {
  font-size: 13px;
  text-align: right;
}

table.main tbody td.num_grey {
  color: #7f7f7f;
}

table.main tbody td.result,
table.main tbody td.result_win {
  font-size: 13px;
  text-align: center;
}

table.main tbody td.result_win {
  color: green;
}

table.main tbody td.result_draw,
table.main tbody td.result_loss {
  font-size: 13px;
  text-align: center;
  color: #8B4513;
}

table.main tbody td.result_loss {
  color: red;
}

table.main tbody td.time_turn {
  font-family: Consolas, monaco, monospace;
  font-size: 13px;
  text-align: right;
  color: #bf0000;
  text-decoration: none;
}

table.main tbody td.red {
  color: #bf0000;
}

table.main tbody td.time {
  font-size: 13px;
  text-align: right;
  color: #B8860B;
  text-decoration: none;
}

table.main tbody td span.country_code,
table.main tbody td.time {
  font-family: Consolas, monaco, monospace;
}

table.main tbody td a.username_turn {
  color: #bf0000;
  text-decoration: none;
}

table.main tbody td a.game_id {
  color: #FF8C00;
  text-decoration: none;
}

table.main tr:nth-child(even) {
  background: #FFF5EE;
}

table.main thead {
  background: #CD853F;
  border-bottom: 2px solid #444;
}

table.main thead th {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  border-left: 2px solid #DEB887;
}

table.main thead th:first-child {
  border-left: none;
}

table.main tfoot td {
  font-size: 12px;
}

form input:not([type=submit]),
form select,
form textarea {
  font-size: 13px;
  border-radius: 5px;
  width: 300px;
}

form textarea {
  height: 100px;
  font-family: Arial;
}

form input[type=submit] {
  font-size: 13px;
  border-radius: 5px;
  min-width: 100px;
  margin-top: 5px;
}

form.game_chat,
form.small {
  margin: 0;
}

form input[type=submit].small {
  min-width: auto;
  margin: 0;
}

form input[type=checkbox] {
  width: 16px;
}

form textarea.chat {
  width: 650px;
}

div.renju_panel form textarea.chat {
  width: 181px;
  height: auto;
}

form textarea.response {
  width: 650px;
  height: 150px;
}

table.form_panel {
  text-align: center;
  margin: 0;
  padding: 0;
  table-layout: fixed;
  width: 100%;
}

table.form_panel input[type=text] {
  font-size: 13px;
  border-radius: 5px;
  width: 100%;
}

table.form_panel input[type=button],
table.form_panel input[type=submit] {
  font-size: 13px;
  border-radius: 5px;
  width: 100%;
  min-width: auto;
  margin: 0;
}

input[type=button]:active,
table.form_panel input[type=button][selected=selected],
table.form_panel input[type=submit]:active {
  background-color: #bfbfbf;
}

table.chatTable {
  border: 1px solid #D2691E;
  background-color: #FFFACD;
  width: 650px;
  max-width: 650px;
  text-align: left;
  border-collapse: collapse;
}

div.renju_panel table.chatTable {
  width: 181px;
  max-width: 181px;
}

table.chatTable td,
table.chatTable th {
  border: 1px solid #aaa;
  max-width: 650px;
  padding: 3px 6px;
}

div.renju_panel table.chatTable tbody td,
div.renju_panel table.chatTable td,
div.renju_panel table.chatTable th {
  max-width: 181px;
}

table.chatTable tbody td {
  font-size: 13px;
  max-width: 650px;
  word-break: break-word;
}

table.chatTable tr:nth-child(even) {
  background: #FFF8DC;
}

table.chatTable tr.message_from {
  background: #FFFACD;
}

table.chatTable tr.message_to {
  background: #FFF8DC;
}

table.chatTable thead {
  background: #D2691E;
  background: -moz-linear-gradient(top, #DEB887 0%, #CD853F 66%, #D2691E 100%);
  background: -webkit-linear-gradient(top, #DEB887 0%, #CD853F 66%, #D2691E 100%);
  background: linear-gradient(to bottom, #DEB887 0%, #CD853F 66%, #D2691E 100%);
  border-bottom: 2px solid #444;
}

table.chatTable thead th {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  border-left: 2px solid #F5DEB3;
}

table.chatTable thead th:first-child {
  border-left: none;
  padding-left: 11px;
}

table.chatTable tfoot {
  font-size: 12px;
  font-weight: 400;
  color: #fff;
  background: #F5DEB3;
  border-top: 2px solid #444;
}

table.chatTable tfoot td {
  font-size: 12px;
}

table.chatTable tfoot .links a {
  display: inline-block;
  background: #B8860B;
  color: #fff;
  padding: 2px 8px;
  border-radius: 5px;
}

table tfoot .links a.active {
  font-weight: 700;
}

table.chatTable p {
  text-align: justify;
  margin: 5px;
}

table.chatTable p.username {
  text-align: left;
  font-weight: 550;
  color: #8B4513;
}

table.chatTable p.username a {
  color: #B8860B;
  text-decoration: none;
}

table.chatTable p.username ptime {
  font-weight: 400;
  color: #939393;
}

span.flag,
span.flag_small {
  width: 24px;
  height: 16px;
  vertical-align: middle;
  display: inline-block;
}

img.flag,
img.flag_small {
  max-width: 100%;
  max-height: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transform: translate(0%, -50%);
  position: relative;
  top: 50%;
  border: 1px solid #e5e5e5;
}

span.flag {
  width: 60px;
  height: 40px;
}

img.turn {
  border: 3px;
  border-style: solid;
  border-color: red;
}

div.table_container {
  overflow: auto;
}

div.renju_game {
  width: 650px;
}

div.renju_main {
  width: 469px;
  float: left;
}

div.renju_info {
  width: 650px;
}

div.renju_board {
  width: 469px;
}

div.renju_panel {
  width: 181px;
  float: left;
}

table.main#renju_info_table {
  width: 650px;
  margin: 0;
  padding: 0;
  text-align: center;
}

table.main#game_steps_table th {
  text-align: center;
}

table.main#game_steps_table td {
  text-align: left;
  max-width: 100px;
  word-break: break-word;
}

table.main#game_steps_table td.right {
  text-align: right;
  max-width: 134px;
}

table.main#game_messages_table {
  width: 181px;
  margin: 0;
  padding: 0;
  text-align: left;
  background-color: red;
  color: #fff;
  font-weight: 700;
}

.alert {
  padding: 10px 20px;
  background-color: #CD853F;
  color: #fff;
}

.closebtn {
  margin-left: 15px;
  color: #fff;
  font-weight: 700;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  transition: .3s;
}