/* 1. 기본 뼈대와 글씨체 설정 */
body {
    margin: 0;
    min-height: 100vh;
    padding: 50px 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    font-family: 'Malgun Gothic', sans-serif;
    /* 배경색이 바뀔 때 스르륵 변하도록 애니메이션 효과(transition) 부여 */
    transition: background 4s ease, color 4s ease;
}

/* 2. 방금 배운 'class'의 완벽한 활용 예시! */
/* 명찰에 따라 배경색(그라데이션)과 글자색을 미리 지정해 둡니다. */
.morning {
    background: linear-gradient(to top, #87CEEB, #E0F6FF);
    /* 밝은 하늘색 */
    color: #333;
}

.afternoon {
    background: linear-gradient(to top, #FF8C00, #FFD700);
    /* 노을빛 주황색 */
    color: white;
}

.night {
    background: linear-gradient(to top, #191970, #000000);
    /* 짙은 밤하늘색 */
    color: white;
}

/* 3. 시계와 슬라이더 디자인 */
#time-display {
    font-size: 6rem;
    font-weight: bold;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#time-slider {
    width: 80%;
    max-width: 600px;
    cursor: pointer;
}

/* 4. 문의 폼 디자인 (글래스모피즘 효과) */
.contact-form-container {
    margin-top: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 80%;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-sizing: border-box;
}

.contact-form-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.contact-form-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form-container label {
    display: flex;
    flex-direction: column;
    text-align: left;
    font-size: 0.85rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.contact-form-container input,
.contact-form-container textarea {
    margin-top: 8px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.85);
    font-family: inherit;
    resize: vertical;
    outline: none;
}

.contact-form-container input:focus,
.contact-form-container textarea:focus {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.contact-form-container button {
    margin-top: 5px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form-container button:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* 5. Disqus 댓글 창 영역 */
.comments-container {
    width: 80%;
    max-width: 800px;
    margin-top: 50px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-sizing: border-box;
}/* 6. 동물상 테스트 창 스타일 */
.animal-test-container {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.animal-test-container h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.6rem;
    color: #222;
}

.animal-test-link-container { margin-top: 30px; }
.animal-test-link { display: inline-block; padding: 15px 30px; background: linear-gradient(135deg, #6e8efb, #a777e3); color: white; text-decoration: none; font-size: 1.2rem; font-weight: bold; border-radius: 50px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.animal-test-link:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }

.back-link { position: absolute; top: 20px; left: 20px; color: #333; text-decoration: none; font-weight: bold; font-size: 1rem; background: rgba(255,255,255,0.8); padding: 8px 16px; border-radius: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); transition: background 0.3s; z-index: 10; border: 1px solid rgba(0,0,0,0.05); }
.back-link:hover { background: rgba(255,255,255,1); }

.upload-btn { display: inline-block; padding: 14px 28px; background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%); color: #333; font-weight: bold; border-radius: 8px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.1); font-size: 1.1rem;}
.upload-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.15); }

#label-container { display: flex; flex-direction: column; gap: 8px; width: 100%; align-items: center; }
#label-container div { width: 100%; max-width: 300px; font-size: 1.1rem; font-weight: bold; padding: 10px 15px; background: rgba(255, 255, 255, 0.8); border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); text-align: left; display: flex; justify-content: space-between; box-sizing: border-box; }

/* 모바일 화면 대응 */
@media (max-width: 600px) {
    #time-display { font-size: 4rem; }
    #time-slider { width: 90%; }
    .animal-test-container, .contact-form-container, .comments-container { width: 95%; padding: 20px; }
    .back-link { top: 10px; left: 10px; font-size: 0.9rem; padding: 6px 12px; }
    header h1 { font-size: 1.8rem; }
    header p { font-size: 1rem; }
}
