/* =============================================
   MFLcode - Base Styles
   ============================================= */

/* Reset and Base Styles */
	* {
		margin: 0;
		padding: 0;
		box-sizing: border-box;
	}

	html {
		font-size: 60.5%;
	}

	body {
		background-color: #111;
		color: #fff;
		font-family: Arial, sans-serif;
		margin: 0;
		padding: 0;
	}

/* =============================================
   Site Structure (from GridironGod)
   ============================================= */

	/* Header */
		.site-header {
			background: #070707;
			color: #ffffff;
			padding: 0.85rem 0 0.7rem;
			border-bottom: 1px solid #303030;
		}

		.site-nav {
			max-width: none;
			margin: 0;
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding: 0 0.75rem;
			gap: 1rem;
		}

		.logo {
			display: flex;
			flex-direction: column;
			gap: 0.16rem;
			line-height: 1;
		}

		.wordmark {
			--wordmark-tracking: 0.03em;
			display: inline-flex;
			flex-direction: column;
			align-items: center;
			gap: 0.16rem;
			line-height: 1;
			text-decoration: none;
			white-space: nowrap;
		}

		.wordmark-main {
			display: inline-flex;
			align-items: center;
			font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
			font-size: clamp(1.15rem, 2.35vw, 1.8rem);
			font-weight: 700;
			letter-spacing: var(--wordmark-tracking);
			line-height: 1;
			text-transform: uppercase;
			color: #dddddd;
		}

		.wordmark-gridiron {
			color: inherit;
		}

		.wordmark-god {
			color: inherit;
		}

		.wordmark-separator {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			width: 1.4em;
			height: 0.9em;
			margin: 0 0.24ch;
			font-size: 0.40em;
			line-height: 1;
			transform: none;
			opacity: 0.92;
		}

		.logo-subtitle {
			display: block;
			width: 100%;
			font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
			text-align: center;
			font-size: 0.74rem;
			font-weight: bolder;
			letter-spacing: 0.12em;
			text-transform: uppercase;
			color: #4CAF50;
		}

		.wordmark-gap,
		.wordmark-ball {
			display: none;
		}

		/* Nav Menu */
			.nav-menu {
				list-style: none;
				display: flex;
				gap: 0.75rem;
			}

			.nav-menu a {
				display: inline-flex;
				align-items: center;
				justify-content: center;
				min-height: 2.05rem;
				padding: 0.2rem 0.75rem;
				border: 1px solid #4a4a4a;
				border-radius: 4px;
				color: #dcdcdc;
				font-size: 0.88rem;
				font-weight: 600;
				text-decoration: none;
				letter-spacing: 0.08em;
				text-transform: uppercase;
				background: #121212;
				transition: color 0.3s, opacity 0.3s;
				opacity: 0.95;
			}

			.nav-menu a:hover,
			.nav-menu a.active {
				color: #ffffff;
				border-color: #7a7a7a;
				background: #1b1b1b;
				opacity: 1;
			}
	/* Header */

	/* Main Content */
		main {
			max-width: none;
			margin: 2rem 0 0;
			padding: 0 0.75rem;
			min-height: calc(100vh - 200px);
			background-color: #000000;
		}
	/* Main Content */

	/* Footer */
		footer {
			background: #000000;
			color: #ffffff;
			text-align: center;
			padding: 2rem 0;
			margin-top: 2rem;
			border-top: 2px solid #4CAF50;
		}
	/* Footer */



/* Headers and Text */
h1 {
    font-size: 5.2rem;
    margin-bottom: 20px;
}

h2 {
    text-align: center;
    margin-bottom: -10px;
}

p {
    font-size: 2.6rem;
}

a {
    color: #fff;
    text-decoration: none;
}

a:hover {
    color: #4CAF50;
}

/* Navigation Buttons */
.data_imports {
    margin: 30px 0;
}

.data_imports ul {
    list-style-type: none;
    padding: 0;
}

.data_imports ul li {
    margin: 10px 0;
}

.data_imports a.button {
    padding: 10px 20px;
    border: 2px solid #444;
    background-color: #333;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
}

