
body {
    background-color: #121212;
    color: white;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Changed from center to accommodate navbar */
    min-height: 100vh;
    margin: 0;
    padding-top: 80px; /* Added for navbar spacing */
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.navbar a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.navbar a:hover, .navbar a.active {
    color: #0073e6;
}

/* 라이트 모드 스타일 */
body.light-mode {
    background-color: #f5f5f7;
    color: #121212;
}

body.light-mode h1, body.light-mode .test-desc {
    color: #121212;
}

body.light-mode .navbar {
    background: rgba(245, 245, 247, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .navbar a {
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode .contact-section, 
body.light-mode .result-bar-wrapper,
body.light-mode #image-preview,
body.light-mode #disqus_thread {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode input, body.light-mode textarea {
    background: white;
    color: #121212;
    border: 1px solid #ccc;
}

/* 테마 토글 버튼 */
.theme-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: inherit;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

body.light-mode .theme-toggle {
    border-color: rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 3rem;
    color: white;
    text-shadow: none;
    margin-top: 40px;
}

.lotto-container {
    display: flex;
    flex-direction: column; /* Changed to column */
    gap: 20px;
    margin: 40px 0;
}

.lotto-row {
    display: flex;
    gap: 20px;
}

.ball {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    box-shadow: 
        inset -10px -10px 20px rgba(0,0,0,0.5),
        inset 10px 10px 20px rgba(255,255,255,0.3),
        0 15px 25px rgba(0,0,0,0.5);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ball.show {
    opacity: 1;
    transform: scale(1);
}

#generator-btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    background-color: #0073e6;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px #0073e6, 0 0 20px #0073e6;
}

#generator-btn:hover {
    background-color: #005bb5;
    box-shadow: 0 0 15px #0073e6, 0 0 30px #0073e6, 0 0 45px #0073e6;
}

.contact-section {
    margin-top: 60px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
}

.contact-section h2 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: #0073e6;
}

.form-group {
    margin-bottom: 15px;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
}

textarea {
    height: 100px;
    resize: none;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #0073e6;
    background: rgba(255, 255, 255, 0.15);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background-color: #2ec4b6;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #26a69a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 196, 182, 0.4);
}

/* Animal Test Styles */
.test-container {
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.test-desc {
    color: rgba(255,255,255,0.6);
    margin-bottom: 30px;
}

#webcam-box {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

#webcam-container, #image-preview {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px dashed rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    margin: 0 auto;
}

#image-preview:hover {
    border-color: #0073e6;
    background: rgba(255, 255, 255, 0.1);
}

#predict-btn {
    padding: 12px 40px;
    font-size: 1.1rem;
    background: #2ec4b6;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(46, 196, 182, 0.3);
}

#predict-btn:hover {
    background: #26a69a;
    transform: translateY(-2px);
}

.result-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.05);
    padding: 10px 20px;
    border-radius: 10px;
}

.label-name {
    width: 100px;
    text-align: left;
    font-weight: bold;
}

.bar-bg {
    flex-grow: 1;
    height: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073e6, #2ec4b6);
    width: 0%;
    transition: width 0.3s ease;
}

.percent {
    width: 50px;
    font-weight: bold;
    color: #2ec4b6;
}
