* {
  color: #BBB;
  font-family: Verdana, sans-serif;
  font-size: 10pt;
}

html {
  height: 100%;
}

body {
  height: 100%;
  background-color: #201716;
  margin: 0;
}

@media (min-width: 481px) {
  body {
    background-image: url('bg_.webp');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
  }
}

#main {
  background-color: #1f1e1e;
  background-position: center top;
  background-size: 100%;
  margin: 0 auto;
  width: 75%;
  max-width: 1320px;
  box-shadow: 0px 0px 20px 10px #000;
  min-height: 100%;
  overflow: auto;
}

@media only screen and (max-width: 480px) {
  #main {
    width: 100% !important;
    background-image: url('background-image-mobile.webp');
  }
}

@media (min-width: 481px) {
  #main {
    background-image: url('background-image.webp');
  }
}

input, button, textarea, select {
  color: #BBB;
  background: none;
  border: solid dimgray 1px;
  font-weight: bold;
  /*font-size: 8pt;*/
  padding-left: 5px;
  outline: none !important;
  max-width: 100%;
}

input, button {
  cursor: pointer;
}

input[type=number][size="3"] {
  width: 5ch;
}

input[type=number][size="5"] {
  width: 7ch;
}

input[type=number][size="10"] {
  width: 12ch;
}

a {
  text-decoration: none;
  color: #FFF;
}

a:hover {
  color: #C2BCA1;
  transition: 0.2s;
}

a.rank-admin {
  color: #4D94FF;
}

a.rank-admin:hover {
  color: #4D94FF;
  filter: brightness(1.25);
}

a.rank-staff {
  color: #33AA33;
}

a.rank-staff:hover {
  color: #33AA33;
  filter: brightness(1.25);
}

img {
  max-width: 100%;
}

body, iframe, select, textarea {
  margin: 0;
}

div.login1 {
  position: absolute;
  left: 850px;
  top: 40px;
}

@media only screen and (min-width: 1900px) {
  div.login1 {
    left: 49%;
  }
}

.join {
  display: block;
  margin-top: 5px;
  text-align: center;
  line-height: 2;
}

.join a {
  border-radius: 5px;
  display: inline-block;
  font-weight: bold;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.1);
}

.join a:hover {
  color: #FFF;
  text-decoration: underline;
}

@media only screen and (max-width: 1630px) {
  div.login1 {
    position: static;
    width: 85%;
    max-width: 500px;
    margin: 0 auto;
  }
  #logo {
    text-align: center !important;
    margin-left: 0 !important;
  }
}

@media only screen and (max-width: 1450px) {
  .login1 span, .login1 a, .login1 input {
    font-size: 14px !important;
  }
  .button {
    font-size: 12pt !important;
  }
  .forms2, .forms2 input, .forms2 submit {
    font-size: 10pt !important;
  }
  #main {
    width: 90%;
  }
}

#menu {
  height: 50px;
  padding-left: 0;
}

#menu li {
  background: rgba(0, 0, 0, 0.2);
  padding: 10px 15px;
  margin-top: 10px;
}

.option {
  list-style-type: none;
  float: left;
  font-size: 17px;
  margin-left: 10px;
}

.option a {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  color: #BBB;
  text-transform: uppercase;
}

.option a:hover {
  color: #FFF;
}

div.foot {
  text-align: center;
  margin-top: 15px;
}

.foot nav {
  margin: 15px 15px 5px 15px;
}

.foot-info {
  margin: 5px 15px 15px 15px;
}

div.pagename {
  text-align: center;
  font-weight: bold;
  margin: 30px 15px 15px 15px;
  font-size: 16px;
  font-style: italic;
}

div.text {
  text-align: justify;
  font-style: italic;
  margin: 15px;
  padding: 15px;
  line-height: 18px;
}

.homepage-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin: 15px 0;
}

.homepage-gallery figure {
  margin: 0;
}

@media (min-width: 600px) {
  .homepage-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .homepage-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

div.mail {
  margin-left: 25px;
  margin-top: 15px;
}

div.newstop {
  text-align: center;
  font-weight: bold;
}

div.news {
  text-align: justify;
  margin-left: 15px;
  margin-right: 15px;
  margin-bottom: 15px;
  padding: 15px;
  font-style: italic;
}

#register {
  width: 100%;
  max-width: 520px;
  margin: 10px auto 0 auto;
}

#register fieldset {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

#register legend {
  margin: 0;
  padding: 0;
}

#register .form-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

#register .form-label {
  flex: 0 0 auto;
  min-width: 140px;
  text-align: right;
  padding-right: 15px;
}

#register .form-field {
  flex: 1 1 100%;
}

#register .form-field-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

#register .form-field-inline input[type="text"] {
  width: 100%;
}

#register .form-field-inline input[type="button"] {
  width: auto;
  justify-self: start;
}

#register .form-row-full {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

#register .form-row-full .form-field {
  width: 100%;
}

#register .form-row-full em {
  display: block;
  width: 100%;
  text-align: center;
}

