/* =======================
   GENERAL BODY STYLING
   ======================= */
body {
    background: linear-gradient(45deg, #fabcdb 0%, #8d5f76 25%, #4ca59c);
    background-size: 400% 400%;
    animation: diagonalShift 15s ease infinite;
    min-height: 100vh;
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    display: flex;
    flex-direction: column;
    padding-top: 60px;
}

main {
    margin-left: 20px;
    margin-right: 20px;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1 {
    text-align: center;
}

/* =======================
   DESKTOP NAVBAR FIX
   ======================= */
#desktop-navbar .navbar {
    position: fixed;      /* fixed like mobile navbar */
    top: 0;               /* stick to top */
    width: 100%;          /* full width */
    z-index: 1000;        /* above content */
    background: rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(6px);
}

/* =======================
   NAVBAR STYLING
   ======================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 20px;
    margin: 0 auto;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(6px);
    flex-shrink: 0;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.navbar-left ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar-right .login-btn {
    text-decoration: none;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 10px; /* space between balance and username */
}

.balance-boxnav {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.3);
    padding: 4px 20px;
    border-radius: 10px;
    margin-right: 10px;
}

.balance-boxnav .top-up {
    margin-left: 6px;
    font-weight: bold;
    text-decoration: none;
    margin-right: -20px;
}

.navbar .logo img {
    height: 50px;
    width: auto;
    display: block;
}

.navbar li {
    margin-left: 20px;
    position: relative;
}

.navbar li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 25%;
    height: 50%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.navbar .logo {
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    margin-right: 20px;
    margin-left: 10px;
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.navbar-left ul li a,
.username-link,
.login-btn {
    color: white;
    font-family: 'Noto Sans JP', sans-serif;
    text-decoration: none;
    padding: 10px 15px;
}

.navbar-left ul li a:hover,
.username-link:hover,
.login-btn:hover,
.logout-btn:hover {
    text-decoration: none;
    color: #fabcdb;
    transform: scale(1.05);
}

.navbar .dropdown {
    position: relative;
}

.navbar .dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    min-width: 150px;
    border-radius: 6px;
    overflow: hidden;
    z-index: 1001;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    display: flex;
}

.navbar .dropdown-content .long-item {
    width: auto;
    word-break: break-word;
}

.navbar .dropdown-content a {
    display: block;
    text-align: center;
    padding: 10px;
    margin-right: 20px;
    color: #ffffff;
    text-decoration: none;
}

.navbar .dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fabcdb;
    transform: scale(1.05);
}

.navbar .dropdown:hover .dropdown-content {
    max-height: 500px;
    opacity: 1;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
}

.navbar a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fabcdb;
    transform: scale(1.05);
}

.navbar .dropdown-content li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

/* =======================
   FOOTER STYLING
   ======================= */
footer {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 20px !important;
    text-align: center;
    font-size: 14px;
    margin-top: auto;
}

footer a {
    color: #fabcdb;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

.social-icons {
    margin-bottom: 10px;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.social-icons a img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
    transition: filter 0.9s ease, transform 0.9s ease;
}

.social-icons a:hover img {
    filter: brightness(0) saturate(100%) invert(78%) sepia(15%) saturate(1223%) hue-rotate(291deg) brightness(100%) contrast(97%);
    animation: icon-bounce 0.4s ease forwards;
}

@keyframes icon-bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    70% { transform: scale(1.15); }
    100% { transform: scale(1.2); }
}

