cd /opt/rory/24h_auction/ && cat << 'EOF' > web/static/css/rory.css
/* web/static/css/rory.css */

/* --- Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Roboto:wght@400;700&display=swap');

/* --- Base & Body Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #f0f0f0;
    background-color: #1a1a1a; /* Fallback color */
    line-height: 1.6;
    overflow-x: hidden;
}

.site-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url('/static/images/rory_bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.site-background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: rgba(26, 10, 42, 0.85); /* Deep purple overlay */
    backdrop-filter: blur(5px);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 0 1rem;
}

/* --- Header & Navigation --- */
header {
    padding: 1.5rem 0;
    border-bottom: 2px solid rgba(255, 69, 0, 0.5);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 a {
    font-family: 'Permanent Marker', cursive;
    color: #ff4500; /* Orange-red accent */
    text-decoration: none;
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

header nav a {
    color: #f0f0f0;
    text-decoration: none;
    margin-left: 20px;
    font-size: 1.1rem;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

header nav a:hover, header nav a.active {
    background-color: #ff4500;
    color: #111;
}

/* --- Main Auction Content --- */
.auction-container {
    display: flex;
    gap: 2rem;
    padding: 3rem 0;
    flex-wrap: wrap;
}

.auction-item {
    flex: 2;
    min-width: 300px;
}

.auction-item .main-image {
    width: 100%;
    border-radius: 8px;
    border: 3px solid #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.auction-item h2 {
    font-family: 'Permanent Marker', cursive;
    color: #ff4500;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.auction-item .description {
    margin-top: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ff4500;
}

/* --- Sidebar Styles --- */
.auction-sidebar {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timer-box, .bid-box, .buy-now-box {
    background: rgba(0, 0, 0, 0.4);
    padding: 1.5rem;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #444;
}

.auction-sidebar h3 {
    margin-bottom: 1rem;
    color: #f0f0f0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 1rem;
}

#timer, #current-bid {
    font-size: 3rem;
    font-weight: 700;
    color: #ff4500;
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

.bid-input {
    width: 100%;
    padding: 0.8rem;
    margin: 1rem 0;
    background: #1a1a1a;
    border: 1px solid #555;
    color: #f0f0f0;
    font-size: 1.2rem;
    border-radius: 5px;
    text-align: center;
}

.bid-input:focus {
    outline: none;
    border-color: #ff4500;
    box-shadow: 0 0 8px rgba(255, 69, 0, 0.5);
}

/* --- Button Styles --- */
.btn {
    display: block;
    width: 100%;
    padding: 1rem;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 5px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-bid {
    background-color: #ff4500;
    color: #111;
    box-shadow: 0 4px 10px rgba(255, 69, 0, 0.4);
}

.btn-bid:hover {
    background-color: #ff6a33;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 106, 51, 0.5);
}

.btn-buy-now {
    background-color: #9400d3; /* Dark Violet */
    color: #f0f0f0;
    box-shadow: 0 4px 10px rgba(148, 0, 211, 0.4);
}

.btn-buy-now:hover {
    background-color: #ad27e6;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(173, 39, 230, 0.5);
}

/* --- Forms --- */
.form-container {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #444;
    border-radius: 8px;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #555;
    color: #f0f0f0;
    font-size: 1rem;
    border-radius: 5px;
}
.form-group input:focus {
    outline: none;
    border-color: #ff4500;
}

.bid-history-box { background: rgba(0, 0, 0, 0.4); padding: 1.5rem; text-align: left; border-radius: 8px; border: 1px solid #444; }\n.bid-history-box h3 { text-align: center; }\n#bid-history-list { list-style-type: none; padding: 0; margin-top: 1rem; max-height: 200px; overflow-y: auto; }\n#bid-history-list li { padding: 0.25rem 0; border-bottom: 1px solid #333; font-size: 0.9rem; }\n#bid-history-list li span:first-child { color: #ccc; }
.preserve-format {
    white-space: pre-wrap;
}