body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    box-sizing: border-box;
    position: relative;
    overflow-y: auto;
    
}
/* Light mode styles */
.light-mode {
    background-color: #f0f0f0;
    color: #333;
}

.light-mode .container {
    background-color: #fff;
}

.light-mode .bookmaker {
    background-color: #f9f9f9;
}

.light-mode .market {
    background-color: #fdfdfd;
}

.light-mode .event-header .start-time {
    color: #666;
}

.light-mode .bookmaker h3, 
.light-mode .market p {
    color: #333;
}

/* Dark mode styles */
.dark-mode {
    background-color: #333;
    color: #f0f0f0;
}

.dark-mode .container {
    background-color: #444;
}

.dark-mode .bookmaker {
    background-color: #555;
}

.dark-mode .market {
    background-color: #666;
}

.dark-mode .event-header .start-time {
    color: #aaa;
}

.dark-mode .bookmaker h3, 
.dark-mode .market p {
    color: #ddd;
}

/* Additional dark mode styles */
.dark-mode .event {
    background-color: #555;
}

.dark-mode .event-body {
    background-color: #666;
}

.dark-mode select,
.dark-mode button {
    background-color: #444;
    color: #f0f0f0;
    border: 1px solid #777;
}

.theme-toggle {
    position: relative;
    top: 10px;
    right: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.theme-toggle:hover {
    background-color: #0056b3;
}

.container {
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    max-height: 100vh;
    width: 100%;
    margin: 0 auto; 
    flex-grow: 1; 
    
}
.container-expanded {
    position: absolute;
    left: 10px;
    right: 10px;
   
   
   /* Add some spacing at the bottom if needed */
}

select, button {
    padding: 10px;
    margin: 10px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #ccc;
}



#results {
    margin-top: 20px;
}

#results .event-body {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Ensure all bookmaker boxes stretch to the same height */
    gap: 10px; /* Optional: Add spacing between the bookmaker boxes */
}

.event {
    margin-bottom: 40px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fafafa;
}

.event-header {
    margin-bottom: 20px;
    font-size: 1.5em;
}

.event-header .start-time {
    font-size: 0.9em;
    color: #666;
}

.event-body {
    white-space: nowrap;
    overflow-x: auto;
    display: flex;
    align-items: center;
}

.bookmaker {
    display: inline-block;
    vertical-align: top;
    width: 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    margin-right: 10px;
    box-sizing: border-box;
    flex-grow: 1; /* Allow the box to grow to fill available space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px; /* Set a minimum height */
    justify-content: space-between; 
}

#mainOddsContainer, #propsResults {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    padding: 20px;
    box-sizing: border-box;
}
#propsResults {
    padding-bottom: 40px;
}
#playerProps {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-sizing: border-box;
}



/* Scrollable container for player props */
.scrollable-horizontal-vertical {
    display: block;
    max-height: 400px; /* Fixed height for the box */
    overflow-x: auto; /* Enable horizontal scrolling */
    overflow-y: auto; /* Enable vertical scrolling */
    padding-bottom: 10px;
    box-sizing: border-box;
    white-space: nowrap; /* Prevent text from wrapping inside the box */
    border-bottom: 1px solid #ccc; /* Border at the bottom of the scroll area */
}

/* Horizontal scrolling for the bookmaker list inside the props box */
.scrollable-horizontal-vertical .bookmaker-container {
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping, allow horizontal scrolling */
}

/* Bookmaker styling inside the scrollable container */
.scrollable-horizontal-vertical .bookmaker {
    flex: 0 0 auto;
    width: 300px;
    min-height: 240px; /* Ensure consistent height */
    padding: 15px; /* Add padding for consistency */
    border: 1px solid #ddd; /* Border around each individual box */
    border-radius: 8px; /* Rounded corners */
    background-color: #f9f9f9; /* Same background color as the main odds box */
    margin-right: 20px;
    box-sizing: border-box;
    overflow: hidden; /* Hide overflow content */
    white-space: normal; /* Allow text to wrap inside the box */
}


/* Additional styling for bookmakers */
.bookmaker h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.bookmaker ul {
    list-style-type: none;
    padding: 0;
    margin: 0; /* Reset margin to avoid additional spacing */
    flex-grow: 1; 
}

.bookmaker li {
    margin-bottom: 10px;
    
    white-space: normal; /* Prevent text from wrapping inside the list items */
    overflow: hidden; /* Hide overflow content */
    text-overflow: ellipsis; 
}

.prop-search-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the title horizontally */
    position: relative;
    margin-bottom: 20px; /* Increased margin for more cushion */
    padding: 10px 0;  /* Position relative for the search bar positioning */
}
.search-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the title horizontally */
    position: relative;
    margin-bottom: 20px; /* Increased margin for more cushion */
    padding: 10px 0;  
}

#propTitle {
    flex-grow: 1; /* Allow the title to take up available space */
    text-align: center; /* Center the text within its container */
    margin: 0;
}

#playerSearchInput {
    padding: 5px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 200px;
    position: absolute;
    right: 0; /* Align the search bar to the right */
}

.market {
    margin-top: 5px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: #fdfdfd;
    flex-grow: 1; /* Allow the market box to grow and fill space */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center the text vertically */
}

