.tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}
.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}
/*
* FOE Calculator — Styles
* Cleaned + grouped for maintainability
*/

/* =========================
   Base / Document
   ========================= */

:root {
	--content-width: min(95vw, 2000px);
}

.app-stage,
.app-shell {
	width: 100%;
	box-sizing: border-box;
}

@media (min-width: 1900px) {
	body::before {
		content: "";
		position: fixed;
		inset: 0;
		pointer-events: none;
		background: linear-gradient(
			to right,
			rgba(0,0,0,0.30),
			rgba(0,0,0,0.05) 10%,
			transparent 20%,
			transparent 80%,
			rgba(0,0,0,0.05) 90%,
			rgba(0,0,0,0.30)
		);
		z-index: 0;
	}
}

.app-shell {
	width: var(--content-width);
	margin-left: auto;
	margin-right: auto;
}

/*@media (min-width: 1600px) {
	.app-shell {
		box-shadow:
			0 24px 70px rgba(0, 0, 0, 0.26),
			0 0 0 1px rgba(239, 219, 166, 0.05);
	}
}

@media (min-width: 1600px) {
	.app-stage {
		width: min(98vw, 1800px);
		margin-left: auto;
		margin-right: auto;
		padding: 18px;
		border-radius: 28px;
		background: rgba(255, 255, 255, 0.025);
		border: 1px solid rgba(239, 219, 166, 0.05);
		backdrop-filter: blur(8px);
		-webkit-backdrop-filter: blur(8px);
	}
}*/

.nav-wrapper,
header,
.top-wrapper,
footer {
  width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

.nav-wrapper {
    padding-top: 10px;
}

html, body {
    overflow-x: hidden;
}

body {
	font-family: 'Noto Sans', sans-serif;
	background-image: var(--background-image-lazy);
	--background-image-lazy: url(2361f46720bc2cae876f.webp);
	background-repeat: repeat;
	object-fit: contain;
	height: 100%;
	max-width: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: #251207;

	/* App-wide safety: prevent “click-through” on background */
	pointer-events: none;
}

/* Ensure child elements can still capture events */
body > * {
	pointer-events: auto;
}

img#logo {
	width: 100%;
	height: auto;
}

/* =========================
   Typography / Text
   ========================= */

h1 {
	color: #efdba6;
	font-size: 1.6rem !important;
	font-weight: 500;
}

h2,
label.gb-select {
	color: #efdba6;
	font-weight: 300;
	font-size: 1.1rem;
}

h3, h4, h5, h6 {
	color: #efdba6;
	font-weight: 400;
}

.output-container > h3 {
	font-size: 1.2rem;
	color: #efdba6;
}

/* Syntax highlighting spans (thread posts) */
.username {
	color: #C792EA;
	z-index: 2;
}
.numbers {
	color: #ffc107;
	z-index: 2;
}
.keyword {
	color: #03A9F4;
	z-index: 2;
}

/* =========================
   Layout / Shell
   ========================= */

header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	/*padding: 10px 15px 0px 15px;*/
}

/*.top-wrapper {
	padding: 0px 15px 0px 15px;
}*/

.data-section {
	width: 100%;
    box-sizing: border-box;
}

.container {
	display: flex;
	height: 100%;
	max-width: 100%;
	margin: 20px;
}

.left-column {
	flex: 1;
	height: 100%;
	max-width: 100%;
}

#dynamic-content {
    width: 100%;
}

#dynamic-content #calculator-root {
  margin-left: auto;
  margin-right: auto;
}

.home-favorites-panel {
	background: rgb(0 0 0 / 40%);
	border-radius: 8px;
	border: 1px solid rgb(239 219 166 / 14%);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.10);
	padding: 14px;
	margin: 12px 0 14px 0;
}

.home-favorites-panel__title {
	margin: 0 0 12px 0;
	color: #efdba6;
	font-size: 1.05rem;
	font-weight: 500;
}

.home-favorites-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.home-favorite-card {
	background: rgb(0 0 0 / 28%);
	border: 1px solid rgb(239 219 166 / 14%);
	border-radius: 8px;
	color: #efdba6;
	min-height: 88px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 10px;
	cursor: pointer;
	font: inherit;
}

.home-favorite-card--placeholder {
	cursor: default;
	flex-direction: column;
	opacity: 0.9;
}

