body {
    font-family: Georgia, serif;
    background-image: url('https://priston.taleofconquest.com/images/bg1.png'); /* Replace with your image path */
    background-size: cover; /* Adjusts the image to cover the entire background */
    background-position: center; /* Centers the background image */
    background-repeat: no-repeat; /* Ensures the image doesn't repeat */
    background-attachment: fixed; /* Keeps the background fixed during scrolling */
    color: #e0e0e0; /* Light text color for contrast */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; /* Ensure the navbar is at the top, followed by the content */
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh; /* Ensure the content is vertically centered */
}

.container {
    max-width: 800px; /* Increased width for more content */
    width: 100%;
    padding: 24px;
    background: #1e1e1e; /* Darker background for containers */
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Darker shadow for contrast */
    box-sizing: border-box;
}

.container img {
    max-width: 100%; /* Ensures the image never exceeds the width of its container */
    height: auto; /* Maintains the aspect ratio of the image */
    display: block; /* Removes any extra spacing below the image */
    margin: 0 auto; /* Centers the image within the container */
}

h1, h2, h3 {
    text-align: center;
    color: #f4a300; /* Golden orange for headings */
}

h1, h2 {
    margin-bottom: 20px;
}

h3 {
    margin-bottom: 16px;
}

/* Global Link Styling */
a {
    color: #f4a300; /* Golden orange for links */
    text-decoration: none;
}

a:hover {
    color: #d98a00; /* Darker golden orange on hover */
    text-decoration: underline; /* Optional: underline on hover */
}


/* Center the form on the page */
form {
    width: 100%;
    max-width: 500px; /* Adjust width as needed */
    margin: 0 auto; /* Center the form horizontally */
    padding: 24px;
    background: #1e1e1e; /* Darker background for the form */
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Shadow for contrast */
    box-sizing: border-box;
}

/* Center the form elements */
.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
}

/* Style for labels */
.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #e0e0e0; /* Light text color for labels */
    text-align: center; /* Center the label text */
}

/* Style for input fields */
.form-group input {
    width: 100%;
    max-width: 400px; /* Adjust width as needed */
    padding: 10px;
    border: 1px solid #444; /* Dark border color */
    border-radius: 5px;
    background: #333; /* Dark background for inputs */
    color: #e0e0e0; /* Light text color for inputs */
    box-sizing: border-box;
}

/* Style for submit button */
.form-group button {
    width: 100%;
    max-width: 400px; /* Adjust width as needed */
    padding: 10px;
    background-color: #f4a300; /* Golden orange button background */
    border: none;
    color: #121212; /* Dark text color for buttons */
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    box-sizing: border-box;
}

.form-group button:hover {
    background-color: #d98a00; /* Darker golden orange on hover */
}

.message {
    text-align: center;
    margin: 20px 0;
}

.alert {
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

/* Alerts */
.alert-warning {
    background-color: #ff9800; /* Golden orange for warnings */
    color: #000; /* Dark text for better readability */
}

.alert-danger {
    background-color: #f44336; /* Red for danger alerts */
    color: #fff; /* Light text for readability */
}

.alert-info {
    background-color: #d9edf7; /* Light blue for info alerts */
    color: #31708f; /* Dark blue text for better readability */
    border: 1px solid #bce8f1; /* Light blue border */
}

.alert-success {
    background-color: #4caf50; /* Green for success alerts */
    color: #fff; /* Light text for readability */
}

/* Center the CAPTCHA widget */
.g-recaptcha {
    display: flex;
    justify-content: center;
}

/* Add margin to the notification area */
.notification {
    margin-top: 15px; /* Space above notifications */
    text-align: center;
}

/* Navigation Bar Styling */
.navbar {
    width: 100%; /* Full-width navbar */
    background-color: #1e1e1e; /* Dark background color for navbar */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Darker shadow for contrast */
    margin-bottom: 20px; /* Space below the navbar */
    padding: 10px 20px; /* Padding for a more spacious navbar */
    display: flex; /* Flexbox for horizontal layout */
    justify-content: space-between; /* Space between brand and links */
    align-items: center; /* Center the content vertically */
    box-sizing: border-box;
}

.navbar .navbar-brand {
    font-size: 24px;
    color: #f4a300; /* Golden orange for brand */
    text-decoration: none;
}

.navbar .navbar-nav {
    display: flex; /* Ensure nav items are laid out horizontally */
    gap: 5px; /* Space between the nav items */
    list-style-type: none; /* Remove default list bullets */
    padding-left: 0; /* Remove left padding from the list */
}

.navbar .navbar-nav .nav-item {
    margin-right: 5px; /* Adjust spacing between items */
    margin-left: 25px; /* Adjust spacing between items */
}

.navbar .navbar-nav .nav-item .nav-link {
    color: #e0e0e0; /* Light text color for nav links */
    font-size: 16px;
    padding: 10px;
    text-decoration: none;
}

.navbar .navbar-nav .nav-item .nav-link:hover {
    background-color: #333; /* Darker background color on hover */
    color: #f4a300; /* Golden orange hover color */
    border-radius: 5px;
}

/* Navbar Toggler for Mobile View */
.navbar-toggler {
    border: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: none; /* Remove default icon background */
}

.navbar-toggler {
    background-color: #f4a300; /* Golden orange background for toggler */
    border-radius: 5px; /* Rounded corners for toggler button */
}

.navbar-toggler-icon {
    background: url('data:image/svg+xml;charset=utf8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3e%3cpath stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M4 6h16M4 12h16M4 18h16"/%3e%3c/svg%3e') no-repeat center center; /* Custom toggler icon */
}

/* Ensure dropdown items are contained properly */
.dropdown-menu {
    background-color: #1e1e1e; /* Dark background for dropdown */
    border: none; /* Remove border */
}

.dropdown-item {
    color: #e0e0e0; /* Light text color */
    padding: 10px 20px; /* Spacing for dropdown items */
}

.dropdown-item:hover {
    background-color: #333; /* Darker background on hover */
    color: #f4a300; /* Golden orange text on hover */
}

/* Styling for mixList.php table (inherits from rankings-table) */
.mix-list-table, .rankings-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #1e1e1e; /* Darker background for the table */
}

