@font-face {
  font-family: Princeps;
  src: url("../fonts/OptimusPrinceps.ttf") format("truetype");
}

:root {
  --bg-dark: #1d2623;
  --gray-color: #2c2c2c;
  --table-bg: #c4a87e;
  --bg-main: #efb810;
  --primary-color: #f9f3ce;
  --secondary-color: #000000;
  --box-shadow: 0 0 5px black;
}

@keyframes showFromRight {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes showFromUp {
    from {
      transform: translateY(-120%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 0.9;
    }
  }

@keyframes logo {
  0% {
    transform: translateY(-120%);
  }

  35% {
    transform: translateY(0);
  }

  55% {
    transform: translateY(-20%);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes showNavItems {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes showFooter {
  from {
    transform: translateY(120%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ? Estilos Generales */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Princeps";
  font-weight: 400;
  font-style: normal;
  background-image: url("../img/fondo.png");
  background-attachment: fixed;
  background-size: cover;
}

@media screen and (max-width: 800px) {
  body {
    background-position: center;
  }
}

.nav {
  grid-area: nav;
  background-color: rgba(0, 0, 0, 0.75);
}

.nav a {
  width: 25%;
}

.nav a img {
  width: 100%;
  animation: logo 2s forwards ease-in-out;
}

.nav ul {
  margin-top: -35px;
  padding: 0.5em;
  display: flex;
  flex-flow: column wrap;
  list-style-type: none;
  gap: 6px;
}

a {
  color: var(--secondary-color);
}

.nav ul li {
  width: 90%;
  margin: 0 auto;

  opacity: 0;
}

.nav ul li:nth-child(1) {
  animation: showNavItems 0.2s 2s forwards linear;
}

.nav ul li:nth-child(2) {
  animation: showNavItems 0.2s 2.2s forwards linear;
}

.nav ul li:nth-child(3) {
  animation: showNavItems 0.2s 2.4s forwards linear;
}

.nav ul li:nth-child(4) {
  animation: showNavItems 0.2s 2.6s forwards linear;
}

.nav ul li:nth-child(5) {
  animation: showNavItems 0.2s 2.8s forwards linear;
}

.nav ul li:nth-child(6) {
  animation: showNavItems 0.2s 3s forwards linear;
}

.nav ul li:nth-child(7) {
  animation: showNavItems 0.2s 3.2s forwards linear;
}

.nav ul li:nth-child(8) {
  animation: showNavItems 0.2s 3.4s forwards linear;
}

.nav ul li a {
  display: inline-block;
  width: 100%;
  background: linear-gradient(to bottom, #15161b 30%, #3b3b3b 50%, #15161b 70%);
  box-shadow: 0 0 0 1px #f1bd41, 0 0 0 2px var(--primary-color);
  color: var(--primary-color);
  text-align: center;
  position: relative;
  padding: 0.5em 0.5em 0.5em 1.5em;
  border-radius: 3px;
  transition: all 0.5s;
  font-size: 22px;
  font-weight: bolder;
}

.nav ul li a span {
  position: absolute;
  left: 0.5em;
}

.footer {
  position: fixed;
  bottom: 0;
  padding: 1em;
  background-color: rgba(0, 0, 0, 0.75);
  color: var(--primary-color);
  width: 100%;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: 50px;
  text-align: center;

  transform: translateY(120%);
  animation: showFooter 2s forwards linear;
}

.footer a {
  color: var(--primary-color);
}

.footer p {
  padding: 0;
  margin: 0;
}

.discord {
  grid-area: discord;
  background-color: var(--primary-color);
  box-shadow: 0 0 0 1px #a8832d, 0 0 0 5px var(--primary-color);
  margin: 0 auto;
  width: 85%;
  margin-top: 40px;
  transform: translateX(130%);
  animation: showFromRight 2s forwards linear;
  display: flex;
  flex-flow: column wrap;
}

.discord h2 {
  background: linear-gradient(to bottom, #2b088a 10%, #4d19db 50%, #2b088a 90%);
  text-align: center;
  padding: 0.2em;
  color: var(--primary-color);
}

.discord img {
  width: 100%;
  height: 100%;
}

.galeria {
  grid-area: galeria;
  background-color: var(--primary-color);
  box-shadow: 0 0 0 1px #a8832d, 0 0 0 5px var(--primary-color);
  margin: 0 auto;
  width: 85%;
  margin-top: 40px;
  transform: translateX(120%);
  animation: showFromRight 2s forwards linear;
  display: flex;
  flex-flow: column;
}

.galeria h2 {
  background: linear-gradient(to bottom, #088a42 10%, #19db70 50%, #088a42 90%);
  text-align: center;
  padding: 0.2em;
  color: var(--primary-color);
}

.gallery {
  width: 100%;
  height: 100%;
}

.galeria img {
  width: 100%;
  height: 100%;
}

@media screen and (max-width: 800px) {
  .galeria img {
    width: 100%;
    height: 100%;
  }

  .discord img {
    width: 100%;
    height: 100%;
  }
}

.table-mobile {
  display: none; 
}

.columna, .fila {
  display: none;
}

.mobile-caption {
  display: none;
}

.hidden {
  display: none;
}

table {
  border-collapse: collapse;
  border: 1px solid var(--secondary-color);
  margin: 40px auto;
  background-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

table caption {
  color: var(--secondary-color);
  font-weight: bolder;
  font-size: 22px;
}

table th {
  background-color: var(--table-bg);
  color: var(--primary-color);
  padding: 1em;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;

  transition: all 0.3s;
}


table td {
  padding: 1em;
  text-align: center;
  color: var(--secondary-color);
  font-size: 24px;
  border: 1px solid var(--secondary-color);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

table td img {
  width: 48px
}

table td:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.1);
}

table td:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0.15);

}

table tr:hover td:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.03);
}

table tr:hover td,
table tr:hover th{
  text-shadow: 0 0 2px #a88d14;
  cursor: pointer;
}

table tr:hover th {
  cursor: default;
}

table tr:hover th:hover {
  background-color: rgba(196, 168, 126, 0.5);
  transform: scale(1.01);
}

table td:hover a {
  text-decoration: underline;
  /* color: /* var(--primary-color) / #000; */
  font-weight: bolder;
  text-shadow: 0 0 8px #a88d14;
}

table a {
  /* color: var(--secondary-color); */
  color: var(--secondary-color);
  text-decoration: none;
  text-align: center;
  font-weight: bold;
  /* padding: 0.2em; */
}

.red {
  color: red;
  font-style: italic;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.center {
  text-align: center;
  margin-top: 10px;
  font-size: 24px;
}

p {
  text-align: center;
  padding: 0.5em;
  margin-top: 15px;
}

.center-list {
  width: 50%;
  margin: 0 auto;
  text-align: center;
  list-style-type: none;
}
