@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    padding: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: auto;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #333 0%, #222 100%);
    user-select: none;
}

header {
    background-color: transparent;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container {
    position: relative;
    display: flex;
    padding: 40px 40px 120px 40px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 80px;
    min-height: calc(100vh - 250px);
    margin-top: 40px;
    animation: fadeIn 0.8s ease-in;
}

.card {
    position: relative;
    width: 350px;
    height: 180px;
    background: #fff;
    transition: 0.5s;
    margin: 0 10px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: 0.5s, transform 0.3s ease;
}

.card:hover {
    height: 450px;
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.button-container a {
    display: block;
    /* Make anchors block-level elements */
    width: 100px;
    /* Set a fixed width */
}

.card .lines {
    position: absolute;
    inset: 0;
    background: #000;
    overflow: hidden;
}

.card .lines::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 120px;
    background: linear-gradient(transparent, #45f3ff, #45f3ff, #45f3ff, transparent);
    animation: animate 4s linear infinite;
    animation-play-state: paused;
}

.card:hover .lines::before {
    animation-play-state: running;
}

@keyframes animate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.card .lines::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: #292929;
}

.card .imgBx {
    position: absolute;
    top: -60px;
    left: 50%;
    width: 150px;
    height: 150px;
    transform: translateX(-50%);
    background: #000;
    transition: 0.5s;
    z-index: 10;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card:hover .imgBx {
    top: 25px;
    width: 200px;
    height: 200px;
}

.card .imgBx::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 150px;
    transform: translate(-50%, -50%);
    background: linear-gradient(transparent, #ff3c7b, #ff3c7b, #ff3c7b, transparent);
    animation: animate2 6s linear infinite;
    animation-play-state: paused;
}

.card:hover .imgBx::before {
    animation-play-state: running;
}

@keyframes animate2 {
    0% {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

.card .imgBx::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: #292929;
}

.card .imgBx img {
    position: absolute;
    width: 100px;
    z-index: 1;
    filter: invert(1);
    opacity: 0.5s;
    transition: 0.5s;
}

.card:hover .imgBx img {
    opacity: 1;
}

.card .content {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
}

.card .content .details {
    padding: 30px 20px;
    text-align: center;
    width: 100%;
    transition: 0.5s;
    transform: translateY(45px);
}

.card:hover .content .details {
    transform: translateY(0px);
}

.card .content .details .vip-title {
    letter-spacing: 0px;
    transform: translateY(110px);
    transition: transform 0.5s ease;
    opacity: 1;
}

.card:hover .content .details .vip-title {
    letter-spacing: 0px;
    transform: translateY(15px);
    opacity: 1;
    transition: all 0.5s ease;
    animation: titleSlide 0.5s ease;
}

.card .content .details .darmowe {
    transform: translateY(135px);
    transition: transform 0.5s ease;
    opacity: 1;
}

.card:hover .content .details .darmowe {
    transform: translateY(15px);
    opacity: 1;
    transition: all 0.5s ease;
    animation: titleSlide 0.5s ease;
}

.card .content .details h2 {
    font-size: 1.5em;
    font-weight: 500;
    color: #45f3ff;
    line-height: 1.2em;
}

.card .content .details p,
.card .content .details a,
.button-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    visibility: hidden;
}

.card:hover .content .details p,
.card:hover .content .details a,
.card:hover .button-container {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.card .content .details p {
    color: #fff;
    opacity: 0;
    transition: 0.5s;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
}

.card:hover .content .details p,
.card:hover .content .details a {
    opacity: 1;
}

.card .content .details a {
    display: inline-block;
    padding: 8px 15px;
    background: linear-gradient(to bottom, #45f3ff 0%, #3ad8e2 100%);
    color: #292929;
    margin: 2px 4px;  /* Reduced margin for better spacing */
    font-weight: 500;
    text-decoration: none;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.card:nth-child(2) .content .details a {
    background: none;
    padding: 0;  /* Remove padding since it's just an image */
    margin: 0;   /* Remove margin */
    border-radius: 0;
    overflow: visible;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    max-height: 105px;
    -webkit-filter: grayscale(1) invert(1);
    filter: grayscale(1) invert(1);
}

.dc_logo {
    max-height: 155px;
    transition: transform 0.3s ease;
}

.dc_logo:hover {
    transform: scale(1.05);
}

.site-title {
    font-size: 1.5em;
    color: #333;
    text-decoration: none;
}

.card:hover .content .details .discord {
    opacity: 0;
    transition: 0.3s;
    transform: translateY(-140px);
}

.card .content .details .discord {
    opacity: 1;
    transition: 0.3s;
    transform: translateY(115px);
}

button {
    color: #000;
    font-family: 'Poppins', sans-serif;
    font-size: 25px;
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
    background: none;
    border: 2px solid #000;
    border-radius: 30px;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

button:hover {
    transform: scale(1.1);
    background: #000;
    color: #fff;
}

main {
    flex: 1;
}

footer {
    background-color: #000;
    color: #777;
    padding: 15px;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}

footer div {
    font-size: 14px;
    margin-top: 3px;
    margin-bottom: 3px;
}

.disclaimer {
    font-size: 11.5px;
    color: #444;
    max-width: 900px;
    margin: 6px auto;
    line-height: 1.2;
    padding: 0 10px;
    opacity: 0.6;
    white-space: normal;
    letter-spacing: -0.3px;
}

.source-selection {
    text-align: center;
}

.source-list {
    list-style: none;
    padding: 0;
    text-align: center;
}

.source-list li {
    margin: 10px 0;
}

.source-list button {
    display: block;
    width: 150px;
    margin: 10px auto;
    border: none;
    border-radius: 2px;
    background: #800080;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.source-list button:hover {
    background: #00FFFF;
    color: #000;
    transform: scale(1.1);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.text-container {
    font-family: Arial, sans-serif;
    font-size: xx-large;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: auto;
    justify-content: center;
    align-items: center;
}

.red-bar {
    background-color: red;
    color: white;
    text-align: center;
    height: 110px;
    line-height: 100px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
  }
  
  .red-bar p {
    margin: 0;
    font-size: 30px; /* Increase text size */
    animation: moveText 30s linear infinite; /* Set animation duration to 30s */
    white-space: nowrap;
  }
  
  @keyframes moveText {
    0% {
      transform: translateX(-100%);
    }
    100% {
      transform: translateX(100%);
    }
  }
  
  .iframe-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 100px); /* Adjust for the height of the red bar */
  }
  
  .specific-iframe {
    width: 100%;
    height: 100%;
  }

.email-bright {
    color: #999;
    transition: color 0.3s ease;
    text-decoration: none;
}

.email-bright:hover {
    color: #45f3ff;  /* Same color as your accent color */
    cursor: pointer;
}

.divider {
    color: #555;  /* Darker color for the slash */
}

.copyright {
    color: #777;  /* Same color as the "E-mail:" text */
    font-size: 14px;
    margin-top: 3px;
    margin-bottom: 3px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.container {
    /* existing styles... */
    animation: fadeIn 0.8s ease-in;
}

.card:focus-within {
    outline: 2px solid #45f3ff;
    outline-offset: 4px;
}

a:focus {
    outline: 2px solid #45f3ff;
    outline-offset: 2px;
}

/* Add hover effect */
.card .content .details a:hover {
    background: linear-gradient(to bottom, #5ff4ff 0%, #45f3ff 100%);
    transform: translateY(-2px);
}

/* Add shine effect on hover */
.card .content .details a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.card .content .details a:hover::before {
    left: 100%;
}

/* Specific styling for button container in Darmowe tile */
.button-container {
    display: block;
    text-align: center;
    margin-top: 25px;
}

.button-container a {
    display: inline-block;
    width: 100px;
    margin: 0px 4px;  /* Reduced vertical margin from 1px to 0px */
}

.button-container br {
    display: block;
    content: "";
    margin: 0;  /* Reduced margin from 1px to 0 */
    line-height: 0.7;  /* Added line-height reduction to compress vertical space */
}

/* Specific styling for VIP button */
.card:nth-child(3) .content .details a {
    width: auto;
    padding: 10px 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Remove shine effect from Discord button */
.card:nth-child(2) .content .details a::before {
    display: none;  /* Remove the shine effect */
}

/* Remove hover transform from Discord button */
.card:nth-child(2) .content .details a:hover {
    transform: none;
    background: none;
}

/* Update keyframes for title slide animation */
@keyframes titleSlide {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(15px);
        opacity: 1;
    }
}

/* Update title animations */
.card .content .details .vip-title,
.card .content .details .darmowe {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Add exit animations */
@keyframes titleExit {
    0% {
        transform: translateY(15px);
        opacity: 1;
    }
    100% {
        transform: translateY(135px);
        opacity: 1;
    }
}

/* Apply exit animation when not hovering */
.card:not(:hover) .content .details .vip-title {
    animation: titleExit 0.5s ease forwards;
}

.card:not(:hover) .content .details .darmowe {
    animation: titleExit 0.5s ease forwards;
}

/* Ensure content fades out smoothly */
.card:not(:hover) .content .details p,
.card:not(:hover) .content .details a,
.card:not(:hover) .button-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0s;
}

/* Remove the animation from the initial state */
.card:not(:hover) .content .details .vip-title,
.card:not(:hover) .content .details .darmowe {
    animation: none;  /* Remove animation when not hovering */
}

/* Add styles for the alternate title */
.card .content .details .darmowe-hover {
    display: none;  /* Hide by default */
    transform: translateY(15px);
    opacity: 1;
    color: #45f3ff;  /* Match the original title color */
    font-size: 1.5em;
    font-weight: 500;
    line-height: 1.2em;
}

/* Hide original title and show alternate on hover */
.card:hover .content .details .darmowe {
    display: none;
}

.card:hover .content .details .darmowe-hover {
    display: block;
    animation: titleSlide 0.5s ease;
}

/* Add these styles at the end of the file */
.copy-tooltip {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(69, 243, 255, 0.9);
    color: #000;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, 20px); }
    15% { opacity: 1; transform: translate(-50%, 0); }
    85% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -20px); }
}

.email-bright {
    cursor: pointer;
}