:root {
    --pokemon-red: #FF0000;
    --pokemon-blue: #3B4CCA;
    --pokemon-yellow: #FFDE00;
    --pokemon-black: #2A2A2A;
    --pokemon-white: #FFFFFF;
    --card-bg: #F5F5DC;
    --shadow: rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--pokemon-blue) 0%, var(--pokemon-red) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.navbar {
    background: var(--pokemon-yellow);
    padding: 1rem 0;
    box-shadow: 0 4px 6px var(--shadow);
    border-bottom: 4px solid var(--pokemon-blue);
}

.container {
    margin: 0 auto;
    padding: 0 2rem;
}

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

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--pokemon-blue);
}

.pokemon-title {
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;

    a{
        text-decoration:none;
        color:var(--pokemon-black)
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--pokemon-black);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: var(--pokemon-red);
    color: var(--pokemon-white);
    border-color: var(--pokemon-blue);
}

/* Main Content */
main {
    flex: 1;
}

/* Card Styling */
.pokemon-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem 0;
    box-shadow: 0 8px 16px var(--shadow);
    border: 4px solid var(--pokemon-yellow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pokemon-card:hover {
    box-shadow: 0 12px 24px var(--shadow);
}

.page-title {
    color: var(--pokemon-white);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 3px 3px 0px var(--pokemon-black);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top:1rem;
}

/* Footer */
footer {
    background: var(--pokemon-black);
    color: var(--pokemon-white);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto;
}

/* Leaderboard Styles */
.leaderboard-header {
    color: var(--pokemon-blue);
    text-align: center;
    font-size: 2rem;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.leaderboard {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    border: 3px solid var(--pokemon-blue);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.leaderboard-row:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.leaderboard-row.gold {
    border-color: #FFD700;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFFFF 100%);
}

.leaderboard-row.silver {
    border-color: #C0C0C0;
    background: linear-gradient(135deg, #F5F5F5 0%, #FFFFFF 100%);
}

.leaderboard-row.bronze {
    border-color: #CD7F32;
    background: linear-gradient(135deg, #FFF0E6 0%, #FFFFFF 100%);
}

.rank-badge {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.rank-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--pokemon-blue);
}

.medal {
    font-size: 2.5rem;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--pokemon-yellow);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    background: white;
}

.user-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--pokemon-black);
}

.user-score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}

.score-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--pokemon-red);
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.1);
}

.score-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-card {
    margin-top: 2rem;
}

/* Current Round Styles */
.round-header {
    color: var(--pokemon-blue);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.round-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.box-item {
    background: white;
    border: 3px solid var(--pokemon-blue);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.box-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: var(--pokemon-red);
}

.box-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    border-radius: 8px;
}

.box-name {
    font-weight: 600;
    color: var(--pokemon-black);
    font-size: 0.95rem;
    margin: 0;
}

.entries-list {
    display: grid;
    gap: 1.5rem;
}

.entry-card {
    background: white;
    border: 3px solid var(--pokemon-yellow);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.entry-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.entry-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--pokemon-blue);
    background: white;
}

.entry-username {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pokemon-black);
}

.entry-content {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.pulls-summary {
    display: flex;
    gap: 1.5rem;
    flex: 1;
    min-width: 280px;
}

.pull-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: 10px;
    flex: 1;
    min-width: 80px;
    border: 2px solid;
    transition: all 0.3s ease;
}

.pull-stat:hover {
    transform: scale(1.05);
}

.pull-stat.ar {
    background: linear-gradient(135deg, #E8F5E9 0%, #FFFFFF 100%);
    border-color: #4CAF50;
}

.pull-stat.sr {
    background: linear-gradient(135deg, #E3F2FD 0%, #FFFFFF 100%);
    border-color: #2196F3;
}

.pull-stat.sar {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFFFFF 100%);
    border-color: #FF9800;
}

.pull-count {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
}

.pull-stat.ar .pull-count {
    color: #4CAF50;
}

.pull-stat.sr .pull-count {
    color: #2196F3;
}

.pull-stat.sar .pull-count {
    color: #FF9800;
}

.pull-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.best-card-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.best-card-label {
    font-weight: 700;
    color: var(--pokemon-red);
    font-size: 1.1rem;
    margin: 0;
}

.best-card-image {
    width: 180px;
    height: auto;
    border-radius: 12px;
    border: 3px solid var(--pokemon-yellow);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.best-card-image:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.best-card-image:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--pokemon-blue);
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--pokemon-red);
}

.btn-primary {
    background: var(--pokemon-red);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration:none;
}

.btn-secondary {
    background: var(--pokemon-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.btn-primary:hover {
    background: #CC0000;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-danger {
    background: #D32F2F;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #B71C1C;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.section-title {
    color: var(--pokemon-blue);
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    text-align: center;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.1);
}

.round-info-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.box-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
}

.box-quantity {
    font-size: 0.85rem;
    color: #666;
    margin: 0.25rem 0 0 0;
}

