/* 전체 레이아웃 설정 */
body {
    margin: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes spin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* 카드 컨테이너 (3D 효과를 위해 perspective 설정) */
.card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    perspective: 1000px;
    margin: 10px;
}

/* 카드 스타일 */
.card {
    width: fit-content;
    height: fit-content;
    padding: 10px;
    color: #ffffff;
    font: bold 16px/1.5 sans-serif;
    position: relative;
    animation: float 3s ease-in-out infinite;
    background: linear-gradient(135deg, #e8e6d3, #eae274);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease-out;
    transform-style: preserve-3d;
    overflow: hidden;
}
/* 클릭 시 카드 회전 */
.card.spin {
    animation: spin 0.3s ease-out forwards;
}
/* 오버레이: 카드 위에 빛 반사 효과를 주는 요소 */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6), transparent 80%);
    transform: translate(-0%, -0%);
    transition: transform 0.1s ease-out;
}

.desc-container {
    margin: 30px;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: white;
    background: #e8e6d3;
    position: relative;
    border-radius: 12px;
    transition: transform 0.2s ease-out;
    transform-style: preserve-3d;
    overflow: hidden;
}

.desc-container > span {
    background-color: #000000;
    width: 95%;
    height: 95%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
}

#msg {
    width: 360px;
    height: 30px;
    margin-bottom: 20px;
    display: flex;
    border: 1px black dashed;
    align-items: center;
    justify-content: center;
    user-select: contain;
}
#range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    border: 1px black solid;
    background: url('/favicon.ico') no-repeat center;
    background-size: contain;
    cursor: pointer;
}
#range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 10px;
    border: 1px black solid;
    background: url('/favicon.ico') no-repeat center;
    cursor: pointer;
}
#range {
    -webkit-appearance: none;
    width: 200px;
    height: 10px;
    border-radius: 5px;
    outline: none;
    background: #ccc;
    transition: background 450ms ease-in;
    -webkit-transition: .2s;
}
#range-container {
    margin: 15px;
}