.data_imports a.button:hover {
    background-color: #555;
    border-color: #555;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

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

select, button {
    font-size: 1.2em;
    padding: 10px;
    margin-bottom: 10px;
    width: 100%;
    max-width: 400px;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #ffffff;
    color: #4CAF50;
}

/* Generic container for sections */
.section-container {
    max-width: 1200px; /* Or the width that matches your site's main content area */
    margin: 0 auto; /* Center the container */
    padding: 20px; /* Add padding inside the container */
    background-color: black; /* Keep the container background black */
    color: white; /* White font color to match the site */
}

/* Generic header styling */
.section-header h2 {
    font-size: 2.4rem;
    color: white; /* Keep the header text white */
    margin-bottom: 20px;
    text-align: center;
}

/* Generic form styling */
.section-form, .section-search {
    margin-bottom: 20px;
}

.section-form form, .section-search form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-form select, .section-search input, 
.section-form button, .section-search button {
    font-size: 1.2em;
    padding: 10px;
    margin-bottom: 10px;
    width: 100%;
    max-width: 400px;
    background-color: #444; /* Dark background for form elements */
    color: white; /* White text for form elements */
    border: 1px solid #333;
    border-radius: 4px;
}

.section-form button, .section-search button {
    background-color: #4CAF50; /* Green background for buttons */
    color: white; /* White text for buttons */
    border: none;
    cursor: pointer;
}

.section-form button:hover, .section-search button:hover {
    background-color: #ffffff;
    color: #4CAF50;
}

/* Generic table styling */
.section-table {
    width: 100%; /* Full width for the table */
    margin: 20px auto; /* Center the table */
    background-color: white; /* White background for the table */
    color: black; /* Black font inside the table */
    border-collapse: collapse;
}

.section-table th, .section-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: center;
}

.section-table th {
    background-color: #f2f2f2; /* Slightly darker background for table headers */
    color: black; /* Black font for headers */
}

/* Zebra striping for tables */
.section-table tbody tr:nth-child(odd) {
    background-color: #f2f2f2; /* Light gray background for odd rows */
}

.section-table tbody tr:nth-child(even) {
    background-color: #ffffff; /* White background for even rows */
}

/* Position heading */
.position-heading th {
    border-top: 3px solid white;
    background-color: #333;
    color: #fff;
    text-align: center;
    font-weight: bold;
    font-size: large;
    padding: 8px;
}

/* Position heading */
.average-heading th {
    background-color: #333;
    color: #fff;
    text-align: center;
    font-weight: bold;
    font-size: large;
}



.section-table td.covered {
    
    background-color: #2a2a2a;
    color: #e0e0e0;
    padding: 8px 12px;
    border-bottom: 1px solid #444;
    font-size: 1.95em;
   
}
/* For DUPLICATES -- UNCOMMENT OUT WHEN YOU COMMENT OUT BLUR  */
tr.highlight td.covered {
  background-color: #552222;
  color: #ffdddd;
  font-weight: bold;
}

/* Average */
.wrapper-main {
    width: 100%;
    padding: 10px 0;
    margin: 0 auto;
    /* border: 1px solid #ddd; /* Single border around all elements */
}
.bottom-table {
    display: flex;
    text-align: center;
    justify-content: center;
    margin: 0 auto;
    width: fit-content; /* Adjust to fit the content width */
    border: 1px solid #ddd; /* Ensure table border is visible */
    font-size: 12px;
}

.bottom-table table {
    border-collapse: collapse;
    border: 1px solid #ddd; /* Ensure table border is visible */
    margin: 0 auto; /* Center the table */
}

.bottom-table th, .bottom-table td {
    text-align: center;
    padding: 10px;
    border: 1px solid #000; /* Ensure cell borders are visible */
}
.bottom-table tbody {
    display: table-row-group;
    vertical-align: middle;
    border-color: inherit;
}
.row {
    display: flex;
    justify-content: center; /* Centers the content horizontally */
    flex-wrap: wrap; /* Allows content to wrap if necessary */
    width: 100%; /* Ensures the row takes full width */
    margin: 0 auto;
}
.column {
    flex: 1; /* Allows columns to take equal space */
    padding: 1px;
    max-width: none; /* Optional: Adjust based on your desired max width */
}
/* Hide the row by default */
.hidden {
    display: none;
    width: 100%; /* Ensure it takes up the full width when displayed */
}

