*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: #006838;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
}

img,
svg {
    vertical-align: middle;
}

button {
    border: none;
    outline: none;
    cursor: pointer;
    background: transparent;
    font-family: inherit;
}

.container {
    min-height: 100vh;
    background-color: #006838;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    width: 80%;
}

.form-container {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    box-sizing: border-box;
}

.field {
    margin-bottom: 1.5rem;
}

.field:last-child {
    margin-bottom: 0;
}

label {
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: .375rem;
    display: inline-block;
}

input,
select {
    width: 100%;
    padding: .75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: .5rem;
    font-size: 1rem;
    transition: all .3s ease;
}

input:focus,
select:focus {
    border-color: #10b981;
    outline: none;
    box-shadow: 0 0 0 2px #d1fae5;
}

input:disabled,
select:disabled {
    background-color: #f9fafb;
}

span.error {
    color: #ef4444;
    font-size: .875rem;
    display: inherit;
    margin-top: .25rem;
}

.error-border {
    border-color: #ef4444;
}

.spinner-wheel-container {
    text-align: center;
    position: relative;
}

.pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.marker-image {
    width: 40px;
    height: auto;
}

.wheel {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    transform-origin: center;
    transition: transform 5s cubic-bezier(.33, 1, .68, 1);
}

.spinner-mid {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    margin-top: -2px;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    cursor: pointer;
}

img.spin-bg{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: contain;
    transform: rotate(44deg);
}

.wheel-segment {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 50%;
    clip-path: polygon(100% 0%, 100% 100%, 0 100%, 0 0);
    transform-origin: 100% 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    font-size: 12px;
}

.wheel-segment img{
    object-fit: contain;
}

.wheel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#spinButton {
    margin-top: 20px
}

.btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background-color: #10b981;
    border: none;
    border-radius: .75rem;
    cursor: pointer;
    transition: background-color .3s ease;
    position: relative;
}

.btn:hover {
    background-color: #059669;
}

.btn:disabled,
.btn[disabled] {
    opacity: .5 !important;
    cursor: not-allowed !important;
}

