* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Thai', 'Noto Sans', sans-serif;
      color: #222222;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.illustration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    padding-top: 2rem;
}

.illustration-container {
    width: 400px;
    height: 500px;
    max-height: 70vh;
    position: relative;
    cursor: pointer;
}

.illustration-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #E2E8F0;
    border-radius: 16px;
    color: #4A5568;
    text-align: center;
    padding: 2rem;
}

.illustration-placeholder svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    color: #4A5568;
}

.illustration-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

.illustration input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 60vh;
}

.content-card {
    background-color: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    width: 100%;
    max-width: 720px;
    padding: 3rem;
    margin: 0 1.5rem;
    margin-bottom: 0rem;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
}

.mbti-type {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.mbti-subtitle {
    font-size: 1.5rem;
    font-style: italic;
    color: #555555;
    margin-bottom: 1rem;
}

.section {
    margin-bottom: 2.5rem;
}

.section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.section-content {
    color: #555555;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* รองรับ iPad แนวตั้ง (768px) ถึงแนวนอน (1024px) */
@media (max-width: 1024px) {
    .content-wrapper {
        padding-top: 57vh;
    }

    .content-card {
        padding: 2rem 3rem;
    }

    .mbti-type {
        font-size: 2.75rem;
    }

    .mbti-subtitle {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .section-content {
        font-size: 1.05rem;
    }

    .illustration-container {
        width: 400px;
        height: 500px !important;
        margin: 0 auto;
    }
}


@media (max-width: 768px) {
    .content-wrapper {
        padding-top: 49vh;
    }

    .content-card {
        padding: 2rem;
    }

    .mbti-type {
        font-size: 2.5rem;
    }

    .mbti-subtitle {
        font-size: 1.25rem;
    }


    .section-title {
        font-size: 1.1rem;
    }

    .section-content {
        font-size: 1rem;
    }

    .illustration-container {
        width: 300px;
        height: 400px !important;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding-top: 49vh;
    }

    .content-card {
        padding: 1.5rem;
        margin: 0 1rem;
        margin-bottom: 3rem;
    }

    .mbti-type {
        font-size: 2rem;
    }

    .mbti-subtitle {
        font-size: 1.1rem;
    }

    .illustration-container {
        width: 250px;
        height: 314px !important;
    }
}

@media (max-width: 768px) {
  .illustration-container {
    width: 300px;
    height: 400px !important;
    margin-top: 2rem; /* เพิ่มจากเดิม */
  }
}

@media (max-width: 480px) {
  .illustration-container {
    width: 250px;
    height: 314px !important;
    margin-top: 2.5rem; /* เพิ่มจากเดิม */
  }
}
