* {
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: default;
}

html, body {
    height: 100%;
    margin: 0;
    user-select: none;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a1a1a;
    color: #f0f0f0;
    flex-direction: column;
}

:root {
    --card-width: 400px;
    --card-padding: 40px;
    --card-border-radius: 20px;
    --modal-width: calc(var(--card-width) * 0.8);
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    z-index: 2;
    padding: 20px;
}

.card {
    background: #333333;
    padding: var(--card-padding);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: var(--card-width);
    border-radius: var(--card-border-radius);
    color: #f0f0f0;
    z-index: 2;
}

.title {
    color: #b3b3b3;
    font-size: 18px;
}

.social-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10mm;
    row-gap: 20px;
    justify-items: center;
    margin-top: 20px;
}

.social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-decoration: none;
    font-size: 16px;
    color: #f0f0f0;
    background-color: #4d4d4d;
    border-radius: 20px;
    transition: background-color 0.3s, color 0.3s;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    width: 100%;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.social-media a i {
    margin-right: 8px;
    color: #f0f0f0;
}

.social-media a:hover {
    background-color: #666666;
    color: #ffffff;
}

button {
    border: none;
    outline: 0;
    display: inline-block;
    padding: 15px 30px;
    color: #f0f0f0;
    background-color: #4d4d4d;
    text-align: center;
    border-radius: 20px;
    font-size: 18px;
    margin-top: 20px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent;
}

button:hover {
    background-color: #666666;
}

.donate-button {
    border: none;
    outline: 0;
    display: inline-block;
    padding: 15px 30px;
    color: #f0f0f0;
    background-color: #4d4d4d;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 20px;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 0;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent;
}

.donate-button:hover {
    background-color: #666666;
}

.copy-crypto {
    border: none;
    outline: 0;
    display: inline-block;
    padding: 10px;
    color: #f0f0f0;
    background-color: #4d4d4d;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 20px;
    font-size: 16px;
    width: 70%;
    margin-top: 20px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent;
}

.copy-crypto:hover {
    background-color: #666666;
}

.modal {
    display: none;
    position: fixed;
    z-index: 3;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal.fade-in {
    animation: fadeIn 0.5s forwards;
}

.modal.fade-out {
    animation: fadeOut 0.5s forwards;
}

.modal-content {
    background-color: #333333;
    margin: auto;
    padding: 20px;
    border: none;
    width: var(--modal-width);
    max-width: var(--modal-width);
    border-radius: 20px;
    text-align: center;
    animation: fadeIn 0.5s;
    position: relative;
    color: #f0f0f0;
}

.modal.no-overlay {
    background-color: transparent;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.close {
    color: #888;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #f0f0f0;
    text-decoration: none;
}

.modal-title {
    margin: 0;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

.donate-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10mm;
    row-gap: 20px;
    justify-items: center;
    margin-top: 20px;
}

.donate-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-decoration: none;
    font-size: 16px;
    color: #f0f0f0;
    background-color: #4d4d4d;
    border-radius: 20px;
    transition: background-color 0.3s, color 0.3s;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    width: 100%;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.donate-links a i {
    margin-right: 8px;
    color: #f0f0f0;
}

.donate-links a:hover {
    background-color: #666666;
    color: #ffffff;
}

footer {
    width: 100%;
    text-align: center;
    z-index: 2;
    position: fixed;
    bottom: 0;
}

.footer-text {
    color: #b3b3b3;
    user-select: none;
    opacity: 0.5;
}

.footer-link {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.footer-link:hover {
    color: #d1d1d1;
}

@media (hover: none) {
    .social-media a:hover,
    button:hover,
    .donate-button:hover,
    .donate-links a:hover,
    .close:hover,
    .copy-crypto:hover {
        background-color: #4d4d4d;
        color: #f0f0f0;
    }
}

.footer-link.touch-active {
    background-color: transparent !important;
    color: #d1d1d1 !important;
}

.touch-active {
    background-color: #666666 !important;
    color: #ffffff !important;
}

#particles-js {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
}

.avatar {
    width: 5cm;
    height: 5cm;
    background-color: #4d4d4d;
    border-radius: 50%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    margin: 0 auto 10px auto;
    background-image: url('/src/icons/miku.avif');
    background-size: cover;
    background-position: center;
}

.notification {
    display: none;
    position: fixed;
    z-index: 3;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    background: #333333;
    padding: 20px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    border-radius: 0 0 20px 20px;
    color: #f0f0f0;
    animation: slideDown 0.5s forwards, slideUp 0.5s 1.5s forwards;
}

@keyframes slideDown {
    from {
        top: -100px;
        opacity: 0;
    }
    to {
        top: 0;
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        top: 0;
        opacity: 1;
    }
    to {
        top: -100px;
        opacity: 0;
    }
}

.qr-code {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-top: 20px;
}

@media (max-width: 400px) {
    :root {
        --card-width: 340px;
        --card-padding: 25px;
        --modal-width: 83%;
    }
}