@font-face {
    font-family: 'BMJUA';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_one@1.0/BMJUA.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: 'BMJUA', sans-serif;
    font-size: 1.1em;
    background: linear-gradient(135deg, #a8c0ff 0%, #fbc2eb 100%);
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
}

.main-container {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    max-width: 500px;
    width: 100%;
}

h1 {
    font-family: 'BMJUA', sans-serif;
    font-weight: 700;
    font-size: 3.2em;
    margin-bottom: 10px;
    color: #0056b3;
    white-space: nowrap;
}

p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 30px;
}

#image-container {
    width: 200px;
    height: 280px;
    background-color: #e0eaff;
    border-radius: 15px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px dashed #007bff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    position: relative;
}

#image-container:hover {
    background-color: #d0e0ff;
    border-color: #0056b3;
}

#upload-placeholder {
    color: #0056b3;
    font-size: 1.3em;
    font-weight: normal;
    text-align: center;
    line-height: 1.5;
}

#image-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
}

#label-container {
    margin-top: 25px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    border: 1px solid #d1b3e8;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.5s ease-out forwards;
}

.prediction-bar-container {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    margin: 8px 0;
    height: 35px;
    width: 100%;
    display: flex;
    align-items: center;
    font-size: 1.1em;
    overflow: hidden;
    cursor: pointer; /* 클릭 가능 표시 */
    transition: transform 0.2s, box-shadow 0.2s;
}

.prediction-bar-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.prediction-label {
    padding: 0 15px;
    font-weight: normal;
    white-space: nowrap;
    color: #3e2d5c;
    width: 90px;
    flex-shrink: 0;
}

.prediction-bar-wrapper {
    flex-grow: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

.prediction-bar {
    height: 100%;
    border-radius: 0 8px 8px 0;
    transition: width 0.3s ease-in-out;
    color: white;
    font-size: 1em;
    font-weight: bold;
    text-align: right;
    line-height: 35px;
}

.prediction-bar span {
    padding-right: 10px;
    font-size: 1.0em;
    font-weight: normal;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#result-container {
    margin-top: 20px;
    text-align: left;
    animation: fadeInUp 0.5s ease-out 0.2s forwards;
    opacity: 0;
}

.result-item {
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    border-left: 5px solid #007bff;
}

.result-item-title {
    font-family: 'BMJUA', sans-serif;
    font-weight: 700;
    font-size: 2em;
    color: #0056b3;
    margin-bottom: 10px;
}

.result-item-description {
    font-size: 1.2em;
    line-height: 1.8;
    color: #1A1A1A;
}

.result-item-celebrity {
    font-size: 1.15em;
    color: #444;
    margin-top: 20px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ff4081;
}

#tip-container {
    color: #495057;
    font-size: 1em;
    margin-top: 20px;
    animation: fadeInUp 0.5s ease-out 0.4s forwards;
    opacity: 0;
}

.hidden {
    display: none;
}