@keyframes icon-bounce-out {
    0% { transform: scale(1.2); }
    50% { transform: scale(0.9); }
    70% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* =======================
   PROFILE STYLING
   ======================= */
.profile-container {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.sidebar {
    width: 200px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    color: #fff;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 15px 0;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.sidebar ul li a:hover {
    color: #fabcdb;
}

.profile-content {
    flex: 1;
    padding: 20px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: none;
}

.profile-content section {
    margin-bottom: 30px;
}

.profile-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* =======================
   BACKGROUND ANIMATION
   ======================= */
@keyframes diagonalShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Fade-in animation */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* =====================================================================
                    Cateogry.html styling
   ===================================================================== */

.pokemon-page .content {
    justify-content: flex-start;
    align-items: center; /* optional: keeps them centered horizontally */
}

   /* Pack page styles */
.pack-container{
    align-items: center;
    width: 90%;
    margin-top: 20px; /* optional spacing */
    position: relative; /* or 'sticky' if you want it fixed on scroll */
    top: 0 !important;
}

/* Tabs container */
.pack-tabs {
    width: auto;
    display: flex;
    gap: 12px;
    margin-bottom: 50px;
    justify-content: center; /* center tabs horizontally */
}

/* Individual tab buttons */
.tab-btn {
    padding: 20px 40px;
    font-weight: 600;
    font-size: 20;
    cursor: pointer;
    border: 2px solid rgba(255, 253, 253, 0.2);
    border-radius: 12px;
    background-color: rgba(226, 137, 253, 0.2);
    color: #e4e4e4;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tab-btn:hover,
.tab-btn.active-tab {
    background-color: rgba(95, 231, 255, 0.5);
}

.packs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 70px;
    margin-left: 110px;
    margin-bottom: 100px;
}

.pack-card {
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
    width: 200px;
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    display: block;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    border-radius: 12px; /* smooth corners */
}

.pack-card h3{
    bottom:0;
}

.pack-card.hidden {
    opacity: 0;
    pointer-events: none; /* Prevent clicks while hidden */
    position: absolute; /* Optional to avoid layout shift */
}

.pack-card:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6),   /* golden glow */
                0 0 40px rgba(255, 215, 0, 0.4),
                0 0 60px rgba(255, 215, 0, 0.2);
}

.pack-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.placeholder-image {
    width: 100%;
    height: 150px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    border-radius: 5px;
}

.disabled-card {
    opacity: 0.5;
    pointer-events: none; /* prevents clicking */
}

.subcategory-name {
    margin-top: 8px;
    font-weight: bold;
    text-align: center;
    font-size: 16px;
}

/* Modal overlay */
.modal-overlay-packsorboxes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Radial gradient: darker center, transparent edges */
    background: radial-gradient(circle, rgba(0, 0, 0, 0.5) 0%, rgba(0,0,0,0) 70%);
    
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: opacity 0.3s ease;
}

/* Hide by default */
.hidden-packsorboxes {
    display: none;
}

/* Modal box */
.modal-content-packsorboxes {
    background: linear-gradient(145deg, rgba(0, 128, 128, 0.95), rgba(0, 180, 180, 0.9)); /* teal gradient with slight transparency */
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    width: 350px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    color: #fff; /* make text readable on teal */
}

/* Modal pop-in animation */
@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Buttons inside modal */
.modal-buttons-packsorboxes {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0 1rem 0;
}

.modal-btn-packsorboxes {
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 16px;
    background: linear-gradient(
        135deg, 
        rgb(211, 127, 130), 
        rgba(250, 208, 196, 0.4)
    );
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease, filter 0.2s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    width: 150px;
}

.modal-btn-packsorboxes:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

/* Chances text */
.modal-chances-packsorboxes {
    font-size: 0.95rem;
    color: #ffffff;
    margin-top: 1rem;
    font-style: italic;
    text-shadow: 0 1px 1px rgba(46, 46, 46, 0.5);
}

/* Close button */
.close-btn-packsorboxes {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: none;
    font-size: 1.4rem;
    font-weight: bold;
    color: #ff3333;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.close-btn-packsorboxes:hover {
    transform: rotate(90deg);
    color: #ff0000;
}


.modal-content-packsorboxes img:hover {
    transform: scale(1.05);
}

.details-btn-packsorboxes {
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 16px;
    background: linear-gradient(
        135deg, 
        rgb(255, 255, 255), 
        rgba(250, 208, 196, 0.4)
    );
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease, filter 0.2s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    width: 150px;
}

.details-btn-packsorboxes:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

/* Tabs container */
.rarity-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  gap: 10px;
}

