@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Roboto+Slab&display=swap");

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    color: #e0d8c3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: url("images/indexbackground3.jpg") center center no-repeat;
    background-size: 100% 100%;
    position: relative;
}

/* dark transparent overlay */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

h1 {
    font-family: "Roboto Slab", serif;
    font-size: 2.5rem;
    margin-bottom: 0.2em;
    color: #B22222;
    -webkit-text-stroke: 0.5px #ffd700;
    text-stroke: 0.5px #ffd700;
    text-shadow: 0 0 8px #ff4b4b, 0 0 12px #800000;
    letter-spacing: 2px;
}

/* For screens wider than 1024px */
@media (min-width: 1024px) {
    h1 {
        font-size: 5rem;
        -webkit-text-stroke: 2px #ffd700;
        text-stroke: 2px #ffd700;
    }
}

a { color: #8B0000; }
a:hover { color: #f0d68c; }

.container {
    flex: 1;
    max-width: 1100px;
    margin: 40px auto 20px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.left-panel { flex: 2 1 600px; }

.tagline {
    font-weight: 700;
    font-size: 1.3rem;
    color: #ffd700;
    text-shadow: 0 0 6px #ffd700, 0 0 8px #804b00;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.description {
    background-color: #1e1b17;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    border-radius: 8px;
    padding: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
    box-shadow: inset 0 0 8px #4B0000;
    border: 1px solid #8B0000;
    margin-bottom: 20px;
    position: relative;
    z-index: 0;
    color: #fff;
}

.description p {
    color: #ffffff;
    text-shadow: 0 0 4px #ff4b4b, 0 0 8px #800000;
    font-weight: 700;
}

.description::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    z-index: 1;
}

.description * { position: relative; z-index: 2; }

.features {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    font-size: 1.05rem;
}

.features li {
    margin: 10px 0;
    padding-left: 24px;
    position: relative;
    color: #ffd700;
    font-weight: 700;
}

.features li::before {
    content: "◆";
    position: absolute;
    left: 0;
    color: #ff4b4b;
    text-shadow: 0 0 8px #800000;
}

.right-panel {
    flex: 1 1 320px;
    background: #1e1b17;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.4), 0 0 10px rgba(139, 0, 0, 0.6);
}

.right-panel h2 {
    font-family: "Roboto Slab", serif;
    color: #8B0000;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1.2px;
}

form label { color: #8B0000; }

form input[type="text"],
form input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #8B0000;
    background: #2c2923;
    color: #e0d8c3;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input[type="text"]:focus,
form input[type="password"]:focus {
    border-color: #f0d68c;
    outline: none;
    box-shadow: 0 0 8px #f0d68c, 0 0 4px #8B0000;
}

form input[type="submit"] {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: none;
    background: #8B0000;
    color: #1e1b17;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: 1.5px;
}

form input[type="submit"]:hover {
    background: #f0d68c;
    box-shadow: 0 0 12px #f0d68c, 0 0 6px #8B0000;
}

.footer {
    margin-top: auto; 
    padding: 20px 0;
    text-align: center;
    background: #1a1815;
    color: #8B0000;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 2;
}

.container-dashboard {
    background-color: #1e1b17;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 0 25px rgba(255,0,0,0.4), 0 0 10px rgba(139,0,0,0.6);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    text-align: center;
    margin: 90px auto 40px;
    max-width: 1100px;
    width: 100%;
    box-sizing: border-box;
}

.container-dashboard .row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Player Rankings Styling */
.container-dashboard .player-rankings {
    background: linear-gradient(145deg, rgba(139,0,0,0.85), rgba(255,215,0,0.15));
    border-radius: 12px;
    padding: 20px;
    flex: 1 0 auto;
    box-shadow: 0 0 15px rgba(255,0,0,0.5), 0 0 25px rgba(255,215,0,0.3);
}

.container-dashboard p {
    color: #e0d8c3;
    text-shadow: 0 0 4px #ff4b4b;
    font-weight: 600;
    line-height: 1.5;
}

.container-dashboard a {
    color: #ffd700;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0 0 6px #ff4b4b;
}

.container-dashboard a:hover {
    color: #f0d68c;
    text-shadow: 0 0 10px #ff4b4b;
}

.navbar-dashboard-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(30, 27, 23, 0.95);
    border-bottom: 2px solid #8B0000;
    z-index: 9999;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

.navbar-logo {
    font-family: "Montserrat", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 6px #ff4b4b, 0 0 8px #800000;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 2;
}

.navbar-dashboard-right {
    display: flex;
    gap: 30px;
}

.navbar-dashboard-right a {
    color: #ffd700;
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
    text-decoration: none;
    text-shadow: 0 0 6px #ff4b4b, 0 0 8px #800000;
    transition: all 0.3s ease;
}

.navbar-dashboard-right a:hover {
    color: #f0d68c;
    text-shadow: 0 0 12px #ff4b4b, 0 0 10px #800000;
}

footer {
    text-align: center;
    padding: 15px 0;
    color: #8B0000;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .navbar-dashboard-top {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .navbar-dashboard-right {
        width: 100%;
        justify-content: space-around;
        margin-top: 10px;
    }

    .navbar-logo {
        font-size: 1.5rem;
        position: relative;
        left: 0;
        top: 0;
        transform: none;
    }
}

/* Empire & Rounds */
.round-ends {
    color: #8B0000;
    text-shadow: 0 0 6px #ffd700, 0 0 10px #ff4b4b;
    font-weight: 700;
    font-size: 1.7rem;
}

.empire-title {
    font-size: 2.4rem;
    font-weight: 700;
    text-shadow: 0 0 8px #ff4b4b, 0 0 12px #800000;
}

/* Player Rankings Styling */
.player-rankings .row {
    border-radius: 6px;
    transition: all 0.2s ease;
    padding: 8px 0;
}

/* Player Rankings Row Colors */
.player-rankings .even-rank {
    background-color: rgba(255, 215, 0, 0.1);
}

.player-rankings .odd-rank {
    background-color: rgba(139, 0, 0, 0.5);
}

/* Player Links */
.player-rankings .player-link {
    color: #ffd700;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0 0 6px #ff4b4b, 0 0 10px #800000;
}

.player-rankings .player-link:hover {
    color: #f0d68c;
    text-shadow: 0 0 10px #ff4b4b, 0 0 12px #800000;
}

/* Player Rankings Columns */
.player-rankings .col-rank {
    flex: 1;
    text-align: left;
    font-weight: bold;
}

.player-rankings .col-player {
    flex: 3;
    text-align: left;
}

.player-rankings .col-networth {
    flex: 2;
    text-align: right;
    font-weight: bold;
}

/* Ensure rows use flexbox properly */
.player-rankings .row {
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    padding: 8px 0;
}

/* Player Rankings Hover Effect (players only) */
.player-rankings .even-rank:hover,
.player-rankings .odd-rank:hover {
    transform: scale(1.02);
    box-shadow: 0 0 12px #ffd700, 0 0 8px #ff4b4b;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    z-index: 2;
}

/* ✅ Empire & Player Rankings 50/50 Side by Side */
.game-sections {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
}

.game-sections > .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

/* ================================================== */
/* ✅ Landing Page Two-Column Layout Fix - Align Right Panel to Description */
/* ================================================== */
.container-landing {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    max-width: 1100px;
    margin: 40px auto 20px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    flex-direction: column;
}

/* New row for header: title + tagline */
.landing-header {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

/* Row containing description + login form side by side */
.landing-main-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.left-panel-landing {
    flex: 2 1 600px;
    display: flex;
    flex-direction: column;
}

.right-panel-landing {
    flex: 1 1 320px;
    background: #1e1b17;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.4), 0 0 10px rgba(139, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

/* Align login form to bottom of description section only */
.right-panel-landing form {
    margin-top: auto;
}

.right-panel-landing h2 {
    font-family: "Roboto Slab", serif;
    color: #8B0000;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1.2px;
}

@media (max-width: 768px) {
    .container-landing {
        flex-direction: column;
    }

    .landing-main-row {
        flex-direction: column;
    }

    .right-panel-landing {
        margin-top: 20px;
        margin-bottom: 0;
        justify-content: flex-start;
        align-items: stretch;
    }

    .right-panel-landing form {
        margin-top: 0;
    }
}

/* Premium red border for Empire of Vice and Player Rankings row */
.row-border {
    border: 2px solid rgba(139, 0, 0, 0.7);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: rgba(30, 27, 23, 0.05);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.3), 0 0 25px rgba(255, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.row-border:hover {
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.5), 0 0 40px rgba(139, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.8);
}

.row-border .col-6 {
    flex: 1 1 45%;
    min-width: 300px;
}

@media (max-width: 768px) {
    .row-border .col-6 {
        flex: 1 1 100%;
        margin-bottom: 15px;
    }
}

.howto-container {
    margin-top: 120px;
}

.select-round {
    width: 200px;
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid #8B0000;
    background-color: #1e1b17;
    color: #ffd700;
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 0 0 6px #ff4b4b;
    box-shadow: 0 0 10px #ff4b4b inset;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    text-align: center;
}

.select-round:hover,
.select-round:focus {
    border-color: #ffd700;
    box-shadow: 0 0 12px #ffd700 inset, 0 0 8px #ff4b4b inset;
    outline: none;
}

.select-round option {
    background-color: #1e1b17;
    color: #ffd700;
    text-align: center;
}

.row.fw-bold > div {
    font-weight: 700 !important;
}

/* ============================ */
/* Credit store packages        */
/* ============================ */
.credit-packages {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    align-items: center;
}

.credit-package {
    background-color: #1e1b17;
    border: 2px solid #8B0000;
    border-radius: 12px;
    padding: 15px 20px;
    width: 600px;
    color: #ffd700;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(255,0,0,0.5), 0 0 10px rgba(139,0,0,0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.credit-package:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px #ffd700, 0 0 15px #ff4b4b;
}

.credit-package .credits {
    font-size: 1.2rem;
    flex: 1;
    text-align: left;
}

.credit-package .ogstatus {
    font-size: 1rem;
    flex: 1;
    text-align: center;
    color: #ffae00;
}

.credit-package .price {
    font-size: 1.2rem;
    margin: 0 20px;
    flex: 0;
    text-align: center;
}

.credit-package button {
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    background-color: #8B0000;
    color: #1e1b17;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.credit-package button:hover {
    background-color: #ffd700;
    box-shadow: 0 0 12px #ffd700, 0 0 6px #8B0000;
}

/* Plus sign in credit packages */
.credit-package .plus {
    font-size: 2rem; /* bigger than text */
    color: #ffd700; /* eye-catching color */
    font-weight: 900;
    margin: 0 10px; /* space between credits and OG status */
    text-shadow: 0 0 8px #ff4b4b, 0 0 12px #800000;
    flex: 0; /* fixed size, doesn’t grow */
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulsePlus 1.5s infinite alternate; /* subtle pulse */
}

/* Pulse animation for + */
@keyframes pulsePlus {
    0% { transform: scale(1); color: #ffd700; }
    50% { transform: scale(1.2); color: #ffea00; }
    100% { transform: scale(1); color: #ffd700; }
}

.payment-options {
    margin-top: 8px;
}
.payment-options .or-text {
    margin: 0 6px;
    font-weight: bold;
    color: #fff;
}

/* Make credit packages fully responsive on small screens */
@media (max-width: 768px) {
    .credit-packages {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .credit-package {
        width: 100% !important; /* force full width */
        max-width: 100%;
        flex-direction: column !important; /* stack items vertically */
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 15px;
    }

    .credit-package .credits,
    .credit-package .ogstatus,
    .credit-package .price {
        text-align: center !important;
        margin: 5px 0;
    }

    .credit-package .plus {
        margin: 5px 0 !important;
    }

    .credit-package button {
        width: 90% !important;
        margin-top: 10px;
    }

    .payment-options {
        flex-direction: column !important;
        gap: 10px;
        align-items: center;
        /* removed display: none !important; so JS toggle works */
    }

    .payment-options .or-text {
        display: none !important;
    }

    /* ---------------- Hall of Fame mobile tweaks ---------------- */
    /* Hide Thugs + Dealers columns */
    .player-rankings .col-player:nth-child(4),
    .player-rankings .col-player:nth-child(5) {
        display: none !important;
    }

    /* Reduce font size a bit so rows fit nicely */
    .player-rankings .row > div {
        font-size: 0.9rem;
        padding: 2px;
    }

    .empire-title {
        font-size: 1.5rem !important;
    }

    .select-round {
        width: 100%;
        max-width: 180px;
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}

/* ====================== */
/* Advanced Guides Styling */
/* ====================== */

.guide-section {
    background: #1e1b17;
    border: 2px solid #8B0000;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 0 15px rgba(255,0,0,0.4), 0 0 8px rgba(139,0,0,0.6);
    text-align: left;
  }
  
  .guide-title {
    font-family: "Roboto Slab", serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 6px #ff4b4b, 0 0 10px #800000;
    margin-bottom: 15px;
  }
  
  .guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #e0d8c3;
  }
  
  .guide-list li {
    margin: 10px 0;
    padding-left: 28px;
    position: relative;
  }
  
  .guide-list li::before {
    content: "➤";
    position: absolute;
    left: 0;
    color: #ff4b4b;
    text-shadow: 0 0 6px #800000, 0 0 10px #ffd700;
    font-weight: 700;
  }

  /* ====================== */
/* Advanced Guide Notes   */
/* ====================== */
.guide-note {
    background: #1e1b17;
    border: 1px solid rgba(139,0,0,0.6);
    border-radius: 10px;
    padding: 18px;
    margin: 20px 0;
    color: #d9d2c0;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
    text-align: left;
    box-shadow: 0 0 10px rgba(255,0,0,0.25), 0 0 6px rgba(139,0,0,0.4) inset;
  }
  
  .guide-note strong {
    color: #ffd700;
  }
  


