/* General Reset */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    background: url('../background.png') no-repeat center center/cover;

}

.logo img {
    height: 50px;
}
/* ✅ Hide dropdown menu by default */
.dropdown-content {
    display: none; /* Hidden on page load */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(30, 30, 30, 0.95);
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(183, 0, 0, 0.3);
    z-index: 1000;
    border-radius: 5px;
    padding: 5px 0;
    flex-direction: column;
    white-space: nowrap;
    
    /* Prevent flickering */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* ✅ Ensure dropdown is always vertical */
.dropdown-content li {
    display: block;
    width: 100%;
}

/* ✅ Show dropdown only on hover */
.dropdown:hover .dropdown-content {
    display: flex;
    visibility: visible;
    opacity: 1;
    transform: translateY(0px);
}

/* ✅ Prevent duplicate dropdowns */
.dropdown {
    position: relative;
    display: inline-block;
}

/* ✅ Style dropdown links */
.dropdown-content li a {
    color: #e0e0e0;
    padding: 10px 15px;
    display: block;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease-in-out;
}

/* ✅ Hover effect */
.dropdown-content li a:hover {
    background-color: #1c1111;
    color: white;
}

/* ✅ Navbar Styling */
.navbar {
    background-color: rgba(37, 37, 37, 0.8);
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 97%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ✅ Remove extra spacing issues */
.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* ✅ Ensure parent list items behave correctly */
.navbar ul li {
    position: relative;
}

/* Ranking Button - Modified */
.dropbtn {
    display: inline-block;
    padding-right: 10px; /* Keep this for spacing */
    cursor: pointer; /* Indicate it's clickable */
    text-decoration: none; /* Remove underline if any */
    color: #e0e0e0; /* Match other link colors */
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

.dropbtn:hover {
    background-color: #1c1111;
    color: #fff;
}
/* ✅ Button Hover Effects */
.navbar ul li a {
    text-decoration: none;
    color: #e0e0e0;
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

.navbar ul li a:hover {
    background-color: #1c1111;
    color: #fff;
    box-shadow: 0px 8px 16px rgba(183, 0, 0, 0.3);
}

.login-btn {
    background: linear-gradient(90deg, #f5fc259e, #28272749);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
}

.login-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.register-btn {
    background: linear-gradient(90deg, #28272749, #f5fc259e);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;

}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Schedule Page Styling */
.schedule-page {
    padding: 30px;
    text-align: center;
    background-color: #1a1a1a;
    color: #e0e0e0;
}

/* Schedule Table Styling */
.schedule-table {
    width: 90%;
    margin: 20px auto;
    border-collapse: separate;
    border-spacing: 0;
    background: #2c2c2c;
    color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Header Row */
.schedule-table thead {
    background: linear-gradient(45deg, #b84424ce, #b1240bce);
    color: white;
    font-size: 1.3rem;
    text-transform: uppercase;
}

.schedule-table thead th {
    padding: 18px;
    font-weight: bold;
}

/* Table Body */
.schedule-table tbody tr {
    transition: background 0.3s ease;
}

/* Alternating Row Colors */
.schedule-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.schedule-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.1);
}

/* Table Cells */
.schedule-table th, .schedule-table td {
    padding: 15px;
    border: none;
    text-align: center;
    font-size: 1.1rem;
}

/* Hover Effect */
.schedule-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.01);
    transition: transform 0.3s ease, background 0.3s ease;
}

/* Rounded Borders for First & Last Row */
.schedule-table tr:first-child th:first-child {
    border-top-left-radius: 10px;
}
.schedule-table tr:first-child th:last-child {
    border-top-right-radius: 10px;
}
.schedule-table tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}
.schedule-table tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}



/* Footer Styling */
footer {
    background: linear-gradient(to top, #1a1a1a, #252525);
    color: #e0e0e0;
    padding: 20px 10px;
    text-align: center;
}

.footer-container {
    display:inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    align-items: flex-start;
    gap: 100px;
    max-width: 1200px;
    margin: auto;
    text-align:left;
}

.footer-section {
    flex: 1 1 30%;
    min-width: 200px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #6f7090c3, #46468ccb); /* Gold gradient */
    background-clip: text; /* Standard property for background clip */
    -webkit-background-clip: text; /* Vendor-prefixed property for older browsers */
    -webkit-text-fill-color: transparent; /* Ensure text shows gradient */
    color: transparent; /* Fallback for non-compatible browsers */
}



.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin: 5px 0;
}

.footer-section ul li a {
    text-decoration: none;
    color: #e0e0e0c2;
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    align-items: center;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-section ul li a .arrow {
    margin-left: 10px;
    font-size: 1rem;
    color: #aa9b5fce;
    transition: transform 0.3s ease;
}

.footer-section ul li a:hover {
    color: #aa9b5fce;
}

.footer-section ul li a:hover .arrow {
    transform: translateX(5px);
}

.social-icons {
    display: inline-flex;
    gap: 10px;
    justify-content: center;
}

.social-icon {
    display: inline-block;
    background: #333;
    padding: 10px;
    border-radius: 50%;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s, color 0.3s;
}

.social-icon:hover {
    background: #aa9b5fce;
    color: #fff;
}

/* Footer Icons and Styling */
.footer-section h3 img {
    width: 20px;
    vertical-align: middle;
    margin-right: 10px;
}

.footer-section ul li a {
    display: inline-flex;
    align-items: center;
    align-items: center;
    text-decoration: none;
    color: #9694a0c2;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-section ul li a .arrow-icon {
    width: 12px;
    height: 12px;
    margin-right: 10px;
    transition: none; /* Disable hover transitions */
}

.footer-section ul li a:hover .arrow-icon {
    transform: none; /* Prevent hover movement */
}


.footer-divider {
    border-top: 1px solid #444;
    margin: 20px 0;
}

.footer-bottom {
    text-align: center;
    color: #9d92b1;
    font-size: 0.9rem;
}

.footer-bottom .social-icons {
    margin-top: 10px;
    display: inline-flex;
    justify-content: center;
    gap: 15px;
}

.footer-bottom .social-icons .social-icon img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-bottom .social-icons .social-icon img:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap'); /* A modern sans-serif font */
@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap'); /* A playful, expressive font */

.castle-owner {
    font-size: 18px; /* Set font size for the castle owner */
    font-weight: bold; /* Make it stand out */
    color: #c5b5b1; /* Orange-Red color */
    text-transform: uppercase; /* Make it look more official */
    letter-spacing: 1px; /* Slight spacing for readability */
}

/* Features Section */
.features-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.features-section h1 {
    font-size: 2.5rem;
    color: #b3b3b3;
    margin-bottom: 20px;
}

.features-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Features List */
.feature-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.feature-list li {
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-list li strong {
    color: #b3b3b3;
}

/* Feature Icons */
.feature-icon {
    width: 40px;
    height: 40px;
    filter: brightness(0.9);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.feature-list li:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.1);
}

.feature-list li:hover .feature-icon {
    transform: scale(1.1);
    filter: brightness(1.2);
}
/* Downloads Section Styling */
.downloads-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.downloads-section h1 {
    font-size: 2.5rem;
    color: #b3b3b3;
    margin-bottom: 20px;
}

.downloads-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Downloads Table */
.downloads-table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
    background: #252525;
    color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.downloads-table th, .downloads-table td {
    padding: 15px;
    border: 1px solid #444;
    text-align: center;
    font-size: 1.1rem;
}

.downloads-table thead {
    background: #a58c28ce;
    color: white;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.downloads-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

/* Download Icon */
.download-icon {
    width: 50px;
    height: 50px;
}

/* Download Button */
.download-btn {
    display: inline-block;
    padding: 10px 15px;
    background: #aa9b5fce;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #b1900bce;
}
.top-players-section {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 20px;
            animation: fadeIn 1s ease-in-out; /* Added animation */
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        .top-player {
            text-align: center;
            background: #222;
            padding: 15px;
            border-radius: 10px;
            box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
            width: 150px;
            font-family: 'Lato', sans-serif; /* New font */
            animation: cardScale 0.5s ease-in-out; /* Added animation */
        }
        @keyframes cardScale {
            0% { transform: scale(0.9); }
            100% { transform: scale(1); }
        }
        .top-player img {
            width: 100%;
            height: auto;
            border-radius: 5px;
            transition: transform 0.3s ease; /* Added transition */
        }
        .top-player:hover img {
            transform: scale(1.1); /* Added hover effect */
        }
.top-player p {
    margin: 5px 0;
    color: white;
}
#top-players-table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: #2c2c2c;
    color: #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
#top-players-table th, #top-players-table td {
            padding: 15px;
            border: 1px solid #444;
            text-align: center;
            font-size: 1.1rem;
            font-family: 'Lato', sans-serif; /* New font */
        }
        #top-players-table td {
            color: #eee; /* Lighter text color */
        }
        #top-players-table th {
            font-weight: bold;
        }
#top-players-table th {
            background-color: #a58c28ce;
            color: white;
            font-size: 1.2rem;
            text-transform: uppercase;
            font-family: 'Lato', sans-serif; /* New font */
        }
.container h2 {
                font-size: 2rem;
                color: #e0e0e0; /* Lighter color */
                font-family: 'Lato', sans-serif; /* New font */
                margin-bottom: 20px;
                text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add a subtle shadow */
            }
            .top-player p {
                font-family: 'Lato', sans-serif; /* New font */
                color: #b3b3b3; /* Lighter color */
            }
    #top-players-table tbody tr:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    .experience-bar-container {
display: flex;
justify-content: center;
align-items: center;
}

