/* Reset CSS */
body {
    margin: 0;
    padding: 0;
    color: #fff; /* Set default text color to white */
    font-family: 'Din Demi 2014', sans-serif; /* Set default font */
    background: url('/assets/checkerboard.png') no-repeat center center;
    background-size: cover;
    position: relative; /* Ensure relative positioning */
    min-height: 100vh; /* Ensure full viewport height */
}

/* Sticky Header Styles */
header {
    background-color: #bc002d; /* Set header background color */
    padding: 10px 0;
    text-align: center; /* Center align all content within header */
    position: sticky; /* Enable sticky positioning */
    top: 0; /* Stick to the top of the viewport */
    z-index: 1000; /* Ensure it stays above other content */
    width: 100%; /* Make sure it takes the full width */
    transition: background-color 0.3s; /* Optional: Smooth transition for background */
}

/* Header and Navbar Styles */
header {
    background-color: #bc002d; /* Set header background color */
    padding: 10px 0;
    text-align: center; /* Center align all content within header */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Spacing between left-text and center-nav */
    align-items: center; /* Center vertically */
    padding: 0 20px;
}

.left-text p {
    margin: 0;
    font-family: 'SMW Superbig', sans-serif;
    font-size: 24px;
    font-weight: normal; /* Set text to normal weight */
    color: #fff; /* Set text color to white */
}

/* Center the navigation links horizontally */
.center-nav {
    margin: 0 auto;
}

.center-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center; /* Center align navigation links horizontally */
}

.center-nav ul li {
    margin: 0 15px;
}

.center-nav ul li a {
    text-decoration: none;
    color: #fff; /* Unhovered text color */
    font-family: 'NinNewMario', sans-serif;
    font-weight: normal;
    font-size: 24px;
}

.center-nav ul li a:hover {
    text-decoration: underline dotted; /* Dotted underline on hover */
}


@media (max-width: 768px) {
    .center-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-toggle {
        display: block; /* Show the toggle button on mobile */
    }

    .center-nav ul {
        display: none; /* Hide the links by default */
        flex-direction: column;
        width: 100%;
        text-align: left;
    }

    .center-nav ul.active {
        display: flex; /* Show the links when active */
    }

    .center-nav ul li {
        margin: 10px 0;
        width: 100%;
    }
}






