body {
    margin: 0;
    padding: 0;
    font-family: 'Rubik', sans-serif;
    background-color: #0e0e0e;
    color: #e0e0e0;
}

.banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    height: 60px;
}

.banner-left {
    display: flex;
    align-items: center;
}

.logo {
    width: 40px;
    height: auto;
    margin-right: 10px;
}

.banner-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.header-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-menu li {
    display: inline;
}

.header-menu a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    transition: color 0.2s ease;
}

.header-menu a.active {
    color: #ffffff;
}

.header-menu a:hover {
    color: #ffffff;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px 20px;
    text-align: center;
}

h1 {
    font-size: 32px;
    margin-bottom: 10px;
    margin-top: -15px;
    font-weight: 600;
    position: relative;
    padding-top: 15px;
}

.container p {
    font-size: 18px;
    color: #b0b0b0;
    margin: 5px 0;
}

p.cursive {
    font-family: 'Rubik', sans-serif;
    font-style: italic;
}

.steam-login-button {
    display: block;
    width: 100%;
    padding: 12px 0;
    margin-top: 15px;
    background-color: #ff9923;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.steam-login-button:hover {
    background-color: #e5881c;
}

.logout-button {
    display: block;
    width: 100%;
    padding: 12px 0;
    margin-top: 15px;
    margin-left: 0;
    background-color: #d32f2f;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.logout-button:hover {
    background-color: #b71c1c;
}

.user-container {
    max-width: 560px;
    height: 150px;
    margin: 0 auto;
    padding: 10px 20px;
    background-color: #121212;
    border-radius: 4px;
    position: relative;
    border-top: 2px solid #ff9923;
}

.user-info {
    position: absolute;
    top: 10px;
    left: 20px;
    text-align: left;
}

.welcome-text {
    font-size: 18px;
    color: #e0e0e0;
    margin: 0;
    margin-bottom: -5px;
}

.steam-id {
    font-size: 18px;
    color: #b0b0b0;
    margin: 5px 0;
}

.points-info {
    position: absolute;
    bottom: 10px;
    left: 20px;
    text-align: left;
}

.points-label {
    font-size: 18px;
    color: #b0b0b0;
    margin: 0;
    margin-bottom: -5px;
}

.points-value {
    font-size: 44px;
    color: #e0e0e0;
    margin: 2px 0;
}

