:root {
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --success-color: #22c55e;
    --background-color: #f8fafc;
    --text-color: #1e293b;
    --card-background: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    padding-top: 80px;
}

.form-container {
    background: var(--card-background);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    width: 100%;
    max-width: 450px;
    transition: transform 0.3s ease;
}

.form-container:hover {
    transform: translateY(-5px);
}

.form-container h2 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1.875rem;
    font-weight: 700;
}

#registrationForm {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: 0;
    transform: translateY(-50%) scale(0.8);
    background: var(--card-background);
    padding: 0 0.5rem;
}

button {
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.wheel-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--card-background, white);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

#wheelCanvas {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    display: block;
}

.prize-history {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    width: 100%;
    text-align: center;
}

.prize-history h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.confetti {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background-color: var(--card-background, white);
    margin: 15% auto;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Modal Header */
.modal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Prize Image */
.modal-content img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 1rem 0;
}

/* Prize Description */
.modal-content p {
    font-size: 1rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

/* Modal Buttons */
.modal-content button {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-content .share-button {
    background-color: #3b82f6;
    color: white;
}

.modal-content .share-button:hover {
    background-color: #2563eb;
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0.5rem;
    line-height: 1;
}

.modal-close:hover {
    color: #374151;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.prize-animation {
    text-align: center;
    margin: 2rem 0;
}

#prizeImage {
    max-width: 150px;
    animation: bounce 1s ease infinite;
}

.prize-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.prize-actions button {
    flex: 1;
    padding: 0.75rem;
}

#claimPrize {
    background: var(--success-color);
}

#sharePrize {
    background: #3b82f6;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.wheel-spin {
    animation: spin3D 5s ease-out forwards;
}

@keyframes spin3D {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

/* Brand Header Styles */
.brand-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.brand-logo {
    width: 500px;
    height: auto;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2));
}

/* Form Container Adjustments */
.form-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--card-background);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Remove the body padding since header is no longer fixed */
body {
    padding-top: 0;
    background-color: var(--background-color, #f8fafc);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .brand-logo {
        height: 150px;
    }
    
    body {
        padding: 1rem;
    }
    
    .wheel-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .wheel-container h2 {
        font-size: 1.5rem;
    }
} 

.new-game-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    margin-top: 15px;
    cursor: pointer;
}

.new-game-btn:hover {
    opacity: 0.9;
}