/* Custom Fonts */
@font-face {
    font-family: 'NinNewMario';
    src: url('fonts/NinNewSuperMarioBrosT53Reg.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Din Demi 2014';
    src: url('fonts/DIN\ 2014\ Demi.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SMW Superbig';
    src: url('fonts/super-mario-world-superbig.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Gabarito';
    src: url('fonts/Gabarito.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Apply font to all <> elements */
p {
    font-family: 'Din Demi 2014', sans-serif;
    font-weight: 300;
    font-size: 18px;
}

h1 {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
}

h2 {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
}

h3 {
    font-family: 'Unbounded', sans-serif;
    font-weight: 500;
}


/* Centered Big Text */
.centered-text {
    margin-left: 20px;
    line-height: 0.8;
    display: flex;
    justify-content: left;
    align-items: center;
    height: calc(100vh - 100px); /* Adjust the height dynamically */
    width: 100%;
    text-align: left;
    font-weight: 500;
    font-size: 80px; /* Adjust size as needed */
    font-family: 'NinNewMario', sans-serif !important;
    color: #fff;
    white-space: nowrap;
    overflow: hidden; /* Hide overflow */
    margin-top: 0px; /* Adjust to add space for the header */
}

.content-below {
    padding: 20px; /* Add padding around the container */
    text-align: left;
    margin-top: -35vh; /* Adjust this value to control the gap */
}

/* Projects Container */
.projects-container {
    padding: 20px; /* Add padding around the container */
    margin-top: 0px; /* Add margin to separate from previous content */
    background-color: #000; /* Background color starting from the projects section */
    position: relative; /* Ensure content can stack above the gradient overlay */
    z-index: 1; /* Place above the gradient overlay */
    overflow: hidden; /* Prevent unwanted scroll */
}

.friends-container {
    padding: 20px; /* Add padding around the container */
    margin-top: 0; /* Add margin to separate from previous content */
    background-color: #000; /* Background color starting from the projects section */
    position: relative; /* Ensure content can stack above the gradient overlay */
    z-index: 1; /* Place above the gradient overlay */
}

.social-media-container {
    padding: 20px; /* Add padding around the container */
    margin-top: 0; /* Add margin to separate from previous content */
    background-color: #000; /* Background color starting from the projects section */
    position: relative; /* Ensure content can stack above the gradient overlay */
    z-index: 1; /* Place above the gradient overlay */
}

/* Pill Button */
.discord-friend-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px; /* Adjust for pill shape */
    background-color: #161cbc; /* Button background color */
    color: #fff; /* Button text color */
    text-decoration: none; /* Remove underline */
    font-family: 'Din Demi 2014', sans-serif; /* Button font family */
    font-size: 16px; /* Button font size */
    border: none; /* Remove border */
    cursor: pointer; /* Cursor style */
    transition: background-color 0.3s ease; /* Smooth background color transition */
    margin-left: 20px; /* Align to the left */

}

.discord-friend-button:hover {
    background-color: #1d25ff; /* Darker background color on hover */
}

.icon {
    margin-right: 5px; /* Space between icon and text */
}

/* Card Styles */
.card-container {
    display: flex;
    overflow-x: auto; /* Enable horizontal scrolling */
    padding: 20px;
    gap: 20px; /* Space between cards */
    white-space: nowrap;
    scroll-behavior: smooth;
}

.card-container::-webkit-scrollbar {
    height: 8px; /* Height of the scrollbar */
}

.card-container::-webkit-scrollbar-thumb {
    background: #bc002d; /* Scrollbar color */
    border-radius: 10px;
}

.card {
    display: inline-block;
    border-radius: 10px;
    padding: 20px;
    flex: 0 0 500px;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* Prevent overflowing content */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-size: cover;
    background-position: center;
    background-blend-mode: darken;
    position: relative; /* Ensure button is positioned correctly */
}

.card:hover {
    transform: translateY(-10px); /* Move card up on hover */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Add shadow for effect */
}

.card h2 {
    font-family: 'Unbounded', sans-serif;
    margin-top: 0;
    word-wrap: break-word; /* Ensure automatic line break */
    white-space: normal; /* Ensure normal white space handling */
}

.card p {
    font-family: 'Din Demi 2014', sans-serif;
    word-wrap: break-word; /* Ensure automatic line break */
    white-space: normal; /* Ensure normal white space handling */
}

.card-1 { background-image: url('/assets/fcn-bg.jpg'); }
.card-2 { background-image: url('/assets/jpitsbr-bg.jpg'); }
.card-3 { background-image: url('/assets/gcn-bg.png'); }
.card-4 { background-image: url('/assets/superliminal-bg.jpg'); }
.card-5 { background-image: url('/assets/springlock-bg.png'); }
.card-6 { background-image: url('/assets/kanye.jpg'); }

.card-6-h2 {
    font-family: 'NinNewMario', sans-serif !important;
    font-size: 75px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 0;
}

.card-6-p {
    font-family: 'DIN Demi 2014', sans-serif !important;
    font-size: 30px;
    font-weight: 400;
    text-align: center;
}

/* Button inside cards */
.card .pill-button {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #fff;
    border-radius: 20px;
    color: #fff;
    background-color: transparent;
    font-family: 'Din Demi 2014', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.card .pill-button:hover {
    background-color: #fff;
    color: #000;
}

/* Scroll Arrows */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: rgba(188, 0, 45, 0.5);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    user-select: none;
    font-size: 30px;
}

.scroll-arrow.left { left: 10px; }
.scroll-arrow.right { right: 10px; }

.scroll-arrow:hover {
    background-color: rgba(188, 0, 45, 0.8);
}


/* Gradient Overlay */
.gradient-overlay {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
    z-index: 1; /* Ensure it's above the projects content */
    pointer-events: none; /* Allow interaction with underlying content */
        }



/* Footer Styles */
footer {
    background-color: #bc002d; /* Set footer background color */
    padding: 20px;
    text-align: center; /* Center align footer text */
    color: #fff; /* Set footer text color */
}

.footer-connections {
    display: flex;
    justify-content: center;
    gap: 10px; /* Space between icons */
    margin-bottom: 10px; /* Space between icons and footer text */
}

.footer-connections a img {
    width: 40px; /* Set icon width */
    height: 40px; /* Set icon height */
}

.icon-large {
    filter: invert(93%) sepia(7%) saturate(0%) hue-rotate(90deg) brightness(107%) contrast(106%);
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
    .centered-text {
        line-height: 1;
        margin-left: 0;
        font-size: 30px; /* Adjust text size for mobile */
        word-wrap: break-word; /* Ensure automatic line break */
        white-space: normal; /* Ensure normal white space handling */
        overflow-wrap: break-word; /* Ensure automatic line break */
        text-align: center;
        justify-content: center;
    }

    .content-below {
        padding: 20px; /* Add padding around the container */
        text-align: center;
        margin-top: -30vh; /* Adjust this value to control the gap */
        font-size: 8px !important;
    }

    .gradient-overlay {
        position: absolute;
        top: 655px;
        left: 0;
        width: 100%;
        height: 200px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
        z-index: -1; /* Ensure it's above the projects content */
        pointer-events: none; /* Allow interaction with underlying content */
            }


    .projects-container, .friends-container {
        padding: 10px; /* Reduce padding on mobile */
    }

    .card-container {
        padding: 10px;
        gap: 10px; /* Reduce gap between cards on mobile */
    }

    .pill-button {
        padding: 8px 16px;
        bottom: 10px; /* Adjust spacing from the bottom */
    }

    .scroll-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .discord-friend-button {
        font-size: 14px;
        padding: 8px 16px;
    }

    .footer-connections a img {
        width: 25px; /* Set icon width */
        height: 25px; /* Set icon height */
    }

    .discord-friend-button {
        display: inline-block;
        padding: 10px 20px;
        border-radius: 50px; /* Adjust for pill shape */
        background-color: #161cbc; /* Button background color */
        color: #fff; /* Button text color */
        text-decoration: none; /* Remove underline */
        font-family: 'Din Demi 2014', sans-serif; /* Button font family */
        font-size: 16px; /* Button font size */
        border: none; /* Remove border */
        cursor: pointer; /* Cursor style */
        transition: background-color 0.3s ease; /* Smooth background color transition */
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0; 

}

}

html, body {
    overflow-x: hidden; /* Prevents horizontal scrolling */
    width: 100%;
  }