
       
* {
    box-sizing: border-box;
    font-family: 'Noto Sans KR', sans-serif;
}

html{
    margin: 0px;
    padding: 0px; 
}

body {
    background: #ffffff;
    margin: 10px;
    padding: 0px;
    min-height: 5vh;           
}




.container {
    max-width: 1200px;      
    display: flex;
    flex-direction: column;
}



.korean {            
    font-size:x-large;
    font-weight: bold;
}

.hanja{    
    font-size:small;
    opacity: 0.5;
}

.name-structure {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.name-structure h2 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/*최종 카드*/ 
.name-result {
    position: relative;
    background: linear-gradient(145deg, #f1f9f9, #d0e8e8 30%, #a0d0d0 60%, #f0f6f6);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 3px solid #e9fcfc;
    text-align: center;
    margin-bottom: 20px;
}

.name-resule-back{
    position: relative;
    width: 100%; /* 부모 요소의 너비 설정 */
}

.backimg{     
    position: absolute;
    top: -20px;
    left: -20px;
    width: 30%;
    max-width: 200px; /* 픽셀 단위로 최대값 설정 */
    min-width: 150px; /* 픽셀 단위로 최소값 설정 */
    height: auto;
}



.copy-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
}

.copy-button, .image-copy-button {
    background-color: #3498db00;
    color: #666;
    border: none;
    border-radius: 4px;
    padding: 5px 5px;
    cursor: pointer;
    margin-left: 5px;
}


.sort-structure {   
    display: flex;
    justify-content: space-between; /* 양쪽 정렬 */ 
    padding: 10px 0px;
    border-radius: 15px;    
}


.info{            
    margin : 5px;
    color : #666;
}

.rand-button {
    background-color: #3498db;
    border: 2px solid #0f598a; /* 테두리 강조 */
    font-size: 1em;
    color: white;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    margin-left: 5px;
    transition: background-color 0.3s ease;
}

.sort-button {
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    margin-left: 5px;
    transition: background-color 0.3s ease;
}




.sort-button.active {
    background-color: #28a745; /* 선택된 상태에서의 파란색 */
    border: 2px solid #17732c; /* 테두리 강조 */
    color: white;
}

.copyright {
    position: absolute;
    bottom: 14px;
    right: 20px;
}

.copyright-button {            
    color:#3498db;
    font-size: 0.8em;
    border: none;            
    border-radius: 4px;
    padding: 5px 5px;
    cursor: pointer;
    margin-left: 0px;
}


.final-yourname {            
    color: #444444;
}

.final-name {
    font-size: 36px;
    color: #000000;
    margin: 10px 0;
    font-weight: bold;
}

.final-hanja {
    min-height: 40px; 
    font-size: 24px;
    color: #2c3e50;
    margin-top: 10px;
}

.final-meaning {
    font-size: 18px;
    color: #666;
    margin-top: 15px;
    margin-left: 15px;
    margin-bottom: 15px;
    text-align: left;
    display: block;
}

.name-components {
    display: flex;
    gap: 20px;
    flex: 1;
}

     



.selection-section {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow-y: auto;
    height: 100%;
}

.name-option {
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.name-option:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.name-option.selected {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 15px 0;
}

.bottom_line{
    display: flex;
    background-color: #000000;
    color : #fff;
    flex-grow: 0;
    flex-shrink: 0; /* 줄어들지 않도록 설정 */
    width: 100%;
    height: 100px !important;
    opacity: 0;
}



@media (max-width: 768px) { /* 모바일  */

    body {
        margin: 3px;
    }
    
    

    .backimg{    
        top: 10px;
        left: -30px;                        
        
        width: 33%;
        height: auto;
        
        max-width: 170px; /* 픽셀 단위로 최대값 설정 */
    }
    .copy-buttons {
        top: 10px;
        right: 10px;
    }
    


    .container {
        padding: 0px;
    }
    .sort-structure {   
        padding: 5px, 1px;
        align-items: center; /* 세로 가운데 정렬 */
    }
    .sort-button {                
        padding: 2px 6px;
        margin: 1px;
    }
    .rand-button {
        font-size: 0.9em;
        padding: 4px 6px;
        margin-left: 1px;
    }

    .name-components {
        gap: 5px;
    }
    .selection-section {
        padding: 10px;
    }
    .name-option {
        padding: 7px;
        margin: 10px 0;
        transition: all 0.3s ease;
    }


}



@media (max-width: 500px) { /* 모바일  */

    .backimg{    
        top: 10px;
        left: -35px; 
        width: 33%;
        max-width: 170px; /* 픽셀 단위로 최대값 설정 */
        min-width: 120px; /* 픽셀 단위로 최대값 설정 */
        height: auto;
    }
}

