/* Google FontsのMedievalSharpを読み込む */
@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&display=swap');

body {
    margin: 0;
    padding: 20px;
    font-family: 'MedievalSharp', cursive;
    color: #f5deb3;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    
    background-image: url('../img/background-map.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background-color: #6a4f31;
    overflow-y: auto;
}

.prompt-list-container {
    background-color: rgba(43, 35, 29, 0.9);
    border: 3px solid #d2b48c;
    border-radius: 15px;
    padding: 30px 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    max-width: 800px;
    width: 90%;
    margin-top: 30px;
    margin-bottom: 30px;
}

.list-title {
    font-size: 2.5em;
    margin: 0 0 15px 0;
    text-align: center;
    color: #f5deb3;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9);
}

.back-link {
    display: block;
    margin-bottom: 25px;
    color: #d2b48c;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.2s ease;
    text-align: center;
}

.back-link:hover {
    color: #f0e68c;
}

.separator {
    border: none;
    border-top: 1px solid #7a6a5d;
    margin-bottom: 20px;
}

.loading-text, .empty-text {
    text-align: center;
    color: #d2b48c;
    font-size: 1.2em;
}

#promptList details {
    border-bottom: 1px solid #5c4a3b;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

#promptList details:last-child {
    border-bottom: none;
}

#promptList summary {
    font-size: 1.4em;
    color: #d2b48c;
    cursor: pointer;
    padding: 10px 0;
    list-style: none; /* デフォルトの三角マークを消す */
    position: relative;
    padding-left: 25px;
}

#promptList summary::before {
    content: '▶'; /* 閉じたときのマーカー */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    color: #f0e68c;
    transition: transform 0.2s ease-in-out;
}

#promptList details[open] > summary::before {
    transform: translateY(-50%) rotate(90deg); /* 開いたときのマーカー */
}

#promptList summary:hover {
    color: #f0e68c;
}

.prompt-content {
    padding: 15px;
    background-color: #3b2f21;
    border-radius: 5px;
    border: 1px solid #7a6a5d;
    margin-top: 10px;
}

.prompt-content pre {
    font-family: 'MedievalSharp', cursive;
    font-size: 1em;
    color: #f5deb3;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}