.rank-info {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.profile-picture {
    width: 100px;
    height: 100px;
    margin-bottom: 5px;
    transition: transform 0.2s ease;
}

.profile-picture:hover {
    transform: scale(1.05);
}

.rank-text {
    font-size: 16px;
    color: #e0e0e0;
    margin: 0;
}

.rank-text.low-rank {
    opacity: 0.6;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    padding: 10px 20px;
}

.stat-card {
    flex: 1;
    max-width: 180px;
    height: 150px;
    background-color: #121212;
    border-radius: 4px;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.stat-header {
    font-size: 16px;
    color: #e0e0e0;
    margin: 0;
    text-align: center;
}

.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-item-image {
    width: 60px;
    height: 60px;
    margin-bottom: 2px;
}

.stat-item-name {
    font-size: 14px;
    color: #b0b0b0;
    margin: 0;
    text-align: center;
}

.item-cost-background {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #0e0e0e;
    padding: 2px 6px;
    border-radius: 4px;
}

.item-cost {
    font-size: 14px;
    color: #e0e0e0;
}

.points-spent {
    font-size: 24px;
    color: #e0e0e0;
    margin: 0;
    text-align: center;
}

.active-status {
    font-size: 24px;
    margin: 0;
    text-align: center;
}

.active-status.active-status-yes {
    color: #008000;
}

.active-status.active-status-no {
    color: #FF0000;
}

.store-header {
    font-size: 32px;
    color: #e0e0e0;
    text-align: center;
    margin: 20px 0 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.store-container {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    max-width: 1380px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.item-card {
    flex: 0 0 220px;
    max-width: 220px;
    height: 270px;
    background-color: #121212;
    border-radius: 4px;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.2s ease;
    border-top: 2px solid #ff9923;
}

.item-card:hover {
    transform: scale(1.05);
}

.item-content {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.card-item-image {
    width: 100px;
    height: 100px;
    margin-bottom: 25px;
}

.card-item-name {
    font-size: 18px;
    color: #b0b0b0;
    margin: 0;
    text-align: center;
}

.item-description {
    font-size: 12px;
    color: #b0b0b0;
    margin: 0;
    margin-top: 5px;
    text-align: center;
}

.item-stock {
    font-size: 12px;
    color: #b0b0b0;
    margin: 0;
    position: absolute;
    bottom: 65px;
    text-align: center;
}

.stock-number {
    font-size: 14px;
}

.buy-button {
    width: 90%;
    padding: 8px 0;
    background-color: transparent;
    border: 2px solid #ff9923;
    color: #ffffff;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    position: absolute;
    bottom: 10px;
}

.buy-button:hover {
    background-color: #e5881c;
    border-color: #e5881c;
    color: #ffffff;
}

.footer {
    text-align: center;
    padding: 20px 0;
    background-color: #0e0e0e;
    margin-top: 50px;
    border-top: 2px solid #ff9923;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.footer-link {
    font-size: 18px;
    color: #ff9923;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #e5881c;
}

.footer-copyright {
    font-size: 14px;
    color: #b0b0b0;
    margin: 0;
}

/* Popup styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-container {
    background-color: #121212;
    padding: 20px;
    border-radius: 4px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    border-top: 2px solid #ff9923;
}

.popup-header {
    font-size: 24px;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.popup-message {
    font-size: 16px;
    color: #b0b0b0;
    margin-bottom: 20px;
}

.success-message {
    color: #008000;
}

.error-message {
    color: #FF0000;
}

.popup-close-button {
    width: 100%;
    padding: 10px;
    background-color: #d32f2f;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.popup-close-button:hover {
    background-color: #b71c1c;
}

.popup-buttons {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.popup-yes-button {
    flex: 1;
    padding: 10px;
    background-color: #ff9923;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 85%;
}

.popup-yes-button:hover {
    background-color: #e5881c;
}

.popup-no-button {
    flex: 1;
    padding: 10px;
    background-color: #d32f2f;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.popup-no-button:hover {
    background-color: #b71c1c;
}

.not-logged-in-popup {
    position: absolute;
    background-color: #121212;
    color: #b0b0b0;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1001;
    transform: translateX(-50%);
    border-top: 2px solid #ff9923;
    width: 60%;
}

/* Admin styles */
.transactions-table, .items-table {
    width: 75%;
    border-collapse: collapse;
    margin: 20px auto; /* Changed to auto for centering */
    background-color: #121212;
    color: #e0e0e0;
    border-top: 2px solid #ff9923;
}

.transactions-table th, .items-table th {
    background-color: #121212;
    padding: 10px;
    color: #e0e0e0;
    border-bottom: 1px solid #444;
    text-align: center;
}

.transactions-table td, .items-table td {
    padding: 10px;
    border-bottom: 1px solid #444;
    color: #b0b0b0;
}

.transactions-table tr.paid-out {
    background-color: #1a1a1a;
    opacity: 0.6;
}

.stock-input {
    width: 80px;
    padding: 5px;
    border: 1px solid #b0b0b0;
    border-radius: 4px;
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.save-stock-button {
    padding: 5px 10px;
    background-color: transparent;
    border: 2px solid #ff9923;
    color: #ffffff;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.save-stock-button:hover {
    background-color: #e5881c;
    border-color: #e5881c;
}

#password-input {
    padding: 8px;
    margin: 10px 0;
    width: 80%;
    border: 1px solid #b0b0b0;
    border-radius: 4px;
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.popup-feedback .popup-container {
    max-width: 200px;
    width: auto;
    padding: 10px;
}

.admin-content {
    text-align: center; /* Center all content within admin-content */
}

.recent-transactions, .items-management {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center sections */
}

.transactions-table td.active-status {
    text-align: center;
}