.add-box-form {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFFFF 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.add-box-form input {
    margin-bottom: 0.5rem;
    margin-top:0.5rem;
}

.add-box-form select {
    margin-bottom: 0.5rem;
    margin-top:0.5rem;
}

.pull-stat-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: 10px;
    flex: 1;
    min-width: 80px;
    border: 2px solid;
}

.pull-stat-input.ar {
    background: linear-gradient(135deg, #E8F5E9 0%, #FFFFFF 100%);
    border-color: #4CAF50;
}

.pull-stat-input.sr {
    background: linear-gradient(135deg, #E3F2FD 0%, #FFFFFF 100%);
    border-color: #2196F3;
}

.pull-stat-input.sar {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFFFFF 100%);
    border-color: #FF9800;
}

.pull-input {
    width: 80px;
    padding: 0.5rem;
    border: 2px solid currentColor;
    border-radius: 6px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-top: 0.5rem;
}

.pull-stat-input.ar .pull-input {
    color: #4CAF50;
    border-color: #4CAF50;
}

.pull-stat-input.sr .pull-input {
    color: #2196F3;
    border-color: #2196F3;
}

.pull-stat-input.sar .pull-input {
    color: #FF9800;
    border-color: #FF9800;
}

.entry-form {
    width: 100%;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
}

.add-user-form {
    background: linear-gradient(135deg, #E8F5E9 0%, #FFFFFF 100%);
    border-color: #4CAF50;
}

.add-user-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
    }

    .page-title {
        font-size: 2rem;
    }

    .leaderboard-row {
        gap: 1rem;
        padding: 1rem;
    }

    .rank-badge {
        width: 40px;
        height: 40px;
    }

    .medal {
        font-size: 2rem;
    }

    .rank-number {
        font-size: 1.2rem;
    }

    .user-avatar {
        width: 50px;
        height: 50px;
    }

    .user-name {
        font-size: 1.1rem;
    }

    .score-value {
        font-size: 1.5rem;
    }

    .leaderboard-row:hover {
        transform: translateX(5px);
    }

    .boxes-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .entry-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .pulls-summary {
        width: 100%;
        min-width: auto;
    }

    .best-card-image {
        width: 150px;
    }

    .pull-count {
        font-size: 2rem;
    }
}

.inline-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.inline-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}


.cards-background {
    background-image: url('/img/background/cards.jpg'); /* path to your image */
    background-size: cover; /* cover entire viewport */
    background-position: center; /* center the image */
    background-repeat: no-repeat; /* don’t tile */
    background-attachment: fixed; /* optional: makes image stay fixed on scroll */
}

.text-danger{
    color:var(--pokemon-red)
}

/* Hamburger button (hidden on desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

    .hamburger .bar {
        height: 3px;
        width: 100%;
        background-color: #333;
        border-radius: 2px;
    }

/* Mobile styles */
@media (max-width: 1130px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 0.5rem;
        gap: 0;
    }

        .nav-menu li {
            padding: 0.5rem 0;
            text-align: center;
        }

    .hamburger {
        display: flex;
    }

    .nav-menu.active {
        display: flex;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .navbar-brand {
        font-size:1rem;
    }
}

/* Mobile styles */
@media (max-width: 400px) {
    .navbar-brand {
        display:none;
    }
    .navbar .container{
        justify-content:end;
    }
}

.button-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: start;

    a {
        width: 200px;
        text-align: center;
    }
}

.pokemon-card.current-event {
    text-align: center;

    h2{
        margin-bottom:2rem;
    }
}


.presentation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0;
}

.presentation-image {
    max-width:500px;
}

.presentation.reverse {
    @media (min-width:768px) {
        flex-direction: row-reverse;
    }
}

/* Image styling */
.presentation-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.presentation-content h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

    .presentation-content .btn {
        display: inline-block;
        padding: 0.5rem 1rem;
        background-color: #007bff;
        color: white;
        text-decoration: none;
        border-radius: 4px;
        margin-top: 1rem;
    }

/* Responsive: stack on mobile */
@media (max-width: 768px) {
    .presentation {
        flex-direction: column;
        text-align: center;
    }

    .presentation-content {
        max-width: 100%;
    }

        .presentation-content .btn {
            margin: 1rem 0 0 0;
        }
}

.center{
    text-align:center;
}

.mt-2{
    margin-top:2rem;
}
.mt-1{
    margin-top:1rem;
}

.btn-small {
    padding: 0.5rem 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.rocking {
    display: block; /* needed for transform */
    animation: rock 1s ease-in-out infinite;
    transform-origin: center bottom; /* pivot point */
}

@keyframes rock {
    0% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(10deg);
    }

    100% {
        transform: rotate(-10deg);
    }
}

.best-card-section{
    div{
        max-width:650px;
    }
    img{
        max-width:100%;
    }
}

.navbar-brand {
    div.pokemon-title {
        display: flex;
        align-items: center;
    }

    img.pokecard {
        width: 25px;
        margin-right: 10px;
    }
}

.profile-pic {
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;

    img {
        max-width: 100%;
    }
}