* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    width: 100%;
    color: white;
    background-attachment: fixed;
    padding-bottom: 200px;
    overflow-x: hidden;
}

.amount {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    color: black;
}

p {
    color: black;
}

.amount i {
    color: #FFD700;
    font-size: 22px;
}

.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 280px;
    text-align: center;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
}

.notification-content i {
    font-size: 22px;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-4px);
    }
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 80px auto 30px;
    gap: 30px;
    padding: 15px;
}

.left-panel,
.right-panel {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.atm-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.atm-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.atm-header i {
    font-size: 28px;
    color: #4FC3F7;
}

.atm-header h3 {
    font-size: 24px;
    font-weight: 600;
}

.atm-machine {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.atm-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.atm-slot {
    position: absolute;
    bottom: 50px;
    width: 160px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    transition: all 0.3s ease;
}

.slot-opening {
    min-width: 300px;
    height: 35px;
    background: rgba(13, 110, 253, 0.5);
    border-radius: 6px;
    margin-bottom: 8px;
    border: 3px solid #0d6efd;
    animation: bluePulse 2s infinite;
}

@keyframes bluePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

.deposit-text {
    text-align: center;
    font-size: 13px;
    color: white;
    font-style: italic;
    padding: 8px;
    background: rgba(13, 110, 253, 0.5);
    border-radius: 8px;
    max-width: 180px;
    font-weight: 800;
    text-transform: uppercase;
}

.atm-slot.drag-over {
    transform: scale(1.03);
}

.atm-slot.drag-over .slot-opening {
    background: rgba(76, 175, 80, 0.7);
    border-color: #4CAF50;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(76, 175, 80, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.atm-balance {
    margin-top: 25px;
    padding: 18px;
    background: #2b96c5;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    justify-content: center;
    transition: all 0.3s ease;
}

.atm-balance i {
    color: #FFD700;
    font-size: 24px;
}

#bank-balance {
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

.coins-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.coins-header i {
    font-size: 28px;
    color: #FFD700;
}

.coins-header h3 {
    font-size: 24px;
    font-weight: 600;
    flex: 1;
}

.total-coins {
    background: #DAA520;
    padding: 6px 12px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 800;
}

.coinContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    min-height: 350px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 20px;
}

.coin {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    cursor: grab;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    user-select: none;
    color: white;
}

.coin:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.coin.dragging {
    cursor: grabbing;
    transform: scale(1.1);
    z-index: 100;
    opacity: 0.8;
}

.coin-value {
    position: absolute;
    bottom: -20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.5);
    padding: 3px 8px;
    border-radius: 8px;
}

.coin.gold {
    background: radial-gradient(circle at 30% 30%, #FFD700, #B8860B);
    border: 5px solid #DAA520;
}

.coin.silver {
    background: radial-gradient(circle at 30% 30%, #E8E8E8, #A9A9A9);
    border: 5px solid #C0C0C0;
}

.coin.bronze {
    background: radial-gradient(circle at 30% 30%, #CD7F32, #8B4513);
    border: 5px solid #A0522D;
}

.coin.platinum {
    background: radial-gradient(circle at 30% 30%, #E5E4E2, #B2B2B2);
    border: 5px solid #999;
}

.instructions {
    background: rgba(255, 255, 255, 0.08);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.instructions i {
    color: #4FC3F7;
    font-size: 20px;
    flex-shrink: 0;
}

.coin-fall {
    position: fixed;
    font-size: 20px;
    font-weight: bold;
    animation: coinFall 0.7s linear forwards;
    pointer-events: none;
    z-index: 1000;
}

@keyframes coinFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(300px) rotate(360deg);
        opacity: 0;
    }
}

.bank-growth {
    position: absolute;
    color: #4CAF50;
    font-weight: bold;
    font-size: 16px;
    animation: growUp 1s ease-out forwards;
    pointer-events: none;
    z-index: 100;
}

@keyframes growUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

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

.button-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-heading="dark"] {
    color: white;
}

[data-heading="light"] {
    color: black;
}

.footer-bar-design {
    position: fixed;
    width: 100%;
    height: 125px;
    overflow: visible;
    background: linear-gradient(326deg, #a4508b 0%, #FFD700 15%, #6824d6 30%, #FFA500 45%, #fe3258 60%, #FF69B4 75%, #87CEEB 85%, #98FB98 100%);
    filter: opacity(0.6);
    bottom: 0;
    left: 0;
    z-index: 1;
}

.footer-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 180px;
    background: url(https://1.bp.blogspot.com/-NYl6L8pz8B4/XoIVXwfhlNI/AAAAAAAAU3k/nxJKiLT706Mb7jUFiM5vdCsOSNnFAh0yQCLcBGAsYHQ/s1600/hero-wave.png) repeat-x;
    animation: wave 10s linear infinite;
    transform: scaleY(-1);
    z-index: 1;
}

@keyframes wave {
    0% {
        background-position: 0;
    }

    100% {
        background-position: 1440px;
    }
}

a.proceedBtn {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    padding: 18px 60px;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 10px 40px rgba(255, 107, 157, 0.5), 0 0 20px rgba(255, 255, 255, 0.2);
    background: linear-gradient(326deg, #a4508b 50%, #FF69B4 50%);
    transition: all 0.3s ease;
    z-index: 150;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    cursor: pointer;
}

a.proceedBtn:hover {
    box-shadow: 0 12px 50px rgba(255, 107, 157, 0.7);
    background: linear-gradient(135deg, #a4508b 50%, #FF69B4 50%);
    transform: translateX(-50%) translateY(-3px);
}

@media (max-width: 1024px) {
    body {
        padding-bottom: 180px;
    }

    .container {
        flex-direction: column;
    }

    .left-panel,
    .right-panel {
        width: 100%;
    }

    .coinContainer {
        min-height: 300px;
    }

    .footer-bar-design {
        height: 110px;
    }

    .footer-wave {
        height: 160px;
    }

    a.proceedBtn {
        padding: 16px 50px;
        font-size: 19px;
        bottom: 35px;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 180px;
    }

    .amount {
        position: static;
        margin: 15px;
        width: calc(100% - 30px);
        justify-content: center;
    }

    .container {
        margin-top: 15px;
        gap: 20px;
    }

    .coin {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .atm-image {
        max-width: 300px;
    }

    .footer-bar-design {
        height: 100px;
    }

    .footer-wave {
        height: 150px;
    }

    a.proceedBtn {
        padding: 15px 40px;
        font-size: 18px;
        bottom: 30px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
        padding-bottom: 180px;
    }

    .footer-bar-design {
        height: 100px;
    }

    .footer-wave {
        height: 150px;
    }

    a.proceedBtn {
        padding: 14px 35px;
        font-size: 16px;
        bottom: 30px;
    }
}

.hand {
    width: 200px;
    height: 200px;
    position: absolute;
    top: 90px;
    animation: fingerMove 1.5s infinite ease-in-out;
}

/* finger move animation */
@keyframes fingerMove {
    0% {
        transform: translateY(0);
    }

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

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



/* soft fade */
@keyframes hintFade {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}


.drag-hint {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    z-index: 1200;
    animation: hintFade 3s infinite;
    height: 180px;
    width: 180px;
}
