/* General Body */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.header {
    position: relative;
}


.logo {
    position: absolute; 
    left: 20px; 
    top: 50%; 
    transform: translateY(-50%); /
}

.logo img {
    height: 100px;
    width: auto;
}

/* Header and Footer */
.header, .footer {
    text-align: center;
    padding: 60px 0;
    background-color: #f1f1f1;
}


#back-to-map img {
    height: 100px;
    width: 200px;
}

.dn-text {
    padding: 0 0 25px 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    text-align: center;
    margin: 0 auto;
}

h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #666;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background-color: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: calc(33% - 13px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    height: 225px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.card:hover {
    box-shadow: 
        0 0 10px rgba(0, 0, 0, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.6),
        0 0 10px rgba(0, 0, 0, 0.2);
}

.card.expanded {
    height: 260px;
    flex-direction: column;
    align-items: center;
}

.collapsed-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.icon {
    width: 60px;
    height: 60px;
}

.collapsed-text {
    font-size: 18px;
    color: #333;
}

.qr-code, .wallet-info {
    display: none;
}

.card.expanded .qr-code,
.card.expanded .wallet-info {
    display: block;
}

.qr-code {
    max-width: 130px;
    height: auto;
    margin-bottom: 5px;
}

.wallet-currency {
    font-size: 14px;
    font-weight: bold;
    color: #8e8e8e;
    display: block;
    text-align: center;
    margin-bottom: 32px;
    visibility: hidden;
}

.card.expanded .wallet-currency {
    visibility: visible;
}

.wallet-info {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.wallet-address {
    margin-right: 1px;
    flex-grow: 1;
    text-align: left;
    font-size: 13px;
    color: #525252;
}

.copy-icon {
    cursor: pointer;
    font-size: 18px;
    color: #003a79;
    margin-right: 5px;
}

.copy-icon img {
    max-width: 19px;
    height: auto;
    vertical-align: sub;
}


.wallet-address:hover {
    text-decoration: underline;
}

.wallet-info,
.qr-code {
    visibility: hidden;
}

.card.expanded .wallet-info,
.card.expanded .qr-code {
    visibility: visible;
}

.card.expanded .collapsed-content {
    display: none;
}

/* Copy */

.copy-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 1000;
}

.copy-popup.show {
    opacity: 1;
    visibility: visible;
}

.info-icon {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    cursor: pointer;
}

.info-icon::before {
    content: "i";
    font-weight: bold;
    color: white;
    background-color: #007bff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    position: absolute;
    top: -5px;
    right: -35px;
}

.info-icon .tooltip {
    display: none;
    position: absolute;
    top: -10px;
    left: 35px;
    transform: translateY(-50%);
    background-color: #eeeeee;
    color: #333;
    padding: 8px;
    border-radius: 8px;
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
    font-size: 14px;
    white-space: nowrap;
}

.info-icon:hover .tooltip {
    display: block;
    border-radius: 8px;
}

.test {
    display: flex;
    justify-content: center;
}

.ko-fi-img {
    width: 140px;
}

@media (max-width: 768px) {

    body {
        overflow-x: hidden; 
    }
   
    .container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 20px;
        box-sizing: border-box; 
    }

    .card {
        width: 100%;
        margin: 0 auto; 
    }

    .info-icon .tooltip {
        display: none;
        position: absolute;
        top: -10px;
        left: 50%;
        transform: translateX(-50%) translateY(-50%); 
        background-color: #eeeeee;
        color: #333;
        padding: 8px;
        border-radius: 8px;
        font-size: 14px;
        white-space: nowrap;
    }

    .info-icon:hover .tooltip {
        display: block;
        border-radius: 8px;
        left: -70px;
        width: 190px;
        top: -20px;
        
    }

    .info-icon {
        position: relative;
        max-width: 0px;
        right: 34px;
        bottom: 18px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 20px;
    }

    * {
        box-sizing: border-box;
    }


    
}