.home-favorite-card__plus {
	font-size: 1.75rem;
	line-height: 1;
	margin-bottom: 4px;
}

.home-favorite-card__label {
	font-size: 0.9rem;
}

.home-show-more-btn,
.favorite-gb-btn {
	background: #efdba6;
	color: black;
	border: 0;
	border-radius: 4px;
	padding: 8px 12px;
	font: inherit;
	cursor: pointer;
}

.home-show-more-btn {
	margin: 8px 0 16px 0;
}

/* =========================
   Navigation
   ========================= */

nav {
	display: flex;
	justify-content: flex-start;
	padding: 5px;
}

nav > ul {
	margin: 0px;
	padding-left: 0px;

	display: flex;
	flex-direction: row;
	gap: 14px;
	align-items: center;
	flex-wrap: wrap;
}

nav > ul > li {
	list-style-type: none;
}

nav > ul > li > a,
nav > ul > li {
	color: #ffffff;
	font-size: .875rem;
}

nav > ul > li > a:hover {
	color: #e6e6e6;
}

/* =========================
   Form controls
   ========================= */

input {
	font-family: 'Noto Sans', sans-serif;
	font-weight: 500;
	border: 0px;
	border-radius: 3px;
	background-color: #f7f7f7;
}

input.multiplier-input[type=number]::-webkit-inner-spin-button {
	opacity: 1;
	height: 22px;
}

select#gb-select {
	font-family: 'Noto Sans', sans-serif;
	font-weight: 500;
	font-size: 1rem;
	line-height: normal;
	border: 0px;
	background-color: #f7f7f7;
	color: black;
	width: 100%;
	padding: 5px 0px 5px 0px;
	margin: 10px 0px 5px 0px;
	border-radius: 3px;
	height: 35px;
    cursor: pointer;
}

select#level-option,
select#formalNameOption,
select#post-style-option {
	width: 110px;
	height: 30px;
	padding: 5px;
	border: 1px transparent;
	border-radius: 3px;
	font-size: 1rem;
	color: black;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* =========================
   Calculator layout
   ========================= */

#calculator-root {
   width: var(--content-width);
   margin: 0 auto; 
}

.options-container-2 {
	display: flex;
	justify-content: space-between;
	width: 100%;
}

.option-area {
	padding: 10px 0px;
}

.option-area label {
	color: #efdba6;
	max-width: fit-content;
	margin-right: 10px;
}

.option-area input {
	padding: 5px;
	width: 100px;
	font-size: 1rem;
	color: black;
}

.option-area img {
	max-width: 100%;
	display: inline-block;
	margin: 0 auto;
}

.row {
	text-align: right;
	margin-bottom: 5px;
}

.options-label {
	margin-right: 10px;
	width: 180px;
	text-align: right;
}

#gb-image {
	width: 100%;
	height: auto;
	max-height: 300px;
	margin-top: 20px;
}

/* Legacy / unused (kept to avoid surprises) */
.options-container-1 {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	padding: 5px 0px 5px 0px;
}
.option-area-1 input {
	padding: 5px;
	width: 60px;
}

.split-container {
	display: grid;
	grid-template-columns: 2fr 1fr;
	width: 100%;
}

.post-options {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	width: 100%;
}
.post-options > div {
	margin: 5px 5px;
}
.post-options label {
	color: #efdba6;
	font-size: .9rem;
}

/* =========================
   Positions Table + Rewards (HIGH PRIORITY)
   ========================= */

/*table#positions-table {
	width: 100%;
	margin: 10px 0px 10px 0px;
	padding: 10px;
	border-radius: 5px;
	overflow: hidden;
	background: rgb(0 0 0 / 40%);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	border: 1px solid rgb(239 219 166 / 14%);
}*/

table#positions-table {
	width: 100%;
	margin: 10px 0px 10px 0px;
	padding: 10px;
	border-radius: 5px;
	overflow: hidden;
	background: rgb(0 0 0 / 40%);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	border: 1px solid rgb(239 219 166 / 14%);
}

/* Desktop-only fixed layout (mobile stays fluid) */
@media (min-width: 1025px) {
	table#positions-table {
		width: var(--content-width);
		margin-left: auto;
		margin-right: auto;
		table-layout: fixed;
	}
}

