/* CSS Document used for Project 1
Author: Garett Baker
Course: ITWP 1000
File: projectstyles.css
Information on using external CSS style sheet is located in Chapter 3. Information on media queries is located in Chapter 7. Information on tables and CSS formatting for tables is located in Chapter 8.
*/

/* UNIVERSAL FORMATTING */

body {
  color: rgb(255, 255, 255);
  margin: 0;
  padding: 0;
  background-image: url('images/background.jpg');
  background-size: cover;        
  background-repeat: no-repeat;  
  background-attachment: fixed;  
  background-position: center;   
  font-family: Arial, sans-serif;
}

h1 {
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
    font-size: 2.5em;
}

h2 {
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
    font-size: 2em;
}

nav {
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
    margin-bottom: 1em;
    font-size: 2em;
}

p {
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    width: fit-content;
    margin: 10px auto;
    padding: 20px;
    font-size: 1em;
    line-height: 2em;
}

div {
    margin: 10px auto;
    padding: 0;
    width: 100%;
    text-align: center;
}

.centerimage {
    text-align: center;
    margin: 20px 0;
}

.centerimage img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.centervideo {
    text-align: center;
    margin: 20px 0;
}

.centervideo iframe {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}


/* TABLE FORMATTING */

table {
    text-align: center;
    margin: 20px auto;
    border: 5px solid #282828;
    width: 80%;
    border-spacing: 0;
    background-color: rgba(0, 0, 0, 0.8);
}

td, th {
    border-style: none;
    padding: 0.5em;
    width:auto;
}

tfoot td {
    font-size: 9px;
    font-style: italic;
    text-align: center;
} 

tr:nth-of-type(even) {
    background-color: #282828;
}

thead:first-of-type {
  background-color: #282828;
  color:#FFF;
}


/* FOOTER STYLE */

footer {
    width: 100%;
    text-align: center;
    margin: 1em auto 0 auto;
    font-size: 1em;
}

footer p {
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    width: fit-content;
    margin: 10px auto;
    padding: 20px;
    line-height: 1.5em;
}

/* CLASS ICON */

.class_icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    vertical-align: middle;
    border-radius: 4px;
    border: 2px solid #282828;
}
/* ICONS */

.race_icon {
    width: 40px;
    height: 40px;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 6px;
    border: 2px solid #212121;
    object-fit: cover;
}

/* TABLE COLORS */

.factiontable td:first-child {
    background-color: rgba(106, 0, 0, 0.7);
    border-left: 4px solid #830000; 
}
.factiontable th:first-child {
    background-color: #830000; 
    color: #d7b700; 
    font-weight: bold;
}
.factiontable tr:nth-of-type(even) td:first-child {
    background-color: rgba(106, 0, 0, 0.8);
}
.factiontable td:last-child {
    background-color: rgba(0, 0, 122, 0.7); 
    border-right: 4px solid #000074; 
}
.factiontable th:last-child {
    background-color: #000074; 
    color: #d7b700;
    font-weight: bold;
}
.factiontable tr:nth-of-type(even) td:last-child {
    background-color: rgba(0, 0, 122, 0.8);
}
