/* ----------
/ - NEW CSS -
/ -------- */
/* -----------------
/ ------ FONTS -----
/ --------------- */
@font-face {
  font-family: "gunplay";
  src: url("/gunplay.otf") format("opentype");
}

@font-face {
  font-family: "gunplay3d";
  src: url("/gunplay3d.otf") format("opentype");
}

/* -----------------
/ ----- SYMBOLS ----
/ --------------- */
.tick {
  color: green;
}
.cross {
  color: red;
}

/* -----------------
/ --- BASE RULES ---
/ --------------- */
* {
  /* width & height include padding + borders, by default */
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
legend,
fieldset {
  margin: 0px;
  padding: 0px;
}

body {
  font-family: Arial, sans-serif;
  background-color: #141516;
  color: #d0d0d0;
  border: 2px solid #2b2b2b;
}

a {
  color: #39ff14;
}

table {
  width: fit-content;
  text-align: center;
  border-collapse: collapse;
}

td,
th {
  border: 2px solid #2b2b2b;
  padding: 10px;
}

/* -----------------
/ ----- HEADER -----
/ --------------- */
.header {
  background: #0b0c0d;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #2b2b2b;
  border-top: 2px solid #2b2b2b;
}

.header__img {
  flex: 0 1 300px;
  min-width: 0;
  width: 100%;
  max-width: 300px;
  height: auto;
}

.header__title {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 20px;
}

.header__title-h1 {
  margin-bottom: 20px;
}

.header__title-h3 {
  font-style: italic;
}

.header__panel {
  flex: 0 1 auto;
  min-width: 0;
  margin-right: 20px;
  text-align: center;
}

/* ----------------
/ ---- NAV BAR ----
/ -------------- */

.nav {
  width: 100%;
  background-color: #0b0c0d;
  border-bottom: 2px solid #2b2b2b;
}

.nav__menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: block;
  padding: 10px 14px;
  margin: 0;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;

  display: none;
  min-width: 160px;
  margin: 0;
  padding: 0;

  list-style: none;
  background-color: #141516;
  border: 2px solid transparent;
}

/* Open dropdown */
.nav__item:hover > .nav__dropdown,
.nav__item--open > .nav__dropdown {
  display: block;
  border-color: #2b2b2b;
}

/* Dropdown item */
.nav__dropdown .nav__item {
  position: relative;
}

/* Dropdown links */
.nav__dropdown .nav__link {
  width: 100%;
  background-color: #141516;
  text-align: left;
}

/* Hover/focus */
.nav__link:hover,
.nav__link:focus {
  background-color: #2b2b2b;
}

/* Nested dropdown */
.nav__dropdown .nav__dropdown {
  top: -2px;
  left: 100%;
}

/* -----------------
/ - CONTENT BLOCKS -
/ --------------- */
.site-content-block {
  padding: 30px 15px 0px 15px;
}

.site-content-block__header {
  text-align: center;
  margin-bottom: 30px;
}

.site-content-block__header-h3 {
  margin-bottom: 10px;
}

.site-content-block__header-h2 {
  margin-bottom: 10px;
}

.site-content-block__header-p {
  margin-bottom: 10px;
}

.site-content-block--worms-league {
  font-family: gunplay;
}

.message-content-block,
.text-content-block,
.img-content-block,
.table-content-block,
.form-content-block,
.details-content-block {
  margin-bottom: 40px;
}

