@import url('https://fonts.googleapis.com/css2?family=Jua&display=swap');

:root {
    --primary-color: #007bff; /* 영포티의 신뢰감을 주는 '네이비' 컬러 */
    --secondary-color: #ffc107; /* 포인트가 되는 '골프웨어' 컬러 */
    --bg-color: #f0f2f5; /* 깔끔한 '카톡 배경' 컬러 */
    --surface-color: #ffffff;
    --text-color: #333333;
    --subtext-color: #555;
}

body {
    font-family: 'Jua', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    text-align: center;
    padding: 20px 0;
}

.container {
    background-color: var(--surface-color);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
}

.screen { display: flex; flex-direction: column; align-items: center; }
.title { color: var(--primary-color); font-size: 2.2rem; margin-bottom: 10px; line-height: 1.3; }
.description { font-size: 1.1rem; margin-bottom: 30px; line-height: 1.6; color: var(--subtext-color);}

.btn {
    font-family: 'Jua', sans-serif;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    position: relative;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
}
.btn:hover { background-color: #0056b3; transform: scale(1.03); }

/* 퀴즈 화면 */
#quiz-screen { width: 100%; }
.progress-container { width: 100%; height: 10px; background-color: #e9ecef; border-radius: 5px; margin-bottom: 25px; } /* margin-bottom 조정 */
#progress-bar { width: 0%; height: 100%; background-color: var(--secondary-color); border-radius: 5px; transition: width 0.3s; }

/* 아재력 게이지 관련 CSS 삭제 */

#question { margin-bottom: 20px; font-size: 1.5rem; min-height: 4.5rem; }

#question-visual { 
    margin-bottom: 25px;
    min-height: 50px; 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}
#interactive-area { 
    position: relative; 
    width: 100%; 
    height: auto;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.btn-grid { display: grid; grid-template-columns: 1fr; gap: 15px; width: 100%; }
.btn-grid .btn { width: 100%; padding: 20px; font-size: 1.1rem; }

/* 결과 화면 */
#result-image { width: 150px; height: 150px; margin: 20px 0; border-radius: 50%; object-fit: cover; border: 4px solid var(--primary-color); }
#result-title { color: var(--primary-color); font-size: 2rem; }
#result-description {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: var(--subtext-color);
}

#share-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    width: 100%;
}
#kakao-btn { background-color: #FEE500; color: #191919; }
#kakao-btn:hover { background-color: #f7d800; }
#retry-btn { margin-top: 0; background-color: var(--secondary-color); color: #333; }
#retry-btn:hover { background-color: #e0a800; }

/* 추가된 '다른 테스트' 버튼 컨테이너 */
#more-tests-container {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 15px;
}
/* 링크 복사, 다른 테스트 버튼 스타일 */
.share-btn, .more-btn {
    background-color: #28a745; /* 활기찬 녹색 */
    font-size: 1rem;
    padding: 12px 20px;
}
.share-btn:hover, .more-btn:hover {
    background-color: #218838; /* 마우스 올렸을 때 더 진한 녹색 */
}


#result-analysis-container {
    width: 100%;
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}
.analysis-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
#result-analysis-text {
    font-size: 1rem;
    text-align: left;
    line-height: 1.7;
    white-space: pre-wrap;
    color: var(--subtext-color);
}

#toast-popup {
    visibility: hidden;
    min-width: 280px;
    background-color: rgba(30, 30, 30, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 10px;
    padding: 16px;
    position: fixed;
    z-index: 10000;
    left: 50%;
    transform: translateX(-50%);
    bottom: 50px;
    font-size: 1.1rem;
    font-family: 'Jua', sans-serif;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s, bottom 0.5s ease-in-out;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
#toast-popup.show {
    visibility: visible;
    opacity: 1;
    bottom: 80px;
}

/* 광고 컨테이너 스타일 */
.ad-container {
    width: 100%;
    margin: 25px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

/* 2지선다형 버튼이 세로로 2개가 되도록 수정 */
@media (min-width: 600px) {
    .btn-grid {
        grid-template-columns: 1fr; /* 화면이 넓어도 세로로 1개씩 */
    }
}