:root {
  color-scheme: dark;
}

body {
  background-color: var(--background-dark);
  margin: 0;
  font-family: Ysabeau;
  color: var(--accent-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: inherit
}

h1 {
  padding-top: 1rem;
  padding-bottom: 2rem;
  font-size: 3.75rem;
  line-height: 1;
}

::selection {
  background: var(--detail-gray);
}

::-moz-selection {
  background: var(--detail-gray);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #2c2c2e #1e1e1e;
}

@font-face {
  font-family: 'Aetherius';
  src: url('/assets/fonts/aetherius.ttf') format('truetype');
  src: url('/assets/fonts/aetherius.woff2') format('woff2');
}

@font-face {
  font-family: 'Imperator';
  src: url('/assets/fonts/imperator-webfont.ttf') format('truetype');
  src: url('/assets/fonts/imperator-webfont.woff2') format('woff2');

}

@font-face {
  font-family: 'Ysabeau';
  src: url('/assets/fonts/ysabeau-office-regular.ttf') format('truetype');
  src: url('/assets/fonts/ysabeau-office-regular.woff2') format('woff2');

}

.font-bold {
  font-weight: 700;
}

.text-accent {
  color: rgb(232 220 209);
}

.paddingX {
  padding-left: 1rem;
  padding-right: 1rem;
}

.paddingY {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.paddingYL {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.marginLB {
  margin-bottom: 30px;
}

.marginLT {
  margin-top: 2rem;
}

.marginT {
  margin-top: .5rem;
}

.marginL {
  margin-left: 2rem;
}

.marginL-auto {
  margin-left: auto;
}

.hover-yellow:hover {
  color: rgb(234 179 8);
  cursor: pointer;
}

tr.row-background .hover-yellow:hover {
  filter: brightness(70%);
}

.yellow {
  color: rgb(234 179 8);
}

.contentWrapper {
  width: 1200px;
}

.headerContentWrapper {
  width: 100%;
  position: fixed;
  z-index: 33;
  height: 80px;
  background-color: var(--background-dark);
}

.w-full {
  width: 100%;
}

.w-side {
  width: 30rem;
  position: fixed;
  left: 0;
  padding-left: 250px;
}

.w-main {
  width: calc(100vw - 30rem);
  padding-left: 30rem;
}

.w-8 {
	width: 2rem;
} 

.w-33 {
  width: 33%;
}

.w-66 {
  width: 66%;
}

.w-50 {
  width: 50%;
}

.w-logo {
  width: 120px;
}

img,
video {
  max-width: 100%;
  height: auto;
}

.titleFont {
  font-family: Aetherius;
  letter-spacing: .01em;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  transition-duration: .15s;
}

.duration-200 {
  animation-duration: .2s;
  transition-duration: .2s;
}

.bg-orange-600 {
	--tw-bg-opacity: 1;
	background-color: rgb(234 88 12/var(--tw-bg-opacity,1));
}

.hover\:text-orange-400:hover {
	--tw-text-opacity: 1;
	color: rgb(251 146 60/var(--tw-text-opacity,1));
}

.hover\:bg-orange-700:hover {
	--tw-bg-opacity: 1;
	background-color: rgb(194 65 12/var(--tw-bg-opacity,1));
}

.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255/var(--tw-text-opacity, 1));
}

.font-bold {
  font-weight: 700;
}

.py-1 {
  padding-top: .25rem;
  padding-bottom: .25rem;
}

.px-3 {
  padding-left: .75rem;
  padding-right: .75rem;
}

.px-4 {
	padding-left: 1rem;
	padding-right: 1rem;
}

.rounded {
  border-radius: .25rem;
}

.gap-8 {
  gap: 2rem;
}

.flex {
  display: flex
}

.flex1 {
  flex: 1
}

.flex-row {
  flex-direction: row
}

.flex-col {
  flex-direction: column
}

.flex-col-reverse {
  flex-direction: column-reverse
}

.flex-wrap {
  flex-wrap: wrap
}

.items-start {
  align-items: flex-start
}

.items-end {
  align-items: flex-end
}

.items-center {
  align-items: center
}

.items-stretch {
  align-items: stretch
}

.justify-start {
  justify-content: flex-start
}

.justify-end {
  justify-content: flex-end
}

.justify-center {
  justify-content: center
}

.justify-between {
  justify-content: space-between
}

.centerT {
  text-align: center;
}

.rightT {
  text-align: right;
}

.leftT {
  text-align: left;
}

table {
  font-family: Ysabeau;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 14px;
  padding-bottom: 1rem;
  height: fit-content;
  white-space: nowrap;
}

table tr {
  height: 30px;
  background-size: 100% 100%;
}

table tr:not(.large) th:first-child:not(.Lcell),
table tr:not(.large) td:first-child:not(.Lcell) {
  padding-left: 20px;
}

table tr:not(.large) th:last-child:not(.Lcell),
table tr:not(.large) td:last-child:not(.Lcell) {
  padding-right: 20px;
}

table td {
  padding: 0 5px 2px;
}

.tableLink:hover {
  color: #daa520;
  cursor: pointer;
}

table th {
  font-weight: 300;
  text-align: left;
  padding: 0 5px;
}
table.centerT th {
  text-align: center;
}

tr.large .Lcell {
  font-size: 20px;
}

tr.large {
  height: 60px;
}

.large.realm img {
  height: 25px;
}

.Lcell img {
  padding: 5px 0 0;
}

table th.tableStat {
  width: 10rem;
}

#KillStatsTable .guildName,
#KillStatsTable .className {
  font-size: 12px;
}

