/**
 * Glücksrad
 */

/* Button fixed on the left side */
#openWheelButton {
    display: none;

    cursor: pointer;

    position: fixed;
    right: -65px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    padding: 10px 20px;
    font-size: 16px;
    z-index: 1000;

    background-color: black;
    color: white;

    border: none;
}

#closeWheelButton {
    cursor: pointer;

    position: fixed;
    top: 50px;
    right: 50px;
    color: white;
    background-color: transparent;
    border: unset;
    font-size: 40px;
}

/* Modal overlay for the wheel */
#wheelModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}
/* Centered container for the wheel and spin button */
#wheelInner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
/* The wheel container is now positioned absolute and centered */
#wheelContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 650px;
    border-radius: 50%;
    overflow: hidden;
    max-width: 95vw;
    max-height: 95vw;
}
/* Canvas fills the wheel container */
#wheel {
    width: 100%;
    height: 100%;
}

/* Spin button styling */
#spinButton {
    cursor: pointer;
    margin: auto;
    margin-top: 5px;
    display: block;
    padding: 10px 20px;
    font-size: 16px;

    background-color: #94d600;
    color: white;
    font-family: "RobotoCondensed-ExtraBold";
    font-weight: normal;
}

#wheelInner input {
    border: unset;
    border-bottom: 1px solid #ccc;
    outline: none;
    font-family: "DMSans-Regular";
}

#wheelInner input::placeholder {
    text-align: center;
}

#wheelInner h2 {
    margin-top: 0;
	max-width: 300px;
    font-family: "RobotoCondensed-ExtraBold";
    font-weight: normal;

}

.form {
    position: relative;
    z-index: 1;
}

.code {
    color: red;
}

#spinButton.hidden {
    display: none;
}
#result {
    display: none;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    background-color: black;
    color: white;
    padding: 20px;

    width: 600px;
}

#result.show {
    display: unset;
}

@media (max-width: 768px) {
    #wheelInner h2 {
        font-weight: normal;
        margin: auto;
        font-size: 14px;
        max-width: 90%;
        line-height: normal;
    }
    #wheelInner input {
        font-size: 13px;
        padding: 4px 0 3px 0;
        width: 90%;
    }
    .form {
        padding-bottom: 30px;
        max-width: 90%;
        margin: 0 auto;
    }
    #spinButton {
        padding: 10px 10px;
        font-size: 12px;

    }
}

