:root {
    --taxen-orange: #c17028;
    --taxen-text: #ffffff;
    --taxen-gray: #555555;
    --taxen-bg: rgba(0, 0, 0, 1);
}

body {
    background-color: var(--taxen-bg);
    background-image: url('pattern.png');
    background-position: 50%;
    background-size: cover;
    color: var(--taxen-text);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;

    /* Make body a full-height flex container to center contents vertically */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.container {
    text-align: center;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex: 1;
    /* Pushes container to truly occupy the middle space */
}

.affiliate-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.affiliate-button {
    color: var(--taxen-text);
    background-color: var(--bg-colour);
    justify-content: center;
    align-items: center;
    display: flex;
    border-radius: 8px;
    height: 75px;
    width: 75px;
    text-decoration: none;
    border: none;
}

.affiliate-button i {
    font-size: 40px;
    display: flex;
    flex-direction: column;
    margin: 10px;
}

.affiliate-button .affiliate-text {
    font-size: 12px;
    margin-top: 5px;
    text-align: center;
}

.affiliate-button:hover {
    filter: brightness(1.2);
    transition: filter 0.3s ease;
}

.logo-container {
    margin-bottom: 20px;
}

.logo-container img {
    max-width: 50vw;
    height: auto;
    /* Changed from fixed 50vh to auto so it scales nicely without distortion */
    max-height: 40vh;
    z-index: 2;
    animation: glow 4s ease-in-out infinite;
}

a {
    color: var(--taxen-text);
    text-decoration: none;
}

.marquee-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    text-decoration: none;
}

.marquee-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    text-decoration: none;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    background-color: rgba(10, 10, 10, 0.95);
    border-top: 1px solid rgba(245, 130, 32, 0.3);
    border-bottom: 1px solid rgba(245, 130, 32, 0.3);
    padding: 10px 0;
    white-space: nowrap;
    display: flex;
}

.marquee-track {
    display: inline-block;
    animation: scroll-marquee 15s linear infinite;
    animation-play-state: paused;
    min-width: 200vw;
    color: #f58220;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.marquee-track span {
    display: inline-flex;
    align-items: center;
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(245, 130, 32, 0.8);
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes glow {

    0%,
    100% {
        filter: drop-shadow(0 0 5px #ff7f00) drop-shadow(0 0 20px #ff7f00) drop-shadow(0 0 45px rgba(255, 127, 0, 0.6));
    }

    50% {
        filter: drop-shadow(0 0 8px #ff7f00) drop-shadow(0 0 30px #ff7f00) drop-shadow(0 0 65px rgba(255, 127, 0, 0.8));
    }
}

@media screen and (max-width: 768px) {
    .affiliate-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}