/* スタイルのリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Arial', sans-serif;
}

/* ゲームコンテナの設定 */
#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 背景画像の設定 */
#background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover; /* 背景画像がコンテナを覆うように */
    background-position: center; /* 背景画像が中央に配置されるように */
}

/* キャラクター画像の設定 */
#character-container {
    position: absolute;
    width: 100%;
    bottom: 10%; /* 画面下からのキャラクターの位置 */
    left: 50%; /* 中央揃えの基点 */
    transform: translateX(-50%); /* 中央揃えの調整 */
    z-index: 2;
}

#character {
    background-image: url('../assets/characters/1.png');
    background-size: cover; /* 画像がコンテナに合うようにサイズを調整 */
    width: 100%; /* キャラクターの画像の幅、必要に応じて調整 */
    height: 500px;
}

/* セリフパーツの設定 */
#dialogue-container {
    position: absolute;
    bottom: 0; /* 画面下部 */
    width: 100%;
    z-index: 3;
}

#dialogue-box {
    background-color: rgba(0, 0, 0, 0.8); /* 半透明の黒色 */
    color: #fff; /* テキストの色は白 */
    border-radius: 10px;
    padding: 20px;
    margin: 20px;
    text-align: left;
}

#dialogue-text {
    font-size: 16px; /* フォントサイズ */
    line-height: 1.6; /* 行間 */
}

/* 選択肢のコンテナのスタイル */
#choices-container {
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 20%; /* セリフボックスの上に配置 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10; /* セリフボックスよりも前面に */
    width: 80%; /* 適宜調整 */
    padding: 10px; /* コンテナ内のパディングを調整 */
    box-sizing: border-box; /* パディングを幅に含める */
}

/* 選択肢ボタンのスタイル */
#choices-container button {
    padding: 10px 20px;
    background-color: #f8f8f8; /* 適宜調整 */
    border: 1px solid #ccc; /* 適宜調整 */
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px; /* 適宜調整 */
    margin: 10px 0; /* ボタン間のマージンを調整 */
    opacity: 0.9; /* 透過度を設定 */
    background-color: rgba(255, 255, 255, 0.9); /* 透明度を持った白色で背景を設定 */
    color: #333; /* ボタンのテキスト色を設定 */
}

#choices-container button:hover {
    opacity: 1; /* ホバー時は透過度を下げる */
    background-color: rgba(255, 255, 255, 1); /* ホバー時は完全な白色に */
}

#background-music {
    display: none;
  }