.spinner {
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

.spin-text-image {
    width: 350px;
    height: auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

@media (max-width: 767px) {
    .container {
        width: 100%;
        padding: 0 1rem
    }

    .form-container {
        padding: 1.5rem;
        max-width: 90%
    }

    label {
        font-size: .9rem
    }

    .field {
        margin-bottom: 1rem
    }

    .btn {
        width: 100%;
        font-size: 1rem;
        padding: 1rem
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 1rem;
        max-width: 95%
    }

    .btn {
        font-size: 1rem;
        padding: 1rem
    }
}

.toasts-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    z-index: 9999;
}

.shohoj-toast {
    background-color: #ffffff;
    color: #000000;
    padding: 10px 8px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(140, 140, 140, .5);
    display: none;
    z-index: 9999;
    margin-bottom: 12px;
    animation: slideInRight .5s ease forwards;
    width: 100%;
}

.toast-hide {
    animation: slideOutRight .5s ease forwards;
}

.toast-icon {
    width: 32px;
    height: 32px;
    background-size: cover;
    margin-right: 10px;
    padding-right: 20px;
}

.toast-icon.success {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iIzY3YzIzYSIgY2xhc3M9InctNiBoLTYiPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTIuMjUgMTJjMC01LjM4NSA0LjM2NS05Ljc1IDkuNzUtOS43NXM5Ljc1IDQuMzY1IDkuNzUgOS43NS00LjM2NSA5Ljc1LTkuNzUgOS43NVMyLjI1IDE3LjM4NSAyLjI1IDEyWm0xMy4zNi0xLjgxNGEuNzUuNzUgMCAxIDAtMS4yMi0uODcybC0zLjIzNiA0LjUzTDkuNTMgMTIuMjJhLjc1Ljc1IDAgMCAwLTEuMDYgMS4wNmwyLjI1IDIuMjVhLjc1Ljc1IDAgMCAwIDEuMTQtLjA5NGwzLjc1LTUuMjVaIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIC8+PC9zdmc+");
}

.toast-icon.warning {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iI2ZmOTkwMCI+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNOS40MDEgMy4wMDNjMS4xNTUtMiA0LjA0My0yIDUuMTk3IDBsNy4zNTUgMTIuNzQ4YzEuMTU0IDItLjI5IDQuNS0yLjU5OSA0LjVINC42NDVjLTIuMzA5IDAtMy43NTItMi41LTIuNTk4LTQuNUw5LjQgMy4wMDNaTTEyIDguMjVhLjc1Ljc1IDAgMCAxIC43NS43NXYzLjc1YS43NS43NSAwIDAgMS0xLjUgMFY5YS43NS43NSAwIDAgMSAuNzUtLjc1Wm0wIDguMjVhLjc1Ljc1IDAgMSAwIDAtMS41Ljc1Ljc1IDAgMCAwIDAgMS41WiIgY2xpcC1ydWxlPSJldmVub2RkIi8+Cjwvc3ZnPg==");
}

.toast-icon.info {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iIzQwOWVmZiI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMi4yNSAxMmMwLTUuMzg1IDQuMzY1LTkuNzUgOS43NS05Ljc1czkuNzUgNC4zNjUgOS43NSA5Ljc1LTQuMzY1IDkuNzUtOS43NSA5Ljc1UzIuMjUgMTcuMzg1IDIuMjUgMTJabTguNzA2LTEuNDQyYzEuMTQ2LS41NzMgMi40MzcuNDYzIDIuMTI2IDEuNzA2bC0uNzA5IDIuODM2LjA0Mi0uMDJhLjc1Ljc1IDAgMCAxIC42NyAxLjM0bC0uMDQuMDIyYy0xLjE0Ny41NzMtMi40MzgtLjQ2My0yLjEyNy0xLjcwNmwuNzEtMi44MzYtLjA0Mi4wMmEuNzUuNzUgMCAxIDEtLjY3MS0xLjM0bC4wNDEtLjAyMlpNMTIgOWEuNzUuNzUgMCAxIDAgMC0xLjUuNzUuNzUgMCAwIDAgMCAxLjVaIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIC8+PC9zdmc+");
}

.toast-message {
    flex: 1;
    font-weight: 500;
    max-width: 80%;
    line-break: anywhere;
}

.close-toast {
    height: 20px;
    width: 20px;
    margin-right: 5px;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iIzNkM2QzZCIgY2xhc3M9InctNiBoLTYiPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTUuNDcgNS40N2EuNzUuNzUgMCAwIDEgMS4wNiAwTDEyIDEwLjk0bDUuNDctNS40N2EuNzUuNzUgMCAxIDEgMS4wNiAxLjA2TDEzLjA2IDEybDUuNDcgNS40N2EuNzUuNzUgMCAxIDEtMS4wNiAxLjA2TDEyIDEzLjA2bC01LjQ3IDUuNDdhLjc1Ljc1IDAgMCAxLTEuMDYtMS4wNkwxMC45NCAxMiA1LjQ3IDYuNTNhLjc1Ljc1IDAgMCAxIDAtMS4wNloiIGNsaXAtcnVsZT0iZXZlbm9kZCIgLz48L3N2Zz4=");
    background-size: cover;
    border: none;
    color: #a2a2a2;
}

@keyframes slideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0
    }

    100% {
        transform: translateX(0);
        opacity: 1
    }
}

@keyframes slideOutRight {
    0% {
        transform: translateX(0);
        opacity: 1
    }

    100% {
        transform: translateX(100%);
        opacity: 0
    }
}

.result-container {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .1);
    max-width: 500px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.winning-text {
    animation: scale-in .5s cubic-bezier(.175, .885, .32, 1.275);
}

.congratulations {
    font-family: "Dancing Script", cursive;
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(to right, #ffd700, #ffa500, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.prize-image img {
    width: 150px;
    animation: bounce-in .8s cubic-bezier(.68, -.55, .265, 1.55);
    margin-bottom: 1rem;
    height: auto;
    max-height: 160px;
    object-fit: contain;
}

.cong-image img {
    width: 100%;
}

.message {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.continue-button {
    background-color: #28a745;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: .75rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .3s ease, transform .3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
}

.continue-button:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

@keyframes scale-in {
    0% {
        transform: scale(0);
        opacity: 0
    }

    100% {
        transform: scale(1);
        opacity: 1
    }
}

@keyframes bounce-in {
    0% {
        transform: scale(0)
    }

    50% {
        transform: scale(1.2)
    }

    100% {
        transform: scale(1)
    }
}

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