/* Font Face */
@font-face {
    font-family: 'austerrounded-blackregular';
    src: url('/assets/fonts/auster-black-webfont.woff2') format('woff2'),
        url('/assets/fonts/auster-black-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Arimo', sans-serif;
    background-image: url('/media/images/bg3.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

h1,
h2,
h3,
h4,
.font-headline {
    font-family: 'austerrounded-blackregular';
    letter-spacing: inherit;
    text-transform: uppercase;
    color: #ef1c23;
    text-shadow: 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 3px 3px 3px rgba(0, 0, 0, 0.4);
}

.text-yellow-black-stroke-auth {
    font-family: 'austerrounded-blackregular';
    letter-spacing: 1px;
    color: #fff200;
    text-shadow: 2px 2px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000;
}

button,
.cartoon-button {
    font-family: "Boogaloo", sans-serif !important;
    letter-spacing: 1px;
}

.button-text-white {
    color: white;
    text-shadow: none;
}

.text-white-blue-stroke {
    font-family: 'austerrounded-blackregular';
    letter-spacing: 1px;
    color: white;
    text-shadow:
        3px -2px 0 #1175BC, 3px 0px 0 #1175BC, -2px 2px 0 #1175BC, -2px 0px 0 #1175BC, 2px -2px 0 #1175BC, 3px 2px 0 #1175BC, -2px -2px 0 #1175BC, 3px 0px 0 #1175BC, 3px -1px 0 #1175BC, 3px -2px 0 #1175BC, -1px -3px 0 #1175BC, 1px -3px 0 #1175BC, 3px -3px 0 #1175BC, -2px -3px 0 #1175BC, 3px 1px 0 #1175BC;
}

.text-yellow-black-stroke {
    font-family: 'austerrounded-blackregular';
    letter-spacing: 1px;
    color: #fff200;
    text-shadow: 3px -2px 0 #000, 3px 0px 0 #000, -2px 2px 0 #000, -2px 0px 0 #000, 2px -2px 0 #000, 3px 2px 0 #000, -2px -2px 0 #000, 3px 0px 0 #000, 3px -1px 0 #000, 3px -2px 0 #000, -1px -3px 0 #000, 1px -3px 0 #000, 3px -3px 0 #000, -2px -3px 0 #000, 3px 1px 0 #000, 0px 2px 0 #000, 1px 2px 0 #000;
}

.text-red-white-blue-stroke {
    font-family: 'austerrounded-blackregular';
    letter-spacing: inherit;
    text-transform: uppercase;
    color: #ef1c23;
    text-shadow: 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 8px 0 #1175BC, -2px 8px 0 #1175BC;
}

.text-green-black-stroke {
    font-family: 'austerrounded-blackregular';
    letter-spacing: 1px;
    color: white;
    text-shadow: 3px -2px 0 #0F562C, 3px 0px 0 #0F562C, -2px 2px 0 #0F562C, -2px 0px 0 #0F562C, 2px -2px 0 #0F562C, 3px 2px 0 #0F562C, -2px -2px 0 #0F562C, 3px 0px 0 #0F562C, 3px -1px 0 #0F562C, 3px -2px 0 #0F562C, -1px -3px 0 #0F562C, 1px -3px 0 #0F562C, 3px -3px 0 #0F562C, -2px -3px 0 #0F562C, 3px 1px 0 #0F562C, 7px 3px 0 #000000, 7px 2px 0 #000000, 7px 1px 0 #000000, 7px 0px 0 #000000;
}

.text-white-stroke {
    font-family: 'austerrounded-blackregular';
    letter-spacing: 1px;
    color: white;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes shake {
    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

@keyframes shake-rotate {
    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

@keyframes fadeInBlack {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes open-pokeball {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
    transform: scale(1.2);
}

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

@keyframes reveal {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    70% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Login Pokemon */
.login-pokemon {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    z-index: 0;
    opacity: 0.9;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

@media (min-width: 768px) {
    #floating-pokemon {
        display: block !important;
    }
}

/* Input Styles */
.cartoon-input {
    border: 3px solid black;
    transition: box-shadow 0.2s ease-in-out;
}

.cartoon-input:focus {
    box-shadow: 4px 4px 0 #1176bc;
}

.qty-input {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.cartoon-button {
    border: 4px solid #000;
    box-shadow: 6px 6px 0 #000;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s, opacity 0.2s;
}

.cartoon-button-home {
    box-shadow: 0px 4px 4px #00000052;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s, opacity 0.2s;
}

.cartoon-button:hover {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 #000;
}

.cartoon-button:active {
    transform: translate(6px, 6px);
    box-shadow: 0px 0px 0 #000;
}

.cartoon-button:disabled {
    background-color: #9ca3af !important;
    color: #e5e7eb !important;
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 6px 6px 0 #000;
}

#avatar-crop-modal .cartoon-button {
    font-family: "Boogaloo", sans-serif !important;
    letter-spacing: 1px;
    border: 3px solid #000;
    box-shadow: 4px 4px 0 #000;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s;
}

@media (min-width: 640px) {
    #avatar-crop-modal .cartoon-button {
        border: 4px solid #000;
        box-shadow: 6px 6px 0 #000;
    }
}

#avatar-crop-modal .cartoon-button:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #000;
}

@media (min-width: 640px) {
    #avatar-crop-modal .cartoon-button:hover {
        transform: translate(3px, 3px);
        box-shadow: 3px 3px 0 #000;
    }
}

#avatar-crop-modal .cartoon-button:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0 #000;
}

@media (min-width: 640px) {
    #avatar-crop-modal .cartoon-button:active {
        transform: translate(6px, 6px);
    }
}

/* Toggle Switch Styles */
.toggle-container {
    position: relative;
    display: flex;
    background-color: #000;
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.toggle-slider {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    width: calc(50% - 0.25rem);
    height: calc(100% - 0.5rem);
    background-color: #129B63;
    border-radius: 0.375rem;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

.toggle-container.register-active .toggle-slider {
    transform: translateX(100%);
}

.toggle-button {
    width: 50%;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: color 0.3s ease-in-out;
    z-index: 2;
    cursor: pointer;
    border: none;
    background: none;
    color: #FFF;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 3px solid #000;
    border-radius: 0.5rem;
    box-shadow: 4px 4px 0 #000;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.error-message {
    color: #ef1c23;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Toast Styles */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 500px;
    padding: 1rem 1.5rem;
    background-color: #10b981;
    color: white;
    border: 3px solid #000;
    border-radius: 0.75rem;
    box-shadow: 6px 6px 0 #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInRight 0.3s ease-out;
}

.toast.hidden {
    display: none !important;
}

.toast-success {
    background-color: #10b981;
}

.toast-error {
    background-color: #ef4444;
}

.toast-content {
    flex: 1;
    font-weight: 600;
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.toast-close:hover {
    transform: scale(1.2);
}

/* Notification Styles */
.notification {
    transform: translateX(100%);
    opacity: 0;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 #000;
    font-family: "Boogaloo", sans-serif;
    letter-spacing: 0.5px;
}

.notification.translate-x-0 {
    transform: translateX(0);
}

.notification.opacity-100 {
    opacity: 1;
}

.notification.translate-x-full {
    transform: translateX(100%);
}

.notification.opacity-0 {
    opacity: 0;
}

.notification.bg-green-500 {
    background-color: #10b981 !important;
}

.notification.bg-red-500 {
    background-color: #ef4444 !important;
}



/* Dashboard Styles */
#dashboard-page {
    background-image: url('/media/images/bg3.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.dashboard-card,
.prize-card,
.checkout-card {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 3px solid #000;
    box-shadow: 6px 6px 0 #000;
    border-radius: 1.5rem;
    position: relative;
}

@media (min-width: 768px) {
    .dashboard-card,
    .prize-card,
    .checkout-card {
        border-width: 4px;
        box-shadow: 8px 8px 0 #000;
    }
}

.poke-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poke-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tcg-card {
    background: #f3f3f3;
    border: 10px solid #129B63;
    box-shadow: 0 0 0 2px black;
}

.prize-card-img {
    background-color: #f3f4f6;
    border: 3px solid black;
}

.cartoon-modal-content {
    border: 3px solid #000;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.15);
}

/* Tab Styles */
.tab-button {
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-button.active {
    background-color: #fff200;
    color: #ef1c23;
    border-bottom-color: #ef1c23;
}

/* Mission Card Styles */
.mission-card {
    background-color: #f3f4f6;
    border-left: 5px solid #129B63;
}

.mission-card.locked {
    border-left-color: #9ca3af;
    filter: grayscale(80%);
}

/* Address Card Styles */
.address-card.selected {
    border-color: #129B63;
    box-shadow: 0px 0px 0 4px #129B63;
}

/* Avatar Crop Modal Styles */
#avatar-crop-modal .cropper-container {
    max-height: 300px;
    border-radius: 0.5rem;
    overflow: hidden;
}

@media (min-width: 640px) {
    #avatar-crop-modal .cropper-container {
        max-height: 400px;
        border-radius: 1rem;
    }
}

@media (max-width: 639px) {
    #avatar-crop-modal .dashboard-card {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
    }

    #avatar-crop-modal .cropper-container {
        max-height: 250px;
    }

    .cropper-point {
        width: 12px;
        height: 12px;
    }
}

#image-cropper {
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
}

@media (min-width: 640px) {
    #image-cropper {
        border-radius: 1rem;
    }
}

#zoom-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    outline: none;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
}

@media (min-width: 640px) {
    #zoom-slider {
        height: 8px;
        border-radius: 4px;
    }
}

#zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #129B63;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

@media (min-width: 640px) {
    #zoom-slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
        border: 3px solid #000;
    }
}

#zoom-slider::-webkit-slider-thumb:hover {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 #000;
}

#zoom-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #129B63;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

@media (min-width: 640px) {
    #zoom-slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
        border: 3px solid #000;
    }
}

#zoom-slider::-moz-range-thumb:hover {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 #000;
}

.cropper-view-box {
    outline: 2px solid #129B63;
    outline-offset: -2px;
    border-radius: 6px;
}

@media (min-width: 640px) {
    .cropper-view-box {
        outline: 3px solid #129B63;
        outline-offset: -3px;
        border-radius: 8px;
    }
}

.cropper-face {
    background-color: transparent;
}

.cropper-line {
    background-color: #129B63;
}

.cropper-point {
    background-color: #129B63;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
    width: 8px;
    height: 8px;
}

@media (min-width: 640px) {
    .cropper-point {
        width: 10px;
        height: 10px;
    }
}

.cropper-point:hover {
    background-color: #0e7a4e;
}

.cropper-dashed {
    border-color: #129B63;
}

.cropper-bg {
    background-color: #f3f4f6;
}

/* Pokeball Styles */
.pokeball-container {
    position: relative;
    width: 250px;
    height: 250px;
}

