body {
    margin: 0;
    background-color: #111315;
}

.he35 {
    height: 350px;
}

.he08 {
    min-height: 80px;
}

.bg {
    background-color: #1c1f21;
    padding: 0 15px;
}

.red {
    color: rgb(250, 52, 52);
}

.hed1 {
    font-size: 25px;
}

.login {
    background-color: rgb(245, 24, 24);
    transition: 0.2s;
}

.login:hover {
    background-color: rgb(190, 14, 14);
}

.white {
    color: white;
}

.grey {
    color: rgb(142, 142, 142);
}
@media (max-width: 767.98px) {
    /* Full-screen black panel sliding in from the right */
    #navbarDarkDrawer {
        --drawer-width: 100vw;
        --drawer-bg: #000;
        --drawer-color: #fff;
        --drawer-transition-duration: .45s;
        --drawer-backdrop-bg: #000;
    }

    #navbarDarkDrawer .drawer-title,
    #navbarDarkDrawer .nav-link {
        color: #fff;
    }

    #navbarDarkDrawer .drawer-body {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    #navbarDarkDrawer .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: .5rem;
    }

    #navbarDarkDrawer .nav-link {
        font-size: 1.75rem;
        font-weight: 600;
        padding: .5rem 0;
    }

    #navbarDarkDrawer .btn-close {
        filter: invert(1);
    }

    /* Links fade and slide in one after another when the menu opens */
    @media (prefers-reduced-motion: no-preference) {
        #navbarDarkDrawer[open]:not(.hiding) .nav-item,
        #navbarDarkDrawer[open]:not(.hiding) .drawer-body > .navbar-nav:last-child {
            animation: navLinkIn .5s cubic-bezier(.22, 1, .36, 1) both;
        }
        #navbarDarkDrawer[open]:not(.hiding) .nav-item:nth-child(1) { animation-delay: .15s; }
        #navbarDarkDrawer[open]:not(.hiding) .nav-item:nth-child(2) { animation-delay: .22s; }
        #navbarDarkDrawer[open]:not(.hiding) .nav-item:nth-child(3) { animation-delay: .29s; }
        #navbarDarkDrawer[open]:not(.hiding) .nav-item:nth-child(4) { animation-delay: .36s; }
        #navbarDarkDrawer[open]:not(.hiding) .drawer-body > .navbar-nav:last-child { animation-delay: .43s; }
    }
}

@keyframes navLinkIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
.nav-item a[aria-current="page"] {
    color: rgb(250, 52, 52);
    padding-bottom: 4px;
}
.nav-item a:hover {
    transition: 0.2s;
    color: rgb(255, 119, 119);
    transform: translateY(-2px);
}

.navbar-item {
    transition: 0.2s;
}

.navbar-item:hover {
    color: rgb(250, 52, 52);
    padding-bottom: 4px;
}

.slider-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

/* Main Slider */
.slider {
    display: flex;
    max-height: 500px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    box-shadow: 0 1.5rem 3rem -0.75rem hsla(0, 0, 0, 0.25);
    border-radius: 0.5rem;
}

.slider::-webkit-scrollbar {
    display: none;
}

/* Individual Slides */
.slide {
    position: relative;
    flex: 0 0 100%;
    scroll-snap-align: start;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dark Gradient Overlay */
.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.85),
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.05));
    z-index: 1;
    pointer-events: none;
}

/* Slide Text */
.slide-text {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    z-index: 2;
    color: white;
    max-width: 500px;
}

.slide-text h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.slide-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Explore Game Button */
.slide-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: rgb(245, 24, 24);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s ease;
}

.slide-btn:hover {
    background-color: rgb(190, 15, 15);
    color: white;
}