.mix-list-table th, .mix-list-table td, .rankings-table th, .rankings-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #444; /* Dark border for table cells */
}

.mix-list-table th, .rankings-table th {
    background-color: #333; /* Dark background for headers */
    color: #f4a300; /* Golden orange text for headers */
}

.mix-list-table tr:nth-child(even), .rankings-table tr:nth-child(even) {
    background-color: #2c2c2c; /* Slightly lighter background for even rows */
}

.mix-list-table tr:hover, .rankings-table tr:hover {
    background-color: #333; /* Darker background on row hover */
}

/* Mobile View Adjustments */
@media (max-width: 600px) {
    .navbar {
        flex-direction: column; /* Stack items vertically on smaller screens */
        align-items: flex-start; /* Align items to the start */
    }

    .navbar .navbar-nav {
        flex-direction: column; /* Stack nav items vertically */
        gap: 10px; /* Adjust gap for vertical layout */
    }

    .navbar .navbar-nav .nav-item {
        margin-right: 0; /* Remove horizontal margin for stacked items */
    }

    .navbar .navbar-nav .nav-item .nav-link {
        font-size: 14px; /* Adjust font size for smaller screens */
    }
    
    .rankings-table {
        font-size: 14px; /* Adjust font size for better readability on smaller screens */
    }

    .rankings-table img {
        width: 24px; /* Adjust image size for smaller screens */
        height: 24px;
    }
    
    /* Make table scrollable on small screens */
    .rankings-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .rankings-table th, .rankings-table td {
        display: inline-block;
        vertical-align: top;
        text-align: left; /* Align text left for readability */
    }

    .rankings-table th {
        background-color: #333; /* Darker background for headers */
        color: #fff; /* White text for contrast */
    }

    .rankings-table tr:nth-child(even) {
        background-color: #2c2c2c; /* Slightly lighter background for even rows */
    }

    .rankings-table tr:hover {
        background-color: #333; /* Darker background on row hover */
    }
	
    .table {
        font-size: 14px; /* Smaller font size for readability on small screens */
    }
	
	.mix-list-table, .rankings-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .mix-list-table th, .mix-list-table td, .rankings-table th, .rankings-table td {
        display: inline-block;
        vertical-align: top;
        text-align: left; /* Align text left for readability */
    }

    .mix-list-table th, .rankings-table th {
        background-color: #333; /* Darker background for headers */
        color: #fff; /* White text for contrast */
    }

    .mix-list-table tr:nth-child(even), .rankings-table tr:nth-child(even) {
        background-color: #2c2c2c; /* Slightly lighter background for even rows */
    }

    .mix-list-table tr:hover, .rankings-table tr:hover {
        background-color: #333; /* Darker background on row hover */
    }
}

/* Footer Styling */
footer {
    /*background-color: #121212;*/ /* Dark background color for footer */
	background-color: transparent;
    color: #e0e0e0; /* Light text color for footer */
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    margin: 0 auto;
    width: 100%;
}

