/* styles.css */
body {
    font-family: 'Arial', sans-serif;
    background-image: url('images/その他/background.jpg'); /* 占いっぽい背景画像を追加 */
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: #fff; /* 白色のテキスト */
}

#tarot-container, #result-container {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.8); /* 半透明の黒い背景 */
    padding: 20px;
    border-radius: 10px;
    max-width: 600px; /* コンテナの幅を制限 */
}

h1 {
    font-family: 'Cursive', sans-serif;
    font-size: 2em;
    margin-bottom: 20px;
}

#card-selection {
    display: flex;
    justify-content: space-around;
    gap: 10px; /* カードの間隔を広げる */
}

.card-option {
    width: 100px;
    height: 150px;
    border: 1px solid #fff;
    background-image: url('images/その他/card_back.jpg'); /* 裏面の画像 */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-option:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

#card-display {
    margin-top: 20px;
}

.card {
    width: 150px;
    height: 250px;
    border: 1px solid #fff;
    display: inline-block;
    margin: 5px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.5s;
    animation: breathing 2s infinite; /* 呼吸アニメーションを追加 */
}

.card-reversed {
    transform: rotate(180deg);
}

@keyframes breathing {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

#card-meaning {
    margin-top: 20px;
    font-size: 1.2em;
    text-align: left; /* テキストを左揃え */
}

.card-name {
    font-size: 1.5em;
    font-weight: bold;
}

.card-description {
    font-size: 1.2em;
}
