/* style.css */

/* 全体レイアウト */
body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* キャンバス（ルーレット）の見た目 */
#canvas {
    background: #fff;
    width: 400px;
    height: 400px;
    display: block;
    margin-bottom: 20px;
    background: transparent;
}

.arrow_center{
    align-items: center;
}

.arrow{
    position: relative;
    transform: translateX(-50%);
    transform: rotate(180deg);
    font-size: 24px;
    color: red;
    z-index: 10;
    pointer-events: none; /* ボタンクリックなどを邪魔しない */
}

@keyframes spin {
      0%   { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

/* テキストエリアのスタイル */
#textarea {
    width: 400px;
    height: 150px;
    padding: 10px;
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 10px;
    box-sizing: border-box;
}

/* ボタンのスタイル */
button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

#startButton {
    width: 400px;
    height: 50px;
}

button:disabled{
    background-color: #00000087;
}

/* モバイル対応 */
@media (max-width: 500px) {
    body {
        padding: 10px;
    }

    #canvas,
    #textarea,
    #startButton {
        width: 90vw;
        height: 90vw;
    }

    button {
        width: 100%;
    }

    .arrow {
        font-size: 18px;
    }

    #textarea {
        height: 120px;
        font-size: 14px;
    }

    #startButton {
        height: 45px;
        font-size: 14px;
    }
}
