/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a1a1a;
    color: #e0d5c1;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}




/* Hero Section with Parallax-like feel */
header {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('https://i.ibb.co/B5kHZNsQ/image.png') center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

nav {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Rye', cursive;
    font-size: 2rem;
    color: #d4af37;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: 0.3s;
}

nav ul li a:hover { color: #d4af37; }














/* LORE TAB




/* General Layout */
body {
    background-color: #1a1a1a;
    color: #e0d5c1;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}

header {
    height: 60vh; /* Shorter header for sub-pages */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

nav {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.logo { font-family: 'Rye', cursive; color: #d4af37; font-size: 2rem; }

nav ul { display: flex; list-style: none; }
nav ul li a { color: #fff; text-decoration: none; margin: 0 15px; font-weight: bold; }



/* Updated Lore Box with Hover Effect */
.lore-paper {
    /* 0.6 opacity (60%) makes it slightly more transparent as requested */
    background: rgba(0, 0, 0, 0.6); 
    color: #e0d5c1; 
    max-width: 850px;
    margin: 0 auto;
    padding: 40px;
    font-family: 'Montserrat', sans-serif;
    
    /* Removed the yellow outline/border */
    border: none; 
    
    /* Smooth transition for the hover effect (0.4 seconds) */
    transition: all 0.4s ease-in-out;
    
    /* Glass blur effect for the background image behind the box */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    /* Initial subtle shadow */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* The Hover Effect */
.lore-paper:hover {
    /* Lifts the box up slightly */
    transform: translateY(-10px); 
    
    /* Makes the background a tiny bit darker/more solid on hover */
    background: rgba(0, 0, 0, 0.75); 
    
    /* Adds a soft white/gold outer glow */
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2); 
    
    /* Optional: Makes the text slightly brighter */
    color: #fff;
}

/* Styling for the titles inside the boxes */
.lore-paper h3 {
    font-family: 'Rye', cursive;
    color: #d4af37;
    margin-bottom: 20px;
    font-size: 1.8rem;
    /* Removed the underline to keep it clean */
    border-bottom: none; 
}

/* Base styling for all lore sections */
.lore-tab {
    padding: 120px 20px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    
    /* ADD THESE LINES FOR THE BLACK BORDERS */
    border-top: 15px solid #000;    /* Thick black border at the top */
    border-bottom: 15px solid #000; /* Thick black border at the bottom */
    
    /* This ensures the borders don't double up and look too thick */
    margin-top: -15px; 
}

/* Optional: Add a thin gold line inside the black border for extra detail */
.lore-tab::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #d4af37; /* Thin gold line at the very top of each section */
    z-index: 10;
}

/* Category 1 Background */
.law-bg {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                      url('https://static.wikia.nocookie.net/reddeadredemption/images/a/a0/RDR2_POI_07_Bolger_Glade_01.png/revision/latest?cb=20181128172200');
}

/* Category 2 Background */
.outlaw-bg {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                      url('https://static.wikia.nocookie.net/reddeadredemption/images/a/a1/Laramie_Gang.jpg/revision/latest?cb=20190123184818');
}

/* Category 3 Background (Placeholder - Swap with your own!) */
.settlers-bg {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                      url('https://preview.redd.it/drop-your-best-rdr-screenshots-v0-jra2dxx56azf1.jpeg?width=1920&format=pjpg&auto=webp&s=cea2e091f6d56232b2d1de16ec958550935ae00c');
}

.settlers2-bg {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                      url('https://preview.redd.it/drop-your-best-rdr-screenshots-v0-s013z1jhn9zf1.jpeg?width=3753&format=pjpg&auto=webp&s=4c397228d9762e710a2da62d68ad033e51cbb908');
}

.settlers3-bg {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                      url('https://preview.redd.it/big-valley-photo-v0-3mgq7i2gq9sg1.jpeg?width=1080&crop=smart&auto=webp&s=5bce3ef2ecdda0f3f9235afb6b526d994100a693');
}
 
/* Optional: Make the section titles pop more against images */
.section-title {
    font-family: 'Rye', cursive;
    font-size: 3.5rem;
    color: #fff; /* White title for better contrast */
    text-shadow: 2px 2px 15px rgba(0,0,0,0.8);
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}







/* Discord Section with Background Image */
.discord-section {
    padding: 100px 20px;
    /* This adds a 70% black overlay so the image doesn't drown out your text */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://i.ibb.co/bMc4R4Bz/image.png') no-repeat center center/cover;
    background-attachment: fixed; /* Optional: Creates a cool parallax scrolling effect */
    text-align: center;
    border-top: 2px solid #d4af37; /* Gold divider line */
    border-bottom: 2px solid #d4af37;
}

.discord-container {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    justify-content: center;
    gap: 40px;              
    max-width: 800px;
    margin: 0 auto;         
}

.discord-info {
    max-width: 600px;       
    text-align: center;
    /* Added a slight background glow to make text extra readable */
    background: rgba(0, 0, 0, 0.4); 
    padding: 30px;
    border-radius: 10px;
}

/* Updated Discord Blue Button */
.btn-discord-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #5865F2; 
    color: #ffffff;      
    padding: 18px 45px;
    font-family: 'Rye', cursive;
    font-size: 1.4rem;
    text-decoration: none;
    text-transform: uppercase;
    border: 2px solid #000;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* The Clyde Icon Fix */
.discord-clyde {
    display: inline-block;
    width: 28px; /* Slightly larger for better visibility */
    height: 28px;
    background-color: #ffffff; /* This is the color the icon will be */
    
    /* Using a more reliable official Discord icon link */
    -webkit-mask-image: url('https://cdn.jsdelivr.net/npm/simple-icons@v9/icons/discord.svg');
    mask-image: url('https://cdn.jsdelivr.net/npm/simple-icons@v9/icons/discord.svg');
    
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    
    transition: background-color 0.3s ease;
}

/* Hover State */
.btn-discord-blue:hover {
    background: #ffffff;
    color: #5865F2; 
    transform: scale(1.05);
}

/* Change icon color to blue on hover */
.btn-discord-blue:hover .discord-clyde {
    background-color: #5865F2;
}





/* RULES


/* Rules Page Layout */
.rules-page {
    background-color: #1a1a1a;
    margin: 0;
}

.rules-header {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://i.ibb.co/B5kHZNsQ/image.png') center/cover;
    height: 40vh;
    display: flex;
    flex-direction: column;
}

.rules-content {
    padding: 60px 20px;
    text-align: center;
}

/* The Heavy Black Border Frame */
.rules-poster-frame {
    max-width: 900px;
    margin: 0 auto;
    background: #000;
    border: 20px solid #000; /* Your signature black border */
    box-shadow: 0 40px 100px rgba(0,0,0,0.9);
}

.rules-scroll-box {
    width: 100%;
    height: 800px; /* How much of the rules shows before scrolling */
    overflow-y: scroll;
    overflow-x: hidden;
    background: #111;
}

.rules-img {
    width: 100%;
    height: auto;
    display: block; /* Removes gaps between images */
}

/* Custom Gold Scrollbar */
.rules-scroll-box::-webkit-scrollbar {
    width: 10px;
}
.rules-scroll-box::-webkit-scrollbar-track {
    background: #000;
}
.rules-scroll-box::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 5px;
}

.rules-footer-actions {
    margin-top: 40px;
    color: #e0d5c1;
    font-family: 'Montserrat', sans-serif;
}








/* Ensure the body doesn't have tiny white gaps at the edges */
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevents unwanted side-scrolling */
}

.connect-full-width {
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* THE FULL-WIDTH IMAGE */
    background: 
        linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.3), rgba(0,0,0,0.7)),
        url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&q=80&w=1920');
    
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect: image stays still while scrolling */
    
    /* Adds a brass line at the top and bottom of the section */
    border-top: 3px solid #d4af37;
    border-bottom: 3px solid #d4af37;
    
    margin: 50px 0; /* Space above and below the section */
}

.connect-inner-content {
    text-align: center;
    padding: 40px;
    /* Optional: adds a dark backing to the text for better readability */
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    border-radius: 8px;
}

.connect-title {
    font-family: 'Rye', cursive;
    color: #d4af37;
    font-size: 3rem;
    margin: 0 0 10px 0;
    text-shadow: 3px 3px 5px rgba(0,0,0,0.8);
}

.connect-subtitle {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.btn-connect-large, 
.btn-gold-flat,
.btn-story {
    display: inline-block;
    background: #d4af37; /* Gold/Brass */
    color: #1a1a1a;      /* Dark text for contrast */
    padding: 18px 45px;
    font-family: 'Rye', cursive;
    font-size: 1.4rem;
    text-decoration: none;
    text-transform: uppercase;
    border: 2px solid #000;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.btn-connect-large:hover, 
.btn-gold-flat:hover,
.btn-story:hover {
    background: #fff; /* Turns white on hover */
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    color: #000;
}

.manual-ip {
    margin-top: 20px;
    color: #e0d5c1;
    font-size: 0.9rem;
}

.manual-ip code {
    background: #000;
    padding: 4px 8px;
    color: #d4af37;
}











/* Gallery Page Specifics */
.gallery-page {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), 
                url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-attachment: fixed;
    padding: 40px 20px;
}

.gallery-nav {
    max-width: 1200px;
    margin: 0 auto 40px auto;
}

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-header h1 {
    font-family: 'Rye', cursive;
    color: #d4af37;
    font-size: 3.5rem;
    text-shadow: 3px 3px 0px #000;
    margin-bottom: 10px;
}

.gallery-header p {
    color: #e0d5c1;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1rem;
}

/* Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
}

/* The Photo Frame Styling */
.photo-frame {
    background: #1a1a1a;
    padding: 15px 15px 45px 15px; /* Extra bottom padding for the "Polaroid" look */
    border: 1px solid #333;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    transition: all 0.4s ease;
    cursor: pointer;
}

.photo-frame img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    filter: sepia(0.6) brightness(0.7) contrast(1.2); /* The "Old" look */
    transition: filter 0.5s ease;
}

.photo-caption {
    font-family: 'Montserrat', sans-serif;
    color: #d4af37;
    margin-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-style: italic;
}

/* Hover: The Photo "Develops" */
.photo-frame:hover {
    transform: translateY(-10px) rotate(1deg);
    border-color: #d4af37;
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.2);
}

.photo-frame:hover img {
    filter: sepia(0) brightness(1) contrast(1);
}