#heraldTable.player .w-main table{
  min-width: 525px;
}

th.realmName {
  padding: 0;
}

.realm img {
  padding: 5px 0 0;
}

table td.Lcell {
  font-family: 'Aetherius', sans-serif;
  letter-spacing: 0.05em;
  text-align: center;
  background-size: 100% 100%;
  min-width: 50px;
  padding: 0;
}

table td.level {
  font-size: 18px;
}

.select-items .Midgard {
  background-color: #12141c;
}

.select-items .Hibernia {
  background-color: #121c16;
}

.select-items .Albion {
  background-color: #1d1515;
}

.mid {
  color: var(--mid);
}

.hib {
  color: var(--hib);
}

.alb {
  color: var(--alb);
}

.w-side tr.row-background.Midgard {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="15"><polygon points="10,1 190,1 200,7.5 190,14 10,14 0,7.5" fill="%231a1e2a" /></svg>');
}

.w-side tr.row-background.Hibernia {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="15"><polygon points="10,1 190,1 200,7.5 190,14 10,14 0,7.5" fill="%231a2a1f" /></svg>');
}

.w-side tr.row-background.Albion {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="15"><polygon points="10,1 190,1 200,7.5 190,14 10,14 0,7.5" fill="%232a1a1a" /></svg>');
}

tr.row-background.Midgard {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="10"><polygon points="10,1.3 990,1.3 1000,5 990,8.7 10,8.7 0,5" fill="%231a1e2a" /></svg>');
}

tr.row-background.Hibernia {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="10"><polygon points="10,1.3 990,1.3 1000,5 990,8.7 10,8.7 0,5" fill="%231a2a1f" /></svg>');
}

tr.row-background.Albion {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="10"><polygon points="10,1.3 990,1.3 1000,5 990,8.7 10,8.7 0,5" fill="%232a1a1a" /></svg>');
}

.Midgard .Lcell {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="30"><polygon points="10,2 50,2 60,15 50,28 10,28 0,15" fill="%23232b41" /></svg>');
}

.Hibernia .Lcell {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="30"><polygon points="10,2 50,2 60,15 50,28 10,28 0,15" fill="%23233b2b" /></svg>');
}

.Albion .Lcell {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="30"><polygon points="10,2 50,2 60,15 50,28 10,28 0,15" fill="%23381f1f" /></svg>');
}

.race.Lcell {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="30"><polygon points="10,2 50,2 60,15 50,28 10,28 0,15" fill="%23000000" /></svg>');
}

tr.row-background.Midgard.large {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="10"><polygon points="10,2.9 990,2.9 1000,5 990,7.1 10,7.1 0,5" fill="%231a1e2a" /></svg>');
}

