@import url("https://fonts.googleapis.com/css2?family=Montserrat&display=swap");

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

@media (min-width: 916px) {
	.table {
		width: 75%;
	}
	.table:nth-child(even) {
		width: 25%;
	}
	.table_live {
		width: 65%;
	}

	.table_live:nth-child(even) {
		width: 35%;
	}
	.graphs {
		width: calc(75% - 10px);
        height: calc(100% - 5px);
        margin-left: 5px;
        margin-top: 5px;
        margin-right: 5px;
	}
	.graphs_specific_season {
		width: calc(100% );
        height: calc(100% - 25px);
        padding-left: 5px;
        margin-top: 5px;
        padding-right: 5px;
	}
	.graphs_live {
		width: calc(65% - 10px);
	}

	.styled-table-big {
		font-size: 1.3vw;
		height: 100%;
	}

	.live-stats {
		font-size: 2vw;
	}
    .page{
         height: 100%;
    }
    .row-1 {
        height: calc(30vh - 20px);
    }
    .row-2 {
        height: calc(70vh - 35px);
    }
    
    .table_right{
        height: calc(100% - 10px);
    }
    
    .table_right_1{
        max-height: 75%;
        overflow: scroll;   
    }
    
    .table_right_2{
        height: 25%;
        padding-top: 10px
    }
    
    .table_right_live{
        max-height: 100%;
    }
    
    h1{
        text-align: center;
        font-size:1.8vw;
    }
    .season_results{
        max-width: 19%;
    }
    

	.summary_table {
        max-height: 350px;
	}
    

}

@media (max-width: 915px) {
	.table {
		flex-basis: 100%;
		max-width: 100%;
        width: 100%;
	}
	.graphs {
		width: calc(100% - 8px);
        height: 500px;
        margin: 5px;
	}

	.styled-table-big {
		font-size: 4vw;
		height: 180px;
	}
    

	.summary_table {
		font-size: 2.5vw;
	}
    
    h1{
        text-align: center;
        font-size:2.5vw;
    }
}
.row {
	display: flex;
	flex-wrap: wrap;
}



.graphs {
    border: 2px solid #009879; /* Add border styles here */f
}



.graphs_specific_season {
    border: 2px solid #009879; /* Add border styles here */f
}
html, body{
    height:100%;
	font-family: "Montserrat", sans-serif;
}
.page{
     height: 100%;
}
.styled-table-big {
	border-collapse: collapse;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
	width: 100%;
    border: 2px solid #009879; /* Add border styles here */
    border-radius: 10px; /* Optional: Add rounded corners */
}

.styled-table-big thead tr {
	background-color: #009879;
	color: #ffffff;
	text-align: center;
}

.styled-table-big caption {
	background-color: #009879;
	color: #ffffff;
	text-align: center;    
}

.styled-table-big th {
	padding: 5px 5px;
	height: 30px;
}

.styled-table-big th,
.styled-table-big td {
	text-align: center;
}

.styled-table-big tbody tr {
	text-align: center;
}

.styled-table-big tbody tr:nth-of-type(even) {
	background-color: #f3f3f3;
}

.table {                                       
	box-sizing: border-box;
	padding: 5px;
}

.row-graph-1 {
    height:92%;
    width: 100%;
}

.row-graph-live {
    height:100%;
    width: 100%;
}
.table_right{
    width: 100%;
}
.table_right_1{
    width: 100%;
}
.table_right_2{
    width: 100%;
}
.table_right_live{
    width: 100%;
}
.team_pairings td
{
    text-align: left;
}

/* Add a border at the end of every second row */
.matches_recap tbody tr:nth-child(even) {
    border-bottom: 1px solid #000; /* Black border */
}

.overall_scores{
    border: 1px solid #dddddd;
    width: 100%;
    height:100%;
}
.points_graph{
    border: 1px solid #dddddd;
    flex-basis: calc(100% - 2px);
}
.graph-container{
    width: 100%;
    height:95%;
}
.graph-container_live{
    width: 100%;
    height:100%;
}

h1{
    height:5%;
    margin:3px;
}
    
#points {
    display: none;
}

.row_toggle {
    display: flex;
    align-items: center;
    justify-content: center;
}


.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 21px;
    margin: 0 10px; /* Add margin for spacing between the switch and text */
}

