Newer
Older
about-Leaflet / button.css
body {
    margin: 0;
    overflow: hidden;
    background-color: #e1f0ff; /* 薄水色 */
}

#WebGL-output {
    width: 80vw; /* 80%の幅 */
    height: 100vh; /* 高さは全体 */
    position: absolute;
    top: 0;
    left: 0;
}

#overlay {
    width: 20vw; /* 20%の幅 */
    height: 100vh; /* 高さは全体 */
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0); /* 透明 */
    z-index: 1; /* WebGL出力の上に配置 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 上から順に配置 */
    align-items: center;
    gap: 20px; /* 各ボタンの間隔 */
}

/* 共通デザイン */
.emotion-button {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    font-size: 24px;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
    transition: background-color 0.2s;
}

/* 個別デザイン */
.emotion-button.smile {
    background-color: #FFC0CB; /* 薄ピンク色 */
}
.emotion-button.smile:hover {
    background-color: #FFB6C1; /* ホバー時の色(少し濃いピンク) */
}

.emotion-button.sad {
    background-color: #8f87d8; /* 青色 */
}
.emotion-button.sad:hover {
    background-color: #867fc7; /* ホバー時の色(少し濃い青) */
}

.emotion-button.surprised {
    background-color: #ffd000; /* オレンジ色 */
}
.emotion-button.surprised:hover {
    background-color: #ecc100f6; /* ホバー時の色(少し濃いオレンジ) */
}

.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    margin-left: 1px;
    width: 150px;
    height: 150px;
    border: 1px solid black; /* 枠線追加 */
}

.way-button {
    width:48px;
    height:38px;
    background-color: rgb(54, 255, 138);
    border-radius:15px;
}

.forward {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}
.back {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}
.right {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}
.left {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.turn {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    /* visibility: hidden; /* 中央のボタンは非表示 */
    width: 48px;
    height: 38px;
}