/* --------------
/ - IMAGE BLOCK -
/ ------------ */
.img-content-block {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.img-content-block--multi {
  margin-bottom: 15px;
}

.img-content-block__img {
  display: block;
  flex: 0 1 35%;
  max-width: 400px;
  min-width: 0;
  height: auto;
  border: 2px solid #2b2b2b;
  margin-right: 20px;
}

.img-content-block__body {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
  text-align: left;
  justify-content: center;
}

.img-content-block__body-h3 {
  text-decoration: underline;
  margin-bottom: 5px;
}

.img-content-block__body-h3--spaced {
  margin-bottom: 20px;
}

.img-content-block__body-p {
  margin-bottom: 15px;
}

.img-content-block__table {
  text-align: center;
}

.img-content-block--compact .img-content-block__img {
  flex-basis: 15%;
  max-width: 256px;
  box-shadow:
    0 0 5px rgba(57, 255, 20, 0.8),
    0 0 12px rgba(57, 255, 20, 0.4),
    0 0 20px rgba(57, 255, 20, 0.15);
}

.img-content-block--compact .img-content-block__body {
  justify-content: space-around;
}

/* -------------
/ - TEXT BLOCK -
/ ----------- */
.text-content-block {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.text-content-block__h3 {
  text-decoration: underline;
  margin-bottom: 5px;
}

.text-content-block__p {
  margin-bottom: 10px;
}

/* ----------------
/ - MESSAGE BLOCK -
/ -------------- */
.message-content-block {
  margin: 30px;
  text-align: center;
}

/* --------------
/ - TABLE BLOCK -
/ ------------ */
.table-content-block {
  display: block;
  text-align: left;
}

.table-content-block__box {
  width: fit-content;
  min-width: 400px;
  margin: 0 auto 40px auto;
  padding: 15px;
}

.table-content-block__table-legend {
  padding: 0 10px;
  font-weight: bold;
}

.table-content-block__table-caption {
  padding: 0 10px;
  font-weight: bold;
}

.table-content-block__table {
  text-align: center;
}

/* -------------
/ - FORM BLOCK -
/ ----------- */
.form-content-block {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.form-content-block__form-header {
  margin-bottom: 40px;
}

.form-content-block__form-box {
  width: fit-content;
  min-width: 400px;
  margin: 0 auto 40px auto;
  padding: 15px;
}

.form-content-block__form-legend {
  padding: 0 10px;
  font-weight: bold;
}

.form-content-block__form-card {
  text-align: left;
}

.form-content-block__form-row {
  margin-bottom: 20px;
}

.form-content-block__form-footer {
  margin-bottom: 40px;
}

.form-content-block__form-row label {
  display: block;
  margin-bottom: 5px;
}

.form-content-block__form-row input[disabled],
.form-content-block__form-row input[readonly] {
  background-color: #6b7280;
  color: #000000;
  font-weight: 600;
  cursor: not-allowed;
}

.form-content-block__form-row input[required],
.form-content-block__form-row input[optional] {
  background-color: #333;
  color: #fff;
  width: 100%;
  max-width: 600px;
  resize: horizontal;
}

.form-content-block__form-row textarea {
  background-color: #333;
  color: #fff;
  width: 100%;
  max-width: 600px;
  resize: vertical;
}

.form-content-block__form-row select {
  background-color: #333;
  color: #fff;
  width: 100%;
  max-width: 600px;
}

/* ----------------
/ - DETAILS BLOCK -
/ -------------- */
.details-content-block {
  text-align: left;
}

.details-content-block__box {
  width: fit-content;
  min-width: 400px;
}

.details-content-block__summary {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: larger;
}

/* -------------------
/ - INTERACTION GRIDS-
/ ----------------- */
.interactions-section {
  margin-bottom: 50px;
}

.tile-content-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, 500px);
  justify-content: center;
  gap: 20px;
}

.tile-content-block__box {
  width: 500px;
}

.tile-content-block__tile {
  width: 100%;
  margin: 0;
  padding: 15px;
  text-align: center;
  box-shadow:
    0 0 5px rgba(57, 255, 20, 0.8),
    0 0 12px rgba(57, 255, 20, 0.4),
    0 0 20px rgba(57, 255, 20, 0.15);
}

.tile-content-block__header-h1 {
  text-align: center;
  font-weight: bold;
  margin-bottom: 20px;
}

.tile-content-block__legend {
  padding: 4px 12px;
  color: #39ff14;
  background: #111;
  border: 1px solid #39ff14;
  border-radius: 3px;
  text-shadow:
    0 0 4px rgba(57, 255, 20, 0.7),
    0 0 10px rgba(57, 255, 20, 0.3);
  box-shadow: 0 0 6px rgba(57, 255, 20, 0.35);
}

.tile-content-block__button {
  max-width: 100px;
}

/* ----------
/ - OLD CSS -
/ -------- */
/* -----------------
/ ------ ADMIN -----
/ --------------- */
.adminInfo table {
  margin-bottom: 2rem;
}

/* -----------------
/ --- NEWS ITEMS ---
/ --------------- */
.newsItem {
  padding: 5px;
  background-color: #0b0c0d;
  border: 2px solid #2b2b2b;
  display: flex;
}

.newsLogo {
  flex-shrink: 0;
  width: 200px;
  display: flex;
  flex-direction: column;
}

.newsLogo img {
  margin: 5px;
  width: 100%;
  height: auto;
  border: 2px solid #2b2b2b;
}

.newsLogo p {
  margin-top: 5px;
  font-size: 12px;
  text-align: center;
}

.newsText {
  margin-left: 40px;
  display: flex;
  flex-direction: column;
  line-height: 10px;
}

.newsTitle {
  font-size: 16px;
  text-decoration: underline;
}

.newsBody {
  font-size: 12px;
  white-space: pre-wrap;
}
