body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1{
  display: inline-block;
  font-size: 20px;
  font-family: "Roboto", sans-serif;
  font-weight: bold;
  bottom: 0; /*下寄せの指定*/
  background: linear-gradient(90deg, #58c6ff 0%, #076ad9 40%, #ff3bef 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
overflow: hidden;
text-align:center;
margin-left: 6px; /* 好きなpxに調整できます */
}

h1 a{
  display: inline-block;
  font-size: 20px;
  font-family: "Roboto", sans-serif;
  font-weight: bold;
  bottom: 0; /*下寄せの指定*/
  background: linear-gradient(90deg, #58c6ff 0%, #076ad9 40%, #ff3bef 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
overflow: hidden;
text-align:center;
margin-left: 6px; /* 好きなpxに調整できます */
}

h2 {
color:#557303;
font-size: 88%; 
line-height: 1em; 
font-weight:bolder;
padding:10px 0px 5px 0px;
margin:0px 0px 0px 0px;
border-bottom:1px dotted #7ABD3C;
background-color:#f0f2ff;
border-radius: 1vh;
}

.controls {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.control-section {
    margin-bottom: 15px;
}

.control-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1em;
    color: #34495e;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 5px;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.button-container button {
    padding: 8px 12px;
    font-size: 0.9em;
    border: 1px solid #bdc3c7;
    background-color: #ecf0f1;
    color: #2c3e50;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.button-container button:hover {
    background-color: #dbe0e3;
}

.button-container button.active {
    background-color: #3498db;
    color: #fff;
    border-color: #2980b9;
}

#inputs-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

#inputs-container input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 0.9em;
}

.main-actions, .settings {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.main-actions button {
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

#start-btn {
    background-color: #2ecc71;
    color: white;
}
#start-btn:hover { background-color: #27ae60; }
#start-btn:active { transform: scale(0.98); }

#stop-btn {
    background-color: #e74c3c;
    color: white;
}
#stop-btn:hover { background-color: #c0392b; }
#stop-btn:active { transform: scale(0.98); }

#save-btn {
    background-color: #9b59b6;
    color: white;
}
#save-btn:hover { background-color: #8e44ad; }
#save-btn:active { transform: scale(0.98); }

.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#size-slider {
    width: 150px;
}

.result-container {
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
    text-align: center;
}

.result-container h2 {
    margin: 0;
    font-size: 1.2em;
    color: #2c3e50;
}

#result-display {
    margin-top: 5px;
    font-size: 1.5em;
    font-weight: bold;
    color: #e74c3c;
    min-height: 1.5em;
}

.roulette-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

#roulette-canvas {
    width: 100%;
    height: auto;
    display: block;
}