.experience-bar {
width: 150px;
height: 20px;
background-color: rgb(40, 35, 36); /* Dark background */
position: relative;
overflow: hidden;
border-radius: 5px;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
}

/* Removes inner border effect */
.experience-fill {
background-color: #cdb205;
width: 0%;
height: 100%;
position: absolute;
left: 0;
transition: width 0.5s ease-in-out;
border-radius: 5px; /* Ensures smooth corners */
}

/* Centers text within the bar */
.experience-percentage {
position: absolute;
width: 100%;
text-align: center;
color: #eee; /* Dark text for contrast */
font-size: 14px;
font-weight: bold;
z-index: 1; /* Keeps text above the fill */
}
.faq-container {
    width: 80%;
    margin: 40px auto;
    padding: 20px;
    background: #2c2c2c;
    border-radius: 10px;
    color: #e0e0e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.faq-container h1 {
    text-align: center;
    font-size: 2rem;
    color: #a29c83;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.faq-section, .features-section, .rules-section {
    margin-top: 30px;
    padding: 20px;
    background: #333;
    border-radius: 8px;
}

.faq-section h2, .features-section h2, .rules-section h2 {
    color: #d0cfc8;
    font-size: 1.8rem;
    border-bottom: 2px solid #710404;
    padding-bottom: 10px;
}

.faq-item, .rule-item {
    margin-top: 15px;
    padding: 10px;
    border-left: 5px solid #710404;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.faq-item h3, .rule-item h3 {
    font-size: 1.3rem;
    color: #fff;
}

.faq-item p, .rule-item p {
    font-size: 1rem;
    color: #ccc;
}

.rule-item ul {
    padding-left: 20px;
}

.rule-item ul li {
    font-size: 1rem;
    color: #ccc;
    list-style: inside square;
}
.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    width: 45%;
    font-size: 1rem;
    color: #e0e0e0;
    list-style: none;
}

.feature-list li strong {
    margin-left: 5px;
    color: #ccc5c5fa;
}


.feature-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}
/* FAQ Section */
.faq-section {
    text-align: center;
    padding: 20px;
}

.faq-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.faq-list li {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin: 5px 0;
    color: #e0e0e0;
}