/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #0a0a0a;
    background-image: url('https://placeholder.svg?height=1080&width=1920&text=PUBG+Rules+Background');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    width: 90%; /* Changed from max-width: 1200px */
    max-width: 90%; /* Added to ensure container doesn't get too wide on large screens */
    margin: 0 auto;
    padding: 2%; /* Changed from 20px to percentage */
    background-color: rgba(10, 10, 10, 0.95);
    border-radius: 15px;
    border: 1px solid rgba(255, 204, 0, 0.2);
}
/* Media queries for different screen sizes */
@media (min-width: 1400px) {
    .container, .onPosterText {
        width: 70%;
        max-width: 70%;
    }
}

@media (max-width: 768px) {
    .container, .onPosterText {
        width: 95%;
        max-width: 95%;
        padding: 4%;
    }
}

@media (max-width: 480px) {
    .container, .onPosterText {
        width: 98%;
        max-width: 98%;
        padding: 5%;
    }
}


.headerContainer {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 20px; */
}

/* Header styles */
header {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    /* position: sticky; */
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.logo img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.logo h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    color: #ffcc00;
    text-transform: uppercase;
    margin: 0;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: -120px;
    right: 20px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.4s;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul li {
    margin: 0 15px;
    display: inline-flex;
    align-items: center;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffcc00;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1a1a1a;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    right: 0;
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #ffffff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    background-color: #1a1a1a;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #303030;
}

/* Existing CSS remains the same, add these additional styles */
@media (max-width: 768px) {
    nav {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgba(0, 0, 0, 0.9);
        padding: 20px 0;
        animation: slowDropDown 0.5s ease-out;
        transform-origin: top center;
    }

    @keyframes slowDropDown {
        0% {
            opacity: 0;
            transform: scaleY(0);
        }

        100% {
            opacity: 1;
            transform: scaleY(1);
        }
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    .dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .logo {
        flex-direction: column;
        text-align: center;
    }

    .logo img {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgba(0, 0, 0, 0.9);
        padding: 20px 0;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .dropdown {
        position: static;
        width: 100%;
    }

    .dropdown-content {
        position: static;
        display: none;
        background-color: rgba(30, 30, 30, 0.9);
        width: 100%;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        text-align: center;
        background-color: transparent;
    }

    .hero-section h2 {
        font-size: 2rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Add these to your existing CSS file */
.auth-section {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.login-btn,
.signupbutton .cta-button {
    display: inline-block;
    background-color: #ffcc00;
    color: #0a0a0a;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    font-size: 16px;
    border: none;
    cursor: pointer;
    min-width: 120px;
    height: 45px;
    line-height: 21px;
}

.login-btn:hover,
.signupbutton .cta-button:hover {
    background-color: #ffd633;
}

/* Ensure consistent alignment in the navbar */
.auth-container,
.signupbutton {
    display: flex;
    align-items: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .login-btn,
    .signupbutton .cta-button {
        width: 120px;
        padding: 12px 20px;
        text-align: center;
    }
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

#profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .auth-section {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 10px;
    }

    .login-btn,
    .logout-btn {
        width: 100%;
        padding: 12px;
    }
}

/* Existing CSS remains the same, add these styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-container {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.login-btn {
    background-color: #ffcc00;
    color: #0a0a0a;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

#profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

#profile-info {
    cursor: pointer !important;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    .auth-container {
        margin-left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }

    .login-btn,
    .logout-btn {
        width: auto;
        padding: 12px;
    }

    .profile-section {
        flex-direction: column;
        align-items: center;
    }
}

.logout-btn {
    font-size: 25px;
    cursor: pointer;
}

/* Footer styles */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
}

.social-links {
    margin-top: 10px;
}

.social-links a {
    color: #ffffff;
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
}

.title {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: #ffcc00;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: #ffffff;
}

/* Main content styles */
main {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

section {
    margin-bottom: 2rem;
    border-bottom: 1px solid #ffcc00;
    padding-bottom: 1rem;
}

section:last-child {
    border-bottom: none;
}

h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #ffcc00;
    margin-bottom: 1rem;
}

ul {
    list-style-type: none;
}

li {
    margin-bottom: 0.5rem;
    position: relative;
    list-style: disc;
}

/* Footer styles */
footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background-color: #0a0a0a;
    border-radius: 10px;
}

/* Responsive design */
@media (max-width: 600px) {

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    main {
        padding: 1rem;
    }
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #ffcc00;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffd633;
}

.cta-button {
    display: inline-block;
    background-color: #ffcc00;
    color: #0a0a0a;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #ffd633;
    color: black;
}