.footer-content p {
    margin: 0;
    font-size: 14px;
}

.footer-content a {
    color: #f4a300; /* Golden orange for footer links */
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* Table Styling */
.table {
    width: 100%; /* Full width */
    border-collapse: collapse; /* Collapse borders between cells */
    color: #e0e0e0; /* Light text color for table */
    background-color: #2c2c2c; /* Dark background color for table */
    border: 1px solid #444; /* Dark border color for table */
}

.table th, .table td {
    padding: 10px;
    border: 1px solid #444; /* Dark border color for table cells */
    text-align: left; /* Align text to the left for better readability */
}

.table th {
    background-color: #333; /* Darker background for table headers */
    color: #f4a300; /* Golden orange text color for headers */
}

.table tr:nth-child(even) {
    background-color: #2c2c2c; /* Slightly lighter background for even rows */
}

.table tr:hover {
    background-color: #333; /* Darker background on row hover */
}

/* Table styles */
.rankings-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #1e1e1e; /* Darker background for the table */
}

.rankings-table th, .rankings-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #444; /* Dark border for table cells */
}

.rankings-table th {
    background-color: #333; /* Dark background for headers */
    color: #f4a300; /* Golden orange text for headers */
}

.rankings-table tr:nth-child(even) {
    background-color: #2c2c2c; /* Slightly lighter background for even rows */
}

.rankings-table tr:hover {
    background-color: #333; /* Darker background on row hover */
}

.rankings-table img {
    width: 32px; /* Adjust image size */
    height: 32px;
}

/* Global Table Styling */
.table, .rankings-table {
    width: 100%; /* Full width */
    border-collapse: collapse; /* Collapse borders between cells */
    color: #e0e0e0; /* Light text color for table */
    background-color: #2c2c2c; /* Dark background color for table */
    border: 1px solid #444; /* Dark border color for table */
}

.table th, .table td, .rankings-table th, .rankings-table td {
    padding: 10px;
    border: 1px solid #444; /* Dark border color for table cells */
    text-align: center; /* Center text alignment for better readability */
}

.table th, .rankings-table th {
    background-color: #333; /* Darker background for table headers */
    color: #f4a300; /* Golden orange text color for headers */
}

.table tr:nth-child(even), .rankings-table tr:nth-child(even) {
    background-color: #2c2c2c; /* Slightly lighter background for even rows */
}

.table tr:hover, .rankings-table tr:hover {
    background-color: #333; /* Darker background on row hover */
}

/* Adjust image sizes in tables */
.table img, .rankings-table img {
    width: 32px; /* Adjust image size */
    height: 32px;
}

/* Social Media Links */
.social-media-links {
    text-align: center;
}

.social-media-link {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    transition: transform 0.3s ease;
}

.social-media-link:hover {
    transform: scale(1.15);
}

.social-media-icon {
    width: 100px;
    vertical-align: middle;
    transition: opacity 0.3s ease;
}

.discord-link .social-media-icon {
    content: url('../images/discord.png');
}

.discord-link:hover .social-media-icon {
    content: url('../images/discord_.png');
}

.facebook-link .social-media-icon {
    content: url('../images/facebook.png');
}

.facebook-link:hover .social-media-icon {
    content: url('../images/facebook_.png');
}

.social-media-text {
    font-size: 18px;
    margin-left: 10px;
}

.social-media-link:last-child {
    margin-right: 0;
}

.clan-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.clan-cell img {
    width: 32px;
    height: 32px;
}

.clan-name {
    font-size: 0.8em;
    text-align: center;
    margin-top: 4px;
    word-break: break-word;
}

.events-container {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Adjust the gap between the two columns */
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

.event {
    flex: 1; /* Allow the event items to take equal space */
    min-width: 300px; /* Set a minimum width for responsiveness */
    max-width: 48%; /* Max width for each event to allow two columns */
    box-sizing: border-box;
    margin-bottom: 20px; /* Space between the rows when wrapped */
}

.event-content {
    position: relative;
	top: -10%;
}

.event-banner {
    width: 50%;
    height: auto;
}

.clan-icon-overlay, .clan-icon {
    position: absolute;
    top: 75%;
    left: 60%;
    transform: translate(-50%, -50%);
    width: 48px; /* Set the size of the clan icon */
    height: 48px;
}

.clan-icon {
    position: absolute;
    top: 75%;
    left: 60%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
}

.clan-icon-img {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    object-fit: contain;
}

.clan-name-container {
    text-align: center;
    margin-top: 10px;
}

.clan-name-main {
    font-weight: bold;
    font-size: 18px;
    position: relative;
    top: -55px; /* Move up by 10px */
}


