/* Core Stuff */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  line-height: 1.5;
  color: #606d6e;
  background: #000 url("../images/space3.jpeg");
  margin: 8px;
}

@font-face {
  font-family: "Incised Bold Cond";
  src: url("../fonts/Incised-901-Bold-Condensed.woff") format("woff");
  font-weight: 700;
}

@font-face {
  font-family: "Incised Nord";
  src: url("../fonts/Incised-901-Nord-BT.ttf");
}

@font-face {
  font-family: "Incised Roman";
  src: url("../fonts/Incised-901-Roman.woff") format("woff");
  font-weight: 400;
}

a {
  text-decoration: none;
  color: var(--link-color);
}

a:hover {
  color: var(--main-color);
}

a:visited {
  color: var(--link-color);
}
/*

@font-face {
  font-family: "Incised Light";
  src: url("../fonts/Incised-901-Light-BT.woff") format("woff");
  font-weight: 300;
}
*/

@font-face {
  font-family: "Decalotype";
  src: url("../fonts/Decalotype-Regular.woff2") format("woff2");
  font-weight: 400;
}

span.page-title {
  display: block;
  position: relative;
  color: inherit;
  font-family: "Incised Bold Cond";
  font-weight: 700;
  font-size: 1.8rem;
  text-transform: uppercase;
  text-align: left;
  margin: 16px 0;
}

:root {
  --link-color: #f9e132;
  --main-color: #f1f1f2;
}

/* TRMN menu */
#nav-wrapper a {
  line-height: 1.5;
}

.menu-item a:hover {
  color: #f9e132 !important;
}

.has-children a {
  display: flex;
  justify-content: space-between;
}

span.arrow {
   text-align: right;
}

#nav-wrapper .has-children > a:after {
  font-family: FontAwesome;
  position: absolute;
  display: inline-block;
  right: 8px;
}

#nav-wrapper .has-children > a.closed:after {
  content: "\f107";
}

#nav-wrapper .has-children > a.open:after {
  content: "\f105";
}

/*
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #454b4d;
}

a {
  color: #1f8cd6;
  text-decoration: none;
}

a:hover {
  color: #175e91;
}

pre {
  background: #f0f0f0;
  margin: 1rem 0;
  border-radius: 2px;
}

blockquote {
  border-left: 10px solid #eee;
  margin: 0;
  padding: 0 2rem;
}
*/

/* Utility Classes */
/*
.wrapper {
  margin: 0 3rem;
}

.padding {
  padding: 3rem 1rem;
}

.left {
  float: left;
}

.right {
  float: right;
}

.text-center {
  text-align: center;
}

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

.text-left {
  text-align: left;
}
*/

/* Content Styling */
/*
.header .padding {
  padding: 1rem 0;
}

.header {
  background-color: #1f8dd6;
  color: #eee;
}

.header a {
  color: #fff;
}

.header .logo {
  font-size: 1.7rem;
  text-transform: uppercase;
}

.footer {
  background-color: #eee;
}
*/

/* Menu Settings */
/*
.main-nav ul {
  text-align: center;
  letter-spacing: -1em;
  margin: 0;
  padding: 0;
}

.main-nav ul li {
  display: inline-block;
  letter-spacing: normal;
}

.main-nav ul li a {
  position: relative;
  display: block;
  line-height: 45px;
  color: #fff;
  padding: 0 20px;
  white-space: nowrap;
}

.main-nav > ul > li > a {
  border-radius: 2px;
}
*/

/*Active dropdown nav item */
/*
.main-nav ul li:hover > a {
  background-color: #175e91;
}
*/

/* Selected Dropdown nav item */
/*
.main-nav ul li.selected > a {
  background-color: #fff;
  color: #175e91;
}
*/

/* Dropdown CSS */
/*
.main-nav ul li {
  position: relative;
}

.main-nav ul li ul {
  position: absolute;
  background-color: #1f8dd6;
  min-width: 100%;
  text-align: left;
  z-index: 999;

  display: none;
}
.main-nav ul li ul li {
  display: block;
}
*/

/* Dropdown CSS */
/*
.main-nav ul li ul ul {
  left: 100%;
  top: 0;
}
*/

/* Active on Hover */
/*
.main-nav li:hover > ul {
  display: block;
}
*/

/* Child Indicator */
/*
.main-nav .has-children > a {
  padding-right: 30px;
}
.main-nav .has-children > a:after {
  font-family: FontAwesome;
  content: "\f107";
  position: absolute;
  display: inline-block;
  right: 8px;
  top: 0;
}

.main-nav .has-children .has-children > a:after {
  content: "\f105";
}

*/

/* TRMN Jubilee Theme Header */
img#logo {
  width: 140px;
  margin: auto 0;
}

div#header {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(46, 94, 156, 0.2);
  align-items: center;
}

div#header div#text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  width: 100%;
  max-width: 650px;
  line-height: 1.1;
}

div#header div#trmn {
  color: #f1f1f2;
  font-family: "Incised Nord";
  font-size: 2.6rem;
  text-transform: uppercase;
}

div#header div#official {
  color: #f1f1f2;
  font-family: "Incised Bold Cond";
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

div#header div#social {
  height: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

div#header > div#social > a > i {
  font-size: 1.4rem;
}

div#header > div#social > a > i:hover {
  color: var(--link-color);
}

div#header > div#social {
  height: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.social-icon > img {
  width: 24px;
}

.facebook > img,
.twitter > img,
.youtube > img {
  filter: invert(100%) hue-rotate(214deg);
}

.facebook > img:hover,
.twitter > img:hover,
.youtube > img:hover {
  filter: invert(50%);
  color: #ff0000;

}

