::-webkit-scrollbar {
    display: none;
}

body {
    font-family: "Inter", sans-serif;
    background: linear-gradient(135deg, #ede9fe, #dbeafe, #e0e7ff);
}

.glow {
    box-shadow:
        0 0 20px 10px rgba(255, 244, 153, 0.3),
        0 0 40px 20px rgba(244, 187, 212, 0.2);
}

#toast {
    z-index: 1001;
}

.toast {
    position: relative;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 1rem;
    text-align: center;
    width: 150%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    z-index: 1001;
    opacity: 1 !important;
}

.toast-close {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.75rem;
    line-height: 1.25rem;
    text-align: center;
    cursor: pointer;
    pointer-events: auto;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.typewriter {
    border-right: 2px solid #6366f1;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%,
    50% {
        border-color: #6366f1;
    }
    51%,
    100% {
        border-color: transparent;
    }
}

.modal {
    position: relative;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: black;
    font-size: 1rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    z-index: 100;
    opacity: 1 !important;
}

.gender-btn {
    transition: all 0.3s ease;
}
.gender-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}
.gender-btn.selected {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    transform: scale(1.05);
}

.start-btn {
    transition: all 0.3s ease;
}
.start-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
}
.start-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.svg-inline {
    overflow: visible;
    box-sizing: content-box;
    display: inline-block;
    height: 1em;
    vertical-align: -0.125em;
}

.rotate-\[225deg\] {
    transform: rotate(225deg);
}

/* Prevent text selection on rapid clicks */
#swap-logo-btn {
    user-select: none;
}

/* Logo flip animations */
.wipe-out {
    animation: wipeOut 0.3s forwards;
}

.wipe-in {
    animation: wipeIn 0.4s forwards;
}

@keyframes wipeOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

@keyframes wipeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spinFlipHalf1 {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(180deg);
    }
}

@keyframes spinFlipHalf2 {
    0% {
        transform: rotateY(180deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

/* 3D flip container setup */
.logo-flip-container {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.logo-flip-container img {
    backface-visibility: hidden;
}

/* Pulse Animation */

.pulse {
    animation: pulse-anim 2s infinite;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1);
    cursor: pointer;
}
@keyframes pulse-anim {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1);
    }
}

/* resize widget */
elevenlabs-convai#trainer {
    position: fixed !important;
    height: 60vh !important;
    top: auto !important;
    bottom: calc(var(--spacing) * 10 + 64px);
    border-radius: 12px !important;
    z-index: 100 !important;
}

@media (height < 840px) {
    elevenlabs-convai#trainer {
        position: fixed !important;
        height: 80vh !important;
        bottom: calc(var(--spacing) * 10 + 64px);
        border-radius: 12px !important;
        z-index: 100 !important;
    }
}

#verifyBtn {
    align-self: center;
}

/* Button container responsive layout */
.button-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
    gap: 0.75rem;
    align-items: flex-end;
}

.button-container .spacer {
    display: none;
}

.button-container .spacer-right {
    display: contents;
}

.button-container #verifyBtn {
    align-self: flex-end;
}

@media (min-width: 460px) {
    .button-container {
        flex-direction: row;
        align-items: center;
    }

    .button-container .spacer {
        display: block;
        flex: 1;
    }

    .button-container .spacer-right {
        display: flex;
        flex: 1;
        justify-content: flex-end;
    }

    .button-container #verifyBtn {
        align-self: auto;
    }
}
