﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background: url('/img/background.png') center no-repeat;
    padding: 20px;
}

.container {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 2px;
    /*box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);*/
    max-width: 600px;
   
}
div.container.main {
    background: url('/img/gamepanel.png') center no-repeat;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
}

h1 img {
    width:100%
}

.wheel-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto 30px;
}

#wheel {
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

    #wheel.spinning {
        transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    }

.pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

button {
    background: linear-gradient(90deg, #2DA71F 0%, #143c17 50%, #2DA71F 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
button#spinButton {
    font-size: 1.5em;
    font-weight: 600;
    text-transform:uppercase;
  
}

    button:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

    button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.result {
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: #764ba2;
    min-height: 40px;
}

.result img{
   width:60%;
}

.flyout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

    .flyout-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

.flyout-panel {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    max-height: 800px;
    width: 90%;
    height: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.7);
    transition: transform 0.3s ease;
    text-align: center;
}
    .flyout-panel.winner {
        background: url('/img/popup-win.png') center no-repeat
    }
    .flyout-panel.tryagain {
        background: url('/img/popup-try-again.png') center no-repeat
    }
    .flyout-panel.nowin {
        background: url('/img/popup-no-win.png') center no-repeat
    }

.flyout-overlay.active .flyout-panel {
    transform: scale(1);
}

.flyout-icon {
    font-size: 4em;
    padding: 40px;
    margin-top: 100px;
    margin-bottom: 20px;
    animation: bounce 0.6s ease;
}
.flyout-panel .flyout-icon img {
    width: 100%;
}
.flyout-panel.nowin .flyout-icon img {
    width: revert;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.flyout-title {
    font-size: 2em;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.flyout-prize {
    font-size: 5em;
    color: #2DA71F;
    margin-bottom: 20px;
    font-weight: bold;
}

.flyout-description {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.6;
}

.flyout-button {
    background: linear-gradient(90deg, #2DA71F 0%, #143c17 50%, #2DA71F 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

    .flyout-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }
.segment-text {
    color:#fff;
}
.loading {
    color: #764ba2;
    font-size: 1.2em;
    margin-top: 20px;
}

/* Winner Details Form */
.form-input {
    width: 100%;
    padding: 12px 18px;
    font-size: 1em;
    border: 2px solid #ddd;
    border-radius: 50px;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    font-family: 'Arial', sans-serif;
    color: #333;
}

.form-input:focus {
    border-color: #2DA71F;
    box-shadow: 0 0 0 3px rgba(45, 167, 31, 0.15);
}

.winner-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 16px 0 28px;
}

.flyout-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.flyout-button-secondary {
    background: transparent;
    color: #764ba2;
    border: 2px solid #764ba2;
    box-shadow: none;
}

.flyout-button-secondary:hover {
    background: rgba(118, 75, 162, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.flyout-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.65rem;
    color: rgba(255,255,255, 0.70);
}

.flyout-footer-link {
    color: inherit;
    text-decoration: none;
}

    .flyout-footer-link:hover {
        color: rgba(0, 0, 0, 0.6);
        text-decoration: underline;
    }

.flyout-footer-copy {
    color: inherit;
}

#winner-flyout-overlay .flyout-panel {
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
}

#winner-flyout-overlay .flyout-icon {
    margin-top: 10px;
}

@media (max-width: 500px) {
    .wheel-container {
        width: 300px;
        height: 300px;
    }

    #wheel {
        width: 300px;
        height: 300px;
    }

    .segment-text {
        font-size: 12px !important;

    }

    .pointer {
        width: 30px;
        height: 45px;
        top: -15px;
    }

    h1 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .container {
        padding: 20px 10px;
    }

    button {
        padding: 12px 30px;
        font-size: 1em;
    }

    .result {
        font-size: 1.2em;
    }

    .flyout-panel {
        padding: 30px 20px;
    }

    .flyout-icon {
        font-size: 3em;
    }

    .flyout-title {
        font-size: 1.5em;
    }

    .flyout-prize {
        font-size: 1.8em;
    }

    .flyout-description {
        font-size: 1em;
    }
}