tr.row-background.Hibernia.large {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="10"><polygon points="10,3 990,3 1000,5 990,7 10,7 0,5" fill="%231a2a1f" /></svg>');
}

tr.row-background.Albion.large {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="10"><polygon points="10,3 990,3 1000,5 990,7 10,7 0,5" fill="%232a1a1a" /></svg>');
}

.Midgard .Name.Lcell {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="30"><polygon points="10,2 190,2 200,15 190,28 10,28 0,15" fill="%23232b41" /></svg>');
}

.Hibernia .Name.Lcell {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="30"><polygon points="10,2 190,2 200,15 190,28 10,28 0,15" fill="%23233b2b" /></svg>');
}

.Albion .Name.Lcell {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="30"><polygon points="10,2 190,2 200,15 190,28 10,28 0,15" fill="%23381f1f" /></svg>');
}

.Midgard .icon.race.Lcell {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="30"><polygon points="10,2 50,2 60,15 50,28 10,28 0,15" stroke-width="1" stroke="%23232b41" /></svg>');
}

.Hibernia .icon.race.Lcell {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="30"><polygon points="10,2 50,2 60,15 50,28 10,28 0,15" stroke-width="1" stroke="%23233b2b" /></svg>');
}

.Albion .icon.race.Lcell {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="30"><polygon points="10,2 50,2 60,15 50,28 10,28 0,15" stroke-width="1" stroke="%232a1a1a" /></svg>');
}

tr.row-background:hover,
tr:not(.row-background) .Lcell:hover {
  filter: brightness(150%);
}

#hardcore tr:not(.row-background) .Lcell:hover {
  filter: brightness(100%);
}

.Lcell:hover .hover-yellow:hover {
  filter: brightness(70%);
}

.realm img {
  height: 15px;
  width: auto;
  display: unset;
}

.large .realm img {
  height: 25px;
}

.large .className img {
  padding: 3px 0 0 0;
}

.Lcell.icon img {
  height: 40px;
  width: auto;
}

.icon img {
  height: 20px;
  width: auto;
  min-width: 20px;
}

.hover-yellow:hover img {
  transform: scale(115%);
  filter: brightness(120%);
}

td.icon {
  text-align: right;
  padding: 2px 0 0 0;
}

#filters {
  padding-bottom: 5px;
  background-color: var(--background-dark);
  position: sticky;
  top: 80px;
  z-index: 9;
  /* display: flex;
  flex-direction: column; */
}

th.highlight,
td.highlight {
  background-color: rgba(213, 213, 213, 0.05);
  color: var(--accent-yellow);
}

.Name.Lcell {
	font-size: 18px;
	padding: 0 10px;
}

.duration-200 {
  transition-duration: .2s;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  transition-duration: .15s;
}

/* main parts */
input[type="text"],
textarea {
  background-color: rgb(0 0 0);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex: 1;
}

#main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

#header {
  position: relative;
  padding: 0.5rem 1rem;
  width: calc(1100px - 2rem);
  background-color: rgb(0 0 0);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  justify-content: center;
  top: 20px;
  margin: auto;
}

.menu {
  margin-left: 2rem;
  color: rgb(163 163 163);
  margin-right: auto;
  margin-top: 0.5rem;
}

#content {
  padding-top: 80px;
}

#options {
  width: 240px;
  margin-right: 1rem;
  height: 100vh;
  overflow: auto;
  position: fixed;
  margin-top: 0;
  background-color: var(--background-dark);
  padding-top: 20px;
  z-index: 400;
  top: 0;
  border-right: 2px solid var(--background-light);
}

#search {
  padding: 10px 15px;
  border: 1px solid var(--detail-gray);
  border-radius: 5px;
  margin: 0 5px;
  background-color: var(--background-light);
  color: var(--accent-light);
  outline: 0;
  flex: 1 1 auto;
  height: 20px;
}

#mainWrap {
  padding-left: 250px;
  width: calc(99vw - 250px);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.pageTitle {
  font-weight: 500;
  font-size: 25px;
  line-height: 30px;
  margin: 0 auto;
  padding: 15px 15px;
}