@media only screen and (max-width: 810px) {
  div#header > div#trmn {
    font-size: 1.4rem;
  }

  div#header > div#trmn {
    font-size: 1.2rem;
  }

  div#header > img#logo {
    width: 120px;
  }
}

@media only screen and (max-width: 480px) {
  div#header > img#logo {
    width: 96px;
  }
}

/* TRMN Jubilee Main Content */
section#body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: #000;
  display: flex;
  height: 100%;
  min-height: 400px;
  margin: 0 auto;
  max-width: 850px;
}

div#outer-container {
  margin: 0 auto;
}

div#container {
  font-family: "Decalotype", Avenir, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--main-color);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

div#center {
  display: flex;
  height: 100%;
  min-height: 400px;
  width: 100%;
}

div#nav-wrapper {
  position: relative;
  width: 200px;
}

div#main-content {
  background-color: #000;
  position: relative;
  max-width: 650px;
  width: calc(100% - 201px);
  line-height: 1.25;
  padding: 0 20px;
  text-align: justify;
}

div#mobile-menu {
  display: none;
}

@media only screen and (max-width: 768px) {
  div#center {
    flex-direction: column;
  }

  div#nav-wrapper {
    width: 100%;
  }

  div#main-content {
    width: 100%;
  }

  div#mobile-menu {
    display: flex;
    justify-content: flex-end;
  }

  .hide-mobile {
    display: none;
  }
}

/* TRMN Jubilee Footer */
footer {
  width: inherit;
  display: flex;
  gap: 10px;
  position: relative;
  bottom: 0;
  padding: 0 20px;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(46, 94, 156, 0.2);
  max-width: 850px;
}

footer div.item-list {
  width: 32%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: "Incised Roman";
  max-width: 280px;
}

footer div.item-list a {
  text-decoration: none;
  color: #f9e132;
}

footer div.col-head {
  font-family: "Incised Bold Cond";
  color: #f1f1f2;
  text-transform: uppercase;
  font-size: 1.25rem;
  border-bottom: 1px solid #f1f1f2;
  padding: 5px 0 10px;
}
footer a#radio > img {
  max-width: 100%;
  width: inherit;
}

div#copy {
  color: rgba(241, 241, 242, 0.25);
  font-family: "Decalotype";
  padding: 0 10px;
}

footer div.donate {
  display: flex;
  margin-top: 2px;
}

footer div.donate > form {
  display: inline;
  margin-right: 10px;
}

/* TRMN Jubilee Navigation */
div#nav-wrapper {
  font-family: "Incised Bold Cond";
}

div#nav-wrapper li {
  list-style-type: none;
}

div#nav-wrapper ul {
  padding-left: 0;
}

div#nav-wrapper ul ul {
  padding-left: 12px;
}

div#nav-wrapper li a,
div#nav-wrapper li a:visited {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.1rem;
}

div#nav-wrapper li a:hover {
  color: var(--main-color);
}

/* TRMN Jubilee page-specific styles */
.sl-logo > img {
  width: 150px;
}

.sl-info-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.sl-info-block p:first-of-type {
  margin-top: 0;
}

.image-left {
  float: left;
  max-width: 175px;
  margin: 0 10px 10px 0;
}

div.peers {
  display: grid;
  column-gap: 1em;
  grid-row-gap: 2em;
  margin-bottom: 24px;
}

div.peers div.peer {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
}

div.peer div.holder,
div.peer div.land {
  font-weight: 700;
  color: #d4d4d4;
  line-height: 25.6px;
  text-align: center;
  padding: 6px;
  font-size: 1rem;
}

div.peer div.peerage-arms {
  flex-grow: 1;
}

div.peer div.peerage-arms img {
  max-width: 160px;
  max-height: 200px;
  margin: auto 0;
}

div.peer div.land {
  font-size: 1.2rem;
}

div.half {
  grid-template-columns: repeat(2, 1fr);
}

div.thirds {
  grid-template-columns: repeat(3, 1fr);
}

div.rank-table {
  width: 100%;

}

div.rank-table td {
  padding: 3px;
}

div.rank-table th {
  padding: 3px;
}

div.rank-table table {
  border-spacing: 3px;
  border-collapse: separate;
}

div.rank-table img {
  max-height: 100px;
}

div#ratings-table table {
  width: 450px;
}

div#ratings-table table td {
  vertical-align: top;
  padding-bottom: 1rem;
  width: 50%;
}

div#gsn-rank-table table {
  text-align: left;
}

div.media-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

div.media-card {
  padding: 10px;
  width: 250px;
  text-align: left;
  border: 1px solid white;
  border-radius: 10px;
  margin: 20px 20px 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

div.media-card-content {
  display: flex;
}

div.media-icon img {
  max-height: 100px;
  max-width: 50px;
}

div.media-details {
  padding-left: 10px;
}

div.media-description {
  font-size: .8rem;
}

div.media-name {
  margin-bottom: .5rem;
  font-weight: 700;
}

div.media-card-footer {
  display: flex;
  justify-content: flex-end;
}

div.media-card-footer button {
  padding: 4px 8px;
  color: #f1f1f2;
  background-color: #f9e132;
  border-radius: 4px;
  border: 0;
}

div.media-card-footer button a {
  color: #f1f1f2;
}

div#org-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

div#org-links > div > a > img {
  width: 100px;
}

@media only screen and (max-width: 600px) {
  footer {
    flex-direction: column;
  }

  footer div.item-list {
    width: 100%;
  }

  img#logo {
    max-width: 120px;
  }

  div.thirds {
    grid-template-columns: repeat(2, 1fr);
  }

  div.peer div.peerage-arms img {
    max-width: 100px;
    max-height: 150px;
    margin: auto 0;
  }

  div#header div#trmn {
    font-size: 1.1rem;
  }

  div#header div#official {
    font-size: 1rem;
  }
}
