/*--------------------------------------
>            Darken Style                <
>            Neon                        <
>            https://github.com/tltneon    <
---------------------------------------*/

/* global */
body {
  background-color: #121212;
  font-size: 11px;
  font-family: 'Roboto', sans-serif;
  color: #E0E0E0;
  font-weight: bold;
  margin: 0;
  padding: 0;
}

a:link, a:visited {
  text-decoration: none;
  color: #00B0FF;
}

a:hover {
  color: #82B1FF;
  transition: color 0.3s ease;
}

a:active {
  color: #82B1FF;
}

textarea {
  background-color: #1E1E1E;
  color: #E0E0E0;
  border: 1px solid #424242;
  padding: 10px;
  border-radius: 4px;
  transition: border 0.3s ease;
}

textarea:focus {
  border-color: #00B0FF;
}

input[type="checkbox" i] {
  width: 15px;
  height: 15px;
  vertical-align: sub;
}

#adminlink {
  margin: 0;
  position: fixed;
  width: 25px;
  right: 0;
  top: 0;
  background-image: linear-gradient(45deg, #ffffff00, #ffffff00, #ff000061);
  height: 25px;
  transition: background-image 0.3s ease;
}

#adminlink:hover {
  background-image: linear-gradient(45deg, #ffffff00, #ffffff00, #f30606);
}

#topmenu {
  padding: 1em;
  border-bottom: 2px dashed #424242;
  display: flex;
  justify-content: center;
  background-color: #1E1E1E;
}

#topmenu > li {
  display: inline-block;
  padding: 0 10px;
}

#topmenu > li:before {
  content: '► ';
  color: #00B0FF;
}

.addserver_table {
  margin: auto;
  border-collapse: collapse;
  width: 80%;
  background-color: #1E1E1E;
  border-radius: 10px;
  overflow: hidden;
}

.addserver_table th, .addserver_table td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #424242;
}

.addserver_table th {
  background-color: #212121;
  color: #00B0FF;
  text-transform: uppercase;
  font-size: 0.9em;
}

.addserver_table td {
  background-color: #2C2C2C;
  color: #E0E0E0;
}

.addserver_table tr:hover {
  background-color: #333333;
  transition: background-color 0.3s ease;
}

.annotation {
  text-align: center;
  background-color: #282828;
  padding: 17px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* details */
.players_table, .settings_table {
  margin: auto;
  border: 1px solid #424242;
  border-spacing: 0;
  border-collapse: collapse;
  width: 80%;
  background-color: #1E1E1E;
  border-radius: 10px;
  overflow: hidden;
}

.players_table tr, .settings_table tr {
  white-space: nowrap;
  border: 1px solid #424242;
}

.players_table tr:nth-child(n), .settings_table tr:nth-child(n) {
  background-color: rgba(38, 50, 56, 0.9);
}

.players_table tr:nth-child(2n), .settings_table tr:nth-child(2n) {
  background-color: rgba(38, 50, 56, 0.7);
}

.players_table td, .settings_table td {
  padding: 8px;
  border-top: 1px solid #424242;
  color: #E0E0E0;
}

.players_table tr:hover, .settings_table tr:hover {
  background-color: rgba(55, 71, 79, 0.9);
  transition: background-color 0.3s ease;
}

.details_info_row {
  margin-top: 14px;
}

.details_info, .details_info_column:nth-child(2) {
  vertical-align: top;
}

.details_info_ceil, .details_info_column, .details_info_scolumn {
  display: inline-block;
}

.details_info_column {
  margin-right: 12px;
}

.details_info_srow {
  border: 1px solid #424242;
  margin: -1px 3px;
  padding: 8px;
  border-radius: 4px;
  background-color: #212121;
}

.details_info_ceil:first-child {
  padding-right: 4px;
}

.details_info_ceil:nth-child(2) {
  font-weight: 300;
}

#gamelink {
  vertical-align: middle;
  display: block;
  margin-bottom: 6px;
  width: calc(100% - 2px);
  border: 1px solid #424242;
  padding: 4px 0;
}

.details_info_column:nth-child(2), .details_password_image {
  background-size: cover;
  width: 250px;
  height: 188px;
  background-position: center;
}

.details_password_image, .details_game_image, .details_location_image {
  display: block;
  z-index: 5;
  background-size: cover;
}

.details_info_column:nth-child(2) {
  border-radius: 4px;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

.details_password_image {
  background-position: calc(100% - 3px) calc(100% - 3px);
  position: absolute;
  background-size: auto;
  background-repeat: no-repeat;
}

.details_location_image {
  width: 16px;
  height: 11px;
  position: relative;
  right: 4px;
  float: right;
  top: 4px;
}

.details_game_image {
  width: 32px;
  height: 32px;
  position: relative;
  left: 4px;
  top: 4px;
  opacity: .4;
  border-radius: 6px;
  transition: opacity 0.3s ease;
}

.details_game_image:hover {
  opacity: 1;
}

img[title='Location: XX'] {
  display: none;
}

.table_head {
  font-weight: bold;
  color: #00B0FF;
  text-transform: uppercase;
  background-color: #212121;
  padding: 10px;
}

.spacer {
  background-color: #282828;
  height: 6px;
  width: 90%;
  margin: auto;
  margin-top: 10px;
  margin-bottom: 10px;
  border: 1px dotted #424242;
}

.noinfo {
  margin: auto;
  text-align: center;
  background-color: #282828;
  display: inline-block;
  padding: 15px;
  border-radius: 8px;
}

#invalid_server_id, #back_to_servers_list {
  margin: auto;
  text-align: center;
}

