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

body {
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #111;
    padding: 2rem 0;
    border-bottom: 2px solid #fff;
    text-align: center;
}

/* Navbar */
.navbar {
    margin-top: 1.5rem;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

.navbar li {
    margin: 0;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 2px solid #fff;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
}

.navbar a:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05);
}

.navbar a.active {
    background: #fff;
    color: #000;
}

header h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

header p {
    font-size: 1.2rem;
    color: #ccc;
}

/* Main Content */
main {
    padding: 3rem 0;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.1rem;
    color: #aaa;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: #111;
    border: 2px solid #fff;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.card-image {
    width: 100%;
    height: 250px;
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.02);
}

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

.card-header h3 {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

.rarity {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.rarity.common {
    background: #333;
    color: #fff;
}

.rarity.rare {
    background: #0066cc;
    color: #fff;
}

.rarity.epic {
    background: #9933cc;
    color: #fff;
}

.rarity.legendary {
    background: #ff6600;
    color: #fff;
}

.card-body {
    margin-bottom: 1.5rem;
}

.card-body p {
    color: #ccc;
    margin-bottom: 1rem;
}

.price-tag {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    background: #222;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
}

.trade-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 100%;
}

.trade-btn:hover {
    background: #ccc;
    transform: scale(1.05);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    background-color: #111;
    margin: 5% auto;
    padding: 2rem;
    border: 2px solid #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #ccc;
}

.modal h2 {
    margin-bottom: 2rem;
    text-transform: uppercase;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background: #222;
    border: 1px solid #fff;
    color: #fff;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #ccc;
}

.selected-brainrot {
    background: #222;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #fff;
}

.submit-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #ccc;
}

/* Success Message */
.success-message {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background: #00cc00;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: bold;
    z-index: 1001;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card-image {
        height: 200px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

@media (max-width: 480px) {
    .card-image {
        height: 180px;
    }
}