.toggle-switch input {
    display: none;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 20px;
    background-color: #2196F3;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 15px;
    width: 15px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .slider {
    background-color: #2196F3;
}

.toggle-switch input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

.toggle-switch input:checked + .slider:before {
    -webkit-transform: translateX(18px);
    -ms-transform: translateX(18px);
    transform: translateX(18px);
}

/* Modal styling */
.modal {
    display: block; /* Always display the modal */
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
}

.modal-content {
    background-color: red;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 300px; 
    height: 300px;
    font-size: 40px;
    color: white;
    /* Flexbox properties for centering */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.filter-bubble {
    display: inline-block;
    padding: 5px 10px; /* Adjust padding to fit the text */
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px; /* Adjust font size if needed */
}

.filter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px; /* Adjust vertical space between the filters */
}

.filter-options, #season-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.filter-options .filter-bubble, #season-filter .filter-bubble {
    margin: 5px;
    padding: 5px 10px; /* Ensure consistent padding */
}
.filter-bubble {
    display: inline-block;
    padding: 10px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
}
.filter-bubble.active {
    background-color: #007BFF;
    color: white;
}
.pie-charts {
    width: 100%;
    height: 75%;
    display: flex;
    align-items: center;
    justify-content: center; /* Vertically center the content */
    vertical-align: middle;
    margin-top: 20px;
}

.chart-container.initial {
    opacity: 0;
    transform: scale(0.5); /* Smaller initial scale */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.chart-container {
    display: flex;
    flex-direction: column;
    border: none;
    height: 18vh;
    opacity: 1;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease, height 0s, width 0s;
    margin: 0px 20px;
}

.chart-container.loaded {
    opacity: 1;
    transform: scale(1);
}
.charts-wrapper {
    text-align: center;
    display:flex;
    justify-content: center;
}
.custom-legend {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 10px;
}
.custom-legend-item {
    display: flex;
    align-items: center;
    margin:2px;
}
.custom-legend-color {
    width: 12px;
    height: 12px;
    margin-right: 5px;
}
.charts-container {
    border: 2px solid #009879; /* Add border */
    border-radius: 10px; /* Add rounded corners */
    padding: 10px; /* Optional: Add some padding inside the border */
    margin: 10px 0; /* Optional: Add some margin around the container */
    width:60%;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}

.charts-container2 {
    display:flex;
    flex-direction: column;
    border: 2px solid #009879; /* Add border */
    border-radius: 10px; /* Add rounded corners */
    padding: 10px; /* Optional: Add some padding inside the border */
    margin: 10px 0; /* Optional: Add some margin around the container */
    width:96%;
    justify-content: center;
    align-items: center;
}

.bar-chart-container {
    width: 70%;
    margin: 20px auto;
    padding: 10px;
    background: #f1f1f1;
    border-radius: 5px;
}

.player-stats-container {
    width: 100%;
}

.player-bar {
    display: flex;
    margin-bottom: 10px;
    height: 25px;
    background-color: #ccc; /* Light gray background to show empty parts */
}

.wins {
    background-color: #76C043; /* Green for wins */
    height: 100%;
}

.losses {
    background-color: #E74C3C; /* Red for losses */
    height: 100%;
}

.charts-container2 {
    display:flex;
    flex-direction: column;
    border: 2px solid #009879; /* Add border */
    border-radius: 10px; /* Add rounded corners */
    padding: 10px; /* Optional: Add some padding inside the border */
    margin: 5px 20px; /* Optional: Add some margin around the container */
    width:100%;
    min-height: 250px;
    justify-content: center;
    align-items: center;
}
.row_pie_charts {
    display: flex;
    width:100%;
    justify-content: center;
    align-items: center;
    margin: 5px 0;
}.row_player_stats {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin: 5px 0;
    flex-wrap: wrap; /* Allow wrapping to the next line */
}

.player_stats_row {
    width: 33%; /* Each div takes up 33% of the row */
    padding: 5px; /* Optional: add some padding between the boxes */
}

.charts-container2.player-stats-chart {
    width: 100%;
    min-height: 200px; /* Adjust based on your design */
    margin: 10px 0;
    justify-content: center;
    align-items: center;
}

.player-bar-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    width:100%;
}

.player-bar-charts {
    width:100%;
}

.player-bar-label {
    width: 15%; /* Adjust based on the label size */
    margin-right: 10px;
    text-align: right;
    font-weight: bold;
}

.player-bar {
    width: 85%; /* The remaining space for the bar */
    display: flex;
    height: 25px;
    background-color: #ccc; /* Light gray background to show empty parts */
}

.wins {
    background-color: #76C043; /* Green for wins */
    height: 100%;
}

.losses {
    background-color: #E74C3C; /* Red for losses */
    height: 100%;
}
