/* General styles for body and layout */
body {
    background: url('images/background.webp') no-repeat center center fixed;
    background-size: cover;
    color: white;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100vh;
}

/* Top bar styles */
.top-bar {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.top-bar .stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-weight: bold;
}

.top-bar .stats img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.top-bar .stats .label {
    color: skyblue;
}

.top-bar .stats .value {
    color: lightgreen;
}

.top-bar .stats .max-rank {
    color: red;
}

.top-bar .logout {
    position: absolute;
    right: 10px;
    top: 10px;
}

/* Sidebar styles */
.left-column {
    background: rgba(0, 0, 0, 0.7); /* Match the top bar */
    padding: 20px;
    width: 200px;
    position: fixed;
    top: 50px; /* Adjusted for the height of the top bar */
    bottom: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    z-index: 900;
    border-right: 1px solid #aaa; /* Add a border to the right for separation */
}

.left-column .logo-text {
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
    font-family: 'Cinzel', serif;
    color: #aaa;
}

.left-column h3 {
    color: skyblue;
    margin-top: 20px;
}

.left-column ul {
    list-style: none;
    padding: 0;
}

.left-column ul li {
    margin-bottom: 10px;
}

.left-column ul li a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7); /* Match the top bar */
    padding: 5px; /* Adjusted padding */
    margin: 5px 0;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.left-column ul li a:hover {
    background-color: #555; /* Match the hover color of the top bar */
}

.left-column .sidebar-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px; /* Adjust spacing between icon and text */
    vertical-align: middle;
}

/* Main content styles */
.main-content {
    margin-left: 240px; /* Adjusted margin to accommodate sidebar */
    padding: 20px;
    flex: 1;
    background: transparent; /* Make the background transparent */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    margin-top: 60px; /* Adjusted for the top bar */
    margin-bottom: 100px; /* Ensure content doesn't overlap with the footer */
}

/* Profile card styles */
.profile-card {
    background: rgba(0, 0, 0, 0.8);
    color: lightgreen;
    border: 1px solid #444;
    padding: 20px;
    margin: 10px 0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.profile-card p {
    margin: 5px 0;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th,
table td {
    border: 1px solid #444;
    padding: 10px;
    text-align: left;
}

table th {
    background: rgba(0, 0, 0, 0.8);
    color: skyblue;
}

table td {
    background: rgba(0, 0, 0, 0.6);
    color: lightgreen;
}

/* Forum styles */
.forum-container {
    background: rgba(0, 0, 0, 0.7);
    color: skyblue;
    border: 1px solid silver;
    padding: 20px;
    margin: 10px 0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.forum-container h3 {
    color: skyblue;
}

.forum-thread, .forum-post {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    margin: 10px 0;
    border-radius: 10px;
}

.forum-thread h3, .forum-post h3 {
    color: skyblue;
}

.forum-thread p, .forum-post p {
    color: lightgrey;
}

.forum-thread a, .forum-post a {
    color: skyblue;
    text-decoration: none;
}

.forum-thread a:hover, .forum-post a:hover {
    text-decoration: underline;
}

.username {
    color: white;
}

/* Footer styles */
footer {
    background: rgba(0, 0, 0, 0); /* Make the background transparent */
    padding: 10px;
    text-align: center;
    box-shadow: none; /* Remove box-shadow */
    width: 100%;
    position: fixed;
    bottom: 0;
    z-index: 1000;
    pointer-events: none; /* Make the footer itself click-through */
}

footer h3,
footer div,
footer a {
    pointer-events: auto; /* Allow clicking on the text and links inside the footer */
}

footer h3 {
    color: skyblue;
}

footer a {
    color: lightgreen;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer div {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

footer div a {
    margin-right: 10px;
}

footer div a:last-child {
    margin-right: 0;
}

/* Form styles */
form {
    margin: 20px 0;
}

form label {
    display: block;
    color: skyblue;
    margin-bottom: 5px;
}

form input[type="text"],
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: lightgreen;
}

form button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: darkred;
    color: white;
    cursor: pointer;
}

form button:hover {
    background: red;
}

/* Custom scrollbar styles */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #444;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-height: 80%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 10px;
    overflow-y: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    color: lightgreen;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

/* Store styles */
.store-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 20px;
}

.store-box {
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.store-box h3 {
    text-align: center;
    color: #00e676;
}

.store-table {
    width: 100%;
    border-collapse: collapse;
}

.store-table th, .store-table td {
    border: 1px solid #333;
    padding: 8px;
    text-align: left;
    color: #e0e0e0;
}

.store-table th {
    background-color: #333;
    color: #00e676;
}

.store-table a {
    color: #00e676;
    text-decoration: none;
}

.store-table a:hover {
    text-decoration: underline;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border: 2px solid #00e676;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup h3 {
    color: #00e676;
}

.popup p {
    color: #e0e0e0;
}

.popup button {
    background-color: darkred;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.popup button:hover {
    background-color: red;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

.action-buttons button {
    background-color: darkred;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.action-buttons button:hover {
    background-color: red;
}

.action-buttons .view-perks {
    background-color: darkblue;
}

.action-buttons .view-perks:hover {
    background-color: blue;
}

.credits-box {
    background-color: #333;
    color: #00e676;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2em;
}

/* Responsive styles */
@media (max-width: 768px) {
    .left-column {
        width: 100%;
        position: static;
        border-right: none;
        border-bottom: 1px solid #aaa;
        box-shadow: none;
    }

    .main-content {
        margin-left: 0;
        margin-top: 0;
    }

    .store-container {
        flex-direction: column;
        align-items: center;
    }

    .store-box {
        width: 90%;
        max-width: 100%;
    }

    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .action-buttons button {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* Card styles */
.card {
    width: 71px;
    height: 96px;
    display: inline-block;
    background-image: url("cards.png");
}

/* suits */
.card.clubs { background-position-y: -2px; }
.card.hearts { background-position-y: -100px; }
.card.spades { background-position-y: -198px; }
.card.diamonds { background-position-y: -296px; }
.card.backs { background-position-y: -394px; }

/* numbers */
.card.card-A, .card.ace, .card.blue { background-position-x: -2px; }
.card.card-2, .card.two, .card.red { background-position-x: -75px; }
.card.card-3, .card.three { background-position-x: -148px; }
.card.card-4, .card.four { background-position-x: -221px; }
.card.card-5, .card.five { background-position-x: -294px; }
.card.card-6, .card.six { background-position-x: -367px; }
.card.card-7, .card.seven { background-position-x: -440px; }
.card.card-8, .card.eight { background-position-x: -513px; }
.card.card-9, .card.nine { background-position-x: -586px; }
.card.card-10, .card.ten { background-position-x: -659px; }
.card.card-J, .card.jack { background-position-x: -732px; }
.card.card-Q, .card.queen { background-position-x: -805px; }
.card.card-K, .card.king { background-position-x: -878px; }

.roulette-red {
    background-color: red !important;
    color: white !important;
}
.roulette-red::placeholder {
    color: white;
}
.roulette-black {
    background-color: black !important;
    color: white !important;
}
.roulette-black::placeholder {
    color: white;
}
