/* Container Styling */
.container {
    margin-top: 20px;
}

/* Back to All Games Button */
.back-to-games {
    margin-bottom: 20px;
}

.back-to-games .btn {
    background-color: #0056b3;
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    text-decoration: none;
}

.back-to-games .btn:hover {
    background-color: #003f7f;
    color: white;
}

/* Game Title and Layout */
.text-center {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #333;
}

/* Team Panels Styling */
.game-betting-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.team-panel {
    width: 25%;
    text-align: center;
}

.team-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 10px;
}

.predicted-points {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.back-to-back-alert {
    color: red;
    font-size: 18px;
    font-weight: bold;
    margin: 5px 0;
}

.travel-distance {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
    line-height: 1.5;
}

.travel-distance span {
    font-weight: bold;
}

/* Central Game Info, Betting Table, and Recommended Plays */
.game-info {
    width: 50%;
    text-align: center;
}

.game-title {
    font-size: 24px;
    margin-bottom: 20px;
}

.betting-table, .recommended-plays-table {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 16px;
}

.betting-table th, .betting-table td,
.recommended-plays-table th, .recommended-plays-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.betting-table th, .recommended-plays-table th {
    background-color: #0056b3;
    color: white;
    font-weight: bold;
}

.recommended-plays-table {
    width: 80%;
    margin: 15px auto;
}

/* Model Accuracy Section */
.accuracy-section {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.team-accuracy-table {
    width: 48%;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 14px;
}

.team-accuracy-table h4 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #0056b3;
    font-weight: bold;
}

.team-accuracy-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.team-accuracy-table th, .team-accuracy-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: center;
}

.team-accuracy-table th {
    background-color: #0056b3;
    color: white;
    font-weight: bold;
}

.team-accuracy-table td {
    color: #333;
}

/* Last 10 Games Table */
.last-10-games {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
    font-size: 14px;
}

.last-10-games th, .last-10-games td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: center;
}

.last-10-games th {
    background-color: #0056b3;
    color: white;
    font-weight: bold;
}

/* Responsive adjustments for mobile devices */

/* General Layout for smaller screens */
@media (max-width: 768px) {
    /* Adjust container padding and margin */
    .container {
        margin-top: 10px;
        padding: 0 10px;
    }

    /* Adjust team panel to take full width */
    .game-betting-layout {
        flex-direction: column;
        align-items: center;
    }

    /* Team panels should take up full width */
    .team-panel {
        width: 90%;
        margin-bottom: 20px;
    }

    /* Adjust game info width */
    .game-info {
        width: 100%;
    }

    /* Adjust logo size */
    .team-logo {
        width: 80px;
        height: 80px;
    }

    /* Center align the text and reduce font size */
    .text-center {
        font-size: 20px;
    }

    /* Resize tables */
    .betting-table, .recommended-plays-table {
        font-size: 14px;
    }
    
    /* Back-to-back alert */
    .back-to-back-alert {
        font-size: 16px;
    }
}

/* More compact layout for very small screens */
@media (max-width: 480px) {
    /* Center game title */
    .game-title {
        font-size: 18px;
    }

    /* Make logo even smaller */
    .team-logo {
        width: 60px;
        height: 60px;
    }

    /* Table adjustments */
    .betting-table th, .betting-table td,
    .recommended-plays-table th, .recommended-plays-table td,
    .team-accuracy-table th, .team-accuracy-table td {
        padding: 6px;
    }
}



/* Mobile adjustments */
@media (max-width: 768px) {
  .game-betting-layout {
    flex-direction: column;
    align-items: center;
  }

  .team-panel, .game-info {
    width: 100%;
    margin-bottom: 20px;
  }

  .team-logo {
    width: 80px;
    height: 80px;
  }

  .betting-table, .recommended-plays-table {
    font-size: 14px;
    width: 100%;
    overflow-x: auto;
  }

  .last-10-games th, .last-10-games td {
    font-size: 12px;
    padding: 5px;
  }

  .avg-stats-container, .game-summary-section {
    flex-direction: column;
    align-items: center;
  }

  .team-averages, .graph-container {
    width: 100%;
    margin-bottom: 20px;
  }
}


@media (max-width: 768px) {
  .accuracy-section {
    flex-direction: column;
    align-items: center;
  }

  .team-accuracy-table {
    width: 100%;
    margin-bottom: 20px;
  }
}

/* Odds Section Styling */
.odds-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.odds-box {
    background-color: #1a1a1a;
    padding: 8px;
    border-radius: 6px;
    width: 40%;
    min-width: 260px;
    text-align: center;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
}

/* Bookmaker Logo & Header */
.odds-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #444;
}

.bookmaker-logo {
    width: 35px;
    height: auto;
    margin-right: 6px;
}

.odds-box h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* Odds Table Styling */
.odds-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.odds-table th, .odds-table td {
    border: 1px solid #444;
    padding: 4px;
    text-align: center;
}

/* Header Row */
.odds-table th {
    background-color: #333;
    color: #ffffff;
    font-weight: 600;
}

/* Alternating Row Colors */
.odds-table tbody tr:nth-child(odd) {
    background-color: #222;
}

.odds-table tbody tr:nth-child(even) {
    background-color: #292929;
}

/* Styling for Specific Columns */
.spread, .total, .moneyline {
    font-weight: bold;
}

/* Contrast Styling for Odds */
.odds {
    color: #32CD32; /* Light green for visibility */
    font-weight: bold;
    margin-left: 4px;
}

/* Ensure Good Contrast */
.odds-table tbody td {
    color: #ffffff;
}

/* Cautionary Note Styling */
.odds-update-note {
    text-align: center;
    font-size: 15px;
    color: #d54f39;
    margin-top: 5px;
    font-style: italic;
}

/* Adjust Odds Section for Mobile */
@media (max-width: 768px) {
    .odds-container {
        flex-direction: column;
        align-items: center;
    }

    .odds-box {
        width: 90%; /* Make them full-width with some margin */
        min-width: 280px;
        margin-bottom: 10px; /* Add space between stacked boxes */
    }
}

