/*
Theme Name: Hexon
*/

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

body {
    font-family: 'Arial', sans-serif;
    background: #000;
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}


@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Realistic Canvas Lightning */
#lightningCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
}

/* Дополнительный эффект мерцания для всего фона */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 0;
    pointer-events: none;
    animation: backgroundFlash 6s infinite;
}

@keyframes backgroundFlash {
    0%, 100% {
        background: transparent;
    }
    0.5% {
        background: rgba(138, 43, 226, 0.2);
    }
    1% {
        background: rgba(138, 43, 226, 0.4);
    }
    1.5% {
        background: rgba(186, 85, 211, 0.3);
    }
    2% {
        background: transparent;
    }
}

/* Дополнительный слой вспышек молнии */
.lightning-flash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(138, 43, 226, 0.8) 0%, rgba(186, 85, 211, 0.6) 30%, rgba(138, 43, 226, 0.3) 60%, transparent 80%);
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.05s ease;
}

@keyframes flashOverlay {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    1% {
        opacity: 0.4;
        transform: scale(1.1);
    }
    1.5% {
        opacity: 0.6;
        transform: scale(1.05);
    }
    2% {
        opacity: 0.3;
        transform: scale(1);
    }
    2.5% {
        opacity: 0.5;
        transform: scale(1.08);
    }
    3% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0;
    }
}

/* Container */
.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Header */
.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.title {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #9544D4, #E3D7ED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(138, 43, 226, 0.8), 0 0 60px rgba(186, 85, 211, 0.5);
    letter-spacing: 2px;
    width: 70%;
}

.connect-wallet-btn {
    background: #7D21C0;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.6), 0 0 30px rgba(186, 85, 211, 0.4);
}

.connect-wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.8), 0 0 40px rgba(186, 85, 211, 0.6);
    background: linear-gradient(135deg, #ba55d3, #dda0dd);
}

.connect-wallet-btn:active {
    transform: translateY(0);
}

/* Wheel Container */
.wheel-container {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 40px 0;
    border-radius: 50%;
    padding: 8px;
    background: conic-gradient(rgb(255, 215, 0) 0deg, #8a2be2 45deg, #ffd700 90deg, #8a2be2 135deg, #ffd700 180deg, #8a2be2 225deg, #ffd700 270deg, #8a2be2 315deg, #ffd700 360deg);
    box-shadow: 0 0 20px rgba(255, 215, 0, 1), 
                0 0 40px rgba(250, 239, 141, 0.9), 
                0 0 60px rgba(255, 215, 0, 0.8),
                0 0 80px rgba(250, 239, 141, 0.7),
                0 0 100px rgba(255, 215, 0, 0.5);
                /* inset 0 0 60px rgba(255, 215, 0, 0.8),
                inset 0 0 40px rgba(250, 239, 141, 0.6); */
    animation: lightningBorderGlow 2s ease-in-out infinite;

}

#wheelCanvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(#1a0a2e, #1a0a2e) padding-box,
                linear-gradient(135deg, #8a2be2, #ba55d3, #dda0dd, #8a2be2, #ba55d3, #dda0dd, #8a2be2) border-box;
    background-clip: padding-box, border-box;
    background-size: 100%, 200% 200%;
    position: relative;
}

@keyframes lightningBorderGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.9), 
                    0 0 40px rgba(250, 239, 141, 0.8), 
                    0 0 60px rgba(255, 215, 0, 0.6),
                    0 0 80px rgba(250, 239, 141, 0.5);
                    /* inset 0 0 60px rgba(255, 215, 0, 0.6), */
                    /* inset 0 0 40px rgba(250, 239, 141, 0.4); */
        background-position: 0% 0%, 0% 0%;
    }
    25% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 1), 
                    0 0 50px rgba(250, 239, 141, 1), 
                    0 0 75px rgba(255, 215, 0, 0.8),
                    0 0 100px rgba(250, 239, 141, 0.7);
                    /* inset 0 0 70px rgba(255, 215, 0, 0.8),
                    inset 0 0 50px rgba(250, 239, 141, 0.6); */
        background-position: 0% 0%, 100% 100%;
    }
    50% {
        box-shadow: 0 0 22.5px rgba(255, 215, 0, 0.95), 
                    0 0 45px rgba(250, 239, 141, 0.85), 
                    0 0 67.5px rgba(255, 215, 0, 0.7),
                    0 0 90px rgba(250, 239, 141, 0.6);
                    /* inset 0 0 65px rgba(255, 215, 0, 0.7),
                    inset 0 0 45px rgba(250, 239, 141, 0.5); */
        background-position: 0% 0%, 0% 0%;
    }
    75% {
        box-shadow: 0 0 27.5px rgba(255, 215, 0, 1), 
                    0 0 55px rgba(250, 239, 141, 1), 
                    0 0 82.5px rgba(255, 215, 0, 0.9),
                    0 0 110px rgba(250, 239, 141, 0.8);
                    /* inset 0 0 75px rgba(255, 215, 0, 0.9),
                    inset 0 0 55px rgba(250, 239, 141, 0.7); */
        background-position: 0% 0%, 100% 100%;
    }
}

