body {
margin: 0;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
div#WebGL-output {
width: 80vw;
height: 80vh;
position: relative; /* ボタンの位置を相対的にするため */
}
.button {
width: 2cm;
height: 2cm;
background-color: rgba(255, 182, 193, 0.8); /* 薄いピンク */
border: none;
border-radius: 50%;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
cursor: pointer;
position: absolute; /* WebGL-output内での位置指定 */
bottom: 20px; /* 下から20pxの位置に配置 */
right: 0px; /* 右から20pxの位置に配置 */
transition: box-shadow 0.2s, transform 0.2s; /* アニメーション効果 */
}
.button:active {
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
transform: scale(0.95); /* 押された感じを出す */
}