/* Desktop: constrain Rewards column so it doesn't stretch across the table */
@media (min-width: 1025px) {
	/* Make the table feel centered and not too wide */
	table#positions-table {
		width: var(--content-width);
		margin-left: auto;
		margin-right: auto;
		table-layout: fixed;
	}

	/* Column 1: Position */
	table#positions-table th:nth-child(1),
	table#positions-table td:nth-child(1) {
		/*width: 32%;*/
        width: 23%;
	}

	/* Column 2: Rewards (tighter) */
	table#positions-table th:nth-child(2),
	table#positions-table td:nth-child(2) {
		width: 240px; /* <-- tighter than before */
	}

	/* Column 3: Multiplier */
	table#positions-table th:nth-child(3),
	table#positions-table td:nth-child(3) {
		width: 18%;
	}

	/* Slightly tighter padding on desktop */
	table#positions-table th,
	table#positions-table td {
		padding: 8px 6px;
	}

	/* Keep the rewards cluster centered within its column */
	td.position-reward {
		max-width: 240px;
		margin: 0 auto;
        height: 20px;
	}

	/* Tighten the base/mult span widths a bit */
	td.position-reward .reward-base,
	td.position-reward .reward-mult {
		width: 4ch;
	}
}

/* Desktop: constrain Rewards column so it doesn't stretch across the table */
@media (min-width: 1025px) {
	/* Column 1: Position */
	table#positions-table th:nth-child(1),
	table#positions-table td:nth-child(1) {
		width: 23%;
	}

	/* Column 2: Rewards (tight) */
	table#positions-table th:nth-child(2),
	table#positions-table td:nth-child(2) {
		width: 240px; /* adjust 220–280 based on taste */
	}

	/* Column 3: Multiplier */
	table#positions-table th:nth-child(3),
	table#positions-table td:nth-child(3) {
		width: 22%;
	}

	/* Slightly tighter padding on desktop for a denser look */
	table#positions-table th,
	table#positions-table td {
		padding: 8px 6px;
	}

	/* Center the rewards "cluster" inside its fixed-width column */
	td.position-reward {
		max-width: 240px;
		margin: 0 auto;
	}
}

tbody {
	text-align: center;
}

th.top {
	color: #efdba6;
	font-weight: 400;
}

th, td {
	padding: 10px;
}

td.position-item,
td.position-reward {
	color: #efdba6;
}

td.position-item {
	color: #efdba6;
}

.position-item td {
	width: 25px;
}

/* Lock status coloring */
.green { color: #4CAF50; }
.red { color: #F44336; }

/* Multiplier inputs */
.multiplier-input {
	width: 50px;
	height: 23px;
	font-size: 1rem;
}

/* ---- NEW Rewards Cell Implementation ----
   Goal: base (left) + badge centered + multiplied (right)
   Badge is now a centered background-image on the cell itself.
*/
.reward-base,
.reward-mult {
	font-variant-numeric: tabular-nums;
}

td.position-reward {
	font-size: 1rem;
	color: #efdba6;

	display: flex;
	justify-content: space-between;
	align-items: center;

	position: relative;
	transform: translateX(-5px);

	background-repeat: no-repeat;
	background-position: center;
	background-size: 25px 24px;
}

/* Two numeric spans (base + multiplied) */
td.position-reward .reward-base,
td.position-reward .reward-mult {
	display: inline-block;
	/*width: 3em;*/     /* keeps badge visually centered */
    width: 5ch;
	line-height: 1;
}

td.position-reward .reward-base {
	text-align: right;
	padding-right: 6px;
}

td.position-reward .reward-mult {
	text-align: left;
	padding-left: 6px;
}

/* Badge images mapped by existing IDs */
td#badge-1 { background-image: url(9eb2fb0b3c344d57c7dd.webp); }
td#badge-2 { background-image: url(85c8b3c6bae49f0812c8.webp); }
td#badge-3 { background-image: url(7a081787d2c247183868.webp); }
td#badge-4 { background-image: url(59af412c518d7b08328f.webp); }
td#badge-5 { background-image: url(932de0f855b414321722.webp); }

/* Disable old pseudo-element badge styling (safe even if still present elsewhere) */
td.position-reward::after { content: none !important; }
td#badge-1::after,
td#badge-2::after,
td#badge-3::after,
td#badge-4::after,
td#badge-5::after { content: none !important; }

/* Retina badges */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi),
       only screen and (min-resolution: 2dppx) {
	td#badge-1 { background-image: url(f4509d67427599dc9ce4.webp); }
	td#badge-2 { background-image: url(46defed9377ddb6dc399.webp); }
	td#badge-3 { background-image: url(c2b59f1e0ffb14b5885a.webp); }
	td#badge-4 { background-image: url(7c927d04fd04e1beb696.webp); }
	td#badge-5 { background-image: url(21dee8352981418a8a7d.webp); }
}

/* =========================
   Owner totals + misc info
   ========================= */

span#cell-owner-total {
	padding: 10px;
	color: #efdba6;
}

