/* 기본 스타일 설정 */
body {
    font-family: 'Noto Serif KR', serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: #1e1e1e;
    color: #f4f4f4;
}

.container {
    max-width: 800px;
    margin: auto;
    padding: 30px;
    background-color: #2a2a2a;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

h1 {
    text-align: center;
    color: #ffffff;
    font-size: 2.0em; /* Increased font size */
    margin-bottom: 20px;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
}

#page-title {
    font-size: 1.5em; /* Font size for the page title */
    color: #ffffff; /* Text color */
    text-align: center; /* Center align */
    margin-bottom: 20px; /* Space below the title */
}

.image-container {
    text-align: center;
    margin: 25px 0;
}

.image-container img {
    width: 100%;
    max-width: 700px; /* Ensure images do not exceed this width */
    height: auto;
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.4); /* Shadow for images */
}

.text-block {
    margin: 10px 0; /* Space between text blocks */
    padding: 10px; /* Consistent padding */
    text-align: left; /* Ensure left alignment */
    font-size: 1.1em; /* Consistent font size */
    line-height: 1.8; /* Increased line height for readability */
    background-color: #333333; /* Background for visibility */
    border-radius: 8px; /* Rounded corners */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
    overflow: hidden; /* Prevent overflow */
}

.text-block:hover {
    background-color: #444; /* Change background on hover */
}

.store-links {
    display: flex;
    justify-content: center; /* Center buttons */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    margin: 20px 0; /* Margin above and below the links */
}

.store-links a {
    margin: 5px; /* Space between buttons */
    padding: 10px 15px; /* Button padding */
    font-size: 1em; /* Button font size */
    border-radius: 5px; /* Rounded corners */
    text-decoration: none; /* Remove underline from links */
    color: #ffffff; /* Text color for buttons */
    background: transparent; /* Transparent background */
    border: none; /* No border */
    transition: background-color 0.3s; /* Smooth transition on hover */
}

.store-links a:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Slight hover effect */
}

.expansion-title {
    text-align: center;
    font-size: 1.1em; /* Title size */
    color: #ffffff; /* Title color */
    margin-bottom: 20px; /* Space below title */
}

@keyframes shake {
    0% { transform: translate(0); }
    25% { transform: translate(-5px); }
    50% { transform: translate(5px); }
    75% { transform: translate(-5px); }
    100% { transform: translate(0); }
}

.shake {
    display: inline-block;
    animation: shake 0.5s ease;
}

.fade {
    opacity: 0; /* 초기 투명도 */
    transition: opacity 0.5s ease; /* 애니메이션 효과 */
}

.fade-in {
    opacity: 1; /* 완전히 보이는 상태 */
}

.fade-out {
    opacity: 0; /* 완전히 사라진 상태 */
}

/* 글로벌 네비게이션 스타일 */
.global-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
    background-color: #333; /* 기존 배경색에 맞게 설정 */
    border-radius: 10px; /* 둥근 테두리 */
    overflow: hidden;
}

.global-nav li {
    display: inline-block;
    margin-right: 30px;
}

.global-nav a {
    text-decoration: none;
    color: #f4f4f4; /* 기존 텍스트 색상 */
    font-size: 1.2em;
    font-weight: 600;
    padding: 12px 24px;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.global-nav a:hover {
    background-color: #444; /* 어두운 배경색으로 변경 */
    color: #ffffff; /* 글자 색상 흰색 */
    transform: scale(1.05); /* 살짝 확대 */
}

.global-nav li:last-child {
    margin-right: 0;
}

/* 반응형 디자인 */
@media (max-width: 600px) {
    .store-links a {
        font-size: 0.9em; /* Smaller font size for mobile */
        padding: 8px 12px; /* Adjust padding for mobile */
    }

    h1 {
        font-size: 1.8em; /* Smaller title size for mobile */
    }

    .text-block {
        font-size: 1em; /* Smaller font size for text blocks on mobile */
    }

    #page-title {
        font-size: 1.4em; /* Smaller font size for page title on mobile */
    }
}
