:root {
    --primary-bg: #F9F9F5;
    --text-color: #2c3e50;
    --border-color: #000000;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    min-height: 100vh;
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
    padding-bottom: 50px;
}

header {
    text-align: center;
    padding: 3rem 1rem;
    position: relative;
    z-index: 10;
}

#header-card,
#intro-card,
#details-card {
    background-color: #FFE0B2;
    /* Pastel Orange */
}

#suggestions-intro {
    background-color: #E8DAEF;
    /* Pastel Lavender */
}

.header-content {
    margin: 0 auto;
    max-width: 800px;
    padding: 2rem 3rem;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Main Grid */
.keyboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 10;
    position: relative;
}

.col-span-full {
    grid-column: 1 / -1;
}

.card {
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--border-color);
    box-shadow: 4px 4px 0px var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: scale(1.08);
    box-shadow: 6px 6px 0px var(--border-color);
}

/* Card Specific Pastel Colors */
#mechanical,
#mechanical-list {
    background-color: #D6EAF8;
    /* Pastel Blue */
}

#membrane,
#membrane-list {
    background-color: #FADBD8;
    /* Pastel Pink */
}

#scissor,
#scissor-list {
    background-color: #D4EFDF;
    /* Pastel Green */
}

#guide {
    background-color: #FCF3CF;
    /* Pastel Yellow */
}

.card-image-container {
    width: 100%;
    height: 200px;
    border-bottom: 2px solid var(--border-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #fff;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-color);
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    display: block;
    background: rgba(255, 255, 255, 0.4);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pros-cons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pros h3,
.cons h3,
.popular h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.pros h3 {
    color: #000000;
}

.cons h3 {
    color: #000000;
}

.popular h3 {
    color: #2980b9;
}

ul,
ol {
    list-style-position: inside;
    font-size: 0.95rem;
    line-height: 1.5;
}

.popular {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .header-content {
        padding: 1.5rem;
    }

    .keyboard-grid {
        grid-template-columns: 1fr;
    }
}