/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #141e30, #243b55);
    color: #fff;
}
.container {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 90%;
    max-width: 450px;
}
h1 {
    margin-bottom: 20px;
    color: #fff;
}

/* Coin Selection */
.coin-selection {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}
.coin-card {
    background: #1f2e47;
    padding: 15px;
    border-radius: 8px;
    width: 100px;
    height: 120px;
    text-align: center;
    cursor: pointer;
    position: relative; /* Required for pseudo-element */
    transition: transform 0.3s, box-shadow 0.3s;
}

.coin-card:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* RGB Animated Border */
.coin-card::before {
    content: '';
    position: absolute;
    top: -2px; /* Adjust for thin border */
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 8px;
    background: linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet);
    z-index: -1;
    background-size: 300% 300%;
    animation: rgb-border-animation 3s infinite;
}

/* Keyframes for animation */
@keyframes rgb-border-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Ensure content stays above border */
.coin-card img, .coin-name {
    position: relative;
    z-index: 1;
}

.coin-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.coin-name {
    font-size: 14px;
    font-weight: bold;
    color: #f4f4f4;
}

/* Address Section */
.address-section {
    margin-top: 20px;
    padding: 20px;
    background: #1f2e47;
    border-radius: 8px;
    display: none;
    text-align: center;
}
.address-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #ffcc00;
}
.address {
    font-size: 16px;
    word-wrap: break-word;
    margin-bottom: 15px;
}
.button-copy {
    display: inline-block;
    background: #00b894;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s;
}
.button-copy:hover {
    background: #019474;
}

/* QR Code */
#qr-code {
    margin-top: 20px;
}

/* Footer */
.footer {
    margin-top: 20px;
    font-size: 12px;
    color: #aaa;
}