.homefiller-container {
    position: relative;
    width: 100%;
    height: 20vh;
    overflow: hidden;
}

.homefiller {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(40%);
}

.homefiller-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: bold;
    text-shadow: 0 0 5px var(--main-color), 0 0 10px var(--main-color);
    pointer-events: none;
}

.abt {
    display: flex;
    align-items: center;
    width: 100%;
}

.abt-reverse {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: var(--main-color);
}

.mod-text {
    width: 15%;
    text-align: center;
    font-size: 32px;
}

.mod-text b {
    font-size: 48px;
    color: var(--main-color);
}

.player-text {
    width: 15%;
    text-align: center;
    font-size: 32px;
}

.player-text b {
    font-size: 48px;
    color: var(--darkcolor);
}

.group {
    will-change: transform;
    animation: scrolling 60s linear infinite;
    display: flex;
    gap: 20px;
    padding-right: 20px;
}

@keyframes scrolling {
    0% {
        transform: translateX(0);
    }

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

.carousel {
    width: 85%;
    background-color: var(--main-color);
    margin: 0 auto;
    padding: 20px 0;
    overflow: hidden;
    display: flex;

    >* {
        flex: 0 0 100%;
    }
}

.carousel-reverse {
    width: 85%;
    background-color: var(--darkcolor);
    margin: 0 auto;
    padding: 20px 0;
    overflow: hidden;
    display: flex;

    >* {
        flex: 0 0 100%;
    }
}

.group-reverse {
    will-change: transform;
    animation: unscrolling 20s linear infinite;
    display: flex;
    gap: 20px;
    padding-right: 20px;
}

@keyframes unscrolling {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

.card {
    width: 15vh;
    color: white;
    border-radius: 24px;
    box-shadow: rgba(0, 0, 0, 10%) 5px 5px 20px 0;
    padding: 20px;
    justify-content: center;
    align-items: center;
    height: 15vh;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 10px var(--main-color);
    overflow: hidden;
    text-align: center;
    align-items: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.card span {
    position: relative;
    z-index: 2;
    font-weight: bold;
    font-size: 16px;
    color: white;
    text-shadow: 0 0 5px var(--main-color), 0 0 10px var(--main-color);
}

.card-player {
    width: 15vh;
    height: 15vh;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 16px;
}

.card-player span {
    width: 100%;
    position: relative;
    z-index: 2;
    font-weight: bold;
    font-size: 14px;
    color: white;
    text-shadow: 0 0 5px var(--darkcolor), 0 0 10px var(--darkcolor);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.events {
    border-top: solid var(--main-color) 2px;
    height: calc(45vh - 146px);
    background-color: var(--darkcolor);
}

.nbsupports {
    font-size: 16px;
}

.moreinfo {
    border-top: 2px solid var(--main-color);
    min-height: calc(45vh - 145px);
    display: flex;
    justify-content: space-between;
    width: 100%;
    background-color: var(--navcolor);
    padding: 25px;
}

.rulespanel {
    height: 100%;
    width: 15%;
    text-align: center;
    font-size: 28px;
}

.rulespanel img {
    height: 15vh;
}

.rulespanel img:hover {
    cursor: pointer;
}

.get-started {
    width: 85%;
    height: 100%;
    background-color: var(--navcolor);
    display: flex;
}

.install-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-install {
    background: var(--main-color);
    color: var(--darkcolor);
    padding: 0.8rem 1.6rem;
    border-radius: 12px;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 0 10px var(--main-color);
    transition: all 0.2s ease-in-out;
    text-align: center;
    border: 3px var(--darkcolor) solid;
    width: 80%;
}

.btn-install:hover {
    transform: scale(1.05);
    background: var(--main-color);
    box-shadow: 0 0 15px var(--main-color);
}

.btn-install.auto::before {
    content: "⚙️ ";
}

.btn-install.manual::before {
    content: "📦 ";
}

.setup-mods {
    font-size: 28px;
}

.setup {
    width: 30%;
    height: 100%;
    text-align: center;
}

.help {
    width: 30%;
    height: 100%;
    text-align: center;
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #6e86ff, #5865f2);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 8px 15px rgba(88, 101, 242, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-discord:hover {
    background: linear-gradient(135deg, #4752c4, #3b3f91);
    box-shadow: 0 12px 20px rgba(71, 82, 196, 0.6);
    transform: translateY(-3px) scale(1.05);
}

.btn-discord:active {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 4px 10px rgba(71, 82, 196, 0.3);
}

.discord-icon {
    width: 26px;
    height: 26px;
    color: white;
    transition: color 0.3s ease;
}

.btn-discord:hover .discord-icon {
    color: #a8b8ff;
}

.btn-discord span {
    user-select: none;
}

.discord {
    text-align: center;
    width: 20%;
}

.discord img{
    height: 7vh;
}

.btn-forge {
    background: linear-gradient(135deg, #2c2c2c, #1b1b1b);
    color: #ffa500;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.2);
    border: 3px solid #ffa500;
}

.btn-forge:hover {
    background: #ffa500;
    color: #000;
    box-shadow: 0 0 12px #ffa500, 0 0 18px #ffa500;
}

/* --- Version Mobile --- */
@media (max-width: 768px) {
    .mod-text{
        width: 30% !important;
        font-size: 18px !important;
    }

    .carousel{
        width: 70% !important;
    }

    .player-text{
        width: 30% !important;
        font-size: 18px !important;
    }

    .carousel-reverse{
        width: 70% !important;
    }

    .moreinfo{
        display: block !important   ;
    }

    .rulespanel, .setup, .help, .discord{
        height: unset !important;
        width: unset !important;
    }

    .nbsupports{
        font-size: 12px;
    }
}