.data-info {
	display: flex;
	justify-content: flex-end;
}

#output-section p {
	color: #efdba6;
}

/* =========================
   Thread Posts Output
   ========================= */

.output-container {
	margin-top: 20px;
}

.output-textarea {
	background: rgb(0 0 0 / 40%);
	border-radius: 5px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	border: 1px solid rgb(239 219 166 / 14%);

	font-size: 1rem;
	padding: 35px 15px 25px 15px;
	width: -webkit-fill-available;
	resize: none;
	white-space: pre;
	overflow-x: auto;

	z-index: 1;
	font-family: 'Noto Sans', sans-serif;
	font-weight: 400;
	position: relative;
	color: #e6e6e6;

	user-select: text;
	-webkit-user-select: text;
	-moz-user-select: text;
	-ms-user-select: text;
}

.textarea-container {
	position: relative;
	margin-bottom: 15px;
}

.copy-btn {
	position: absolute;
	top: 5px;
	right: 5px;
	border: 1px solid transparent;
	border-radius: 3px;
	z-index: 2;
	color: black;
	padding: 2px 4px;
	cursor: pointer;
}

/* Legacy */
#myTextarea {
	width: 100%;
	height: 100px;
	padding-top: 30px;
	position: relative;
	z-index: 1;
}

/* =========================
   Buttons
   ========================= */

/*button.foe-button {
	background-image: url('/assets/img/foes.button.webp');
	background-size: cover;
	width: 200px;
	height: 60px;
	background-color: transparent;
	border: none;
	color: white;
	cursor: pointer;
	font-size: 14px;
}
button.foe-button:hover {
	background-image: url('/assets/img/foes-button-hover.webp');
	background-size: cover;
	width: 200px;
	height: 60px;
	background-color: transparent;
	border: none;
	color: white;
	cursor: pointer;
}*/

/* Generate button styles and animation/feedback */

button.foe-button {
	background-image: url(0f38b33780b97873b011.webp);
	background-size: cover;
	width: 200px;
	height: 60px;
	background-color: transparent;
	border: none;
	color: white;
	cursor: pointer;
	font-size: 14px;
	transition: transform 120ms ease, filter 120ms ease;
	transform: translateZ(0);
}

button.foe-button:hover {
	background-image: url(d48ca6f18838b67abcec.webp);
	background-size: cover;
	width: 200px;
	height: 60px;
	background-color: transparent;
	border: none;
	color: white;
	cursor: pointer;
}

button.foe-button:active {
	transform: scale(0.97);
	filter: brightness(0.96);
}

button.foe-button:focus-visible {
	outline: 2px solid #efdba6;
	outline-offset: 2px;
}

/* Buttons Continued */

button.reset-button {
	background-color: rgb(205, 2, 2);
	padding: 6px 12px;
	cursor: pointer;
	color: #ffffff;
	font-size: 12px;
	border-radius: 3px;
	border: 0px;
}

button.save-button {
	background-color: #4caf50;
	padding: 6px 12px;
	cursor: pointer;
	color: #ffffff;
	font-size: 12px;
	border-radius: 3px;
	border: 0px;
}

div#save-reset-btn-container {
	margin-top: 15px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	flex-wrap: wrap;
}

/* Lock P1+P2 CTA (keep ONLY one definition) */
button.lock-p1p2-btn {
	background-color: rgba(0, 0, 0, 0.45);
	border: 1px solid rgb(239 219 166 / 40%);
	color: #efdba6;

	font-size: 14px;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 4px;

	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;

	margin-right: 10px;

	transition:
		transform 120ms ease,
		background-color 120ms ease,
		box-shadow 120ms ease,
		border-color 120ms ease;
}