#interactive-pokeball {
    width: 100%;
    height: 100%;
    transition: transform 0.1s ease-in-out;
    cursor: pointer;
}

.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

.expired-icon {
    animation: shake-rotate 0.5s ease-in-out;
}

.pokeball-open {
    animation: open-pokeball 1s forwards;
}

.prize-reveal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    animation: reveal 1s forwards 0.5s;
}

/* Banner Styles */
.coming-soon-banner {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 4px solid #000;
    box-shadow: 8px 8px 0 #000;
    background: url('/media/images/bannerjepang.png') center/cover no-repeat;
    min-height: 180px;
}

.coming-soon-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.87);
    animation: fadeInBlack 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.raffle-coming-soon-banner {
    border-radius: 1.5rem;
    border: 4px solid #000;
    box-shadow: 8px 8px 0 #000;
    background: url('/media/images/bannerjepang.png') center/cover no-repeat;
    min-height: 220px;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.raffle-coming-soon-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    animation: fadeInBlack 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.raffle-coming-soon-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 6rem 0 4rem 0;
}

.text-white-blue-stroke-auth {
    font-family: 'austerrounded-blackregular';
    letter-spacing: 1px;
    color: white;
    text-shadow: 2px 2px 0 #1176bc, -1px 1px 0 #1176bc, 1px -1px 0 #1176bc, -1px -1px 0 #1176bc;
}

#stickerSwiperMobile {
    width: 300px;
    overflow: hidden;
}

#stickerSwiperMobile .swiper-wrapper {
    height: 15rem !important;
    display: flex;
    align-items: center;
}

#stickerSwiperMobile .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 12rem !important;
    height: 12rem !important;
}


#stickerSwiperMobile .swiper-slide:not(.swiper-slide-active) > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.44);
    border-radius: 1rem;
    z-index: 10;
    pointer-events: none;
}

.swiper-pagination-mobile-custom {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.swiper-pagination-mobile-custom .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    opacity: 1;
}

.swiper-pagination-mobile-custom .swiper-pagination-bullet-active {
    background: #111;
}