body {
	font-family: Helvetica, Arial, sans-serif;
	padding: 0px;
	background:#f5f6f8;
}

h3 {
	background: #333;
	color: #fff;
	padding: 10px;
	cursor: pointer;
}

th,
td {
	border: 1.5px solid #ccc;
	padding: 1px 10px;
	text-align: center;
}

.table th {
	background: #333;
	color: white;
}
.afternav {
	padding: 20px;
}
.results {
	border-collapse: collapse;
	width: 100%;
}

.resultsdiv {
	display: grid;
	grid-template-columns: 850px 200px 800px;
}

.resultsdiv1 {
	width: 100%;
}

.resultsdiv2 {
	width: 100%;
}

.resultsdiv3 {
	width: 100%;
}

.leaguetable {
	border-collapse: collapse;
	width: 100%;
}

.container {
	display: flex;
	align-items: center;
	height: 100px;
}

.img {
	height: 120px;
}

.week-selector {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 20px 0;
}

.week-selector a {
	text-decoration: none;
	padding: 6px 10px;
	background-color: #1f7320;
	border-radius: 4px;
	color: #fff;
	font-family: Helvetica, Arial, sans-serif;
}

.week-selector a:hover {
	background-color: #ddd;
}

.table-scroll {
  display: none;                 /* hidden until header is clicked */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.buttons--search { background: #007BFF; }
.buttons--ladies { background: #e544eb; }

.iframe-container {
	position: relative;
	width: 100%;
	padding-bottom: 40%;
	/* 16:9 aspect ratio; change perchance */
	height: 0;
	overflow: hidden;
}

.iframe-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.top-buttons {
	display: flex;
	gap: 10px;
	/* space between buttons */
}

.buttons {
	background: #007BFF;
	color: white;
	padding: 10px 20px;
	text-decoration: none;
	border-radius: 5px;
	font-weight: bold;
}

/* Tablet first */
@media (max-width: 1024px) {
	.container {
		flex-wrap: wrap;
		/* allow title / buttons to move to a new line */
		gap: 10px;
		height: auto;
		/* no fixed header height */
	}

	.img {
		height: 80px;
	}

	h1 {
		font-size: 28px;
		line-height: 1.2;
		margin: 0;
	}

	.top-buttons a {
		font-size: 14px;
		padding: 8px 12px;
	}
}

/* Mobile */
@media (max-width: 768px) {
	html {
		zoom: .6;
	}
	body {
		padding: 10px;

	}

	/* remove the old transform scale */
	.resultsdiv {
		grid-template-columns: 1fr;
		width: 100%;
	}

	.resultsdiv2 {
		display: none;
	}

	.resultsdiv1,
	.resultsdiv3 {
		width: 100%;
	}

	/* Put buttons under the title, stacked */
	.top-buttons {
		width: 100%;
		display: grid;
		grid-template-columns: 1fr;
		gap: 8px;
		margin-top: 6px;
	}

	/* Make the headers nice tap targets */
	h3 {
		font-size: 18px;
		padding: 12px;
	}

	/* Tables live inside a scroll container on small screens */
	.table-scroll {
		overflow-x: visible;
		-webkit-overflow-scrolling: touch;
	}

	.results,
	.leaguetable {
		width: 100%;
		min-width: 640px;
		/* prevents cramped columns; scrolls horizontally if needed */
		table-layout: auto;
		word-wrap: normal;
	}

	th,
	td {
		padding: 0px 0px;
	}
}

/* MOBILE */

@media (max-width: 768px) {

.page-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}