﻿

/* General site-wide styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles (shared) */
.page-header {
    background-color: #34495e;
    color: white;
    padding: 1rem 2rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.site-name {
    font-size: 1.5rem;
    font-weight: bold;
}

.user-info a {
    color: white;
    text-decoration: none;
    margin-left: 1rem;
}

.main-nav {
    text-align: center;
}

    .main-nav a {
        color: white;
        text-decoration: none;
        margin: 0 1.5rem;
        font-weight: bold;
    }

/* Footer Styles (shared) */
.page-footer {
    background-color: #34495e;
    color: white;
    text-align: center;
    padding: 1rem;
}

/* Three-column layout specific to the detail page */
.detail-page .content-container {
    display: flex;
}

.detail-page .left-section,
.detail-page .center-section,
.detail-page .right-section {
    padding: 1.5rem;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

.detail-page .left-section {
    flex: 1;
}

.detail-page .center-section {
    flex: 2;
}

.detail-page .right-section {
    flex: 1;
}

/* Home page content styles */
.home-content {
    padding: 2rem;
}

/* Responsive Design for smaller screens (Applies to all pages with .content-container) */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .main-nav {
        text-align: left;
    }

        .main-nav a {
            display: block;
            margin: 0.5rem 0;
        }

    .content-container {
        flex-direction: column;
    }
}

.login-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top:20px;
    align-items: center;
    background-image: linear-gradient(#F1F1F1, #2c3e50);
}

.login-box {
    width: 450px;
    max-width: 90%;
    text-align: center;
    margin: 0px;
}

    .login-box img {
        max-height: 90px;
        max-width: 100%;
    }

.login-form {
    padding: 20px;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 0 5px #fff;
}

    .login-form form {
        margin-top: 10px;
    }


.updated-row {
    background-color: #fff9c4; /* light yellow */
    transition: background-color 0.5s ease;
}

.btn-sell {
    color: black !important;
    background-color: #faa9ba;
    font-family: Arial, Helvetica, sans-serif;
    border-color: #faa9ba;
    padding: 4px;
    line-height: inherit;
    width: 75px;
    font-size: 12px;
    font-weight: 700;
}

    .btn-sell:hover {
        background-color: #e8c11c !important;
    }

    .btn-sell:focus {
        background-color: #dbb100 !important;
    }

.btn-buy {
    color: black !important;
    background-color: #72bbef;
    font-family: Arial, Helvetica, sans-serif;
    border-color: #72bbef;
    padding: 4px;
    line-height: inherit;
    width: 75px;
    font-size: 12px;
    font-weight: 700;
}

    .btn-buy:hover {
        background-color: #e8c11c !important;
    }

    .btn-buy:focus {
        background-color: #e8c11c !important;
    }


.table {
    color: #334050;
}

    .table .key-icon::before {
        height: 30px !important;
        top: -5px;
        width: 30px !important;
    }

    .table:not(.market-table) td {
        padding: 1.1rem;
    }

@media screen and (min-width: 991px) {
    .table:not(.market-table) td {
        padding: 1.1rem 0.5rem;
    }
}

.table-no-wrap-th-and-td th {
    white-space: nowrap !important;
}

.table-no-wrap-th-and-td td {
    white-space: nowrap !important;
}

.market-table {
    display: table !important;
    margin-bottom: 0px;
}

    .market-table th {
        white-space: nowrap;
    }

    .market-table thead tr {
        background-color: #edf1f2;
    }

    .market-table tbody > tr.hidden-if-not-extra-small {
        border-bottom: 1px solid #efefef;
    }

    .market-table thead th {
        border-bottom: 0px !important;
        color: #334050;
        font-size: 12px !important;
        letter-spacing: 0.4px;
        padding: 11px 0.5rem;
    }

@media screen and (max-width: 1399px) {
    .market-table thead th {
        padding: 0.5rem;
    }
}

.market-table tbody tr {
    background-color: #f7f9fa;
}




#wager-popup {
    display: none;
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 2px solid #1976d2;
    border-radius: 8px;
    padding: 20px;
    width: 500px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 1000;
    font-family: 'Segoe UI', sans-serif;
}

    #wager-popup h4 {
        margin-top: 0;
        color: #1976d2;
    }

    #wager-popup label {
        font-weight: bold;
        display: block;
        margin-bottom: 5px;
    }

    #wager-popup input {
        width: 100%;
        padding: 8px;
        margin-bottom: 15px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    #wager-popup button {
        background-color: #1976d2;
        color: white;
        border: none;
        padding: 10px 15px;
        border-radius: 4px;
        cursor: pointer;
    }

        #wager-popup button:hover {
            background-color: #1565c0;
        }

#bet-history table th, #bet-history table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}

#bet-history table tr:nth-child(even) {
    background-color: #f9f9f9;
}