/* Ensure when it's shown, it fills the width */
.hidden.active {
    display: table-row;
    width: 100%; /* Ensure it takes up the full width */
    font-size: 14px;
}

/* Ensure the inner table also fills the full width */
.hidden .inner-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.hidden .inner-table td, .hidden .inner-table th {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

/* Specific Table Row Colors */
tr.green {
    background-color: #007500;
    color: #fff;
    font-weight: bold;
}

tr.green span {
    background-color: #000;
    color: #fff;
    padding: 0 5px; /* optional, adds some spacing around the text */
    font-size: 14px;
}

tr.red {
    background-color: #a30000;
    color: #fff;
    font-weight: bold;
}

tr.red span {
    background-color: #000;
    color: #fff;
    padding: 0 5px; /* optional, adds some spacing around the text */
    font-size: 12px;
}

tr.yellow {
    background-color: #efcc00;
    color: black;
}

tr.yellow span {
    background-color: #000;
    color: #fff;
    padding: 0 5px; /* optional, adds some spacing around the text */
    font-size: 14px;
}

.hidden tr.final {
    background-color: #555;
    color: #fff;
}

.hidden tr.playing {
    background-color: #90EE90;
    color: #000;
}

td.clicker {
    display: flex;
    align-items: center;
    font-size: calc(12px + 1vw); /* Responsive font size */
    white-space: nowrap; /* Prevent text from wrapping */
}

td.clicker a {
    flex-grow: 1; /* Allow the link to take up the remaining space */
    overflow: hidden; /* Hide overflowed text */
    text-overflow: ellipsis; /* Add ellipsis to indicate text overflow */
    width: 100%; /* Ensure the link takes up the full width */
}

/* Scoreboard table (average.php): scoped class, does not touch global body/a/table rules */
.scoreboard-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px auto;
    text-align: center;
}

.scoreboard-table th,
.scoreboard-table td {
    border: 1px solid #ddd;
    padding: 8px;

}

.scoreboard-table td.clicker a {
    display: block;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    padding: 4px 8px;
		font-size: 60.5%;
}

