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

html, 
body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #fff;
}

.container {
    height: 100%;
    max-height: 100vh;
    overflow: hidden;
    position: relative;
}

.page {
    width: 100%;
    height: 100%;
    background-color: #FFE812;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.page {
    position: absolute;
    transition: transform 0.8s ease, opacity 0.8s ease;
    opacity: 1;
}

.page2, .page3 {
    transform: translateX(100%);
    opacity: 0;
    display: none;
}

.page.active {
    transform: translateX(0);
    opacity: 1;
    display: flex;
}

.page.inactive {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

.head {
    width: 100%;
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.kakao-logo {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    
    position: relative;
    margin: 20px;
    margin-right: auto;
}

.kakao-logo::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    border-bottom: 5px solid #391f20;
    width: 50px;
}

.content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 12%;
}

.tips {
    margin: 25px 0;
    width: 100%;
    text-align: center;
    font-size: 0.87rem;
}

.profile-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page2 .avatar-container {
    align-items: flex-end;
    justify-content: flex-start;
    padding-left: 40px;
    margin-top: 30px;
}

.page2 .avatar-container .badge {
    top: -25px;
    left: 50%;
    width: 120px;
}

.avatar-container {
    width: 100%;
    height: 100%;
    
    overflow: visible;
    margin-top: 90px;
    position: relative;

    display: flex;
    justify-content: center;
}

.avatar-container .avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border-radius: 50%;
    overflow: hidden;
}

.avatar-container .badge {
    position: absolute;
    top: -70px;
    left: 60%;
    width: 100px;
}

.username {
    font-size: 20px;
    font-weight: bold;
    text-align: center;

    margin: 20px;
    font-size: 1.2rem;
}

.kakao-button {
    display: flex;
    align-items: center;

    background-color: #391f20;
    color: #fff;
    border: none;
    padding: 15px 22px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.button-icon {
    width: 35px;
    margin-right: 6px;
}

.question-box {
    background-color: #fff;
    padding: 26px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    width: 80%;
}

.question-box > p {
    margin-bottom: 14px;

       
    border-bottom: 1px solid #000;
    padding-bottom: 6px;
    margin: 0 10px;
}

.option-button {
    display: block;
    width: 100%;
    padding: 14px;
    margin: 14px 0;
    border: none;
    background-color: #f1f1f1;
    border-radius: 4px;
    cursor: pointer;
 
}

.option-button:last-child {
    margin-bottom: 0;
}

.success-message {
    font-size: 1rem;
    color: #110f0f;
    margin: 40px 0;
    font-weight: bold;
    padding: 0 30px;
}

.start-button {
    background-color: #391f20;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    width: 45%;
}

.badge {
    width: 100px;
}

.footer {
    position: relative;
    font-size: 1.4rem;
    color: #000;
    margin-bottom: 30px;
    margin-top: auto;
}

.footer::before {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 0;
    transform: translateX(100%);
    border-bottom: 8px solid #391f20;
    width: 30px;
}

.page3 .content {
    flex: 1;
}