/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000;
    color: #ccc;
    display: flex;
    flex-direction: column;
    height: 100vh;         /* Vaste viewport hoogte */
    overflow: hidden;      /* Verhindert scrollen van body */
}

/* ===== Navigatie ===== */
nav {
    background-color: #111;
    display: flex;
    justify-content: center;
    padding: 12px 0;
    border-bottom: 1px solid #222;
    flex-shrink: 0;        /* Voorkomt krimpen */
}

nav a {
    color: #ccc;
    text-decoration: none;
    margin: 0 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: #666;
    left: 0;
    bottom: -4px;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #aaa;
}

nav a:hover::after {
    width: 100%;
}

/* ===== Main content ===== */
main {
    flex: 1 1 auto;        /* Neemt overgebleven ruimte in */
    max-width: 1000px;
    margin: 40px auto 20px auto;
    padding: 25px;
    background-color: rgba(15, 15, 15, 0.95);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
    overflow-y: auto;      /* Maakt verticale scroll mogelijk */

    /* Scrollbar styling */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: transparent transparent; /* standaard onzichtbaar */
}

/* Webkit scrollbar styling */
main::-webkit-scrollbar {
    width: 8px;
    background: transparent;
}

main::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

/* Hover effect voor scrollbar */
main:hover::-webkit-scrollbar-thumb {
    background-color: rgba(50, 50, 50, 0.2);
}

/* Firefox hover effect */
main:hover {
    scrollbar-color: rgba(50, 50, 50, 0.2) transparent;
}

/* Titels */
h1, h2 {
    color: #ddd;
    margin-bottom: 15px;
}

h3 {
    font-weight: 700;
    margin-bottom: 4px;
    color: #eee;
}

p, ul {
    margin-bottom: 15px;
}

ul li {
    margin-left: 20px;
}

/* Styling voor uitleg onder regels */
.rule-explanation {
    font-size: 0.85rem;
    color: #bbb;
    margin-top: 4px;
    margin-bottom: 20px;
    line-height: 1.6;
    font-style: italic;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 15px;
    background-color: #000;
    border-top: 1px solid #222;
    font-size: 14px;
    color: #777;
    flex-shrink: 0;        /* Voorkomt krimpen */
}

/* ===== Responsiviteit ===== */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }
    nav a {
        margin: 10px 0;
    }
    main {
        margin: 20px;
    }
}

/* ===== Discord knop styling ===== */
.discord-button {
    display: inline-block;
    background-color: #5865F2; /* Discord blauw */
    color: white;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(88, 101, 242, 0.4);
}

.discord-button:hover {
    background-color: #4752c4;
    box-shadow: 0 6px 12px rgba(71, 82, 196, 0.6);
}

.card-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background-color: #222;
    color: white;
    text-decoration: none;
    border-radius: 10px;
   overflow-y: auto; /* only show when needed but allow scrolling */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;

    /* Center content */
    display: flex;
    flex-direction: column; /* stack image & text */
    align-items: center;    /* horizontal center */
    justify-content: center; /* vertical center if needed */
    text-align: center;     /* center text */
    padding: 20px;
}

.card img {
    width: 150px;
    height: auto;
    margin-bottom: 10px; /* space between image and text */
}

.card h3 {
    margin: 15px;
}

.card p {
    margin: 0 15px 15px;
    color: #ccc;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.card img {
    width: 150px;   /* vaste breedte */
    height: auto;   /* behoudt de verhoudingen */
    display: block;
    margin: 10px auto; /* centreren */
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #222;
    color: #ccc;
}

.info-table th, .info-table td {
    padding: 12px 15px;
    border: 1px solid #444;
    text-align: left;
}

.info-table th {
    background-color: #333;
    color: #fff;
}

.info-table tr:nth-child(even) {
    background-color: #1a1a1a;
}

.info-table tr:hover {
    background-color: #2a2a2a;
}

/* Table Wrapper for Responsiveness */
.table-container {
    width: 100%;
    overflow-x: auto; /* scrolls horizontally if table is too wide */
}

/* Table Styles */
.info-table {
    width: 100%;
    min-width: 500px; /* ensures table doesn't shrink too much */
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #222;
    color: #ccc;
}

.info-table th, .info-table td {
    padding: 12px 15px;
    border: 1px solid #444;
    text-align: left;
    white-space: nowrap; /* keeps content in one line for small screens */
}

.info-table th {
    background-color: #333;
    color: #fff;
}

.info-table tr:nth-child(even) {
    background-color: #1a1a1a;
}

.info-table tr:hover {
    background-color: #2a2a2a;
}

/* On very small screens, make table text smaller */
@media (max-width: 500px) {
    .info-table th, .info-table td {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
}

/* ===== Scrollbar Styling ===== */
html {
    height: 100%;
    overflow-y: auto; /* enable vertical scroll */
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

html::-webkit-scrollbar {
    width: 8px;
    background: transparent;
}

html::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

html:hover::-webkit-scrollbar-thumb {
    background-color: rgba(50, 50, 50, 0.2);
}

html:hover {
    scrollbar-color: rgba(50, 50, 50, 0.2) transparent;
}

/* ===== Store Cards Like Hypixel ===== */
.store-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.store-card {
    background-color: #1a1a1a;
    color: #fff;
    border-radius: 10px;
    width: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 15px;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.7);
}

.store-card img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 10px;
}

.store-card h4 {
    margin: 10px 0 5px 0;
    font-size: 1.1rem;
    color: #fff;
}

.store-card p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.buy-button {
    align-self: flex-end;  /* Moves button to bottom-right */
    background-color: #555; 
    color: white;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.buy-button:hover {
    background-color: #777;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

/* Category Headers */
.store-category {
    font-size: 1.3rem;
    color: #fff;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

/* Responsive Layout */
@media (max-width: 900px) {
    .store-card {
        width: 45%;
    }
}

@media (max-width: 600px) {
    .store-card {
        width: 90%;
    }
}