/* Tab buttons */
.rarity-tab-btn {
    background: linear-gradient(
        135deg, 
        rgb(211, 127, 130), 
        rgba(250, 208, 196, 0.4)
    );
  border: none;
  border-radius: 12px;
  padding: 8px 20px;
  font-size: 16px;
  width: 250px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.rarity-tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.rarity-tab-btn.active {
  background: linear-gradient(135deg, #ff8c00, #ffa500); /* slightly darker for active */
  box-shadow: 0 6px 10px rgba(0,0,0,0.2);
}

/* =======================
   RARITY TABLE STYLING
   ======================= */
.rarity-tab-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.1); /* subtle background */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.rarity-tab-content th,
.rarity-tab-content td {
    padding: 10px 15px;
    text-align: center;
}

.rarity-tab-content thead {
    background: linear-gradient(135deg, rgb(211, 127, 130), rgba(250, 208, 196, 0.4));
    color: #fff;
    font-weight: bold;
}

.rarity-tab-content tbody tr {
    transition: background 0.2s ease, transform 0.2s ease;
    cursor: default;
}

.rarity-tab-content tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.rarity-tab-content tbody tr:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.rarity-tab-content td {
    color: #fff; /* text color for modal */
    font-weight: 500;
}

/* Remove scroll, let table expand naturally */
.rarity-tab-content {
    max-height: none;
    overflow: visible;
}
/*==========================================
    PULL CSS 
    =========================================*/
/* ==========================
   Pulled Cards Page Styling
   ========================== */
.pulled-cards-page {
    display: flex;
    justify-content: space-between; /* left inventory + right stack */
    align-items: center;           /* vertically center children */
    gap: 30px;                     /* space between inventory and stack */
    width: 100%;
    min-height: 600px;             /* optional: ensures enough height */
    padding: 20px;
    box-sizing: border-box;
}

/* Container for stacked cards (deck) */
.pulledcard-cards-grid {
    position: relative;
    width: 100%;       /* take up available space */
    max-width: 400px;  /* optional limit */
    aspect-ratio: 2/3; /* keeps card ratio */
}

.pulledcard-card {
    width: 100%;       /* fills parent */
    height: 100%;      /* fills parent */
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.6s ease, top 0.5s ease, left 0.5s ease;
    position: absolute; /* still required for stacking */
}

/* Individual cards */
.pulledcard-card {
    width: 380px;
    height: 540px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.6s ease, top 0.5s ease, left 0.5s ease;
    position: absolute; /* required for stacking */
}

/* Flip animation */
.pulledcard-card.flipped .pulledcard-inner {
    transform: rotateY(180deg);
}

/* Inner container */
.pulledcard-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

/* Card faces */
.pulledcard-front, .pulledcard-back {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ensures image fills container without distortion */
    border-radius: 12px; /* match card corners */
    display: block; /* remove inline spacing issues */
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.pulledcard-back {
    transform: rotateY(180deg);
}

/* Collected row (after moving cards) */
.pulledcard-row {
    display: flex;
    gap: 30px; /* space between collected cards */
    margin-left: 50px;
    align-items: flex-start;
    flex-wrap: wrap; /* wrap if too many cards */
}

.pulledcard-front img,
.pulledcard-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.inventory-card{
    width: 130px;
}

.inventory-cards-grid {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.inventory-card-info {
    margin-top: 4px;
    font-size: 0.8rem;
    color: #fff;
    text-align: center;
}

.inventory-card-info p {
    margin: 2px 0;
    line-height: 1.2;
}

.pull-stack {
    display: flex;
    justify-content: center;  /* horizontal centering within the right side */
    align-items: center;      /* vertical centering within the right side */
    flex: 1;                  /* take remaining space if needed */
    flex-direction: column;
}

.pulledcard-cards-grid {
    position: relative;
    width: 100%;
    height: 600px;
    transition: transform 0.8s ease; /* smooth animation */
    transform: translateY(0px);      /* initial position */
}

/* Shifted state */
.pulledcard-cards-grid.shifted {
    transform: translateY(-400px);   /* move up 400px */
}

.inventory-panel {
    width: 5000px;          /* fixed width */
    height: 1000px;         /* fixed height */
    overflow-y: auto;      /* scroll vertically if content is too tall */
    padding: 10px 30px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;             /* spacing between inventory cards */
}

.inventory-history {
    display: flex;
    flex-wrap: wrap; /* allow wrapping to next row */
    gap: 10px;        /* spacing between cards */
}

.inventory-history .inventory-card {
    width: 130px;     /* fixed width */
    height: 180px;    /* fixed height */
    flex: 0 0 auto;   /* prevent shrinking */
}

.inventory-card {
    background: rgba(255, 255, 255, 0.15); /* slightly transparent for depth */
    border-radius: 12px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#inventory-cards {
    display: flex;
    flex-wrap: wrap;       /* allow wrapping */
    gap: 20px;             /* spacing between cards */
    z-index: 100;
}

.inventory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

#inventory-cards .pulledcard-card {
    width: 130px;          /* fixed width */
    height: 180px;         /* fixed height */
    flex: 0 0 auto;        /* prevent shrinking */
    position: relative;    /* allow normal flex layout */
}

.pulledcard-modal {
  position: fixed; /* overlays, not in normal flow */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex; /* or grid, center stuff */
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
}

.pulledcard-hidden {
  display: none !important; /* completely removes from layout */
}

#next-pack-btn {
    padding: 12px 28px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #d37f82, rgba(250, 208, 196, 0.4));
    border: none;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.3s ease, filter 0.2s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    margin-top: 20px; /* optional, keeps spacing consistent */
}

#next-pack-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    filter: brightness(1.1);
}

