/* General Body Styles */
body {
    background-color: #000;
    color: #fff;
    font-family: 'Roboto Mono', monospace;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Header Styles */
.header {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.brand-epitech {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
}

.brand-subtitle {
    font-size: 1rem;
    letter-spacing: 2px;
}

/* Checkered Banner */
.banner {
    height: 20px;
    background-color: #fff;
    background-image: repeating-linear-gradient(45deg, #001f3f 0, #001f3f 10px, #fff 10px, #fff 20px);
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
    margin: 2rem auto;
    width: 80%;
    max-width: 1200px;
}

/* Main Container */
.container {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* Scores Grid */
#scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    justify-content: center;
}

/* Faction Card */
.faction-card {
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
}

/* Faction Header */
.faction-header {
    background-color: #fff;
    color: #000;
    border-radius: 30px;
    padding: 5px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: -40px auto 20px auto;
    border: 2px solid #000;
    position: relative;
}

.faction-logo {
    height: 25px;
    width: auto;
}

.faction-name {
    font-weight: bold;
    font-size: 1.2rem;
}

/* Faction Score */
.faction-points {
    font-size: 5rem;
    font-weight: bold;
    line-height: 1;
}

/* Faction-specific colors */
.faction-card.Rust { background-color: #f78e41; color: #000; }
.faction-card.Lua { background-color: #0047AB; }
.faction-card.JavaScript { background-color: #f0db4f; color: #000; }
.faction-card.Ruby { background-color: #cc342d; }

/* History Section */
.history-section {
    margin-top: 4rem;
    padding-bottom: 2rem;
}

.history-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

#history-log {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.history-entry {
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    border-left: 5px solid; /* Color will be set by JS */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.history-details {
    flex-grow: 1;
}

.history-faction {
    font-weight: bold;
}

.history-reason {
    font-style: italic;
    color: #bbb;
    margin-left: 10px;
}

.history-time {
    color: #888;
    font-size: 0.8rem;
    margin-left: auto;
    padding-left: 20px;
}

/* Faction-specific border colors */
.history-entry.Rust { border-color: #f78e41; }
.history-entry.Lua { border-color: #0047AB; }
.history-entry.JavaScript { border-color: #f0db4f; }
.history-entry.Ruby { border-color: #cc342d; }

/* Admin Page specific styles */
h1 {
    color: #fff;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    background-color: #222;
    padding: 20px;
    border-radius: 10px;
}

input, select, button {
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #555;
    font-size: 1em;
    background-color: #333;
    color: #fff;
}

select {
    color-scheme: dark;
}

button {
    background-color: #007bff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

#message {
    margin-top: 15px;
    font-weight: bold;
} 