#register .form-row-center {
  justify-content: center;
  text-align: center;
}

#register .form-row-center .form-field {
  width: 100%;
}

#register .form-row-center.form-row-full {
  align-items: center;
}

#register .form-row-center.form-row-full .form-field {
  text-align: center;
}

#register .form-row-spaced {
  margin-top: 15px;
}

#register .form-row-tight {
  margin-top: 5px;
}

#register .form-field input[type="text"],
#register .form-field input[type="email"],
#register .form-field input[type="password"] {
  width: 100%;
}

#register .form-field input[type="checkbox"] {
  width: auto;
}

.register-info {
  border: 1px dotted #CCC;
  padding: 10px;
  text-align: center;
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  #register {
    width: 100%;
  }

  #register .form-row {
    flex-direction: column;
    align-items: stretch;
  }

  #register .form-label {
    flex: none;
    text-align: left;
    padding-right: 0;
  }

  #register .form-field,
  #register .form-row-center .form-field,
  #register .form-row-full .form-field {
    width: 100%;
  }

  #register .form-row-center {
    align-items: center;
  }
}

div.news2 {
  text-align: center;
  margin-bottom: 10px;
  border-bottom: 1px dashed dimgray;
  font-style: normal;
}

div.menu3 {
  display: inline;
  margin-left: 30%;
}

div.text2 {
  text-align: justify;
  padding: 15px;
  margin: 15px;
  line-height: 18px;
}

div.privacy {
  width: 75%;
  text-align: justify;
  padding: 15px;
  margin: 15px auto;
  line-height: 18px;
}

div.forms {
  text-align: center;
  margin-bottom: 5px;
}

div.text3 {
  text-align: justify;
  font-style: italic;
  margin: 15px;
  padding: 15px;
}

div.forms2 {
  text-align: right;
  margin-bottom: 5px;
  margin-left: 25%;
  width: 30%;
}

input:hover, input:focus, button:hover, select:hover, select:focus {
  background: #7B1D1D;
}

span.login {
  display: block;
  margin-bottom: 5px;
  text-align: left;
}

span.login2 {
  display: block;
  margin-bottom: 5px;
  text-align: center;
}

span.login3 {
  width: 50px;
  display: inline-block;
}

/* Two-column flexbox layout for not-logged-in pages */
#homepage_columns {
  display: flex;
  width: 95%;
  margin: 0 auto;
  gap: 10px;
}

#homepage_content {
  flex: 1 1 auto;
  min-width: 0;
}

#players_online {
  flex: 0 0 250px;
  min-width: 0;
}

.online {
  padding: 10px 0;
  text-align: center;
}

.online > div {
  padding: 1px 1px;
}

.player-stats {
  text-align: center;
  margin-top: 10px;
}

#online_bottom {
  padding: 0 15px;
  text-align: center;
}

h1 {
  font-size: 20px;
  text-align: center;
  padding: 5px;
  line-height: 1.3;
  font-style: italic;
}

h2 {
  font-size: 16px;
  font-style: italic;
}

h3 {
  /*font-size: 16px;*/
  font-style: italic;
  margin: 5px 0;
}

.akapit {
  padding-left: 50px;
}

#logo {
  padding: 25px 50px;
}

#logo img {
  max-width: 100%;
}

@media only screen and (max-width: 700px) {
  #logo {
    padding: 10px;
  }
}

@media only screen and (max-width: 1199px) {
  #players_online {
    display: none;
  }
}

@media only screen and (max-width: 1199px) {
  .option {
    float: none;
    margin: 10px;
  }
  #menu {
    display: none;
    height: auto;
    padding: 0;
    margin: 0;
  }
  #menu ul {
    padding: 0;
  }
  div.text {
    width: 85%;
  }
  div.news {
    width: 85%;
  }
}

hr.hr {
  border: 0;
  margin-bottom: 0px;
  height: 1px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(255, 255, 255, 0.75), rgba(0, 0, 0, 0));
}

p.overlilogin {
  font-size: 11px;
  text-align: center;
  color: #BBB;
  margin: 0px;
}

p.overlibacc {
  text-align: center;
  font-size: 12px;
  font-style: italic;
  color: #BBB;
  margin: 0px;
}

p.overlibtext {
  line-height: 120% !important;
  text-align: center;
  font-size: 10px;
  color: #BBB;
}

img.overlibimg {
  max-width: 150px;
  margin-top: 5px;
}

table.tabelkaoverlib {
  background: #0d0d0dEE;
  border: 1px solid #383838;
}

div.profile {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid #383838;
  width: auto;
  margin: 15px 25%;
  padding: 15px;
  line-height: 1.5;
  overflow: auto;
}

.logout {
  text-align: center;
  width: auto;
  padding: 15px;
  display: block;
  margin: 0 25%;
}

@media only screen and (max-width: 1199px) {
  div.profile {
    margin: 15px;
  }
  div.text {
    margin: 15px auto;
  }
  div.news {
    margin: 15px auto;
  }
  div.logout {
    margin: 0 15px;
  }
}