.pull-buttons {
    display: flex;
    justify-content: center;
    gap: 15px; /* space between buttons */
    margin-top: 20px;
}

#auto-btn {
    padding: 12px 28px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #5fe7ff, rgba(95, 231, 255, 0.4));
    border: none;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.3s ease, filter 0.2s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

#auto-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    filter: brightness(1.1);
}

#pull-stack {
    position: relative; /* make absolute children relative to this container */
}

.pack-image-container {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 400px;
    height: auto;
    z-index: 999;
    pointer-events: auto;
    left: auto;
    transform: none;
    margin-right: -10px;
    margin-top: -150px;
}

/* Both images absolutely stacked inside the container */
#pack-image-top,
#pack-image-bottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: block;
    transition: transform 0.6s ease-out;
}

#pack-image-top {
    clip-path: inset(0 0 85% 0);  /* top 15% */
    z-index: 2; /* above bottom piece */
}

#pack-image-bottom {
    clip-path: inset(15% 0 0 0); /* bottom 85% */
    z-index: 1; /* below top piece */
}

.rip-top {
    transform: translateY(-50px) rotate(-5deg);
}

.rip-bottom {
    transform: translateY(250px) rotate(10deg);
}

.guaranteed-row td {
    text-align: center;   /* Center the single cell */
    font-weight: bold;    /* Optional: make it stand out */
}

/* =======================
   NOTICE PAGE STYLING
   ======================= */

