/* 기본 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #121212;
    /* 다크 테마 배경 */
    color: #ffffff;
    /* 흰색 텍스트 */
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: row;
    /* 세로형 배치를 가로형 배치로 변경 */
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    overflow-x: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    /* 남은 가로 공간 모두 차지 */
    min-width: 0;
    /* flex 버그 방지 */
    height: 100vh;
    padding: 2rem;
}

header {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

#logo-img {
    max-width: 500px;
    /* 가로로 긴 배너 로고에 맞춰 너비 확장 */
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2vw;
    font-weight: 700;
    color: #4CAF50;
    /* 포인트 색상 */
}

p {
    font-size: 1.2vw;
    color: #bbbbbb;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: -3vh;
    /* 전체적으로 위로 조금 올리기 */
    gap: 2rem;
    /* 시계와 신분증 박스 사이의 간격 */
}

.time-panel {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 3rem 5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.date-text {
    font-size: 2.5vw;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #cccccc;
    letter-spacing: 1px;
}

.time-text {
    font-size: 9.5vw;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    font-variant-numeric: tabular-nums;
    /* 숫자 너비 고정으로 덜컹거림 방지 */
}

/* 좌측 사이드바 광고 패널 */
.left-ad-panel {
    width: 320px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

/* 신분증 가이드 박스 */
.id-card-box {
    width: 380px;
    /* 신분증 가로 비율 기반 크기 */
    height: 240px;
    /* 신분증 세로 비율 기반 크기 */
    max-width: 90vw;
    border: 3px dashed rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.03);
    text-align: center;
    padding: 1rem;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

/* 모바일 화면 대응 */
@media (max-width: 1024px) {
    body {
        flex-direction: column;
    }

    .left-ad-panel {
        width: 100%;
        height: auto;
        min-height: 100px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    h1 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    .date-text {
        font-size: 5vw;
    }

    .time-text {
        font-size: 14vw;
    }

    .time-panel {
        padding: 2rem 1.5rem;
    }
}