body {
    background-color: #1a1a2e;
    color: #e0e0e0;
    font-family: 'serif';
}

.display-4 {
    font-weight: 300;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.btn-outline-light {
    border-width: 2px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

#card-area {
    min-height: 350px;
}

.card-container {
    perspective: 1000px;
}

.card-flip {
    position: relative;
    width: 100%;
    padding-bottom: 170%; /* 카드 비율 */
    transform-style: preserve-3d;
    transition: transform 1s;
}

.card-container.flipped .card-flip {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.card-back {
    background: #2a2a4e;
    border: 2px solid #9a7dcb;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #9a7dcb;
}

.card-front {
    transform: rotateY(180deg);
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

#result-area {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    display: none; /* 처음에는 숨김 */
}

#result-area h2 {
    color: #9a7dcb;
    border-bottom: 2px solid #9a7dcb;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
