* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #121212;
    --bg-secondary: #1a1a1a;
    --bg-card: #1e1e1e;
    --accent-color: #ffb7ce;
    --accent-hover: #d7a1b2;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --border-color: #333333;
    --error-color: #ff4444;
    --header-height: 83.5px;
    --bg-image: url('../images/bg.png');
    --no-bg-image: none;
    /* Tile size for the pixelated background. bg.png native size is 424x234. */
    --bg-tile-width: 424px;
    --bg-tile-height: 234px;
}

/* Load depixelbreit font */
@font-face {
    font-family: 'DePixelBreit';
    src: url('../fonts/depixelbreit.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* FORCE EVERY ELEMENT TO USE DePixelBreit font! */
* {
    font-family: 'DePixelBreit' !important;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    font-smooth: never;
}

/* All images render with crisp pixel edges (no blurry smoothing) */
img {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Pixel font looks best at small sizes — set a sensible baseline */
html {
    font-size: 14px;
}

body {
    background-color: var(--bg-primary);
    background-image: var(--bg-image);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 10px center;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Issues and Submit pages - no background image */
.issues-body, .submit-body {
    background-image: var(--no-bg-image) !important;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px;
}

/* Header - Solid black, clickable (top bar fixed) */
:root {
    --header-height: 83.5px;
}

.header {
    background-color: #040404;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    padding: 0;
    text-align: center;
    z-index: 100;
    cursor: pointer;
}

.header:hover {
    background-color: #040404;
}

.logo {
    max-width: 150px;
    height: auto;
    display: inline-block;
    margin: auto;
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 80px 0 40px;
    flex-wrap: wrap;
}

.btn {
    background-color: transparent;
    border: 2px solid #ffb7ce;
    color: #ffb7ce;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(198, 22, 22, 0.2);
}

.btn:hover {
    background-color: #ffb7ce;
    color: #000000;
    box-shadow: 0 6px 25px rgba(198, 22, 22, 0.5);
    transform: translateY(-6px);
}

.btn:active {
    transform: translateY(0);
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

/* Card */
.card {
    background-color: var(--bg-card);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.1,0.8,0.1,1.4);
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: rotate(2deg);
    box-shadow: 0 8px 40px rgba(255, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.card-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-bottom: 2px solid var(--border-color);
}

.card-content {
    padding: 10px;
}

.card-title {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 0px;
}

/* Form */
.form-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
}

.form-header h1 {
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 40px;
}

.form-group {
    width: 100%;
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
}

input[type="checkbox"] {
    accent-color: #ffb7ce;
    width: 16px;
    height: 16px;
    transform: scale(0.9) translateY(-4px);
    image-rendering: pixelated;
    vertical-align: middle;

}

.form-textarea {
    min-height: 200px;
    resize: vertical;
}
/* Page specific styles */

/* Home page - Perfect centering with fixed header */
/* Lock scrolling only when the home page is active (uses :has() so other pages still scroll) */
html:has(.home-page),
body:has(.home-page) {
    overflow: hidden;
    height: 100vh;
}

.home-page {
    margin-top: var(--header-height);
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vh - var(--header-height));
    overflow: hidden;
}

/* Issues page */
.issues-body {
    padding: 40px 0;
    margin-top: var(--header-height);
}

/* Submit page */
.submit-body {
    padding: 20px 0;
    margin-top: var(--header-height);
}

/* Submit button - centered horizontally within the form */
.submit-btn {
    margin-top: 40px;
    align-self: center;
}

/* Responsive */
@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 13px;
    }
    
    .form-header h1 {
        font-size: 20px;
    }
}

/* Utility */
.hidden {
    display: none !important;
}