/* Lightning effect on wheel border when spinning */
.wheel-container.spinning {
    animation: lightningSpinEffect 0.1s infinite;
    box-shadow: 0 0 50px rgba(255, 215, 0, 1), 
                0 0 100px rgba(250, 239, 141, 0.9), 
                0 0 150px rgba(255, 215, 0, 0.7),
                0 0 200px rgba(250, 239, 141, 0.6),
                inset 0 0 70px rgba(255, 215, 0, 0.8),
                inset 0 0 50px rgba(250, 239, 141, 0.6);
}

@keyframes lightningSpinEffect {
    0% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 1), 
                    0 0 50px rgba(250, 239, 141, 0.9), 
                    0 0 75px rgba(255, 215, 0, 0.7),
                    0 0 100px rgba(250, 239, 141, 0.6);
                    /* inset 0 0 70px rgba(255, 215, 0, 0.8),
                    inset 0 0 50px rgba(250, 239, 141, 0.6); */
    }
    25% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 1), 
                    0 0 60px rgba(250, 239, 141, 1), 
                    0 0 90px rgba(255, 215, 0, 0.9),
                    0 0 120px rgba(250, 239, 141, 0.8);
                    /* inset 0 0 80px rgba(255, 215, 0, 1),
                    inset 0 0 60px rgba(250, 239, 141, 0.8); */
    }
    50% {
        box-shadow: 0 0 22.5px rgba(255, 215, 0, 1), 
                    0 0 55px rgba(250, 239, 141, 0.95), 
                    0 0 87.6px rgba(255, 215, 0, 0.8),
                    0 0 110px rgba(250, 239, 141, 0.7);
                    /* inset 0 0 75px rgba(255, 215, 0, 0.9),
                    inset 0 0 55px rgba(250, 239, 141, 0.7); */
    }
    75% {
        box-shadow: 0 0 32.5px rgba(255, 215, 0, 1), 
                    0 0 65px rgba(250, 239, 141, 1), 
                    0 0 87.5px rgba(255, 215, 0, 1),
                    0 0 130px rgba(250, 239, 141, 0.9);
                    /* inset 0 0 85px rgba(255, 215, 0, 1),
                    inset 0 0 65px rgba(250, 239, 141, 0.9); */
    }
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 50px solid #6C378E;
    filter: drop-shadow(0 0 15px rgba(138, 43, 226, 1)) drop-shadow(0 0 30px rgba(186, 85, 211, 0.8));
    z-index: 10;
}

.solana-logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.center-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(45, 27, 78, 0.95);
    padding: 10px;
    border: 3px solid #ba55d3;
    /* box-shadow: 0 0 20px rgba(138, 43, 226, 0.9),
                0 0 40px rgba(138, 43, 226, 0.7),
                0 0 60px rgba(186, 85, 211, 0.6),
                0 0 80px rgba(138, 43, 226, 0.4),
                inset 0 0 20px rgba(138, 43, 226, 0.6); */
    filter: drop-shadow(0 0 10px rgba(138, 43, 226, 1)) drop-shadow(0 0 20px rgba(186, 85, 211, 0.8));
    transform-origin: center center;
    /* transition: transform 0.1s linear;
    animation: logoGlow 2s ease-in-out infinite; */
}

@keyframes logoGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(138, 43, 226, 0.9),
                    0 0 40px rgba(138, 43, 226, 0.7),
                    0 0 60px rgba(186, 85, 211, 0.6),
                    0 0 80px rgba(138, 43, 226, 0.4),
                    inset 0 0 20px rgba(138, 43, 226, 0.6);
        border-color: #ba55d3;
    }
    50% {
        box-shadow: 0 0 30px rgba(138, 43, 226, 1),
                    0 0 60px rgba(138, 43, 226, 1),
                    0 0 90px rgba(186, 85, 211, 0.9),
                    0 0 120px rgba(138, 43, 226, 0.6),
                    inset 0 0 30px rgba(138, 43, 226, 0.8);
        border-color: #dda0dd;
    }
}

/* Spin Button */
.spin-btn {
    background: linear-gradient(135deg, #7C1FBF, #9135D1);
    color: #ffffff;
    border: 3px solid #F5D756;
    padding: 20px 60px;
    font-size: 1.8rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(138, 43, 226, 0.7), 0 0 40px rgba(186, 85, 211, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.spin-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(138, 43, 226, 0.9), 0 0 60px rgba(186, 85, 211, 0.7);
    background: linear-gradient(135deg, #ba55d3, #dda0dd);
}

.spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spin-btn:active:not(:disabled) {
    transform: scale(0.98);
}

/* Instructions */
.instructions {
    max-width: 800px;
    text-align: center;
    line-height: 1.8;
    font-size: 1rem;
    color: #e0e0e0;
}

.instructions p {
    margin: 10px 0;
}

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

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-content {
    background: #1B1A32;
    border: 3px solid #943ECB;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 50px rgba(138, 43, 226, 1), 0 0 100px rgba(186, 85, 211, 0.8), 0 0 150px rgba(138, 43, 226, 0.5);
    animation: slideIn 0.3s ease;
    position: relative;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    color: #9443CF;
    font-size: 2rem;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.8), 0 0 40px rgba(186, 85, 211, 0.6);
}

.close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #ba55d3;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.8);
}

.modal-body {
    text-align: center;
}

.win-message {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #D8CE4E;
}

#winAmount {
    font-size: 2rem;
    font-weight: bold;
    color: rgb(69, 238, 163);
    text-shadow: 0 0 20px rgba(69, 238, 163, 0.5);
}