.cache-status {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

/* Responsive Design */
@media (max-width: 768px) {
	.site-nav {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
		padding: 0 0.5rem;
	}

	.wordmark-main {
		font-size: clamp(1rem, 7vw, 1.35rem);
		letter-spacing: var(--wordmark-tracking);
	}

	.logo-subtitle {
		font-size: 0.68rem;
		letter-spacing: var(--wordmark-tracking);
	}

	.wordmark-gap {
		width: 0.3ch;
	}

	.nav-menu {
		gap: 0.5rem;
	}

	.nav-menu a {
		font-size: 0.82rem;
		min-height: 1.9rem;
		padding: 0.18rem 0.62rem;
	}

	main {
		padding: 0 0.5rem;
	}
}

@media (max-width: 600px) {
    .wrapper-main {
        width: 100%;
    }

    .column {
        float: left;
        padding: 5px;
    }

    /* Clearfix */
    .row::after {
        content: "";
        clear: both;
        display: table;
    }

    table {
        width: 100%;
    }

    th, td {
        padding: 12px;
    }
}

@media (max-width: 300px) {
    select, button {
        font-size: 3.5em;
        padding: 15px;
    }

    label {
        font-size: 1.5em;
    }
    table {
        width: 100%;
    }
    th, td {
        padding: 12px;
    }
}

.bracket-container {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}
.conference {
    width: 48%;
    color:#000;
}

.conference h2, h3, h4 {
    color: #fff;
}
.bracket {
    border: 1px solid #ccc;
    padding: 15px;
    margin: 10px 0;
}
.week {
    margin: 10px 0;
    padding-left: 10px;
}
.matchup {
    display: flex;
    justify-content: space-between;
    background: #f5f5f5;
    margin: 5px 0;
    padding: 8px;
    border-radius: 4px;
}
.seed {
    font-weight: bold;
    color: #4CAF50;
}

/* =============================================
   Homepage & Features (from GridironGod)
   ============================================= */

	/* Buttons */
		.btn {
			display: inline-block;
			background: #4CAF50;
			color: #ffffff;
			padding: 0.75rem 1.5rem;
			text-decoration: none;
			border-radius: 4px;
			margin-top: 1rem;
			transition: background 0.3s;
		}

		.btn:hover {
			background: #ffffff;
			color: #4CAF50;
		}
	/* Buttons */

	/* Homepage */
		.homepage {
			display: flex;
			align-items: flex-start;
			gap: 1rem;
			width: 100%;
		}

		.homepage .main-content,
		.homepage .sidebar {
			min-width: 0;
			margin-top: 0;
		}

		.homepage .main-content {
			flex: 1 1 auto;
			max-width: none;
			padding-right: 0;
			align-self: flex-start;
		}

		.homepage .sidebar {
			flex: 0 0 20%;
			max-width: 20%;
			padding-left: 0;
			align-self: flex-start;
			margin-top: 0;
		}

		.homepage .features {
			margin-top: 0;
		}

		/* Hero section */
			.hero {
				text-align: center;
				padding: 3rem 0;
				background: #242526;
				border: 2px solid #ffffff;
				border-radius: 8px;
				margin-bottom: 2rem;
				box-shadow: 0 2px 10px rgba(0,0,0,0.3);
			}

			.hero h2 {
				color: #ffffff;
				margin-bottom: 1rem;
				font-size: 2.5rem;
			}

		/* Feature grid */
			.feature-grid {
				display: grid;
				grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
				gap: 2rem;
			}

		/* Feature cards */
			.feature-card {
				background: #242526;
				border: 2px solid #ffffff;
				padding: 2rem;
				border-radius: 8px;
				box-shadow: 0 2px 10px rgba(0,0,0,0.3);
				text-align: center;
			}

			.feature-card h3 {
				color: #ffffff;
				margin-bottom: 1rem;
			}
		/* Feature cards */

/* =============================================
   Admin Dashboard (from GridironGod)
   ============================================= */

	.admin-page-header {
		margin-bottom: 1.5rem;
	}

	.admin-page-header h2 {
		color: #ffffff;
		text-align: left;
		margin-bottom: 0.5rem;
	}

	.admin-page-header p {
		font-size: 1rem;
		color: #dcdcdc;
	}

	.admin-dashboard h3 {
		color: #ffffff;
		text-align: left;
		margin: 1.5rem 0 1rem;
	}

	.admin-grid {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
		gap: 1.5rem;
	}

	.admin-card {
		background: #242526;
		border: 2px solid #ffffff;
		padding: 1.5rem;
		border-radius: 8px;
		box-shadow: 0 2px 10px rgba(0,0,0,0.3);
	}

	.admin-card h3 {
		color: #ffffff;
		text-align: left;
		margin: 0 0 0.75rem;
	}

	.admin-card h4 {
		color: #4CAF50;
		text-align: left;
		font-size: 0.9rem;
		text-transform: uppercase;
		letter-spacing: 0.05em;
		margin: 1rem 0 0.5rem;
	}

	.importer-links {
		display: flex;
		flex-direction: column;
		gap: 0.5rem;
	}

	.importer-link {
		margin-top: 0;
		text-align: center;
	}


		@media (max-width: 992px) {
			.homepage {
				flex-direction: column;
			}

			.homepage .main-content,
			.homepage .sidebar {
				flex: 0 0 100%;
				max-width: 100%;
			}
		}
	/* Homepage */
.bye {
    font-style: italic;
    color: #666;
}
.standings-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    color:#fff;
}
.standings-table th, .standings-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.playoff-team {
    color: green;
}
.consolation-team {
    color: red;
}