#filters .subMenuItem {
  flex: 1;
  position: relative;
}

#filters details .accordion-content {
  position: absolute;
  background-color: var(--background-light);
  margin-top: 5px;
  left: 0;
  right: 0;
  z-index: 6;
  overflow: auto;
  max-height: calc(100vh - 145px);
}

#statsTable tr:first-child {
  position: sticky;
  top: 145px;
  background-color: var(--background-dark);
  z-index: 1;
}

#members tr:first-child {
  position: sticky;
  top: 5px;
  background-color: var(--background-dark);
  z-index: 1;
}

#announcement {
  display: flex;
  flex-direction: column;
  GAp: 10px;
  margin: 15px 10px;
}

.announcement {
  flex: 1;
  padding: 10px 15px;
  border-radius: 10px;
  background-color: rgb(0 0 0);
}

.announcement.neutral {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.announcement.notice {
  border: 1px solid #eab1076d;
  color: var(--accent-yellow);
}

.announcement.warning {
  border: 1px solid #ea070777;
  color: #ea0707;
}

#footer {
  gap: 4rem;
  margin: 1rem 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: end;
}

/* sidebar menu */
.subMenuItem {
  margin: 15px 10px 5px;
  padding: 0;
}

#options .subMenuItem:last-child {
  margin-bottom: 2rem;
}

.emblemSvg {
  max-width: 200px;
  min-height: 100px;
  max-height: calc(100vh - 550px);
}

.social img {
  padding-left: 90px;
}

.subMenuHeader {
  padding: 10px 15px;
  height: 20px;
  display: block;
  cursor: pointer;
  list-style: none;
  border-radius: 10px;
}

summary.subMenuHeader {
  background-color: var(--background-light);
  color: var(--accent-light);
}

input:focus {
  outline: none;
  box-shadow: none;
  border: 1px solid var(--detail-gray);
}

summary.subMenuHeader:hover {
  background-color: var(--detail-gray);
}

input[type="text"].subMenuHeader:hover {
  border: 1px solid var(--accent-light);
  ;
}

input[type="text"].subMenuHeader {
  color: var(--accent-light);
}

details summary::marker {
  display: none;
}

details summary::after {
  content: "";
  top: 5px;
  float: right;
  border: 10px solid transparent;
  border-color: var(--detail-gray) transparent transparent transparent;
  position: relative;
}

details[open] summary::after {
  border-color: transparent transparent var(--detail-gray) transparent;
  top: -5px;
}

details .accordion-content {
  padding: 5px 0 10px 0;
  border-radius: 10px;
}

.accordion-content>.realmGroup {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.accordion-link {
  padding: 2px 10px 0 25px;
  font-size: 14px;
}

summary.selection {
  display: flex;
  justify-content: space-between;
  white-space: nowrap;
  gap: 5px;
}

summary.selection .icon,
.accordion-link .icon {
  height: 18px;
  vertical-align: middle;
}

summary.selection .icon {
  margin-top: 2px;
}

summary.selection .subItem:nth-child(2) {
  margin-left: auto;
}

.accordion-link .icon {
  margin: -4px 0 0 auto;
}

form.subMenuItem {
  display: flex;
}

details {
  max-height: 1000px;
}

.accordion-link a {
  width: 100%;
  display: block;
}

.accordion-link:hover {
  color: rgb(234 179 8);
  cursor: pointer;
  border-radius: 10px;
}

#options .accordion-link:hover {
  background-color: #22211f;
}

#filters .accordion-link:hover {
  background-color: #313030;
}

.radio-link.subMenuHeader {
  padding: 10px 5px;
}

.radio-link {
  font-size: 14px;
  flex: 1;
  text-align: center;
}

