.wheel-form-container {
	max-width: 800px;
	margin: 2rem auto;
	padding: 2rem;
	background: #f8f9fa;
	border-radius: 10px;
	box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.wheel-form-title {
	text-align: center;
	color: #2c3e50;
	margin-bottom: 1.5rem;
	font-size: 1.8rem;
	font-weight: 600;
}

.wheel-dropdown-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.wheel-submit-btn:hover {
    color: white !important;
}

@media (max-width: 600px) {
    #wheel-container {
        display: none !important;
    }
}


@media (max-width: 768px) {
    .wheel-dropdown-grid {
        display: flex;
        flex-direction: column;
    }
    
    .select2-dropdown {
        width: 100% !important;
        max-height: 200px !important; 
        left: 0 !important;
        max-width: none !important;
    }
    
    .select2-results__options {
        max-height: 200px !important; 
        overflow-y: auto !important;  
    }
}


.select2-container--default .select2-results__option {
    color: #34495e;
    padding: 10px 15px;
    font-size: 16px;
    border-bottom: 1px solid #eee;
}

.select2-container--default .select2-results__option--highlighted {
    background-color: #3498db !important;
    color: white !important;
}

.select2-search--dropdown .select2-search__field {
    background: #fff;
    color: #34495e;
    border: 2px solid #3498db !important;
    border-radius: 4px;
    padding: 8px 12px !important;
}

.select2-dropdown {
    border: 2px solid #3498db !important;
    border-radius: 6px !important;
    overflow: hidden;
}

.select2-results__options {
    max-height: 300px !important;
    overflow-y: auto !important;
}

.select2-results__options::-webkit-scrollbar {
    width: 8px;
}

.select2-results__options::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.select2-results__options::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

.select2-dropdown {
    border: 2px solid #3498db !important;
    border-radius: 6px !important;
    width: auto !important;
    min-width: 250px;
    max-width: 100%;
}

.wheel-form-container {
    position: relative;
    overflow: visible; 
    z-index: 9999; 
}

.select2-container {
    z-index: 10000 !important; 
}
.select2-results__options {
    max-height: 400px !important; 
    overflow-y: auto !important;
}

.select2-results__option {
    white-space: normal !important;
    padding: 12px 15px !important;
    line-height: 1.5 !important;
}

.select2-container--open .select2-dropdown {
    width: auto !important;
    min-width: 100%;
}

.wheel-select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #3498db;
    border-radius: 6px;
    background: white;
    font-size: 1rem;
    color: #34495e;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.wheel-select:focus {
	border-color: #2980b9;
	outline: none;
	box-shadow: 0 0 8px rgba(52,152,219,0.3);
}

.wheel-submit-btn {
	display: block;
	width: 200px;
	margin: 1rem auto;
	padding: 1rem;
	background: #3498db;
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 1.1rem;
	cursor: pointer;
	transition: background 0.3s ease;
}

.wheel-submit-btn:hover {
	background: #2980b9;
}

#submission-message {
	text-align: center;
	margin-top: 1rem;
	font-weight: 500;
}

.wheel-loading {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255,255,255,0.3);
	border-radius: 50%;
	border-top-color: #fff;
	animation: spin 1s ease-in-out infinite;
}

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

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

#wheel-container {
	text-align: center;
	margin: 20px;
}

#wheel {
	width: 800px;
	height: 800px;
	border-radius: 50%;
	border: 5px solid #222;
	margin: auto;
	position: relative;
	transition: transform 4s cubic-bezier(0.33, 0.84, 0.45, 1);
}

#wheel-pointer {
	position: absolute;
	top: -20px; 
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 15px solid transparent;
	border-right: 15px solid transparent;
	border-top: 30px solid red;
	z-index: 1;
}

#winner-modal {
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999; 
}

#winner-content {
	background: white;
	padding: 20px;
	text-align: center;
	border-radius: 10px;
	font-family: 'Bebas Neue', sans-serif;
	font-size: 30px;
}

#winner-name {
	font-size: 50px;
	color: #D32F2F;
}

#winner-submissions {
	margin-top: 10px;
	font-size: 24px;
}

#close-modal {
	margin-top: 20px;
	background: #D32F2F;
	color: white;
	padding: 10px 20px;
	border: none;
	cursor: pointer;
	font-size: 20px;
	font-family: 'Bebas Neue', sans-serif;
}
#remove-winner {
	margin-top: 20px;
	background: #D32F2F;
	color: white;
	padding: 10px 20px;
	border: none;
	cursor: pointer;
	font-size: 20px;
	font-family: 'Bebas Neue', sans-serif;
}

#close-modal:hover {
	background: #B71C1C;
}

#remove-winner:hover {
	background: #B71C1C;
}