.wallet-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.connect-wallet-modal-btn {
    background: linear-gradient(135deg, #8a2be2, #ba55d3);
    color: #ffffff;
    border: 2px solid #FAEF8D;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.6), 0 0 30px rgba(186, 85, 211, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.connect-wallet-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.8), 0 0 40px rgba(186, 85, 211, 0.6);
    background: linear-gradient(135deg, #ba55d3, #dda0dd);
}

.connect-wallet-modal-btn:active {
    transform: translateY(0);
}

.wallet-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.wallet-link {
    color: #ba55d3;
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 15px;
    border: 2px solid #ba55d3;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

.wallet-link:hover {
    background: rgba(138, 43, 226, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.6), 0 0 30px rgba(186, 85, 211, 0.4);
    border-color: #dda0dd;
}

.wallet-link strong {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 1.8rem;
    }
    
    .wheel-container {
        width: 350px;
        height: 350px;
    }
    
    #wheelCanvas {
        width: 350px;
        height: 350px;
    }
    
    .spin-btn {
        padding: 15px 40px;
        font-size: 1.4rem;
    }
    
    .instructions {
        font-size: 0.9rem;
    }
}



.solana-icon.solana-4 {
    opacity: 0.7;
    width: 8%;
    top: 80%;
    left: 11%;
    transform: rotate(-8deg);
}

.solana-icon.solana-3 {
    opacity: 0.7;
    width: 10%;
    top: 38%;
    left: 5%;
    transform: rotate(9deg);
}
.solana-icon.solana-2 {
    opacity: 0.7;
    width: 9%;
    left: 12%;
    top: 11%;
    transform: rotate(-5deg);
}
.solana-icon img {
    width: 100%;
}
.solana-icon.solana-1 {
    opacity: 1;
    left: 5%;
    width: 6%;
    top: 0;
    transform: translateY(-50%) rotate(5deg);
}
.solana-icon {
    position: absolute;
    opacity: 0;
}
.solana-icon.solana-5 {
    width: 14%;
    opacity: 0.7;
    transform: translateY(-60%) rotate(20deg);
    top: 0;
    left: 28%;
}

.solana-icon.solana-6 {
    width: 15%;
    opacity: 0.7;
    right: 12%;
    transform: translateY(-37%) rotate(35deg);
}
.solana-icon.solana-6 {
    width: 15%;
    opacity: 0.7;
    right: 12%;
    transform: translateY(-37%) rotate(35deg);
}
.solana-icon.solana-7 {
    width: 9%;
    opacity: 0.7;
    right: 3%;
    transform: translateY(-37%) rotate(35deg);
    top: 29%;
}
.solana-icon.solana-8 {
        width: 14%;
    opacity: 0.7;
    right: 19%;
    transform: translateY(-37%) rotate(25deg);
    top: 79%;
}
.solana-icon.solana-9{
        width: 12%;
    opacity: 0.7;
    right: 2%;
    transform: translateY(-37%) rotate(17deg);
    top: 93%;
}

button.lang-btn {
    color: rgb(255, 255, 255);
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: rgba(138, 43, 226, 0.6) 0px 4px 15px, rgba(186, 85, 211, 0.4) 0px 0px 30px;
    background: rgb(125, 33, 192);
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    padding: 9px 23px;
    border-radius: 8px;
    transition: 0.3s;
    border: 2px solid rgb(125, 33, 192);
    background: #000;
    transition: .3s;
}
button.lang-btn.active {
    border-width: 2px;
    border-style: solid;
    border-color: rgb(125, 33, 192);
    background-color: rgb(125, 33, 192);
}
button.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: rgba(138, 43, 226, 0.8) 0px 6px 20px, rgba(186, 85, 211, 0.6) 0px 0px 40px;
    background: linear-gradient(135deg, rgb(186, 85, 211), rgb(221, 160, 221));
    border-color: rgb(186, 85, 211);
}

.language-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    width: 100%;
    margin-bottom: -24px;
}
w3m-modal.open {
	z-index: 99999999;
}


@media(max-width: 854px) {
    .language-switcher {
        justify-content: flex-start;
    }
    .title{
        width: 100%;
    }
}
@media (max-width: 340px) {
    .title {
        font-size: 1.5rem;
    }
}