/* Body styling with vibrant background */
body {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    background: linear-gradient(135deg, #6a11cb, #2575fc); /* Purple to blue gradient */
    color: #ffffff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Container for the wheel and button */
.container {
    max-width: 700px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent white */
    border-radius: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px); /* Frosted glass effect */
}

/* Main title */
h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

/*h1:before {
    content: "😩";
    margin-right: 10px;
    margin-top: 10px;
    animation: bounce 1.5s infinite;
}

/*h1:after {
    content: "😩";
    margin-left: 10px;
    margin-top: 10px;
    animation: bounce 1.5s infinite linear;
}


/* Keyframes for emoji animations */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.arrow {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 30px solid orange;
    z-index:10;
}

.arrow-border {
    content: '';
    position: absolute;
    top: 118px; /* Slightly move it up to create the border */
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    width: 0;
    height: 0;
    border-left: 24px solid transparent; /* Slightly larger than the main arrow */
    border-right: 24px solid transparent;
    border-bottom: 34px solid black; /* Border color */
    z-index: 5; /* Place it behind the main arrow */
}

/* Wheel canvas styling */
canvas {
    margin: 20px auto;
    display: block;
    border: 8px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Spin button */
button {
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(to right, #ff7eb3, #ff758c); /* Vibrant pink gradient */
    color: #ffffff;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

button:hover {
    background: linear-gradient(to right, #ff5a85, #ff2d55); /* Darker pink hover */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
    color: #666666;
}

button span {
    position: relative;
    z-index: 1;
}

#resultContainer {
    text-align: center; /* Center content horizontally */
    margin-top: 20px;   /* Add spacing from the wheel */
}

#resultImage {
    display: block;     /* Block-level for centering */
    margin: 0 auto;     /* Auto margins center horizontally */
    max-width: 200px;   /* Maintain size constraints */
    max-height: 200px;
}

/* Result message */
#resultMessage {
    margin-top: 20px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffee58; /* Bright yellow for visibility */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    animation: fadeIn 1s ease-in-out;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    button {
        font-size: 1rem;
        padding: 10px 20px;
    }

    #resultMessage {
        font-size: 1.5rem;
    }
}

/* Admin Panel General Styling */
.admin-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.admin-section {
    flex: 1;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #ffffff; /* White background for contrast */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #333; /* Dark text for readability */
}

ul {
    list-style: none;
    padding: 0;
    color: #555; /* Medium-dark text color */
}

li {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333; /* Ensure text is dark and readable */
}

form {
    display: inline;
}

button {
    margin-left: 10px;
    padding: 4px 8px;
    background-color: #ff8080; /* Pink buttons */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

button:hover {
    background-color: #e06666; /* Slightly darker pink for hover */
}

.form-inline {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

input {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    color: #333;
}

/* Reset Button */
.reset-section {
    text-align: center;
    margin-top: 20px;
}

.reset-section button {
    background-color: #ff4d4d; /* Bright red for reset button */
}

.reset-section button:hover {
    background-color: #cc0000; /* Dark red on hover */
}
