body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

header {
    background-color: #333;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    background-color: #f4f4f4;
    padding: 1rem;
    text-align: center;
}

nav a {
    margin: 0 1rem;
    text-decoration: none;
    color: #333;
}

.event-view-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.event-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.event-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.event-date {
    color: #666;
}

.teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}
/* Style for the tabs */
.tabs {
    display: flex;
    cursor: pointer;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 5px 5px 0 0;
    background-color: #f9f9f9;
    margin-right: 5px;
    transition: background-color 0.3s;
}

.tab.active {
    background-color: #fff;
    border-bottom: 1px solid transparent; /* Hide bottom border for active tab */
    font-weight: bold;
}

.tab:hover {
    background-color: #e9ecef; /* Change background on hover */
}

.team {
    font-weight: bold;
}

.vs {
    color: #666;
}

.odds {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
}

.odds-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.odds-button:hover {
    background-color: #e0e0e0;
}

.login-button {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid white;
    border-radius: 4px;
}

.events-container {
    display: grid;
    grid-template-columns: 200px 1fr 300px;
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.sports-sidebar {
    background: #2c2c2c;
    padding: 15px;
    border-radius: 8px;
    height: fit-content;
    color: #fff;
}

.sports-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sport-item {
    padding: 10px;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sport-item:hover {
    background: #444;
}

.sport-item.active {
    background: #4CAF50;
}

.events-content {
    background: #2c2c2c;
    padding: 20px;
    border-radius: 8px;
    color: #fff;
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.events-filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: #383838;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
}

.filter-btn:hover {
    background: #404040;
}

.filter-btn.active {
    background: #4CAF50;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-card {
    background: #383838;
    padding: 15px;
    border-radius: 6px;
    color: #fff;
    transition: background-color 0.2s;
}

.event-card:hover {
    background: #404040;
}

.event-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.event-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    text-align: center;
}

.event-odds {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    margin-top: 15px;
}

.odd-button {
    padding: 8px;
    background: #383838;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.odd-button:hover {
    background: #404040;
    transform: translateY(-1px);
}

.odd-button.selected {
    background: #4CAF50;
}

.bet-slip {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    width: 300px;
    position: fixed;
    right: 20px;
    top: 100px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.bet-slip h3 {
    margin-top: 0;
    text-align: center;
}

.bet-slip .bet-list {
    list-style-type: none;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

.bet-slip .bet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.bet-slip .remove-bet-btn {
    background-color: #ff4d4d;
    border: none;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
}

.bet-slip .remove-bet-btn:hover {
    background-color: #e60000;
}

.bet-slip-total {
    margin-top: 10px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.bet-slip-summary p {
    margin: 5px 0;
}

.stake-section {
    margin: 10px 0;
}

.stake-section input {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
}

.place-bet-btn {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.place-bet-btn:hover {
    background-color: #218838;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .bet-slip {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
    }
}

.hidden {
    display: none;
}

.event-header h2, 
.sports-sidebar h3, 
.bet-slip h3 {
    color: #fff;
}

.event-teams span {
    color: #fff;
}

.event-date {
    color: #aaa;
}

/* Style for the active bets section */
.active-bets-list {
    list-style-type: none; /* Remove default list styling */
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margin */
}

.active-bets-list li {
    padding: 10px; /* Add padding for each bet item */
    border: 1px solid #ddd; /* Add a border around each bet item */
    margin-bottom: 5px; /* Space between bet items */
    border-radius: 5px; /* Rounded corners */
    background-color: #f9f9f9; /* Light background color */
}

.active-bets-list li:hover {
    background-color: #e9ecef; /* Change background on hover */
}

#active-bets {
    margin-top: 20px; /* Space above the active bets section */
    padding: 10px; /* Padding around the section */
    border: 1px solid #ccc; /* Border around the active bets section */
    border-radius: 5px; /* Rounded corners */
}

/* Style for the bet slip and active bets */
#betSlipContent, #active-bets {
    margin-top: 20px; /* Space above the sections */
    padding: 10px; /* Padding around the sections */
    border: 1px solid #ccc; /* Border around the sections */
    border-radius: 5px; /* Rounded corners */
}

/* Style for the bet list */
.bet-list {
    list-style-type: none; /* Remove default list styling */
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margin */
}

.bet-list li {
    padding: 10px; /* Add padding for each bet item */
    border: 1px solid #ddd; /* Add a border around each bet item */
    margin-bottom: 5px; /* Space between bet items */
    border-radius: 5px; /* Rounded corners */
    background-color: #f9f9f9; /* Light background color */
}

.bet-list li:hover {
    background-color: #e9ecef; /* Change background on hover */
}

/* Style for the active bets section */
.active-bets-list {
    list-style-type: none; /* Remove default list styling */
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margin */
}

.active-bets-list li {
    padding: 10px; /* Add padding for each bet item */
    border: 1px solid #ddd; /* Add a border around each bet item */
    margin-bottom: 5px; /* Space between bet items */
    border-radius: 5px; /* Rounded corners */
    background-color: #f9f9f9; /* Light background color */
}

.active-bets-list li:hover {
    background-color: #e9ecef; /* Change background on hover */
}

.bet-item {
    padding: 10px; /* Add padding for each bet item */
    border: 1px solid #ddd; /* Add a border around each bet item */
    margin-bottom: 10px; /* Space between bet items */
    border-radius: 5px; /* Rounded corners */
    background-color: #f9f9f9; /* Light background color */
}

.bet-details p {
    margin: 5px 0; /* Space between paragraphs */
}