/* --- Root Variables & Theme --- */
:root {
    --primary-red: #d32f2f;      /* Classic Route 66 Shield Red */
    --highway-blue: #1976d2;     /* Interstate Sign Blue */
    --asphalt: #1c1c1c;          /* Road Surface Dark Grey */
    --vintage-cream: #f4f1ea;    /* Old Map / Parchment White */
    --neon-yellow: #ffd600;      /* Vintage Diner Neon / Road Lines */
    --text-main: #2d2d2d;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- Global Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--vintage-cream);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Layout Components --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

h2 {
    font-family: 'Bungee', cursive;
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 30px;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(28, 28, 28, 0.98);
    padding: 15px 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: 'Bungee', cursive;
    color: #fff;
    text-decoration: none;
    font-size: 1.8rem;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: 0.3s;
}

nav a:hover {
    color: var(--neon-yellow);
}

/* --- Hero Section --- */
.hero {
    height: 80vh;
    /* This creates a dark tint over the image so white text is readable */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), 
                url('images/Root 66.png'); 
    
    background-size: contain;      /* Changed to 'contain' so the shield isn't cropped */
    background-repeat: no-repeat;  /* Prevents the shield from tiling */
    background-position: center;   /* Centers the shield behind the text */
    background-color: #1a1a1a;     /* Adds a dark road-like color to the empty space */
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero h1 {
    font-family: 'Bungee', cursive;
    font-size: clamp(3.5rem, 12vw, 8rem);
    line-height: 0.9;
    /* Strengthened shadow to help text "blend" and pop against the logo graphics */
    text-shadow: 4px 4px 15px rgba(0,0,0,0.8), 6px 6px 0px var(--primary-red);
    margin-bottom: 10px;
    z-index: 2;
}

.hero p {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(1.2rem, 4vw, 2rem);
    color: var(--neon-yellow);
    transform: rotate(-2deg);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    z-index: 2;
}

/* --- History Grid --- */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
    align-items: center;
}

.img-styled {
    width: 100%;
    border-radius: 4px;
    border: 10px solid #fff;
    box-shadow: 15px 15px 0px var(--highway-blue);
}

/* --- Midpoint Section (Texas) --- */
.midpoint-history {
    background: #fff;
    border-top: 10px solid var(--primary-red);
    border-bottom: 10px solid var(--highway-blue);
}

.history-accent {
    font-family: 'Permanent Marker', cursive;
    color: var(--highway-blue);
    font-size: 1.4rem;
}

.midpoint-badge {
    background: var(--primary-red);
    color: #fff;
    padding: 12px 25px;
    font-family: 'Bungee', cursive;
    display: inline-block;
    transform: rotate(-3deg);
    margin: 20px 0;
    box-shadow: 5px 5px 0px var(--asphalt);
}

.history-highlights {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.highlight-box {
    flex: 1;
    border-left: 5px solid var(--neon-yellow);
    padding-left: 20px;
}

.highlight-box h4 {
    font-family: 'Bungee', cursive;
    margin-bottom: 5px;
    color: var(--asphalt);
}

.relative { position: relative; }

.sticky-note {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--neon-yellow);
    padding: 15px 25px;
    font-family: 'Permanent Marker', cursive;
    transform: rotate(5deg);
    box-shadow: 5px 5px 0px var(--asphalt);
    font-size: 1.2rem;
}

/* --- States Grid --- */
.state-section {
    background: var(--asphalt);
    color: #fff;
}

.state-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.state-card {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: var(--transition);
}

.state-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%) brightness(0.6);
    transition: var(--transition);
}

.state-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 2;
}

.state-info span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--neon-yellow);
    font-weight: 700;
}

.state-info h3 {
    font-family: 'Bungee', cursive;
    font-size: 1.8rem;
}

.state-card:hover {
    transform: translateY(-10px);
}

.state-card:hover img {
    filter: grayscale(0%) brightness(0.8);
    transform: scale(1.1);
}

/* --- Feedback Form --- */
.feedback-container {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 20px 20px 0px var(--highway-blue);
    border: 2px solid var(--asphalt);
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-family: 'Bungee', cursive;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--highway-blue);
}

/* Updated Input Styling */
input, textarea {
    background-color: #1a1a1a; /* Dark background */
    color: #ffffff;            /* White text */
    border: 1px solid #444;    /* Subtle border */
    padding: 12px;
    border-radius: 4px;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;    /* Ensures padding doesn't break the width */
}

/* This makes sure the text remains visible even when clicking into the box */
input:focus, textarea:focus {
    background-color: #222;    /* Slightly lighter dark when typing */
    color: #00d4ff;            /* Change text to cyan when typing for a cool effect */
    border-color: #00d4ff;
    outline: none;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}
}

button {
    background: var(--asphalt);
    color: #fff;
    border: none;
    padding: 20px 40px;
    font-family: 'Bungee', cursive;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
    border-radius: 8px;
}

button:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- Scroll Animations --- */
.ealeal {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Footer --- */
footer {
    background: #111;
    color: #444;
    padding: 60px 0;
    text-align: center;
}

footer p {
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    nav { padding: 15px 25px; }
    nav ul { display: none; } /* Consider a hamburger menu for production */
    .history-grid { gap: 40px; }
    .history-highlights { flex-direction: column; }
    .feedback-container { padding: 30px; margin: 0 15px; }
    
    /* --- History Specific Formatting --- */
.history-block {
    margin-bottom: 120px;
}

.center-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Fact Tags */
.fact-tags {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.tag {
    background: var(--highway-blue);
    color: white;
    padding: 5px 15px;
    font-family: 'Bungee', cursive;
    font-size: 0.8rem;
    border-radius: 4px;
}

/* Scrapbook Quote */
.scrapbook-quote {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.5rem;
    color: var(--primary-red);
    border-left: 5px solid var(--neon-yellow);
    padding-left: 30px;
    margin: 30px 0;
    line-height: 1.2;
}

.scrapbook-quote cite {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--asphalt);
    margin-top: 10px;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Neon List Style */
.neon-list {
    list-style: none;
}

.neon-list li {
    background: var(--asphalt);
    color: var(--neon-yellow);
    margin-bottom: 10px;
    padding: 10px 20px;
    font-family: 'Bungee', cursive;
    font-size: 0.9rem;
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
    transition: 0.3s;
}

.neon-list li:hover {
    color: white;
    background: var(--primary-red);
    transform: translateX(10px);
}

/* Adjustments for existing elements */
.midpoint-history h2 {
    margin-top: 10px;
}
    
    /* --- Affiliate Marketing Layout --- */
.main-layout {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.content-column {
    flex: 3; /* Content takes up more space */
}

.sidebar-ads {
    flex: 1;
    min-width: 300px;
}

.sticky-sidebar {
    position: sticky;
    top: 100px; /* Sticks ads while scrolling content */
}

/* --- Ad Zone Styling --- */
.ad-zone {
    background: #e0ddd5; /* Slightly darker than cream to stand out */
    border: 1px dashed var(--asphalt);
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.ad-placeholder {
    color: #888;
    font-size: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    text-align: center;
}

.ad-disclosure {
    font-size: 0.65rem;
    text-align: center;
    text-transform: uppercase;
    color: #999;
    margin-top: 5px;
}

/* Specific Sizes */
.top-leaderboard {
    width: 100%;
    max-width: 728px;
    height: 90px;
}

.in-content {
    width: 300px;
    height: 250px;
    float: right; /* Text wraps around the ad */
    margin-left: 20px;
}

.sidebar-skyscraper {
    width: 300px;
    height: 600px;
}

/* --- Mobile Responsive Ads --- */
@media (max-width: 1024px) {
    .main-layout { flex-direction: column; }
    .sidebar-ads { display: none; } /* Hide sidebar on small tablets/mobile for better UX */
    .top-leaderboard { max-width: 320px; height: 50px; }
    .in-content { float: none; margin: 20px auto; }
}
    .feedback-container { max-width: 600px; margin: 50px auto; padding: 30px; background: #000; border: 3px solid #00d4ff; border-radius: 15px; box-shadow: 0 0 15px #00d4ff, inset 0 0 10px #00d4ff; font-family: 'Courier New', Courier, monospace; color: #fff; }

h2 { color: #fff; text-transform: uppercase; text-align: center; text-shadow: 0 0 5px #fff, 0 0 10px #00d4ff, 0 0 20px #00d4ff; }

label { color: #00d4ff; font-weight: bold; text-transform: uppercase; font-size: 0.9rem; }

input, textarea { width: 100%; padding: 12px; margin-top: 5px; background: #111; border: 1px solid #444; color: #fff; border-radius: 5px; }

input:focus, textarea:focus { outline: none; border-color: #00d4ff; box-shadow: 0 0 8px #00d4ff; }
    
/* Fix for browser autofill (prevents that ugly yellow background) */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0px 1000px #1a1a1a inset;
    transition: background-color 5000s ease-in-out 0s;
}

button { width: 100%; padding: 15px; background: transparent; color: #ff0055; border: 2px solid #ff0055; font-weight: bold; text-transform: uppercase; cursor: pointer; margin-top: 20px; transition: 0.3s; }

button:hover { background: #ff0055; color: #fff; box-shadow: 0 0 20px #ff0055; }
}
#topBtn { display: none; position: fixed; bottom: 30px; right: 30px; z-index: 99; border: 2px solid #00d4ff; outline: none; background-color: black; color: #00d4ff; cursor: pointer; padding: 15px; border-radius: 50%; font-weight: bold; text-shadow: 0 0 5px #00d4ff; box-shadow: 0 0 10px #00d4ff; transition: 0.3s; }

#topBtn { display: none; position: fixed; bottom: 20px; right: 20px; z-index: 99; border: 2px solid #00d4ff; outline: none; background-color: black; color: #00d4ff; cursor: pointer;

}

#topBtn:hover { background-color: #00d4ff; color: black; box-shadow: 0 0 15px #00d4ff; transform: scale(1.1); /* Slightly grows when you hover */ }

html { scroll-behavior: smooth; } body { background-color: #0a0a0a; color: #fff; font-family: 'Courier New', monospace; margin: 0; }

/* Navigation */ .state-nav { display: flex; justify-content: center; gap: 15px; padding: 20px; background: #000; border-bottom: 1px solid #333; position: sticky; top: 0; z-index: 1000; } .state-link { text-decoration: none; font-weight: bold; padding: 10px 15px; border-radius: 5px; transition: 0.3s; border: 1px solid transparent; } .link-cyan { color: #00d4ff; } .link-cyan:hover { border-color: #00d4ff; text-shadow: 0 0 10px #00d4ff; box-shadow: 0 0 10px #00d4ff; } .link-pink { color: #ff0055; } .link-pink:hover { border-color: #ff0055; text-shadow: 0 0 10px #ff0055; box-shadow: 0 0 10px #ff0055; }

/* Feedback Form */ .feedback-container { max-width: 600px; margin: 50px auto; padding: 35px; background: #111; border: 2px solid #333; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); } .feedback-form { display: flex; flex-direction: column; gap: 20px; } .input-group { display: flex; flex-direction: column; gap: 8px; } label { color: #00d4ff; font-weight: bold; font-size: 0.8rem; text-transform: uppercase; } input, textarea { background: #1a1a1a; border: 1px solid #444; color: #fff; padding: 12px; border-radius: 4px; font-family: inherit; } input:focus, textarea:focus { outline: none; border-color: #00d4ff; box-shadow: 0 0 8px rgba(0, 212, 255, 0.5); } button[type="submit"] { background: transparent; color: #ff0055; border: 2px solid #ff0055; padding: 15px; font-weight: bold; text-transform: uppercase; cursor: pointer; transition: 0.3s; } button[type="submit"]:hover { background: #ff0055; color: #fff; box-shadow: 0 0 20px #ff0055; }

/* Small Back to Top Button */ #topBtn { display: none; position: fixed; bottom: 20px; right: 20px; z-index: 99; border: 2px solid #00d4ff; background-color: #000; color: #00d4ff; cursor: pointer; width: 45px; height: 45px; border-radius: 50%; font-weight: bold; text-shadow: 0 0 5px #00d4ff; box-shadow: 0 0 8px #00d4ff; transition: 0.3s; line-height: 41px; text-align: center; font-size: 10px; } #topBtn:hover { background-color: #00d4ff; color: #000; box-shadow: 0 0 15px #00d4ff; transform: scale(1.1); }

html { scroll-behavior: smooth; } body { background: #0a0a0a; color: #fff; font-family: 'Courier New', monospace; }

.state-nav { display: flex; justify-content: center; gap: 15px; padding: 20px; background: #000; position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid #333; } .state-link { text-decoration: none; font-weight: bold; padding: 10px; transition: 0.3s; } .link-cyan { color: #00d4ff; } .link-cyan:hover { text-shadow: 0 0 10px #00d4ff; box-shadow: 0 0 10px #00d4ff; border: 1px solid #00d4ff; } .link-pink { color: #ff0055; } .link-pink:hover { text-shadow: 0 0 10px #ff0055; box-shadow: 0 0 10px #ff0055; border: 1px solid #ff0055; }

.attraction-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; padding: 40px; } .attraction-card { text-align: center; background: #111; padding: 15px; border-radius: 10px; } .neon-frame { width: 100%; border-radius: 8px; } .frame-cyan { border: 3px solid #fff; box-shadow: 0 0 15px #00d4ff; } .frame-pink { border: 3px solid #fff; box-shadow: 0 0 15px #ff0055; }

.feedback-container { max-width: 600px; margin: 50px auto; padding: 30px; background: #111; border: 2px solid #333; } .input-group { display: flex; flex-direction: column; margin-bottom: 15px; } label { color: #00d4ff; font-size: 0.8rem; margin-bottom: 5px; } input, textarea { background: #1a1a1a; border: 1px solid #444; color: #fff; padding: 10px; } button[type="submit"] { background: transparent; color: #ff0055; border: 2px solid #ff0055; padding: 15px; cursor: pointer; } button[type="submit"]:hover { background: #ff0055; color: #fff; box-shadow: 0 0 20px #ff0055; }

#topBtn { display: none; position: fixed; bottom: 20px; right: 20px; width: 45px; height: 45px; border-radius: 50%; background: #000; color: #00d4ff; border: 2px solid #00d4ff; cursor: pointer; font-size: 10px; }

/* Animations */ .neon-flicker { color: #fff; text-align: center; text-transform: uppercase; text-shadow: 0 0 10px #00d4ff, 0 0 20px #00d4ff; animation: flicker 3s infinite alternate; } @keyframes flicker { 0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; } 20%, 22%, 24%, 55% { opacity: 0.6; text-shadow: none; } }