main {
    /* padding: 40px 20px; */
    font-family: 'Canva Sans', Arial, sans-serif;
}

h1,
h2 {
    text-align: center;
    font-family: 'Abril Fatface', cursive;
    margin-bottom: 20px;
    color: #3a1f0d;
}

p {
    text-align: center;
    font-family: 'Alice', serif;
    color: #555;
}

/* Cards */
.skin-types-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: nowrap;
    margin-bottom: 60px;
    padding-bottom: 10px;
}

.skin-card {
    flex: 0 0 220px;
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    border: 2px solid #f6e2db;
}

.skin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.learn-more {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    background: #f6a192;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.learn-more:hover {
    background: #e57f74;
}

/* Quiz */
.quiz-section {
    margin: 80px auto;
    text-align: center;
}

.quiz-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    max-width: 700px;
    margin: 30px auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border: 2px solid #f6e2db;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.quiz-card p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #3a1f0d;
}

.button-group {
    display: flex;
    flex-direction: column;
    /* vertical for mobile */
    gap: 15px;
    margin-top: 25px;
}

.button-group button {
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    background: #f6a192;
    color: #fff;
}

.button-group button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.15);
}

#quiz-result {
    margin-top: 25px;
    font-weight: bold;
    font-size: 1.3rem;
    color: #3a1f0d;
    padding: 15px;
    border-radius: 12px;
    background: #fdf5f4;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

#quiz-reset {
    margin-top: 20px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: #e0a999;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s ease;
    display: none;
    /* hide initially */
}

#quiz-reset:hover {
    background: #d18c7f;
}


/* Comparison Table */
.comparison {
    margin: 80px 0;
}

table {
    width: 50%;
    margin: 20px auto;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #f6e2db;
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f6a192;
    color: #fff;
    font-family: 'Abril Fatface', cursive;
}

tr:hover {
    background: #fdf5f4;
}

/* Accordion */
.accordion-section {
    margin: 80px 0;
    text-align: center;
}

.accordion-item {
    width: 60%;
    max-width: 600px;
    margin: 15px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Button styling */
.accordion-btn {
    width: 100%;
    background: #f6a192;
    color: #fff;
    padding: 15px 20px;
    text-align: left;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 500;
    transition: background 0.3s, transform 0.2s;
    display: block;
    border-radius: 10px 10px 0 0;
    /* rounded top corners */
}

.accordion-btn:hover {
    background: #e57f74;
    transform: translateY(-1px);
}

/* Panel styling */
.accordion-panel {
    max-height: 0;
    overflow: hidden;
    background: #f6e2db;
    padding: 0 20px;
    border-top: 1px solid #e57f74;
    transition: max-height 0.4s ease, padding 0.4s ease;
    border-radius: 0 0 10px 10px;

}

/* When active */
.accordion-panel.active {
    padding: 20px;
}

.accordion-panel p {
    margin: 0;
    color: #3a1f0d;
    line-height: 1.7;
    font-size: 1rem;
}

/* Mobile View */
@media (max-width: 768px) {
    main {
        padding: 20px 10px;
    }

    .skin-types-container {
        flex-wrap: wrap;
        /* Allow cards to wrap on smaller screens */
        justify-content: center;
        gap: 15px;
        overflow-x: auto;
        /* Optional: allow horizontal scroll */
        padding-bottom: 20px;
    }

    .skin-card {
        flex: 0 0 45%;
        /* Two cards per row */
        padding: 15px;
    }

    @media (max-width: 480px) {
        .skin-card {
            flex: 0 0 90%;
            /* One card per row */
        }

        .quiz-card {
            padding: 20px;
        }

        .quiz-card button {
            width: 100%;
            margin: 10px 0;
        }

        table {
            font-size: 0.85rem;
        }

        .accordion-item {
            width: 90%;
        }

        .accordion-btn {
            font-size: 1rem;
            padding: 12px 16px;
        }
    }
}