@media only screen and (min-width: 1000px) {
  body {
    padding: 0 50px;
  }
}

@media only screen and (min-width: 1200px) {
  #online_bottom {
    display: none;
  }
  .hamburger1 {
    display: none !important;
  }
}

.background {
  background: rgba(0, 0, 0, 0.2);
  /*background: #0a0e10EE;*/
  padding: 15px;
  border: 1px solid #383838;
  /*box-shadow: 0 0 150px #00000099 inset;*/
  overflow: auto;
}

.info {
  width: 250px;
  display: block;
  margin: 5px auto;
  text-align: center;
  line-height: 1.5;
  font-style: italic;
  padding: 15px;
  border: 1px solid #383838;
  box-shadow: 0 0 10px #00000099 inset;
  background-color: #38383866;
}

.textarea {
  width: 70%;
  min-width: 250px;
}

.advantage {
  text-align: center;
  display: table-cell;
  width: 500px;
}

@media only screen and (max-width: 1199px) {
  .advantage {
    display: block;
    width: auto !important;
    margin-bottom: 20px;
  }
  .advantage:last-child {
    margin-bottom: 0;
  }
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  z-index: 1;
  list-style-type: none;
  margin-left: -20px;
  padding-left: 0;
  margin-top: 10px;
  min-width: 500px;
}

.dropdown-content li {
  padding: 5px 10px !important;
  margin-top: 0 !important;
  background: rgba(0, 0, 0, 0.5) !important;
  float: left;
}

.dropdown-content li a {
  font-size: 16px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

#wylosuj {
  margin-left: 10px;
}

.glowing-border {
  outline: none;
  box-shadow: 0 0 10px #402900;
  background-color: #40290025;
}

/* Hamburger */
.hamburger1 {
  height: 45px;
  margin: 10px;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  justify-items: center;
  z-index: 120;
}

.hamburger1 div {
  background-color: #BBB;
  position: relative;
  width: 40px;
  height: 5px;
  margin-top: 7px;
  transition: all 0.2s ease-in-out;
}

#toggle1 {
  display: none;
}

#toggle1:checked + .hamburger1 .top {
  transform: rotate(-45deg);
  margin-top: 22.5px;
}

#toggle1:checked + .hamburger1 .mid {
  transform: rotate(45deg);
  margin-top: -5px;
}

#toggle1:checked + .hamburger1 .bottom {
  transform: scale(0);
}

#toggle1:checked ~ nav #menu {
  display: block !important;
}

.shadow {
  box-shadow: 0px 0px 5px 2px #000;
}

.shine {
  display: block;
  overflow: hidden;
  position: relative;
}

.shine:before {
  pointer-events: none;
  content: '';
  position: absolute;
  top: 0;
  left: -100px;
  width: 50px;
  height: 100%;
  transform: skewX(-45deg);
  animation-name: slide;
  animation-duration: 3s;
  animation-timing-function: ease-in-out;
  animation-delay: .3s;
  animation-iteration-count: infinite;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.01) 5%,
    rgba(255, 255, 255, 0.05) 15%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.05) 85%,
    rgba(255, 255, 255, 0.01) 95%
  );
}

@keyframes slide {
  0% {
    left: -100px;
    top: 0;
  }
  100% {
    left: 1000px;
    top: 0;
  }
}

.challange {
  outline: none;
  box-shadow: inset 0 0 10px #770800 !important;
}

.wanted-poster {
  width: 280px;
  padding: 30px;
  margin: 20px auto;
  text-align: center;
  background-image: url('images/wanted.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  min-height: 260px;
}

.wanted-title {
  font-size: 17px;
  font-weight: bold;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}

.wanted-frame {
  border: 3px solid #3b2e1a;
  padding: 0;
  display: inline-block;
  justify-content: center;
  background-color: transparent;
}

.wanted-img {
  width: 100%;
  max-height: 150px;
  display: block;
  filter: sepia(0.6) brightness(0.9) contrast(1.1) saturate(0.6);
}

.wanted-info {
  font-size: 15px;
  line-height: 1.4;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.3);
}

.wanted-poster,
.wanted-poster * {
  font-family: 'Georgia', serif !important;
  color: #3b2e1a !important;
}

/* DUNGEON GENERATOR */
.tool-wrap {
  padding: 10px;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (max-width: 980px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid #383838;
  padding: 12px;
}

.panel .row {
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel label {
  min-width: 130px;
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 0 0;
}

.swatch {
  width: 12px;
  height: 12px;
  display: inline-block;
  border: 1px solid #383838;
}

.out {
  margin-top: 10px;
}

canvas {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #383838;
  box-shadow: 0 0 5px #000;
  background: #0d0d0d;
}

.out textarea {
  width: 100%;
  min-height: 160px;
}

.rank-icon {
  width: 10px;
  height: 10px;
  object-fit: contain;
  vertical-align: baseline;
}