.radio-group {
  display: flex;
  background-color: rgb(0 0 0);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.radio-link.checked {
  background-color: var(--background-light);
  color: var(--accent-light);
}

/* ----------------------------------------------- menu toggle ----------------------------------------------- */
.menu-toggle {
  display: none;
}

.hamburger {
  font-size: 24px;
  cursor: pointer;
  display: none;
}

.sidebar-toggle {
  display: none;
}

.sidebar-hamburger {
  display: none;
  font-size: 20px;
  color: var(--accent-light);
  border: none;
  cursor: pointer;
  z-index: 500;
  height: fit-content;
  position: fixed;
  top: 23px;
  padding: 10px 10px 15px;
}

.sidebar-toggle:checked~.sidebar-hamburger {
  left: 239px;
}

/* ----------------------------------------------- announcement ----------------------------------------------- */

#announcement~#heraldTable .w-side {
  position: relative;
  padding-left: 0;
}

#announcement~#heraldTable .w-main {
  padding-left: 0;
}

/* ----------------------------------------------- charts ----------------------------------------------- */

.chart {
	background-color: #1c1615;
	border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  flex: 1;
}

.chartContainer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chart .text-accent {
  text-align: right;
}

/* ----------------------------------------------- media ----------------------------------------------- */

@media (max-width:1800px) {
  .sidebar-hamburger {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .sidebar-toggle:checked~.sidebar {
    display: flex;
  }

  #mainWrap {
    padding-left: 0;
    width: 100vw;
  }

  #filters {
    position: sticky;
    left: 0;
  }

  .sidebar-hamburger {
    background-color: var(--background-dark);
    border: 2px solid var(--background-light);
    border-radius: 0 10px 10px 0;
    border-left: 0;
  }

  .w-side {
    padding-left: 0;
  }

  .player#heraldTable,
  .guild#heraldTable {
    overflow-x: unset;
  }

  .w-side {
    overflow: auto;
    height: calc(100vh - 140px);
  }

  .accordion-content>.realmGroup {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1380px) {
  #heraldTable {
    display: block;
    overflow-x: auto;
  }

  .w-side {
    width: 100%;
    position: sticky;
    height: auto;
  }

  .w-main {
    width: 100vw;
    padding-left: 0;
    overflow: auto;
  }

  #members tr:first-child {
    top: 0px;
  }

  #statsTable tr:first-child {
    top: 0px;
  }

  .emblemSvg {
    height: auto;
  }
}

@media (max-width: 1180px) {
  #header .w-logo {
    margin-left: 35px;
  }

  @media (max-width: 1100px) {
    .hamburger {
      display: flex;
    }

    .menu {
      display: none !important;
      position: absolute;
      top: 58px;
      left: 0;
      width: 100vw;
      background: rgb(0 0 0);
      border-bottom: 1px solid rgba(255, 255, 255, 0.2);
      flex-direction: column;
      gap: 0;
      padding: 1rem 0;
      z-index: 1000;
    }

    #header {
      flex-wrap: wrap;
    }

    .menu>div {
      margin: 0.5rem 1rem;
    }

    .menu>div:last-child {
      border-bottom: none;
    }

    .sidebar-hamburger {
      top: 10px;
    }

    .menu-toggle:checked~.menu {
      display: flex !important;
    }

    #header {
      width: calc(100vw - 2rem);
      border-radius: 0;
      top: 0;
      right: 0;
      left: 0;
      justify-content: space-between;
    }

    .menu {
      margin: 0;
    }

    #content {
      padding-top: 60px;
    }

    /* #mainWrap {
	  height: calc(100vh - 55px);
  } */
    #filters {
      top: 56px;
    }

    #filters details .accordion-content {
      grid-template-columns: repeat(2, 1fr);
    }

  }

  .headerContentWrapper {
    height: 60px;
  }

  .accordion-content>.realmGroup {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #filters {
    flex-direction: column;
  }

  .player #statsTable tr:first-child {
    top: 188px;
  }
}

/* ----------------------------------------------- variables ----------------------------------------------- */

:root {
  --accent-color: rgb(57, 55, 44);
  --accent-yellow: rgb(234, 179, 8);
  --accent-light: rgb(232 220 209);
  --background-dark: #181312;
  --background-light: #222121;
  --detail-gray: rgb(83, 78, 78);
  --hexagon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="30"><polygon points="10,0 90,0 100,15 90,30 10,30 0,15" fill="%2339372c" /></svg>');
  --mid: #2b48b9;
  --hib: #17963b;
  --alb: #da2929;
}