.landing-page {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.logo {
    position: fixed;
    width: 200px;
    height: 200px;
    opacity: 0.8;
    background-size: contain;
    background-repeat: no-repeat;
}

#fanduel {
    background-image: url('/images/fanduel.png');
    top: 20px;
    left: 20px;
}

#bovada {
    background-image: url('/images/bovada.png');
    top: 20px;
    right: 20px;
}

#draftkings {
    background-image: url('/images/draftkings.png');
    bottom: 20px;
    left: 20px;
}

#caesars {
    background-image: url('/images/caesars.png');
    bottom: 20px;
    right: 20px;
}

#betmgm {
    background-image: url('/images/betmgm.png');
    
    left: 20px;
}

#wynnbet {
    background-image: url('/images/wynnbet.png');
   
    right: 20px;
    
}

@media (max-width: 1200px) {
    .logo {
        width: 100px;
        height: 100px;
        opacity: 0.6;
    }

    #fanduel {
        top: 10px;
        left: 10px;
    }

    #bovada {
        top: 10px;
        right: 10px;
    }

    #draftkings {
        bottom: 10px;
        left: 10px;
    }

    #caesars {
        bottom: 10px;
        right: 10px;
    }
    #betmgm, #wynnbet {
    display: none; /* Hide MGM and WynnBet logos */
}

}

@media (max-width: 768px) {
    .logo {
        width: 50px;
        height: 50px;
    }
}

.market ul {
    padding: 0;
    margin: 0;
    list-style: none;
    word-wrap: break-word; /* Ensure long words break and wrap to the next line */
}

.market li {
    white-space: nowrap; /* Prevent text from overflowing */
    overflow: visible; /* Hide overflowed text */
    text-overflow: clip; /* Add ellipsis (...) to indicate overflow */
    width: 100%; /* Ensure it takes the full width of the container */
    display: block;
}

.dark-mode {
    background-color: #333;
    color: #f0f0f0;
}

.dark-mode .container {
    background-color: #444;
}

.dark-mode .bookmaker {
    background-color: #555;
    color: #f0f0f0;
}

.dark-mode .market {
    background-color: #666;
}

.dark-mode .event-header .start-time {
    color: #aaa;
}

.dark-mode .bookmaker h3, 
.dark-mode .market p {
    color: #ddd;
}

.dark-mode select,
.dark-mode button {
    background-color: #444;
    color: #f0f0f0;
    border: 1px solid #777;
}

/* Dark mode for the main odds and player props containers */
.dark-mode #mainOddsContainer,
.dark-mode #propsResults {
    background-color: #444;
    border: 1px solid #555;
}

.dark-mode #playerProps {
    background-color: #555;
    border: 1px solid #666;
}

.dark-mode .scrollable-horizontal-vertical .bookmaker {
    background-color: #666;
    border: 1px solid #777;
    color: #f0f0f0;
}

.dark-mode .scrollable-horizontal-vertical .bookmaker h3 {
    color: #ddd;
}

.dark-mode .scrollable-horizontal-vertical .bookmaker ul {
    color: #f0f0f0;
}

.dark-mode .scrollable-horizontal-vertical .bookmaker li {
    color: #f0f0f0;
}

.dark-mode .prop-search-container {
    background-color: #444;
    border-bottom: 1px solid #555;
    color: #f0f0f0;
}

.dark-mode #propTitle {
    color: #f0f0f0;
}

.dark-mode #playerSearchInput {
    background-color: #555;
    color: #f0f0f0;
    border: 1px solid #666;
}
@media (max-width: 768px) {
    .search-container, #mainOddsContainer, #propsResults {
        width: 100%; /* Full width on mobile */
        padding: 10px; /* Adjust padding */
    }

    select, button {
        width: 100%; /* Full width for select elements and buttons */
        margin-bottom: 10px; /* Space them out vertically */
        padding: 12px; /* Larger clickable area */
    }

    #results .event-body, .scrollable-horizontal-vertical .bookmaker-container {
        flex-direction: column; /* Stack bookmakers vertically */
        align-items: center; /* Center them */
    }

    .event {
        margin-bottom: 20px; /* Reduce spacing */
        padding: 15px; /* Slightly reduce padding */
        width: 100%; /* Full width for events */
    }

    /* Adjust logo positions */
    #fanduel, #bovada, #draftkings, #caesars, #betmgm, #wynnbet {
        display: none; /* Optionally hide logos on smaller screens */
    }

    /* Adjust dropdowns and buttons */
    select, button {
        padding: 10px;
        margin: 5px 0;
        font-size: 1rem;
    }

    #propTitle {
        font-size: 1.2em;
        margin-bottom: 10px;
    }

    #playerSearchInput {
        width: 100%;
        margin-top: 10px;
        right: 0;
    }

    /* Reduce container margins and paddings for better mobile appearance */
    .container {
        padding: 10px;
        border-radius: 5px;
        margin: 0;
    }

    /* Adjust main odds and props containers */
    #mainOddsContainer, #propsResults {
        margin: 0;
        padding: 15px;
    }
}
@media (max-width: 768px) {
    body {
        font-size: 14px; /* Adjust font size for mobile */
        line-height: 1.5; /* Increase line height for better readability */
    }

    h1 {
        font-size: 1.8rem; /* Reduce the main heading size */
    }

    h2, h3 {
        font-size: 1.4rem; /* Reduce other heading sizes */
    }
}