body {
    margin: 0;
    background-color: #f0f0f0;
    font-family: sans-serif;
    display: flex;
    justify-content: center;
}

/* --- 전체 레이아웃 (RandomImg 스타일 이식) --- */
.page-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    padding: 10px; 
    box-sizing: border-box;
    gap: 20px;
}

.container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    border: 2px solid #092207;
    box-sizing: border-box;
}

/* --- 상단 헤더 영역 --- */
.header1 {
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #e8f5e9;
}

.he1 {
    font-weight: bold;
    color: #1b5e20;
    font-size: clamp(30px, 6vw, 40px);
}

/* --- 드롭다운 네비게이션 메인 메뉴 --- */




/* --- 본문 콘텐츠 영역 --- */
.main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    padding: 15px;
    box-sizing: border-box;
}

.list {
    background-color: #133309;
    width: 100%;
    box-sizing: border-box;
}

ul.nav {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

ul.nav > li {
    position: relative;
    line-height: 3em;
    flex: 1;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

ul.nav > li:last-child {
    border-right: none;
}

ul.nav > li > a {
    color: #fff;
    text-decoration: none;
    font-size: clamp(12px, 3.5vw, 15px);
    font-weight: bold;
    display: block;
}

ul.nav > li > a:hover { 
    color: #e9e4b8;
    transition: color 200ms;
}

/* 서브 메뉴 디자인 */
ul.nav > li > ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 150px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.15);
}

ul.nav > li > ul > li {
    display: none;
}

ul.nav > li:hover > ul > li {
    display: block;
}

ul.nav > li > ul > li > a {
    background: #2e5c24;
    color: #fff;
    display: block;
    padding: 10px;
    font-size: 12px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

ul.nav > li > ul > li > a:hover {
    background: #1b5e20;
}

.section-title {
    font-size: 17px;
    font-weight: 800;
    color: #092207;
    justify-content:first baseline;
    align-self: flex-start;

}

/* --- 상단 3개 단어 배치 (기존 이미지 3단 레이아웃 커스텀) --- */
.word-flex-container {
    display: flex;
    flex-direction: row; 
    justify-content: space-between;
    align-items: center;
    width: 80%;
    gap: 3px;
    box-sizing: border-box;
}

.word-box {
    flex: 1; 
    min-width: 0;
    aspect-ratio: 1 / 0.6; /* 단어 상자 비율 */
    box-sizing: border-box;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    padding: 5px;
}

.word-box h3 {
    margin: 0;
    font-size: clamp(12px, 3.5vw, 16px);
    color: #333;
    word-break: break-all;
    text-align: center;
}

.inner-plus {
    font-size: clamp(16px, 4vw, 20px);
    font-weight: bold;
    color: #093518;
    padding: 0 2px;
}

/* --- TRIZ 단어 결과 섹션 (triz-section 스타일 이식) --- */
.triz-section {
    display: flex;
    width: 100%;
    margin: 15px 0;
    background-color: #333;
    color: white;
    box-sizing: border-box;
    border: 1px solid #222;
    border-radius: 4px;
    overflow: hidden;
}

.triz-text-box {
    flex: 1; 
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    text-align: center;
}

.triz-text-box h3 {
    margin: 0 0 10px 0;
    font-size: clamp(14px, 4vw, 16px);
    color: #e9e4b8;
    border: none; /* 기존 h3 테두리 제거 */
    padding: 0;
}

.triz-highlight {
    margin: 5px 0 0 0;
    font-size: clamp(18px, 5vw, 22px);
    font-weight: bold;
    color: #66bb6a; /* 강조 초록색 */
}

/* --- 버튼 스타일 (그린 스퀘어 버튼 이식) --- */
button {
    width: 100%;
    max-width: 280px;
    height: 45px;
    background-color: #0b581c;
    color: #ebeed6;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    margin: 10px 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #126e0a;
}

/* --- 하단 카피라이트 --- */
.footer-credit {
    font-size: 12px;
    color: #777;
}

/* --- 반응형 레이아웃 조절 --- */
@media (max-width: 480px) {
    .word-flex-container {
        gap: 2px;
    }
    .word-box {
        padding: 2px;
    }
    ul.nav > li > ul {
        width: 110px; /* 모바일 환경 서브메뉴 축소 */
    }
}

/* --- 광고 영역 --- */
.ad-space {
    flex: 1; 
    width: 90%;
    background-color: #e9e9e9;
    display: flex;
    min-height: 50px; /* 모바일에서 너무 길지 않게 수정 */
}

.counter-box {
    font-size: 12px;
    font-weight:300;
}