body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #2c2c2c;
    color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    text-align: center;
}

.container {
    background-color: #3e3e3e;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 500px;
}

h1 {
    font-size: 30pt; /* 대제목 폰트 크기 */
    font-weight: 700;
    color: #6effa8;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 20pt; /* 부제목 폰트 크기 */
    color: #b0b0b0;
    margin-top: 0;
    margin-bottom: 25px;
}

.upload-section input[type="file"] {
    display: none;
}

.upload-button {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s;
    display: inline-block;
    margin-bottom: 20px;
}

.upload-button:hover {
    background-color: #0056b3;
}

.image-preview-container {
    border: 2px dashed #555;
    border-radius: 10px;
    width: 100%;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    overflow: hidden;
}

#imagePreview {
    max-width: 100%;
    max-height: 100%;
    display: none;
}

#analyzeButton {
    background-color: #28a745;
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: background-color 0.2s;
    width: 100%;
}

#analyzeButton:disabled {
    background-color: #555;
    cursor: not-allowed;
}

#analyzeButton:hover:not(:disabled) {
    background-color: #218838;
}

.loading-spinner {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

.loading-spinner p {
    margin-top: 15px;
    font-size: 16px;
    color: #ccc;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.results-section {
    display: none;
    margin-top: 25px;
    text-align: left;
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
}

.results-section h2 {
    text-align: center;
    color: #6effa8;
    font-size: 24px;
    margin-bottom: 20px;
}

.result-item {
    margin-bottom: 15px;
}

.result-item p {
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
}