.notice-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.notice-title {
    text-align: center;
    font-size: 2rem;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* Individual notice cards */
.notice-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.notice-item {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 20px;
    width: 300px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notice-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.notice-heading {
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
}

.notice-date {
    color: #e4e4e4;
    font-size: 0.9rem;
    text-align: center;
}

/* =======================
   NOTICE LIST
   ======================= */
.notice-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
    color: #fff;
}

.notice-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.notice-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.notice-item {
    background: rgba(46, 46, 46, 0.5);
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    width: 600px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notice-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.notice-heading {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.notice-date {
    font-size: 0.9rem;
    color: #ddd;
}

/* =======================
   MODAL STYLING
   ======================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(145deg, rgba(0, 128, 128, 0.95), rgba(0, 180, 180, 0.9));
    padding: 30px;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.modal-title {
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.modal-body {
    font-size: 1rem;
    line-height: 1.5;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #ff3333;
    transition: transform 0.2s ease, color 0.2s ease;
}

.close-btn:hover {
    transform: rotate(90deg);
    color: #ff0000;
}

/* =======================
   RESPONSIVE
   ======================= */
@media (max-width: 768px) {
    .notice-item {
        width: 100%;
    }

    .modal-content {
        padding: 20px;
        max-height: 90vh;
    }
}

/* Pagination styling */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 8px;
    flex-wrap: wrap; /* wraps buttons on smaller screens */
}

.page-btn {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s, color 0.2s;
}

.page-btn:hover {
    background-color: #f0f0f0;
    color: #000;
}

.page-btn.disabled {
    display: none;
    pointer-events: none;
    background-color: #eee;
}

.current-page {
    padding: 6px 12px;
    font-weight: bold;
}



/* =======================
   1080p
   ======================= */

/* CSS for screens 1920px wide or smaller */
@media (max-width: 1920px) {
    .inventory-panel{
        height: 800px;
    }

    .pull-stack{
        margin-top: 170px;
    }
}


   /* =======================
   1080p
   ======================= */



.feedback-page {
    display: flex;
    justify-content: center;  /* horizontal center */
    align-items: center;      /* vertical center */
    padding: 40px 20px;
    box-sizing: border-box;
}

.feedback-container {
    background: rgba(251, 145, 255, 0.15);  /* lighter and softer */
    padding: 40px;
    max-width: 500px;      /* slightly narrower */
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;     /* centers h2, subtitle, and form content */
    padding-right: 70px;
}

.feedback-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.feedback-subtitle {
    font-size: 14px;
    color: #555;
    margin-bottom: 25px;
}

.feedback-form .form-group {
    margin-bottom: 20px;
    text-align: left;       /* keep label + textarea left-aligned */
}

.feedback-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}

.feedback-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 12px;
    resize: vertical;
    font-size: 14px;
    font-family: inherit;
    transition: border 0.2s;
}

.feedback-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.2);
}

.feedback-btn {
    background-color: #3498db;
    color: #fff;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s, transform 0.2s;
}

.feedback-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}


/* Default: show desktop, hide mobile */
#desktop-navbar {
    display: block;
}

#mobile-navbar {
    display: none;
}

/* Mobile: hide desktop, show mobile */
@media (max-width: 760px) {
    #desktop-navbar {
        display: none;
    }
    #mobile-navbar {
        display: block;
    }
    .tab-btn{
        font-size: 10;
        height: 20px;
        padding: 10px;
        padding-bottom: 23px;
    }
    .packs-list{
        margin: 0px;
        justify-content: center;
        margin-bottom: 30px;
    }
    .modal-content{
        max-width: 300px;
        margin-right: 35px;
    }
}

.pack-image-wrapper {
  position: relative;
  display: inline-block;
}

.info-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #f39c12;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  text-align: center;
  padding: 0;
}

.info-btn:hover {
  background: #e67e22;
}

.all-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 6px;
  margin-top: 15px;
}

.all-cards-grid img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}


/* Limit modal height & make it scroll */
.modal-content-packsorboxes {
  max-height: 80vh;       /* not taller than 80% of viewport */
  overflow-y: auto;       /* enable vertical scroll */
  position: relative;
}

/* Card grid */
.all-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.all-cards-grid img {
  width: 100%;
  height: auto;
  display: block;
}

/* Webkit browsers (Chrome, Edge, Safari) */
.modal-content-packsorboxes::-webkit-scrollbar {
    width: 8px;               /* thin scrollbar */
}

.modal-content-packsorboxes::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);  /* subtle track */
    border-radius: 8px;
}

.modal-content-packsorboxes::-webkit-scrollbar-thumb {
    background: rgba(95, 231, 255, 0.5);    /* teal-ish thumb */
    border-radius: 8px;
    transition: background 0.3s ease;
}

.modal-content-packsorboxes::-webkit-scrollbar-thumb:hover {
    background: rgba(95, 231, 255, 0.8);    /* highlight on hover */
}

/* Firefox */
.modal-content-packsorboxes {
    scrollbar-width: thin;       /* thin scrollbar */
    scrollbar-color: rgba(95, 231, 255, 0.5) rgba(255, 255, 255, 0.05); 
    /* thumb color first, track second */
}

/* Dark background overlay */
.footer-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999; /* higher than all existing modals */
}

.footer-modal-overlay.show {
  display: flex;
}

.footer-modal-content {
  background: rgb(2, 126, 120);
  color: white;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 12px;
  padding: 20px;
  position: relative;
}

.footer-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

