* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 모든 선택 효과 비활성화 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* 터치 하이라이트 비활성화 */
    -webkit-tap-highlight-color: transparent;
    /* 드래그 비활성화 */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #eaeaea;
    overflow: hidden; /* 스크롤 완전 비활성화 */
    height: 100vh;
    width: 100vw;
    position: fixed; /* 스크롤 방지 */
    /* 터치 동작 비활성화 */
    touch-action: none;
    /* iOS Safari 바운스 효과 비활성화 */
    -webkit-overflow-scrolling: auto;
}

html {
    overflow: hidden; /* HTML 레벨에서도 스크롤 비활성화 */
    height: 100%;
    width: 100%;
    position: fixed;
    /* 터치 동작 비활성화 */
    touch-action: none;
}

.video-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #eaeaea;
    cursor: pointer;
    /* 터치 효과 비활성화 */
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
    /* 선택 방지 */
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

#main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    outline: none;
    transition: opacity 0.45s ease;
    /* 터치 효과 비활성화 */
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
    /* 선택 방지 */
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    /* 드래그 방지 */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    will-change: opacity;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 20;
    /* 터치 효과 비활성화 */
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
    /* 선택 방지 */
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

/* 모바일 대응 */
@media (max-width: 768px) {
}

/* QR 코드 스타일 */
.qr-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.75s ease;
    pointer-events: none;
    will-change: opacity;
}

.qr-section.show {
    opacity: 1;
}

.qr-content {
    background: transparent;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.75s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    will-change: transform, opacity;
}

.qr-content.show {
    transform: scale(1);
    opacity: 1;
}

@keyframes qrFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.qr-code-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: qrBounce 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s backwards;
    pointer-events: auto;
    will-change: transform, opacity;
}

@keyframes qrBounce {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.phone-display {
    margin-top: 20px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.75s ease 0.6s backwards;
    pointer-events: auto;
    will-change: transform, opacity;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.phone-display span:first-child {
    color: #666;
    font-weight: normal;
}

.phone-display span:last-child {
    color: #4facfe;
    font-weight: bold;
    margin-left: 5px;
}

/* 연락처 수정 모달 스타일 */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.45s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 30px;
}

.modal-body label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
    font-size: 1.1em;
}

.modal-body input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.2em;
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: border-color 0.45s;
}

.modal-body input:focus {
    outline: none;
    border-color: #4facfe;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.save-btn, .cancel-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.45s;
    min-width: 100px;
}

.save-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

.cancel-btn {
    background: #f0f0f0;
    color: #666;
}

.cancel-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* PWA 설치 안내 화면 */
.install-guide {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto; /* 스크롤 가능하게 */
}

.install-content {
    background: white;
    border-radius: 20px;
    padding: 30px 25px; /* 패딩 줄임 */
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.9s ease;
    margin: auto; /* 중앙 정렬 */
    max-height: 90vh; /* 최대 높이 제한 */
    overflow-y: auto; /* 내용이 많으면 스크롤 */
    will-change: transform, opacity;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.install-header h1 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.install-header p {
    font-size: 1.2em;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.5;
}

.install-steps {
    margin: 30px 0;
}

.step {
    display: flex;
    align-items: center;
    margin: 20px 0;
    text-align: left;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #4facfe;
}

.step-number {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-text {
    flex: 1;
    line-height: 1.4;
}

.step-text strong {
    color: #333;
}

.icon {
    font-size: 1.2em;
    margin: 0 5px;
}

.install-note {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #2196f3;
}

.install-note p {
    margin: 0;
    color: #1976d2;
    font-size: 0.9em;
    line-height: 1.4;
}

.skip-btn {
    background: #f0f0f0;
    color: #666;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.45s;
}

.skip-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* 모바일 최적화 */
@media (max-width: 480px) {
    .install-guide {
        padding: 10px; /* 패딩 더 줄임 */
    }
    
    .install-content {
        padding: 20px 15px; /* 패딩 더 줄임 */
        margin: 5px; /* 마진 줄임 */
        max-height: 95vh; /* 모바일에서 더 많은 공간 사용 */
    }
    
    .install-header h1 {
        font-size: 2em;
        margin-bottom: 5px; /* 마진 줄임 */
    }
    
    .install-header p {
        font-size: 1.1em;
        margin-bottom: 20px; /* 마진 줄임 */
    }
    
    .install-steps {
        margin: 20px 0; /* 마진 줄임 */
    }
    
    .step {
        padding: 10px; /* 패딩 줄임 */
        margin: 15px 0; /* 마진 줄임 */
    }
    
    .step-text {
        font-size: 0.9em;
    }
    
    .install-note {
        padding: 12px; /* 패딩 줄임 */
        margin: 15px 0; /* 마진 줄임 */
    }
    
    .skip-btn, .debug-btn {
        margin-top: 10px; /* 마진 줄임 */
        padding: 10px 20px; /* 패딩 줄임 */
        font-size: 0.9em; /* 폰트 크기 줄임 */
    }
    
    .qr-code-container {
        padding: 15px;  /* 패딩 줄임 */
    }
    
    .qr-code-container img {
        width: 180px !important;  /* QR 코드 이미지 크기 줄임 */
        height: 180px !important;
    }
    
    .phone-display {
        margin-top: 15px;
        padding: 10px 20px;
        font-size: 1em;
    }
}

/* 아이패드 화면 최적화 */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
    .video-container {
        width: 100%;
        height: 100%;
    }

    #main-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
} 