button.lock-p1p2-btn:hover {
	background-color: rgba(0, 0, 0, 0.65);
	border-color: rgb(239 219 166 / 60%);
	box-shadow: 0 0 8px rgba(239, 219, 166, 0.4);
}

button.lock-p1p2-btn:active {
	transform: scale(0.97);
}

button.lock-p1p2-btn:focus-visible {
	outline: 2px solid #efdba6;
	outline-offset: 2px;
}

.lock-p1p2-btn__amt {
	color: #ffffff;
	font-weight: 700;
}

.lock-p1p2-btn__icon i {
	font-size: 16px;
}

/* =========================
   Progress bar
   ========================= */

.progress-bar-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: var(--content-width);
	margin: auto auto 30px auto;
	display: none;
}

.gb-progress-container {
	width: 100%;
	background-color: rgb(0 0 0 / 40%);
	border-radius: 15px;
	box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.15);
	border: 1px solid rgb(239 219 166 / 14%);
	height: 30px;
	overflow: hidden;
	position: relative;
}

.progress-bar {
	width: 0;
	height: 100%;
	background: linear-gradient(to right, #43A047, #66BB6A);
	text-align: center;
	line-height: 30px;
	transition: width 0.4s ease;
}

.progress-label {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #f7f7f7;
	font-size: .9rem;
	font-weight: 500;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
	z-index: 2;
}

.progress-bar-title-container {
	margin-top: 10px;
	text-align: center;
	width: 100%;
	margin-bottom: 10px;
}

.progress-bar-title {
	font-size: 1rem;
	font-weight: 500;
	color: #efdba6;
}

@media (min-width: 768px) and (max-width: 1024px) {
	.gb-progress-container {
		height: 30px;
	}
}

/* =========================
   Homepage GB Grid + Cards
   ========================= */

.gb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 14px;
	margin: 12px 0 18px 0;
}

.gb-card {
	background: rgb(0 0 0 / 40%);
	border-radius: 8px;
	border: 1px solid rgb(239 219 166 / 14%);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.10);
	overflow: hidden;

	cursor: pointer;
	user-select: none;

	display: grid;
	grid-template-rows: 120px auto;

	transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
	text-decoration: none;
	color: inherit;
}

.gb-card:visited { color: inherit; }

.gb-card:focus { outline: none; }
.gb-card:focus-visible {
	box-shadow: 0 0 0 2px rgb(239 219 166 / 22%), 0 4px 30px rgba(0,0,0,0.15);
	border-color: rgb(239 219 166 / 32%);
}

.gb-card:hover {
	transform: translateY(-2px);
	border-color: rgb(239 219 166 / 26%);
	background: rgb(0 0 0 / 44%);
}

.gb-card__imgWrap {
	height: 110px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 10px 0 10px;
}

.gb-card__img {
	max-height: 100%;
	max-width: 100%;
	height: auto;
	width: 100%;
	display: block;
	object-fit: contain;
	filter: drop-shadow(0 8px 10px rgba(0,0,0,0.35));
}

.gb-card__name {
	padding: 10px 10px 12px 10px;
	text-align: center;
	color: #efdba6;
	font-weight: 500;
	font-size: 0.95rem;
	line-height: 1.2;
}

.gb-card__name::before {
	content: "";
	display: block;
	height: 1px;
	margin: 0 auto 10px auto;
	width: 60%;
	background: linear-gradient(
		to right,
		transparent,
		rgb(239 219 166 / 35%),
		transparent
	);
}

@media (max-width: 480px) {
	.gb-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 10px;
	}
	.gb-card {
		grid-template-rows: 110px auto;
	}
	.gb-card__img {
		max-height: 100px;
	}
}

/* =========================
   Tooltips
   ========================= */

.tippy-box[data-theme~='foe-calc-theme'] {
	background-color: rgb(0 0 0 / 40%);
	color: #efdba6;
}

/* =========================
   Ads
   ========================= */

#gb-results-ad,
#home-grid-ad {
	width: 100%;
    text-align: center;
}

#gb-results-ad ins.adsbygoogle,
#home-grid-ad ins.adsbygoogle {
	display: block;
	width: 100%;
	margin: 0 auto;
}

/* =========================
   Footer
   ========================= */

