/* 전체 레이아웃 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 헤더 */
header {
    background-color: #003366;
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 1rem;
}

h1 {
    font-size: 1.2rem;
    flex-grow: 1;
    text-align: center;
}

/* 메인 콘텐츠 */
main {
    padding: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* 설치 안내 팝업 */
.install-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    width: 400px;
    text-align: center;
    position: relative;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.close-popup:hover {
    color: #333;
}

.install-button, .dismiss-button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin: 0.5rem;
}

.install-button {
    background-color: #003366;
    color: white;
}

.install-button:hover {
    background-color: #002244;
}

.dismiss-button {
    background-color: #f0f0f0;
    color: #333;
}

.dismiss-button:hover {
    background-color: #e0e0e0;
}

/* 환영 페이지 */
#welcomeSection {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

#welcomeSection h2 {
    color: #003366;
    margin-bottom: 1rem;
}

.login-button {
    padding: 0.8rem 1.5rem;
    background-color: #003366;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
}

.login-button:hover {
    background-color: #002244;
}

/* 로그인 폼 */
#loginSection {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

#loginForm input {
    width: 100%;
    padding: 0.8rem;
    margin: 0.5rem 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

#loginForm button {
    width: 100%;
    padding: 0.8rem;
    background-color: #003366;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
}

#loginForm button:hover {
    background-color: #002244;
}

#loginMessage {
    margin-top: 1rem;
    color: #d32f2f;
}

/* 포인트 표시 */
.point-display {
    font-size: 4rem;
    font-weight: bold;
    text-align: center;
    color: #003366;
    margin: 2rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* 사이드 메뉴 */
.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 1rem;
}

.side-menu.active {
    right: 0;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    float: right;
}

nav ul {
    list-style: none;
    margin-top: 3rem;
}

nav ul li {
    margin: 1rem 0;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    display: block;
    padding: 0.5rem;
}

nav ul li a:hover {
    background-color: #f0f0f0;
    border-radius: 5px;
}

/* 공지사항 페이지 */
.notice-content {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 유틸리티 클래스 */
.hidden {
    display: none;
}

/* 반응형 디자인 */
@media (max-width: 600px) {
    .side-menu {
        width: 100%;
        right: -100%;
    }
    
    .point-display {
        font-size: 3rem;
    }
}