/* General Section Styling */
section {
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 1600px;
}

h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

h2 {
    font-size: 22px;
    color: #ff0000;
    margin-bottom: 10px;
    text-align: left;
}

p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

/* Deck Type Grid */
.deck-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.deck-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    width: 150px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.deck-type:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.deck-type img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.deck-type p {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* Highlight Cards Layout */
.highlight-cards {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px;
    margin-top: 20px;
}

.highlight-card {
    flex: 1 1 calc(33.333% - 20px); /* 3 cards per row with spacing */
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    max-width: 280px;
}

.highlight-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.highlight-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.highlight-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* Strengths & Weaknesses Image Styling */
section img {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 15px 0;
    background-color: #f9f9f9;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #e0e0e0;
    margin-top: 40px;
}

/* Centered Image Styling */
.centered-image {
    text-align: center;
    margin-top: 20px;
}

.centered-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* Responsive Design */
@media screen and (max-width: 768px) {
    .deck-grid {
        flex-direction: column;
        align-items: center;
    }

    .deck-type {
        width: 100%;
        max-width: 300px;
    }

    .highlight-cards {
        flex-direction: column;
        align-items: center;
    }

    .highlight-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
