/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: url('https://2b2toce.org/2024-11-25_16.05.12.png') no-repeat center center fixed;
    -moz-background-size: cover;
    -webkit-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    color: #000000;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
/*header {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7);
    /*backdrop-filter: blur(5px); /* Blurs content behind header
}*/

/*.title-placeholder {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 2em;
    color: #655d9b;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #4b49c7;
}*/

/* Main content */
main {
    flex: 1;
    padding: 40px 20px 40px; /* Increased top padding for more separation from the header */
}

.container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px; /* Additional margin for even more separation */
}

.box {
    background-color: rgba(0, 0, 0, 0.9);
    border: 1px solid #555;
    padding: 20px;
    color: #ddd;
    overflow-y: auto;
    max-height: 550px; /* Allows scrolling within each box */
    border-radius: 8px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.6); /* Enhanced shadow for a lifted effect */
}

/* Custom scrollbar */
.box::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

.box::-webkit-scrollbar-thumb {
    background-color: #444; /* Color of the scrollbar handle */
    border-radius: 4px; /* Rounded corners for the handle */
}

.box::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1); /* Background of the scrollbar track */
    border-radius: 4px; /* Rounded corners for the track */
}

/* Layout for side and center boxes */
.side-box {
    width: 25%;
}

.center-box {
    width: 50%;
}

h2 {
    color: #5d7eb1;
    margin-bottom: 10px;
    transition: color 0.3s; /* Add transition for smooth color change */
}

/* Style for h2 headings inside links */
a h2 {
    transition: color 0.3s;
}

/* Remove underline from links containing h2 elements */
a:has(h2) {
    text-decoration: none;
}

/* Hover effect for h2 headings inside links */
a:hover h2 {
    color: #6055ff;
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.discord-button {
    display: inline-flex;
    align-items: center;
    background-color: #5865F2;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    margin: 10px;
    transition: background-color 0.3s, transform 0.3s;
}

.discord-button-icon {
    margin-right: 10px;
    width: 30px;
    height: 22px;
}

.donate-button {
    display: inline-flex;
    align-items: center;
    background-color: #f3f3f3;
    color: rgb(0, 0, 0);
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    margin: 10px;
    transition: background-color 0.3s, transform 0.3s;
}

.donate-button-icon {
    margin-right: 10px;
    width: 30px;
    height: 30px;
}

.discord-button:hover {
    background-color: #4953c7;
    transform: scale(1.05);
}

.donate-button:hover {
    background-color: #a8a8a8;
    transform: scale(1.05);
}

.reddit-button {
    display: inline-flex;
    align-items: center;
    background-color: #ff4500;
    color: rgb(255, 255, 255);
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    margin: 10px;
    transition: background-color 0.3s, transform 0.3s;
}

.reddit-button-icon {
    margin-right: 10px;
    width: 30px;
    height: 30px;
}

.reddit-button:hover {
    background-color: #ff8864;
    transform: scale(1.05);
}

.back-button {
    display: inline-flex;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    margin: 10px 0;
    transition: background-color 0.3s, transform 0.3s;
    align-self: flex-end;
}

.back-button:hover {
    background-color: #555;
    transform: scale(1.05);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color:rgba(0, 0, 0, 0.8);
    color: #666;
    font-size: 0.9em;
}

/* Mobile Navigation Controls */
.mobile-nav {
    display: none;
}

.mobile-nav button {
    background-color: #4b49c7;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.mobile-nav button:hover {
    background-color: #3634a8;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    header {
        padding: 10px 5px;
    }

    .title-placeholder {
        font-size: 1.5em;
    }

    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
        margin-top: 5px;
    }

    nav ul li {
        margin: 2px 8px;
    }

    nav ul li a {
        font-size: 0.9em;
    }

    main {
        padding-top: 120px;
    }

    .container {
        flex-direction: column;
        gap: 0;
    }

    /* Only hide boxes on index.html where we have the mobile nav */
    body:has(.mobile-nav) .side-box,
    body:has(.mobile-nav) .center-box {
        width: 100%;
        display: none;
        margin-bottom: 20px;
    }

    /* Show boxes on other pages */
    .side-box,
    .center-box {
        width: 100%;
        margin-bottom: 20px;
    }

    .box.active {
        display: block;
    }

    /* Only show mobile nav on mobile */
    .mobile-nav {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin: 20px 0;
    }

    .button-container {
        flex-direction: column;
        align-items: center;
    }
}