* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Malgun Gothic', sans-serif;
    background-color: #2a2a2a;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    position: relative;
}

/* 상단 텍스트 블록 */
.main-text {
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.8;
}

.main-text p {
    margin: 10px 0;
    font-size: 18px;
}

.white-text {
    color: #ffffff;
}

.highlight-text {
    color: #ffffff;
}

.number-highlight {
    color: #ffcc00;
    font-weight: bold;
}

.red-text {
    color: #ff4444;
    font-weight: bold;
}

.time-highlight {
    color: #ffcc00;
    font-weight: bold;
}

/* 성인 인증 박스 */
.age-verification-box {
    background-color: #3a3a3a;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    margin: 40px auto;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.question-text {
    font-size: 24px;
    margin-bottom: 30px;
    color: #ffffff;
}

.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-yes {
    background-color: #4a90e2;
    color: #ffffff;
    border: none;
    padding: 15px 50px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-yes:hover {
    background-color: #357abd;
}

.btn-no {
    background-color: #6a6a6a;
    color: #000000;
    border: none;
    padding: 15px 50px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-no:hover {
    background-color: #5a5a5a;
}

/* 경고 팝업 */
.warning-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: #4a4a4a;
    border: 2px solid #ffffff;
    border-radius: 10px;
    padding: 30px;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.popup-image {
    width: 100%;
    height: auto;
    min-height: 200px;
    background-color: #5a5a5a;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

.warning-text {
    color: #ff4444;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.popup-message {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-confirm {
    background-color: #ff4444;
    color: #ffffff;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-confirm:hover {
    background-color: #cc3333;
}

/* 하단 청소년 보호 안내 */
.age-restriction {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding: 20px;
}

.age-icon {
    background-color: #ff4444;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.restriction-text {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
}

/* Step 1 페이지 스타일 */
.step-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.step-header {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 40px;
    font-weight: bold;
}

.step-image-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 40px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #3a3a3a;
    display: flex;
    justify-content: center;
    align-items: center;
}

.step-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 500px;
    background-color: #4a4a4a;
}

.step-question {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 30px;
}

.options-list {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto 40px;
    text-align: left;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.option-item:hover {
    background-color: #3a3a3a;
}

.option-radio {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #ff4444;
    flex-shrink: 0;
}

.option-text {
    font-size: 18px;
    color: #ffffff;
    cursor: pointer;
}

.btn-next {
    background-color: #F06262;
    color: #ffffff;
    border: none;
    padding: 15px 80px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 40px;
    width: auto;
    min-width: 200px;
}

.btn-next:hover {
    background-color: #d85050;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .main-text p {
        font-size: 16px;
        margin: 0;
    }
    
    .age-verification-box {
        padding: 10px 20px;
    }
    
    .question-text {
        font-size: 20px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn-yes,
    .btn-no {
        width: 100%;
    }
    
    .popup-content {
        margin: 20px;
        padding: 20px;
    }

    .popup-image {
        min-height: 150px;
    }

    .popup-image img {
        max-height: 300px;
    }

    /* Step 페이지 모바일 최적화 */
    .step-container {
        padding: 20px 15px;
        max-width: 100%;
    }

    .step-header {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .step-image-container {
        margin: 0 auto 25px;
        max-width: 100%;
    }

    .step-image {
        min-height: 250px;
        max-height: 400px;
    }

    .step-question {
        font-size: 18px;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .options-list {
        max-width: 100%;
        margin: 0 auto 30px;
        padding: 0 10px;
    }

    .option-item {
        padding: 15px 12px;
        gap: 15px;
    }

    .option-radio {
        width: 22px;
        height: 22px;
    }

    .option-text {
        font-size: 16px;
    }

    .btn-next {
        padding: 15px 40px;
        font-size: 18px;
        width: calc(100% - 40px);
        max-width: 300px;
        margin-bottom: 30px;
    }

    .age-restriction {
        flex-direction: column;
        gap: 10px;
        padding: 15px 10px;
        margin-top: 20px;
    }

    .age-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .restriction-text {
        font-size: 12px;
        line-height: 1.5;
        text-align: center;
    }
}

/* 작은 모바일 기기 (480px 이하) */
@media (max-width: 480px) {
    .step-container {
        padding: 15px 10px;
    }

    .step-header {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .step-image {
        min-height: 200px;
        max-height: 300px;
    }

    .step-question {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .option-item {
        padding: 5px 10px;
        gap: 12px
    }

    .option-text {
        font-size: 15px;
    }

    .btn-next {
        padding: 14px 30px;
        font-size: 16px;
        width: calc(100% - 20px);
        max-width: 280px;
    }
}

/* 매칭 결과 페이지 스타일 */
.result-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.result-header {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 50px;
    font-weight: bold;
}

/* 진행 바 */
.progress-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 50px;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background-color: #3a3a3a;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: #ff4444;
    border-radius: 15px;
    transition: width 0.1s linear;
}

/* 결과 내용 */
.result-content {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 체크리스트 */
.checklist {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 40px;
    background-color: #3a3a3a;
    padding: 30px;
    border-radius: 10px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 18px;
    color: #ffffff;
}

.check-item:last-child {
    margin-bottom: 0;
}

.check-icon {
    color: #4a90e2;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.check-text {
    color: #ffffff;
}

.member-count {
    color: #4a90e2;
    font-weight: bold;
}

/* 축하 메시지 */
.congratulations {
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 30px;
    background-color: #3a3a3a;
    border-radius: 10px;
}

.congrats-text {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.6;
}

.instruction-text {
    font-size: 16px;
    color: #cccccc;
    line-height: 1.6;
}

/* 회원 가입 버튼 */
.btn-signup {
    background-color: #4a90e2;
    color: #ffffff;
    border: none;
    padding: 18px 80px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 50px;
}

.btn-signup:hover {
    background-color: #357abd;
}

/* 규칙 섹션 */
.rules-section {
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: left;
    background-color: #3a3a3a;
    padding: 30px;
    border-radius: 10px;
}

.rules-title {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}

.rules-list {
    color: #ffffff;
    font-size: 16px;
    line-height: 2;
    padding-left: 20px;
}

.rules-list li {
    margin-bottom: 10px;
}

/* 반응형 디자인 - 결과 페이지 */
@media (max-width: 768px) {
    .result-header {
        font-size: 24px;
    }

    .check-item {
        font-size: 16px;
    }

    .congrats-text {
        font-size: 18px;
    }

    .btn-signup {
        padding: 15px 60px;
        font-size: 18px;
    }

    .rules-title {
        font-size: 18px;
    }

    .rules-list {
        font-size: 14px;
    }
}

