@font-face {
    font-family: '210 Dahong R';
    src: url('/font/TTDahongR.woff2') format('woff2'),
        url('/font/TTDahongR.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: '210 Dahong B';
    src: url('/font/TTDahongB.woff2') format('woff2'),
        url('/font/TTDahongB.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: '210 Dahong L';
    src: url('/font/TTDahongL.woff2') format('woff2'),
        url('/font/TTDahongL.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}


html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: '210 Dahong R', '210 Dahong B', '210 Dahong L', sans-serif; /* 기본 폰트 설정 */
}

strong, h1, h2, h3 {
    font-weight: bold; /* 굵은 텍스트는 자동으로 '210 Dahong B' 사용 */
}

.light-text {
    font-weight: 300; /* 가벼운 텍스트는 '210 Dahong L' 사용 */
}

.viewport {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    position: relative;
    background-color: #fbfbfb;
    background-image: url('../images/index_bg.png');
    background-repeat: no-repeat;
    background-position: center center;
}

.loading-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

input[type="text"] {
    width: 100%;
    border: 1px solid #ced4da; /* 부트스트랩 기본 스타일과 맞춤 */
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    background-color: #fff;
    background-clip: padding-box;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input[type="text"]:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.add-to-home-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.close-fullscreen-button {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    z-index: 1001;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

#addToHomeScreenButton {
    position: relative;
    margin-bottom: 5px; /* 버튼 아래에 여백 추가 */
    margin-left: 5px; /* 왼쪽에 여백 추가 */
    border: 2px solid white; /* 흰색 테두리 추가 */
    background: linear-gradient(270deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #8b00ff);
    background-size: 1200% 1200%;
    animation: gradientAnimation 8s ease infinite;
    color: white; /* 텍스트 색상 */
    font-size: 1.2em; /* 글자 크기를 1.2배 증가 */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#addToHomeScreenButton:hover {
    transform: scale(1.1);
    background-color: #cc0000; /* hover 시 색상 변경 */
    border-color: #cc0000; /* hover 시 테두리 색상 변경 */
    color: white;
}

#addToHomeScreenButton:active {
    transform: scale(0.95);
}

#closeFullScreenButton {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 24px;
    padding: 10px 15px;
    border-radius: 12px;
    z-index: 1000;
}

.img-container img {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.img-container img:hover {
    filter: grayscale(0%);
}

.img-container img.selected {
    filter: grayscale(0%);
}

.copyright {
            position: absolute;
            bottom: 10px;
            left: 0;
            right: 0;
            text-align: center;
            color: #6c757d;
}

#inputBox {
            font-size: 1.2em; /* 폰트 크기를 2배로 설정 */
}

.button-container img:hover,
.backButton img:hover { /* 공통 스타일을 적용하기 위해 .backButton img:hover를 추가 */
    transform: scale(1.05) rotate(5deg); /* 크기 1.05배 확대 및 5도 회전 */
    opacity: 0.85; /* 약간 투명하게 */
    filter: drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.6)); /* 빛나는 효과 */
}

.backButton {
    position: fixed;
    top: 10px; /* 위 여백 20px 설정 */
    right: 10px;
    z-index: 1000;
}

.backButton .button {
    position: relative;
    transition: opacity 0.3s ease-in-out; /* 페이드인/아웃 효과 추가 */
    opacity: 1; /* 기본 투명도 설정 */
}

.backButton .button:hover {
    opacity: 0.7; /* 롤 오버 시 약간 투명하게 */
}

.backButton .on {
    display: none;
}

.backButton .button:hover .off {
    display: none;
}

.backButton .button:hover .on {
    display: inline;
}

.backButton img {
    width: 70%; /* 기본 크기를 원본의 90%로 설정 */
    height: auto;
    max-width: 70%; /* 최대 크기를 원본의 70%로 설정 */
    min-width: 50%; /* 최소 크기를 원본의 50%로 설정 */
    transition: transform 0.3s ease, opacity 0.3s ease; /* 크기와 투명도 전환 효과 */
}

/* 반응형 디자인 */
@media (max-width: 767.98px) {
    .backButton .button {
        width: 80%; /* 작은 화면에서도 기본 크기를 유지 */
        max-width: 80%;
        min-width: 70%; /* 최대 크기가 원본의 70% 이하로 줄지 않도록 설정 */
    }

    .backButton img {
        width: 80%; /* 작은 화면에서도 기본 크기를 유지 */
        max-width: 80%;
        min-width: 70%; /* 최대 크기가 원본의 70% 이하로 줄지 않도록 설정 */
    }
}


/* Custom styles for loginChkModal */
#loginChkModal .modal-header,
#loginChkModal .modal-body,
#loginChkModal .modal-footer {
	background-color: #ffcc00;
	color: red;
	border-color: black; /* 경계선 색상을 검정으로 설정 */
}

#loginChkModal .modal-body {
	font-size: 1.2em;
	font-weight: bold;
	text-align: center;
	padding: 2rem;
}

/* 어둡게 처리된 배경 */
#loginChkModal .modal-backdrop.show {
	opacity: 0.8;
	background-color: #000000;
}