* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to bottom, #ff6f61, #ffb88c);
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.hero {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(to bottom, #ff6f61, #ffb88c);
    color: white;
    width: 100%;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
}

.section {
    max-width: 800px;
    background: white;
    padding: 30px;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.section h2 {
    color: #ff6f61;
    margin-bottom: 20px;
}

.section p {
    margin-bottom: 20px;
}

#inputForm label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

#inputForm input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    font-size: 1em;
    border: 2px solid #ff6f61;
    border-radius: 5px;
    margin-bottom: 15px;
}

#inputForm button {
    background: #ff6f61;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s;
}

#inputForm button:hover {
    background: #ff4d4d;
}

#error {
    color: #ff4d4d;
    margin-top: 10px;
    display: none;
}

#spin_the_wheel {
    display: none;
}

.wheel-section {
    padding: 30px;
}

.wheel-container {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto;
}

#wheel {
    width: 500px;
    height: 500px;
    display: block;
}

#spin {
    font: 1.5em 'Poppins', sans-serif;
    user-select: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30%;
    height: 30%;
    margin: -15%;
    background: white;
    color: #ff6f61;
    box-shadow: 0 0 0 8px #ff6f61, 0 0 15px 5px rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    transition: 0.8s;
}

#spin::after {
    content: "";
    position: absolute;
    top: -17px;
    border: 10px solid transparent;
    border-bottom-color: #ff6f61;
    border-top: none;
}

#popupBackdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#winnerPopup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 1001;
    max-width: 400px;
    width: 90%;
}

#winnerPopup h2 {
    color: #ff6f61;
    margin-bottom: 15px;
}

#winnerPopup p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

#closePopup {
    background: #ff6f61;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s;
}

#closePopup:hover {
    background: #ff4d4d;
}

footer {
    text-align: center;
    padding: 20px;
    color: white;
    background: #ff6f61;
    width: 100%;
}

footer a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 1em;
    }

    .section {
        margin: 10px;
        padding: 20px;
    }

    .wheel-section {
        padding: 20px;
    }

    .wheel-container {
        width: 300px;
        height: 300px;
    }

    #wheel {
        width: 300px;
        height: 300px;
    }

    #spin {
        font-size: 1em;
    }

    #winnerPopup {
        padding: 15px;
        width: 80%;
    }

    #winnerPopup h2 {
        font-size: 1.5em;
    }

    #winnerPopup p {
        font-size: 1em;
    }
}