@import url('https://fonts.googleapis.com/css2?family=Teko:wght@500;600;700&family=Roboto+Condensed:wght@400;700&display=swap');

body {
    font-family: 'Roboto Condensed', sans-serif;
    max-width: 1400px;
    margin: 20px auto;
    background: #222;
    color: #ddd;
}

:root {
    --primary-color: #4b612c;
    /* Default Death Guard Olive */
    --accent-color: #e67e22;
    /* Orange */
}

/* Faction Theme Classes */
.theme-death-guard {
    --primary-color: #4b612c;
    --accent-color: #b8860b;
}

.theme-intercession {
    --primary-color: #113366;
    --accent-color: #f1c40f;
}

.theme-legionary {
    --primary-color: #7a1a1a;
    --accent-color: #d4af37;
}

.theme-pathfinder {
    --primary-color: #cc4400;
    --accent-color: #333333;
}

.theme-custodes {
    --primary-color: #cc4400;
    --accent-color: #333333;
}

.theme-hive {
    --primary-color: #cc4400;
    --accent-color: #333333;
}

.theme-scouts {
    --primary-color: #cc4400;
    --accent-color: #333333;
}

.preview-container {
    text-align: center;
    margin-bottom: 20px;
}

canvas {
    border: 4px solid #444;
    max-width: 100%;
    height: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    transition: border-color 0.3s;
}

.form-row {
    display: flex;
    gap: 12px;
    margin: 8px 0;
    align-items: center;
    flex-wrap: wrap;
}

.form-group {
    margin: 10px 0;
    padding: 15px;
    border: 1px solid #444;
    border-radius: 8px;
    background: #333;
}

label {
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #aaa;
    letter-spacing: 1px;
    font-family: 'Teko', sans-serif;
}

input,
textarea,
select {
    background: #111;
    color: #fff;
    border: 1px solid #555;
    padding: 8px;
    border-radius: 4px;
    font-family: 'Roboto Condensed';
    font-size: 1rem;
}

input:focus,
select:focus {
    outline: none;
    border-color: #fff;
}

button {
    background: #444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Teko';
    font-size: 20px;
    margin: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    filter: brightness(1.2);
}

button.download-btn {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

button.import-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

button.save-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.small-input {
    width: 50px;
    text-align: center;
}

h1 {
    color: #fff;
    text-align: center;
    font-family: 'Teko';
    font-size: 3em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #e67e22;
    font-weight: bold;
}

.toggle-label input {
    margin-right: 10px;
}