* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #667eeA, #764ba2);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: white;
}

.app {
    width: 100%;
    max-width: 600px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.0.25);
}

h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.input-section {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

input {
    padding: 12px 14px;
    border: none;
    border-radius: 12px;
    width: 250px;
    font-size: 1rem;
    outline: none;
}

button {
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    background: white;
    color: #333;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    background: #f0f0f0;
}

button:active {
    transform: scale(0.98);
}

.options-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    min-height: 20px;
}

.option-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    padding: 8px 10px 8px 14px;
    border-radius: 999px;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.remove-option {
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.remove-option:hover {
    color: #ff4d4d;
    color: white;
    transform: scale(1.1);
}

.remove-option:active {
   transform: scale(0.95);
}

#clearBtn {
    background: #ff6b6b;
}

#clearBtn:hover {
    background: #f44336;
}

#spinBtn {
    margin-bottom: 20px;
    background: #ff39d3;
}

#spinBtn:hover {
    background: #ff00c8;
}

.wheel-wrapper { 
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto 20px ;
}

canvas{
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
    border: 6px solid white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.pointer {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #ff0000;
    z-index: 10;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2));
}

#resultText {
    font-size: 1.3rem;
    font-weight: bold;
    min-height: 32px;
}

@media (max-width: 500px) {
    .app {
        padding: 20px 15px;
    }

    h1 {
        font-size: 1.6rem;
    }

    .wheel-wrapper {
        width: 300px;
        height: 300px;
    }

    .input-section {
        flex-direction: column;
        align-items: stretch;
    }

    input, button {
        width: 100%;
    }
}