* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    background-color: #050510;
    /* 宇宙空間をイメージしたダークカラー */
    font-family: sans-serif;
    user-select: none;
    /* スマホでのテキスト選択防止 */
}

#canvas-container {
    width: 100vw;
    height: 100vh;
    display: block;
}

#start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 16, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    color: #fff;
    transition: opacity 0.5s ease;
}

#start-btn {
    margin-top: 20px;
    padding: 15px 40px;
    font-size: 1.2rem;
    color: #00ffff;
    background: transparent;
    border: 2px solid #00ffff;
    border-radius: 30px;
    cursor: pointer;
    letter-spacing: 2px;
}

#start-btn:active {
    background: rgba(0, 255, 255, 0.2);
}



/* ヘッダー全体のレイアウト調整 */
#ui-header {
    display: flex;
    justify-content: space-between;
    /* これで左にロゴ、右にコントロールが寄ります */
    align-items: center;
    padding: 10px 20px;
    background: rgba(10, 26, 68, 0.8);
    /* 地球の海の色に近い紺色 */
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-sizing: border-box;
}


/* タイトル（左側）のスタイル */
.header-logo {
    font-family: 'Helvetica', 'Arial', sans-serif;
    /* サンセリフ体ですっきり */
    font-weight: 800;
    letter-spacing: 0.15em;
    /* 文字の間隔を広げるのがコツです */
    color: #00ffff;
    text-transform: uppercase;
    /* 強制的に大文字にする設定 */
}



/* コントロールグループ（右側）のスタイル */
.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}


.control-group label {
    color: #00ffff;
    font-size: 0.8rem;
    text-transform: uppercase;
}



input[type="number"] {
    width: 50px;
    background: #000;
    color: #00ffff;
    border: 1px solid #00ffff;
}

/* トグルスイッチの装飾 */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* スライダー自体の見た目を少し細身にする（お好みで） */
#size-slider {
    cursor: pointer;
    accent-color: #00ffff;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 20px;
}

.switch input:checked+.slider-round {
    background-color: #00ffff;
}


/* 国名表示のスタイル */
#country-name-display {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 255, 255, 0.2);
    /* 透過シアン */
    color: #00ffff;
    padding: 10px 30px;
    border-radius: 30px;
    border: 1px solid rgba(0, 255, 255, 0.5);
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    pointer-events: none;
    /* マウスイベントを邪魔しない */
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    backdrop-filter: blur(10px);
    z-index: 1000;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

#country-name-display.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}


/* 右側リストのスタイル */
#side-list-container {
    position: fixed;
    right: 20px;
    top: 80px;
    bottom: 20px;
    width: 200px;
    background: rgba(10, 26, 68, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    overflow-y: auto;
    z-index: 100;
    padding: 10px 0;
    color: #00ffff;
    font-family: sans-serif;
}

.country-item {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
    border-left: 3px solid transparent;
}

.country-item:hover {
    background: rgba(0, 255, 255, 0.2);
}

.country-item.active {
    background: rgba(0, 255, 255, 0.4);
    /* 少し濃く */
    border-left: 4px solid #ffffff;
    /* 白い線で強調 */
    color: #ffffff;
    /* 文字も白く */
    font-weight: bold;
}

/* スクロールバーのカスタマイズ（任意） */
#side-list-container::-webkit-scrollbar {
    width: 5px;
}

#side-list-container::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.5);
}


#footer-note {
    position: fixed;
    bottom: 20px;
    left: 20px;
    color: rgba(0, 255, 255, 0.5);
    /* 少し透かして目立ちすぎないように */
    font-size: 0.7rem;
    font-family: sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 100;
}