@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&display=swap');

body {
    background-color: #000;
    color: #ffd700;
    font-family: 'Noto Serif JP', serif;
    text-align: center;
}

#single-card-display {
    margin: 20px auto;
    width: 80%;
    max-width: 200px; /* Adjust as needed for single card size */
    aspect-ratio: 2.5 / 4;
    background-color: #333;
    border: 2px solid #000; /* 黒色の実線に変更 */
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#draw-button {
    background-color: #ffd700;
    color: #000;
    border: 2px solid #ffd700;
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#draw-button:hover {
    background-color: #cfae00;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s; /* アニメーションの追加 */
}

.card-image.flip-out {
    transform: rotateY(90deg); /* Y軸を中心に90度回転 */
}

.card-image.flip-in {
    transform: rotateY(0deg); /* Y軸を中心に0度に戻す */
}

.angel-details-display {
    display: none; /* Initially hidden */
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ffd700;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
}




.book-list-link {
    display: block;
    margin-top: 10px;
    font-size: 0.9em;
    color: #ffd700;
    text-decoration: none;
}

hr {
    width: 100%;
    border: none;
    border-top: 1px solid #ffd700;
    margin-top: 15px;
}

footer {
    margin-top: 20px;
    padding: 10px;
}

footer p {
    font-size: 0.8em;
    color: #888;
}

.to-top-button {
    visibility: hidden; /* Initially hidden */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ffd700;
    color: #000;
    border: 2px solid #ffd700;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2em;
    line-height: 46px; /* Vertically center the arrow */
    text-align: center;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s; /* Delay visibility change when hiding */
    z-index: 1000;
}

.to-top-button.show {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease-in-out, visibility 0s linear 0s; /* No delay when showing */
}

