body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 30px 40px;
    width: 100%;
    max-width: 700px;
    text-align: center;
    margin-top: 30px;
}

h1 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2.2em;
}

h2 {
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.6em;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 8px;
    display: inline-block;
}

p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.upload-section {
    margin-top: 25px;
    margin-bottom: 30px;
}

#imageUpload {
    display: none; /* Hide the default file input */
}

.upload-button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.upload-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.image-preview-section img {
    max-width: 300px; /* 최대 너비 설정 */
    max-height: 300px; /* 최대 높이 설정 */
    height: auto; /* 비율 유지를 위해 */
    display: block; /* margin: auto 적용을 위해 */
    margin: 20px auto; /* 상하 여백 20px, 좌우 자동 (가운데 정렬) */
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.result-section {
    margin-top: 30px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
}

#predictionResult p {
    font-size: 1.1em;
    color: #444;
    margin-bottom: 0;
}

#predictionResult ul {
    list-style-type: none;
    padding: 0;
}

#predictionResult li {
    background-color: #eaf6ff;
    margin-bottom: 8px;
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1em;
}

#predictionResult li span:first-child {
    font-weight: bold;
    color: #2c3e50;
}

#predictionResult li span:last-child {
    color: #3498db;
    font-weight: bold;
}
