html, body{
    height: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    font-family: sans-serif;
    background-color: rgba(0, 0, 0, 1);

    user-select: none;
    -webkit-user-select: none; /* Safari用 */
    -ms-user-select: none;     /* 古いIE用 */
}

/* キャンバス */
canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* タイトル画像コンテナ */
#title-image-container {
    position: fixed;
    top: 0;
    left: 0;
    height: auto;
    z-index: 1;
    pointer-events: none; /* マウスイベントを通過させる */
    background-color: transparent;
}

/* タイトル画像 */
#title_image{
    margin: 1px;
    width: 220px;
    background-color: transparent;
}

/* 画面下メニュー */
#menubar {
    position: fixed;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    color: white;
    width: auto;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.45); /* 半透明の黒 */
    border-radius: 999px; /* 両端を丸く（Pill型） */
    z-index: 100;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

/* 画面右メニュー */
#menubar2 {
    position: fixed;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: white;
    width: auto;
    padding: 12px 8px;
    background-color: rgba(0, 0, 0, 0.45); /* 半透明の黒 */
    border-radius: 999px;
    z-index: 100;
    display: flex;
    flex-direction: column; /* 縦並びにする */
    gap: 10px;
    justify-content: center;
    align-items: center;
}
#menubar2_expand {
    position: fixed;
    top: 50%;
    right: -45px;
    transform: translateY(-50%);
    color: white;
    width: auto;
    padding: 2px;
    background-color: rgba(0, 0, 0, 0); /* 半透明の黒 */
    border-radius: 999px;
    z-index: 100;
    display: flex;
    flex-direction: column; /* 縦並びにする */
    gap: 10px;
    justify-content: center;
    align-items: center;
}

/* 画面上メニュー */
#menubar3 {
    position: fixed;
    top: 10px;
    right: 10px; 
    color: white;
    width: auto;
    padding: 0;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

/* メニューの区切り線(縦線) */
.vertical-divider {
    width: 1px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.45); /* 半透明の白 */
    margin: 0 4px; /* 左右に余白 */
}

/* メニューの区切り線(横線) */
.horizontal-divider {
    height: 1px;
    width: 36px;
    background-color: rgba(255, 255, 255, 0.45); /* 半透明の白 */
    margin: 4px 0; /* 上下に余白 */
}

/* メニュー丸ボタン*/
.icon-button {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* メニュー丸ボタン(閉じる用）*/
.icon-button2 {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    border: 0;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

/* メニュー丸ボタンのアイコン画像 */
.icon-image {
    width: 24px;
    height: 24px;
}

/* 目印パレット */
#flag-palette {
    position: fixed;
    left: 50%;
    bottom: 70px;
    transform: translateX(-50%);
    color: white;
    width: auto;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.45); /* 半透明の黒 */
    border-radius: 999px; /* 両端を丸く（Pill型） */
    z-index: 100;
    display: none;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

/* 背景パレット */
#bg-palette {
    position: fixed;
    top: 50%;
    right: 70px;
    transform: translateY(-50%);
    color: white;
    width: auto;
    padding: 12px 8px;
    background-color: rgba(0, 0, 0, 0.45); /* 半透明の黒 */
    border-radius: 999px;
    z-index: 100;
    display: none;
    flex-direction: column; /* 縦並びにする */
    gap: 10px;
    justify-content: center;
    align-items: center;
}

/* カーソルメニュー */
#cursor-menu {
    position: fixed;
    left: 0;
    top: 0;
    color: white;
    width: auto;
    padding: 5px 7px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 999px; /* 両端を丸く（Pill型） */
    z-index: 1;
    display: none;
    gap: 10px;
    justify-content: center;
    align-items: center;
}


/* モーダル */
.modal_main {
    position: fixed;
    width: 100%;
    max-width: 403px;
    top: 10px;
    left: 50%;
    padding: 10px 18px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    z-index: 101;
    transform: translateX(-50%);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

/* モーダルのボタンコンテナ */
.modal_button_container{
    display: flex;
    margin-top: 10px;
    gap: 10px;
    justify-content: right;
}

/* モーダルのボタン */
.modal_button{
    min-width: 100px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* モーダルのタイトル文字 */
.modal_title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 3px;
}

/* 各種モーダル */
#modal_info, #modal_save, #modal_reset, #modal_loop, #modal_screenshot {
    display: none;
}

/* 達成率 */
#achievement {
    position: fixed;
    width: 200px;
    height:20px;
    left: 10px;
    top: 65px;
    color: rgba(0, 0, 0, 0.9);
    padding: 5px 5px;
    background-color: rgba(0, 0, 0, 0);
    border: 1px solid rgba(0, 0, 0, 0.4);
    border-radius: 999px; /* 両端を丸く（Pill型） */
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    display: none;
}

/* 検索 */
#search_container {
    position: fixed;
    width: 100%;
    max-width: 400px;
    top: 10px;
    left: 50%;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    z-index: 100;
    display: none;
    gap: 10px;
    align-items: center;
    transform: translateX(-50%);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}
#search_container form {
    flex-grow: 1;
}

/* 検索ボックス */
#search_box{
    padding:0;
    margin: 0;
    width: 100%;
    height: 35px;
    border-radius: 5px;
    text-align:center;
    font-size: 16px;
}
#search_box::placeholder {
    color: #000000;
    opacity: 0.3;
}

/* 検索閉じるボタン */
#search_button{
    width: 35px;
    height: 35px;
    line-height: 20px;
    padding: 0;
}

/* 画面中心アイコン */
#search_center{
    color:rgba(0, 123, 255, 0.897);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    display: none;
}

/* お知らせモーダルのテキスト内アイコン用の調整 */
.modal_main .material-symbols-outlined {
    vertical-align: middle; /* 垂直方向の中央揃え */
    font-size: 1.2rem;      /* 文字の大きさに合わせて調整 */
    margin-right: 4px;      /* アイコンと文字の間の余白 */
}


/* suggest.js用-------------------------*/
#suggest {
    position: absolute;
    top:55px;
    left:0px;
    background-color: #FFFFFF;
    border: 0 solid #CCCCFF;
    font-size: 90%;
    width: 100%;
    border-radius: 5px;
    padding: 5px;
}
#suggest div {
    display: block;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    border-radius: 5px;
    padding: 3px 10px;
}
#suggest div.select{ /* キー上下で選択した場合のスタイル */
    background-color: #99CCFF;
}
#suggest div.over{ /* マウスオーバ時のスタイル */
    background-color: #99CCFF;
}
/* -------------------------------------*/

/* stats.js */
#Stats-output{
    /*display: block;*/
    display: none;
}