/* Navigation Dots */
.nav-slider {
    display: flex;
    column-gap: 1rem;
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.nav-slider a {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.75;
    transition: opacity 250ms ease;
}

.nav-slider a:hover {
    opacity: 1;
}

/* Tablet Responsive */
@media (max-width: 768px) {
    .slider-container {
        padding: 1.5rem;
    }

    .slide-text {
        left: 6%;
        max-width: 70%;
    }

    .slide-text h1 {
        font-size: 1.6rem;
    }

    .slide-text p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .slide-btn {
        padding: 9px 18px;
        font-size: 0.85rem;
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .slider-container {
        padding: 0.75rem;
    }

    .slider {
        aspect-ratio: 4 / 3;
    }

    .slide-text {
        left: 5%;
        max-width: 85%;
    }

    .slide-text h1 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .slide-text p {
        font-size: 0.75rem;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    .slide-btn {
        padding: 7px 12px;
        font-size: 0.7rem;
    }

    .nav-slider {
        bottom: 0.6rem;
    }
}


.cards-container {
    display: flex;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
}


.cards {
    background-color: #181b1e;
    flex: 1 1 220px;
    min-width: 0;
    border-radius: 1rem;
    overflow: hidden;
    transition: 0.2s ease;
}


.cards a {
    display: block;
    height: 100%;
    text-decoration: none;
}


.cards img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}


.card-contents {
    padding: 20px;
}

.card-contents span {
    display: block;
    width: fit-content;
    margin: 15px auto;
    padding: 10px 20px;
    background-color: rgb(245, 24, 24);
    color: white;
    border-radius: 5px;
    transition: 0.2s;
}

.card-contents span:hover {
    background-color: rgb(190, 15, 15);
}


.cards:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}


@media (max-width: 768px) {
    .cards {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .cards {
        flex: 1 1 100%;
    }
}

.main-row {
    height: auto;
}

.main-row>div {
    height: auto;
    margin-bottom: 10px;
}

.left-box {
    height: 250px;
    /* was 300px, now follows the row */
    background-color: #252a2e;
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
    position: relative;
    transition: 0.2s;
}

.left-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.left-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to left,
            rgba(0, 0, 0, 0.85),
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.05));
    z-index: 1;
    pointer-events: none;
}

.left-box a {
    display: block;
    height: 100%;
}

.left-box a img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}

.left-box-content {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    z-index: 2;
    color: white;
    max-width: 500px;
}

.left-box-content span {
    display: block;
    width: fit-content;
    margin: 15px 0 15px;
    /* top right bottom left: auto on the left pushes it right */
    padding: 10px 20px;
    background-color: rgb(245, 24, 24);
    color: white;
    border-radius: 5px;
    transition: 0.2s;
}

.left-box-content span:hover {
    background-color: rgb(190, 15, 15);
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: auto;
}

.right-column>a {
    flex: none;
    min-height: 0;
    /* lets the flex item shrink */
    display: block;
}

.inner-box {
    height: 110px;
    background-color: #181b1e;
    border-radius: 10px;
    color: white;
    padding: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.2s;
}

.inner-box img {
    flex: 0 0 120px;
    /* fixed width, never grows or shrinks */
    width: 120px;
    height: 100%;
    /* same height in every box */
    object-fit: cover;
    border-radius: 6px;
}

.inner-box .content {
    flex: 1;
    /* text takes the remaining space */
    min-width: 0;
    /* lets long text wrap instead of pushing the image */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.inner-box .content h4 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.inner-box .content p {
    margin: 0;
    font-size: 0.8rem;
}

.inner-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
    .main-row {
        height: 300px;
    }

    .main-row>div {
        height: 100%;
        margin-bottom: 0;
    }

    .left-box {
        height: 100%;
    }

    .right-column {
        height: 100%;
    }

    .right-column>a {
        flex: 1;
    }

    .inner-box {
        height: 100%;
    }
}

.site-footer {
    margin-top: 60px;
    padding: 50px 0 20px;
    border-top: 3px solid rgb(245, 24, 24);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer-brand {
    font-size: 25px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
}

.footer-col h5 {
    color: white;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-col p {
    max-width: 300px;
    margin: 0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col ul a {
    color: rgb(142, 142, 142);
    text-decoration: none;
    transition: 0.2s;
}

.footer-col ul a:hover {
    color: rgb(250, 52, 52);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #2a2f33;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgb(142, 142, 142);
    text-decoration: none;
    transition: 0.2s;
}

.footer-legal a:hover {
    color: rgb(250, 52, 52);
}

.footer-col {
    margin-bottom: 30px;
}
