:root {
    --black: #000;
    --white: #fff;
    --red: #ff0000;
    --yellow: #ffcc00;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--white);
}

/* Header & Navigation Bar */
header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Keeps logo and nav separated */
    background: var(--red);
    padding: 10px 20px;
    flex-wrap: wrap;
}

/* Logo Styling */
.logo {
    width: 150px;
}

/* Navigation Menu */
nav {
    flex-grow: 1;
}

nav ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 15px;
    flex-wrap: wrap;
}

nav ul li {
    margin: 5px 10px;
}

nav ul li a {
    text-decoration: none;
    color: var(--white);
    font-weight: bold;
}

/* Mobile Responsive Navigation for nav bar */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    nav ul li {
        margin: 10px 0;
    }
}
/* Home Page Layout */
.home-container {
    text-align: center;
    padding: 20px;
}

/* Top Row: Two Columns Side by Side */
.top-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.column {
    flex: 1;
    min-width: 280px;
    max-width: 450px;
    padding: 15px;
    border: 1px solid var(--red);
    background-color: var(--white);
    text-align: center;
}

.column img {
    width: 100%;
    height: auto;
    margin-top: 10px;
}

/* Bottom Row: Featured Cards in Full Width */
.bottom-row {
    text-align: center;
    margin-top: 20px;
}

.featured-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.featured-card {
    text-align: center;
    max-width: 200px;
    padding: 15px;
    border: 1px solid var(--red);
    background: var(--white);
}

.featured-card {
        justify-content: center;
    }
}

.featured-card img {
    width: 100%;
    height: auto;
}

/* Featured Cards Section */
.featured-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
}

/* Individual Card Container */
.card {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    text-align: center;
    border: 1px solid var(--red);
    padding: 15px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* Adjust Card Image Size */
.card img {
    width: 90%;
    height: auto;
    max-height: 180px; /* Ensures images are uniform */
    object-fit: contain;
    margin-bottom: 10px;
}

/* Card Description Formatting */
.card p {
    font-size: 14px;
    text-align: center;
    padding: 10px;
    max-width: 90%;
    line-height: 1.4;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .featured-cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
        max-width: 350px;
    }
}
/* Catalog Page Specific Styling */
.catalog-container {
    padding: 20px;
}

.trading-card-database {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.search-container {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-types {
    display: flex;
    gap: 10px;
}

.search-button {
    background-color: var(--yellow);
    border: none;
    padding: 10px;
    cursor: pointer;
}

.featured-card img {
    width: 300px;
}

/* Responsive Fix for Mobile */
@media (max-width: 768px) {
    .trading-card-database {
        flex-direction: column;
        align-items: center;
    }

    .search-container {
        width: 100%;
    }

    .featured-card img {
        width: 100%;
        max-width: 300px;
    }
}
.rules-content, .decks-content {
    text-align: center;
    padding: 20px;
}

.column-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.column {
    flex: 1;
    min-width: 250px;
    padding: 15px;
    border: 1px solid var(--red);
    background-color: var(--white);
}

.deck-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.deck {
    width: 300px;
    text-align: center;
    border: 1px solid var(--red);
    padding: 15px;
    background: var(--white);
}

.deck img {
    width: 100%;
    height: auto;
}

/* Card Details Page Styling */
.details-container {
    padding: 20px;
    text-align: center;
}

.subheading {
    font-size: 18px;
    font-weight: normal;
    color: gray;
}

.card-details-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.card-image img {
    width: 350px;
    height: auto;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.info-box {
    background: #f8f8f8;
    padding: 10px;
    border-left: 4px solid #ffcc00;
    text-align: left;
}
/* Responsive Fix for Mobile for Catalog */
@media (max-width: 768px) {
    .trading-card-database {
        flex-direction: column;
        align-items: center;
    }

    .search-container {
        width: 100%;
    }

    .featured-card img {
        width: 100%;
        max-width: 300px;
    }
}