footer {
	font-family: 'Noto Sans', sans-serif;
	font-weight: 500;
	font-size: .7rem;
	color: #efdba6;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin-top: auto;
}

.footer-links a {
	color: inherit;
	text-decoration: none;
}

.footer-links a:hover {
	text-decoration: underline;
}

/* =========================
   Modal (MicroModal)
   ========================= */

.modal {
	font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif;
	z-index: 3;
}

.modal__overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.6);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 3;
}

.modal__container {
	background-color: #fff;
	padding: 30px;
	max-width: 500px;
	max-height: 100vh;
	border-radius: 4px;
	overflow-y: auto;
	box-sizing: border-box;
	z-index: 3;
}

.modal__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 3;
}

.modal__title {
	margin-top: 0;
	margin-bottom: 0;
	font-weight: 600;
	font-size: 1.25rem;
	line-height: 1.25;
	color: #00449e;
	box-sizing: border-box;
	z-index: 3;
}

.modal__close {
	background: transparent;
	border: 0;
}

.modal__header .modal__close:before { content: "\2715"; }

.modal__content {
	margin-top: 2rem;
	margin-bottom: 2rem;
	line-height: 1.5;
	color: rgba(0,0,0,.8);
}

.modal__btn {
	font-size: .875rem;
	padding-left: 1rem;
	padding-right: 1rem;
	padding-top: .5rem;
	padding-bottom: .5rem;
	background-color: #e6e6e6;
	color: rgba(0,0,0,.8);
	border-radius: .25rem;
	border-style: none;
	border-width: 0;
	cursor: pointer;
	text-transform: none;
	overflow: visible;
	line-height: 1.15;
	margin: 0;
	will-change: transform;
	-moz-osx-font-smoothing: grayscale;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
	transition: transform .25s ease-out;
}

.modal__btn:focus,
.modal__btn:hover {
	transform: scale(1.05);
}

.modal__btn-primary {
	background-color: #00449e;
	color: #fff;
}

/* Demo Animation Style */
@keyframes mmfadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes mmfadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes mmslideIn { from { transform: translateY(15%); } to { transform: translateY(0); } }
@keyframes mmslideOut { from { transform: translateY(0); } to { transform: translateY(-10%); } }

.micromodal-slide { display: none; }
.micromodal-slide.is-open { display: block; }

.micromodal-slide[aria-hidden="false"] .modal__overlay {
	animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
	animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
	animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
	animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide .modal__container,
.micromodal-slide .modal__overlay {
	will-change: transform;
}

/* =========================
   Responsive layout tweaks
   ========================= */

/* Mobile Devices */
@media (max-width: 480px) {
	.options-container-2 {
		display: flex;
		width: 100%;
		flex-direction: column;
		align-items: center;
	}

	.option-area {
		padding: 10px;
	}

	.option-area input {
		width: 100px;
	}

	.button-wrapper {
		display: flex;
		justify-content: center;
		margin: 20px auto auto auto;
	}

	#gb-image {
		width: 180px;
	}

	td.position-reward {
		font-size: 1rem;
	}
}

/* Low resolution Tablets and iPads */
@media (min-width: 481px) and (max-width: 767px) {
	.options-container-2 {
		display: flex;
		width: 100%;
		flex-direction: column;
		align-items: center;
	}

	.option-area {
		padding: 10px;
		min-height: 130px;
	}

	.option-area input {
		width: 100px;
	}

	.button-wrapper {
		display: flex;
		justify-content: center;
		margin: 20px auto 20px auto;
	}

	#gb-image {
		width: 180px;
	}
}

/* Tablets iPads (Portrait) */
@media (min-width: 768px) and (max-width: 1024px) {
	.options-container-2 {
		display: flex;
		width: 100%;
		flex-direction: column;
		align-items: center;
	}

	.option-area {
		padding: 10px;
		margin-bottom: 10px;
		min-height: 130px;
	}

	.option-area input {
		width: 100px;
	}

	.button-wrapper {
		display: flex;
		justify-content: center;
		margin: 20px auto 20px auto;
	}

	#gb-image {
		width: 180px;
	}
}

/* Minor label alignment tweak for small screens */
@media (max-width: 480px),
       (min-width: 481px) and (max-width: 767px) {
	.option-area label {
		text-align: right;
	}
}
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}

