body {
    font-family: 'Rajdhani', Arial, sans-serif;
    background-color: #f5f6fa;
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.9);

    background-color: #22262e;

    /* Background image */
    background-image: url('https://deadswitchcombat.com/wp-content/uploads/2024/12/splash.png');
    background-size: cover;
    /* Makes image cover whole screen */
    background-position: center;
    /* Centers the image */
    background-repeat: no-repeat;
    /* Prevent tiling */
    background-attachment: fixed;
    /* Optional: keeps image fixed on scroll */
}

h1 {
    text-align: center;
    margin: 0;
    letter-spacing: 0.05em;
}

h2 {
    text-align: center;
    margin: 0;
}

h4 {
    text-align: center;
    margin-bottom: 0;
    text-transform: uppercase;
    opacity: 0.3;
    letter-spacing: 0.1em;
}

hr {
    border: none;
    height: 1px;
    background-color: #FFFFFF33;
    margin: 10px 0;
}

a {
    color: #E7AF23;
    text-decoration: none;
    transition: all 0.1s ease;
    font-weight: bold;
}

a:hover {
    opacity: 1;
    color: white;
}

#loginForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 500px;
    max-width: 40vw;
    min-height: 300px;
    padding: 20px;
    background: #101217bd;
    box-shadow: 0 32px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 24px;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    justify-content: center;
    align-items: center;
    text-align: center;

    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#loginForm input {
    font-family: 'Rajdhani', Arial, sans-serif;
    width: 90%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 20px;
    color: white;
    background-color: transparent;
    letter-spacing: 0.03em;
    font-weight: 500;
}

#loginForm button {
    font-family: 'Rajdhani', Arial, sans-serif;
    width: 50%;
    padding: 10px;
    margin-top: 10px;
    background: #E7AF23;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    border: none;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.1s ease;
    letter-spacing: 0.05em;
    box-shadow: 0px 12px 12px rgba(0, 0, 0, 0.3);
}

#loginForm button:hover {
    color: black;
    background: white;
    transform: scale(1.05);
}

#forgotPasswordForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 500px;
    max-width: 40vw;
    min-height: 150px;
    padding: 20px;
    background: #101217bd;
    box-shadow: 0 32px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 24px;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    justify-content: center;
    align-items: center;
    text-align: center;

    animation: fadeIn 0.3s forwards;
}

#forgotPasswordForm input {
    font-family: 'Rajdhani', Arial, sans-serif;
    width: 90%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 20px;
    color: white;
    background-color: transparent;
    letter-spacing: 0.03em;
    font-weight: 500;
}

#forgotPasswordForm button {
    font-family: 'Rajdhani', Arial, sans-serif;
    width: 50%;
    padding: 10px;
    margin-top: 10px;
    background: #E7AF23;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.1s ease;
    letter-spacing: 0.05em;
    box-shadow: 0px 12px 12px rgba(0, 0, 0, 0.3);
}

#forgotPasswordForm button:hover {
    color: black;
    background: white;
    transform: scale(1.05);
}

.forgotPasswordButton {
    cursor: pointer;
    font-weight: bold;
    color: white;
    transition: color 0.1s ease;
    font-weight: 500;
    letter-spacing: 0.06em;
    font-size: 16px;
    opacity: 0.3;
    transition: all 0.1s ease;
    margin-top: 10px;
}

.forgotPasswordButton:hover {
    opacity: 1;
}

#accountInfo {
    display: flex;
    flex-direction: column;
    max-width: 80vw;
    max-height: 75vh;
    margin: 10px auto;
    padding: 20px;
    background: #101217bd;
    box-shadow: 0 32px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;

    animation: fadeIn 0.3s forwards;
}

#status {
    bottom: 0;
    text-align: center;
    font-weight: bold;
    color: #FF5F5F;
    font-size: 20px;
}

#accountInfo {
    display: none;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    background: #f9f9f9;
    padding: 10px;
}

/* Shop styling */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 0 20px 20px;
    margin-top: 10px;
}

.shop-item {
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    text-align: center;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.1s ease;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.shop-item:hover {
    transform: scale(1.05);
    border: 1px solid #FFFFFF33;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 12px rgba(0, 0, 0, 0.5);
}

.shop-item img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    /* Don't exceed container width */
    max-height: 100px;
    /* Limit height */
    height: auto;
    /* Maintain aspect ratio */
    object-fit: contain;
    /* Keep full image visible */
    padding-bottom: 10px;
}

.shop-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.shop-item .price {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 20px;
    color: #0070ba;
}

.shop-item>div[id^="paypal-button-"] {
    margin-top: auto;
}

#playerName {
    color: yellow;
}

#pageFooter {
    width: 100%;
    text-align: center;
    background-color: #00000033;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    position: fixed;
    bottom: 0;
    left: 0;
    gap: 0;
    padding-bottom: 5px;
}

#shopContainer {
    max-height: 55vh;
    /* adjust to your desired height */
    overflow-y: auto;
    /* vertical scrollbar when content exceeds height */
    padding: 10px;
    width: 100%;
}

/* Optional: style the scrollbar */
#shopContainer::-webkit-scrollbar {
    width: 4px;
}

#shopContainer::-webkit-scrollbar-thumb {
    background-color: white;
}

#shopContainer::-webkit-scrollbar-track {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
}

.modal img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    /* Don't exceed container width */
    max-height: 200px;
    /* Limit height */
    height: auto;
    /* Maintain aspect ratio */
    object-fit: contain;
    /* Keep full image visible */
    padding-bottom: 10px;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background-color: #22262e;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 50vw;
    text-align: center;
    color: white;
    box-shadow: 0px 32px 32px rgba(0, 0, 0, 0.5);

    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;

    font-size: 24px;
}

.close {
    position: absolute;
    top: 0;
    right: 0;
    color: white;
    font-size: 50px;
    cursor: pointer;
    opacity: 0.3;
    transition: all 0.1s ease;
}

.close:hover {
    opacity: 1;
}

.accountHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 50vw;
    max-width: 80vw;
    margin: 0 auto 20px auto;
    padding: 10px 20px;
    gap: 10px;
    background-color: #101217bd;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.logoutButton {
    cursor: pointer;
    font-weight: bold;
    color: white;
    transition: color 0.1s ease;
    font-weight: normal;
    letter-spacing: 0.03em;
    opacity: 0.3;
    transition: all 0.1s ease;
}

.logoutButton:hover {
    opacity: 1;
}

#profileInfo {
    font-weight: bold;
    color: #5FBFFF;
    font-size: 32px;

    display: flex;
    align-items: center;
    /* vertical centering */
    justify-content: center;
    /* optional, horizontal centering */
    gap: 8px;
    /* optional, spacing between image and text */
}

#profileInfo img {
    object-fit: cover;
    height: 40px;
    width: 40px;
}