body {
	background-color: black;
	color: white;
	font-size: 1.2em;
}

.tables {
	width: 80vw;
	margin: auto;
	top: 2em;
	position: relative;
}

@font-face {
	font-family: wow;
	src: url(Warcraft-Yj2j.ttf);
}

.toggle-button {
	font-family: wow;
	text-decoration: none;
	color: #cc9900;
	font-size: 1.5em;	
}

.inline-link {
	font-family: wow;
	text-decoration: none;
	color: #cc9900;
}

.inline-link:hover {
	color: #ffff00;
}

.wow-button {
    font-family: 'wow', serif;
    color: #ffd700;
    padding: 1.5em;
    background: url('button-background-transparent-rectangle.png') no-repeat center center;
    background-size: contain;
    border: none;
    cursor: pointer;
    outline: none;
    text-shadow: 2px 2px 4px #000;
    transition: transform 0.1s;
    font-size: 1.75em;
    width: 9em;
    height: 4em;
    box-sizing: border-box;
    margin: 0 -0.25em;
}

nav {
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 30px;
    box-sizing: border-box;
    margin-bottom: -1em;
}

.wow-button:hover {
    background: url('button-background-transparent-rectangle-yellow.png') no-repeat center center;
    background-size: contain;
}

.wow-button:active {
    transform: scale(0.97);
}

th {
	color: #ccc;
	border: none;
}

td {
	text-align: center;
	border: none;
	padding-left: 0.5em;
	padding-right: 0.5em;
}

.rank-table {
	width: 50%;
	display: inline-block;
	min-height: 800px;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	min-width: 450px;
}

.rank-table h2 {
	text-align: center;
}

.rank-table table {
	margin: auto;
}

.alliance-table table {
	border-color: #004889;
	background-color: rgba(0, 177, 200, 0.8);
	background-image: none;
}

.alliance-table tr:nth-child(odd) {
	background-color: rgba(0, 145, 168, 0.8);
}

.alliance-table {
	background-image: url("./alliance.png");
}

.horde-table table {
	border-color: #751401;
	background-color: rgba(166, 99, 89, 0.8);
	background-image: none;
}

.horde-table tr:nth-child(odd) {
	background-color: rgba(150, 67, 57, 0.8);
}

.horde-table {
	background-image: url("./horde.png");
}

@media (max-width: 1110px) {
  .rank-table {
    width: 100%;
  }
  body {
	  font-size: 1.5em;
  }
}

/* WoW-inspired styles */

@font-face {
  font-family: 'Warcraft';
  src: url('Warcraft-Yj2j.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.wow-server-container {
  background: linear-gradient(135deg, #23272b 0%, #1a1d20 100%);
  border: 3px solid #c89b3c;
  border-radius: 16px;
  box-shadow: 0 0 24px #000a, 0 0 0 4px #222 inset;
  padding: 32px 24px;
  margin: 32px auto;
  max-width: 900px;
}

.wow-title {
  font-family: 'Warcraft', serif;
  font-size: 2.8rem;
  color: #ffe066;
  text-shadow: 2px 2px 0 #000, 0 0 16px #c89b3c;
  letter-spacing: 2px;
  margin-bottom: 24px;
  text-align: center;
}

.wow-factions {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 32px;
}

.wow-faction {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(40, 40, 40, 0.85);
  border: 2px solid #c89b3c;
  border-radius: 12px;
  padding: 16px 24px;
  box-shadow: 0 0 12px #0008;
  transition: transform 0.2s;
}
.wow-faction:hover {
  transform: scale(1.05) rotate(-2deg);
  border-color: #ffe066;
}

.wow-faction-img {
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
  border: 3px solid #c89b3c;
  box-shadow: 0 0 8px #000a;
}
.wow-faction-img.alliance {
  background-image: url('alliance.png');
  border-color: #0070de;
}
.wow-faction-img.horde {
  background-image: url('horde.png');
  border-color: #c41f3b;
}

.wow-section {
  background: rgba(30, 30, 30, 0.92);
  border-left: 6px solid #c89b3c;
  border-radius: 8px;
  margin: 32px 0;
  padding: 24px 32px;
  box-shadow: 0 2px 12px #0007;
}

.wow-instance-table {
  width: 100%;
  border-collapse: collapse;
  background: #23272b;
  color: #ffe066;
  font-family: 'Warcraft', serif;
  margin: 24px 0;
  box-shadow: 0 0 8px #000a;
}
.wow-instance-table th,
.wow-instance-table td {
  border: 2px solid #c89b3c;
  padding: 12px 16px;
  text-align: left;
}
.wow-instance-table th {
  background: #1a1d20;
  color: #ffe066;
  font-size: 1.1rem;
  text-shadow: 1px 1px 0 #000;
}
.wow-instance-table tr:nth-child(even) {
  background: #282c31;
}

.wow-footer {
  background: linear-gradient(90deg, #23272b 0%, #1a1d20 100%);
  color: #ffe066;
  font-family: 'Warcraft', serif;
  text-align: center;
  padding: 18px 0 12px 0;
  border-top: 3px solid #c89b3c;
  box-shadow: 0 -2px 12px #000a;
  letter-spacing: 1px;
  font-size: 1.1rem;
}


/* Fun WoW-themed styles for the registration form */
.register-form {
    max-width: 500px;
    margin: 2em auto;
    padding: 2em;
    background: linear-gradient(135deg, #23272b, #1a1d20);
    border: 3px solid #c89b3c;
    border-radius: 16px;
    box-shadow: 0 0 24px #000a, 0 0 0 4px #222 inset;
}

.register-form h2 {
    font-family: 'Warcraft', serif;
    font-size: 2.5rem;
    color: #ffe066;
    text-align: center;
    margin-bottom: 1.5em;
    text-shadow: 2px 2px 0 #000, 0 0 16px #c89b3c;
}

.register-form label {
    display: block;
    font-size: 1.2rem;
    color: #c89b3c;
    margin-bottom: 0.5em;
    text-shadow: 1px 1px 0 #000;
}

.register-form input[type="text"],
.register-form input[type="password"],
.register-form input[type="email"] {
    width: 94%;
    padding: 0.75em;
    margin-bottom: 1em;
    border: 2px solid #c89b3c;
    border-radius: 8px;
    background: #23272b;
    color: #ffe066;
    font-family: 'Warcraft', serif;
    box-shadow: inset 0 0 8px #000a;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: 1em;
}

.register-form input[type="text"]:focus,
.register-form input[type="password"]:focus,
.register-form input[type="email"]:focus {
    outline: none;
    border-color: #ffe066;
    box-shadow: 0 0 8px #ffe066;
}

.register-form button {
    font-family: 'Warcraft', serif;
    font-size: 1.5rem;
    color: #ffd700;
    padding: 0.75em 1.5em;
    background: url('button-background-transparent-rectangle.png') no-repeat center center;
    background-size: contain;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-shadow: 2px 2px 4px #000;
    transition: transform 0.1s;
}

.register-form button:hover {
    background: url('button-background-transparent-rectangle-yellow.png') no-repeat center center;
    background-size: contain;
}

.register-form button:active {
    transform: scale(0.97);
}