div[id^="servername"] {
  margin: auto;
  text-align: center;
  font-weight: bold;
  padding-bottom: 15px;
  font-size: 16px;
  color: #00B0FF;
}

#details_playerlist {
  margin: auto;
  overflow: auto;
  text-align: center;
  padding: 10px;
  background-color: #1E1E1E;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* list */
.contry_icon {
  border: none;
  width: 16px;
  height: 16px;
}

.details_icon, .status_icon_onl, .status_icon_nrs, .status_icon_onp {
  width: 16px;
  height: 16px;
  display: inline-block;
  background-size: cover;
}

.details_icon {
  background-image: url(../other/icon_details.gif) !important;
}

.status_icon_onl {
  background-image: url(../other/icon_online.gif) !important;
}

.status_icon_pen {
  width: 14px;
  height: 14px;
  background-color: gray;
  display: inline-block;
  border: 1px solid #424242;
}

.status_icon_nrs {
  background-image: url(../other/icon_no_response.gif) !important;
}

.status_icon_onp {
  background-image: url(../other/icon_online_password.gif) !important;
}

img.game_icon {
  width: 16px;
  border-radius: 2px;
}

#server_list_table {
  margin: auto;
  width: 90%;
  border-radius: 12px;
  margin-top: 30px;
  overflow: hidden;
  background-color: #1E1E1E;
  border-collapse: collapse;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#server_list_table tr {
  background-color: #282828;
}

#server_list_table th,
#server_list_table td {
  padding: 13px;
  border-bottom: 1px dotted #424242;
  color: #E0E0E0;
  text-align: center;
}

.connectlink_cell {
  text-align: right;
}

.servername_cell {
  text-align: left;
}

.servername_cell > div {
  width: 100%;
  overflow: hidden;
  height: 1.3em;
  line-height: 1.3em;
}

.servername_link {
  display: none;
}

.map_cell {
  white-space: nowrap;
  text-align: left;
}

.players_cell {
  white-space: nowrap;
  text-align: right;
}

.outer_bar {
  /* Adjust as needed */
}

.inner_bar {
  width: 100% !important;
}

.players_numeric {
  /* Adjust as needed */
}

*[class^='players_percent'] {
  display: none;
}

.details_cell,
.status_cell {
  white-space: nowrap;
  text-align: center;
}

.details_cell > a {
  text-decoration: none;
  color: #00B0FF;
}

#pages {
  width: fit-content;
  margin: 2.6em auto;
  font-size: 1.12em;
  text-align: center;
}

#pages a {
  padding: 5px;
  background-color: #282828;
  font-size: 1.3em;
  color: #00B0FF;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#pages a:hover {
  background-color: #333333;
  color: #82B1FF;
}

#pages span {
  padding: 10px;
}

#totals {
  width: fit-content;
  margin: auto;
  margin-top: 16px;
  text-align: center;
}

#totals > div {
  width: fit-content;
  background-color: #282828;
  padding: 15px;
  margin: 2px 0;
  display: inline-block;
  border-radius: 8px;
}

/* adaptiveness */

@media (max-width: 990px) {
  .map_cell {
    display: none;
  }
}

@media (max-width: 414px) {
  body {
    margin: 0;
  }

  #topmenu > li {
    padding: 10px 10px;
    font-size: 14px;
  }

  #server_list_table {
    width: 100%;
    margin: 0;
  }

  .servername_cell > div {
    width: 100%;
    overflow: hidden;
    line-height: 1em;
    font-size: larger;
    font-family: cursive;
    height: 3em;
  }

  img.game_icon {
    width: 32px;
  }

  .connectlink_cell,
  td.details_cell,
  .map_cell,
  .servername_nolink,
  .status_icon_nrs,
  .status_icon_onl,
  .status_icon_onp {
    display: none;
  }

  .servername_link {
    height: 3.5em;
    display: block;
    text-align: justify;
    font-size: 1.4em;
  }

  .servername_link > a {
    vertical-align: middle;
    display: block;
    margin: 0.5em 0.5em 0 0.5em;
    height: 100%;
    color: #E0E0E0;
  }

  #server_list_table td {
    padding: 10px;
  }

  #server_list_table .status_cell {
    padding: 2px;
  }

  #server_list_table .servername_cell {
    padding: 0;
  }

  #server_list_table tr.server_nrs {
    background-color: rgba(148, 0, 0, 0.2);
  }

  /* details */
  #gamelink {
    display: none;
  }

  .details_info {
    display: flex;
    flex-flow: column;
  }

  .details_info_column {
    margin: auto;
    order: 2;
    margin-top: 6px;
  }

  .details_info_column:nth-child(2) {
    order: 1;
  }

  .details_info_row {
    margin: 10px 0;
  }

  #details_playerlist {
    overflow: auto;
  }

  .table_head {
    font-weight: bold;
    display: none;
  }

  .settings_table td {
    padding: 0;
    text-align: left;
    display: inline;
  }

  .settings_table td:first-child {
    text-align: left;
    color: #ffcfa6;
  }

  .settings_table td:first-child:after {
    content: " =";
  }
}

