/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}

.page {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.hidden {
    display: none !important;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2d3436;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input[type="text"], input[type="number"], select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

input[type="text"]:focus, input[type="number"]:focus, select:focus {
    outline: none;
    border-color: #74B9FF;
    box-shadow: 0 0 0 2px rgba(116, 185, 255, 0.2);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-top: 10px;
}

.btn-primary {
    background-color: #74B9FF;
    color: white;
}

.btn-primary:hover {
    background-color: #0984e3;
}

.btn-secondary {
    background-color: #636e72;
    color: white;
}

.btn-secondary:hover {
    background-color: #2d3436;
}

.btn-danger {
    background-color: #ff7675;
    color: white;
}

.btn-danger:hover {
    background-color: #d63031;
}

.item-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.item-row input[type="text"] {
    flex: 3;
}

.item-row input[type="number"] {
    flex: 1;
}

.item-row .btn {
    flex: 0 0 auto;
    margin: 0;
    padding: 12px;
}

/* Play Page Styles */
#wheel-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 30px auto;
}

#wheel-canvas {
    width: 100%;
    height: 100%;
}

#wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background-color: #d63031;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 10;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.modal-content #result-text {
    font-size: 24px;
    margin-bottom: 20px;
    display: block;
}

.modal-content .btn {
    margin: 10px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .page {
        padding: 15px;
    }

    #wheel-container {
        width: 300px;
        height: 300px;
    }

    #wheel-canvas {
        width: 300px;
        height: 300px;
    }

    .item-row {
        flex-direction: column;
        align-items: stretch;
    }

    .item-row input, .item-row .btn {
        width: 100%;
        margin-bottom: 5px;
    }
}