body {
    background-color: #008000;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 10px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
}

#roulette-container {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 800px;
    margin: 10px auto;
    box-sizing: border-box;
}

h1 {
    font-size: 24px;
    text-align: center;
    margin: 10px 0;
}

#wheel-container {
    width: 300px;
    height: 300px;
    margin: 20px auto;
    position: relative;
}

#wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    border: 8px solid #333;
    overflow: hidden;
    transform-origin: center center;
}

.segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 30px;
    font-size: 10px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
}

.selected-segment {
    background-color: #FFD700 !important;
    color: black !important;
    font-weight: bold;
    text-shadow: none;
    z-index: 2;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

#borough-selection {
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    justify-content: center;
    padding: 15px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#borough-selection label {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#spin-button {
    display: block;
    margin: 20px auto;
    padding: 12px 30px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 120px;
}

#spin-button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

#output {
    margin: 20px 0;
    text-align: center;
    padding: 10px;
}

.train-lines {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin: 10px 0;
    flex-wrap: wrap;
    padding: 5px;
}

.train-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

#map {
    height: 300px;
    width: 100%;
    margin-top: 20px;
    border: 5px solid #ccc;
    border-radius: 10px;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    h1 { font-size: 20px; }
    #wheel-container { width: 250px; height: 250px; }
    .segment { padding-left: 20px; font-size: 8px; }
    #borough-selection label { padding: 8px; font-size: 12px; }
    .train-icon { width: 25px; height: 25px; }
    #map { height: 250px; }
}
