body {
    font-family: 'Arial', sans-serif;
    text-align: center;
    background-color: #fceae8;
    padding: 20px;
}

.layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

/*on desktops, pcs and large screens*/
.left {
    flex: 1;
}

.right {
    flex: 1;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) { /*on phones and smaller screens */
    .layout {
        flex-direction: column;
        align-items: center;
    }
    
    #wheelCanvas {
        max-width: 250px;
    }
}

form {
    padding: 20px;
    margin: 20px auto;
    background-color: #ffffff;
    border-radius: 10px;
    display: block;
    box-sizing: border-box;
    width: 300px;
}

label {
    display: block;
    text-align: left;
    margin-top: 10px;
}

select {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 8px;
    font-size: 16px;
}

button {
    cursor: pointer;
    margin-top: 20px;
    padding: 10px 20px;
    color: #ffffff;
    background-color: #ff69b4;
    border: none;
    border-radius: 5px;
}

#wheelCanvas {
    width: 100%;
    height: auto;
    max-width: 400px;
}

#result {
    color: #333333;
    margin-top: 30px;
    font-size: 24px;
}

.resultBox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: #ff000080;
}

.boxContent {
    text-align: center;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 350px;
}

#closeBox {
    cursor: pointer;
    float: right;
    font-size: 24px;
}

.boxContent img {
    width: 100%;
    margin: 10px 0;
    border-radius: 10px;
}