main p {
	margin-bottom: 0;
}

h2 + .container > div {
	padding-top: 1.25rem;
}

.container {
	position: relative;
	color: var(--ui-font-color);
	background-color: var(--ui-bg-color);
}

.container h3 {
	margin-bottom: 0.75rem;
	color: var(--secondary-heading-color);
	font-size: 0.875rem;
	text-transform: uppercase;
}

.container > div {
	padding: 1rem;
}

/* BUILD HEADER */
#buildContainer {
	width: 100%;
	margin: 0 auto 2rem auto;
	display: flex;
	flex-direction: column;
}

#buildHead {
	display: flex;
	justify-content: space-between;
	margin: 1.5rem 0;
}

h1 {
	margin: 0;
	font-size: 1.5rem;
	line-height: 1.75rem;
}

#buildMetadataContainer {
	margin-right: 0.75rem;
}

#buildMetadataContainer > div {
	display: flex;
	align-items: center;
	margin-top: 1rem;
}

#buildMetadataContainer p {
	margin: 0 0.25rem 0 0;
	font-size: 0.875rem;
}

#buildMetadataAttribution {
	word-break: break-all;
	color: var(--primary-accent-color);
}

#buildMetadataDate {
	font-weight: 500;
	color: var(--heading-color);
}

#buildButtons {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

#buildButtons > div {
	display: flex;
	flex-direction: column;
	align-items: center;
}

#voteButton {
	width: 24px;
	height: 24px;
	margin: 0.2rem auto 0 auto;
	border: none;
	outline: none;
	cursor: pointer;
	background: none;
}

#voteButton svg {
	height: 24px;
	fill: transparent;
	stroke: var(--secondary-accent-color);
	stroke-width: 1.5px;
}

#buildVotesCount {
	margin-top: 0.25rem;
	font-size: 12px;
	text-align: center;
	color: var(--heading-color);
}

#buildSynopsis {
	margin-bottom: 1rem;
	padding: 0.75rem;
	text-align: center;
}

.video-container {
	position: relative;
	width: 100%;
	max-width: 768px;
	margin: 0 auto;
	overflow: hidden;
	background-color: #413e50;
}

.video-container::after {
	content: '';
	display: block;
	padding-top: 56.25%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#buildParagraph + .video-container {
	margin-top: 1rem
}

#buildContainer h2 {
	position: relative;
	z-index: 1;
	margin: 0 0 -0.5rem 0;
	font-size: 1.125rem;
	text-transform: uppercase;
}

/* BUILD MINIS */
#buildColumnsContainer {
	display: grid;
	flex-direction: column;
	gap: 1rem;
	grid-template-columns: 1fr;
	align-items: flex-start;
}

#buildTroops {
	display: flex;
	flex-wrap: wrap;
/*	gap: 0.5rem;*/
	grid-template-columns: repeat(3, 1fr);
/*	padding: 0.75rem;*/
    justify-content: center;
}
#buildMinis {
    padding: 0 !important;
}


/* BUILD STATS */
#buildStats {
	border-top: none;
	border-top-right-radius: 0;
	border-top-left-radius: 0;
}

.statbar {
	display: flex;
	height: 0.75rem;
	margin: 2rem 0 0.25rem 0;
	font-size: 15px;
}

.statbar div {
	position: relative;
	height: 100%;
	margin-left: 1px;
	background-color: rgb(255 255 255 / 25%);
}

.statbar div:first-of-type {
	margin-left: 0;
}

.statbar img {
	position: absolute;
	bottom: calc(100% + 3px);
	left: 50%;
	width: 18px;
	height: auto;
	transform: translateX(-50%);
}

.stats-container {
	display: grid;
	grid-gap: 0.5rem;
	grid-template-columns: 1fr 1fr;
	max-width: 280px;
}

.stat {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto;
	align-items: center;
}

.stat img {
	margin-right: 0.375rem;
}

.stat-name {
	display: block;
	font-weight: 500;
	font-size: 3.5vw;
	font-size: clamp(9px, 3.5vw, 13px);
	line-height: 13px;
}

.stat-value {
	display: block;
	font-weight: 600;
	font-size: 15px;
	height: 18px;
	color: var(--heading-color);
}

/* MINI STATS */
#miniStats > div > div {
	margin-bottom: 1.5rem;
}
#miniStats > div > div:last-of-type {
	margin-bottom: 0;
}

/* BUTTONS */
#buttonsContainer {
	display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
}

#buttonsContainer > div:first-child {
    display: flex;
    flex-flow: wrap;
}

#shareButton {
	display: flex;
	align-items: center;
/*	margin: 0 0.75rem 2rem 0;*/
}

#shareButton svg {
	width: 14px;
	height: 14px;
	margin-right: 0.5rem;
    stroke: black;
} 

#copyUrlButton:active {
	border: 3px solid #0069B5;
    background-color: #00599A;
}

#editButton {
    align-items: center;
    height: fit-content;
	display: flex;
}

#editButton svg {
	width: 14px;
	height: 14px;
	margin-right: 0.5rem;
    stroke: white;
    fill: white;
    filter: drop-shadow(0px 0px 4px black);
}

#moreButtonsContainer {
    position: relative;
}

#moreActionsButton {
    width: 64px;
    height: 32px;
    border: none;
    outline: 0;
    cursor: pointer;
    background: none;
	display: block;
}

#moreActionsButton svg {
    height: 32px;
    fill: white;
}

#moreButtons {
    display: block;
    position: absolute;
    top: 2rem;
    right: 0;
    z-index: 1;
    padding: 0.5rem 0.25rem;
    background-color: var(--ui-bg-color);
}

#moreButtons button {
    display: flex;
    align-items: center;
    width: max-content;
    padding: 0.25rem 0.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--ui-font-color);
    cursor: pointer;
    border: none;
    background: none;
}

#moreButtons button:hover {
	background: #464257;
}

#deleteDeckWindow .window-content-container {
    padding: 1rem 0.75rem;
}

#buttonsContainer button img, #editButton img {
    margin-right: 0.35rem;
}

#deleteDeckWindow .window-content-container p {
    margin-bottom: 1rem;
}

#deleteDeckWindow .window-content-container button {
    margin-right: 0.5rem;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    border: none;
    border-radius: 0.5rem;
    color: var(--font-color);
    background-color: #121b38;
}

#shareWindow .window-content-container {
	padding: 1rem;
}

#copyUrlButton {
	margin-top: 1rem;
}

.admin-buttons {
	margin-bottom: 2rem;
}

.admin-buttons h2 {
	margin-bottom: 0.5rem;
}


/* WINDOWS */
.window-bg {
	display: none;
	justify-content: center;
	align-items: center;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 200;
	width: 100%;
	height: 100%;
	background-color: #0000006b;
}

.window {
	display: flex;
	flex-direction: column;
	z-index: 5;
	width: 100%;
	max-width: 500px;
	max-height: 500px;
	margin: 1rem;
	overflow: hidden;
	background-color: var(--ui-bg-color);
}

.window-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.5rem 0.75rem;
	background-color: #241e58;
}

.window-title > span {
	color: var(--heading-color);
	font-weight: 600;
	font-size: 1rem;
	text-transform: uppercase;
}

.close-window-btn {
    width: 28px;
	height: 28px;
	padding: 5px;
	cursor: pointer;
	border: none;
	border-radius: 0.5rem;
	background: var(--secondary-accent-color);
}

.close-window-btn svg {
	pointer-events: none;
	fill: none;
	stroke: var(--heading-color);
	stroke-miterlimit: 10;
	stroke-width: 4px;
	transform: rotate(45deg);
}

.window-content-container {
	overflow-y: auto;
	overflow-x: hidden;
	color: var(--ui-font-color);
}

#loginWindow .window-content-container p a {
	color: var(--primary-accent-color);
}

#loginWindow .window {
	width: 303px;
}

#loginWindow .window-content-container {
	padding: 1rem;
}

#loginWindow .window-content-container p {
	line-height: 1.5rem;
	margin-bottom: 1rem;
}

#loginWindow a.marvel-snap-btn {
	margin: 0;
	display: block;
	width: fit-content;
}

#deleteBuildWindow .window-content-container {
    padding: 1rem 0.75rem;
}

#buttonsContainer button img, #editButton img {
    margin-right: 0.35rem;
}

#deleteBuildWindow .window-content-container p {
    margin-bottom: 1rem;
}

#deleteBuildWindow .window-content-container button {
    margin-right: 0.5rem;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    border: none;
    border-radius: 0.25rem;
    color: var(--heading-color);
    background-color: #706b8b;
}


/* BREAKPOINTS */
@media (min-width: 768px) {
	#buildColumnsContainer {
		grid-template-columns: 5fr 6fr;
		flex-direction: row;
	}

	#buildStats {
		grid-column: 1;
	}

	#buildGuide {
		grid-column: span 2;
	}
	.container {
/*		min-width: 500px;*/
	}
}
@media (min-width: 1024px) {
	.stats-container {
		justify-content: space-between;
		grid-template-columns: repeat(4, auto);
		max-width: 100%;
	}
}

/* WINDOWS */

.copy-window-container {
	display: flex;
	justify-content: center;
	align-items: center;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 200;
	width: 100%;
	height: 100%;
	background-color: rgb(0 0 0 / 25%);
}

.copy-window {
	position: relative;
	display: flex;
	flex-direction: column;
	z-index: 5;
	width: 100%;
	max-width: 500px;
	max-height: 500px;
	margin: 1rem;
	border-radius: 0.25rem;
	overflow: hidden;
	border: var(--ui-border);
	background-color: var(--ui-bg-color);
}

.copy-window-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.5rem 0.75rem;
	background-color: #413e50;
}

.copy-window-title > span {
	color: var(--heading-color);
	font-weight: 600;
	font-size: 1rem;
	text-transform: uppercase;
}

.copy-window-title > button {
	width: 28px;
	height: 28px;
	padding: 5px;
	cursor: pointer;
	border: none;
	border-radius: 0.5rem;
	background: #706b8b;
}

.copy-window-title > button > svg {
	pointer-events: none;
	fill: none;
	stroke: white;
	stroke-miterlimit: 10;
	stroke-width: 4px;
	transform: rotate(45deg);
}

.copy-window-content-container {
	overflow-y: auto;
	overflow-x: hidden;
	padding: 0.75rem;
    background-color: var(--global-nav-color);
}

.atAGlance {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
}

.glanceMarvelCard {
    display: inline-flex;
    flex-grow: 0;
    flex-shrink: 0;
    width: 100px;
    height: 50px;
    overflow: hidden;
	background-color: #120e32;
	margin: 5px;
/*    filter: drop-shadow(0px 0px 1px darkslateblue);*/

}

.glanceMarvelCardImg {
    display: flex;
    width: 34px;
    height: 50px;
    overflow: hidden;
}

.glanceMarvelCardImg img {
    width: 34px;
    height: 50px;
}

.glanceMarvelCardLogo {
    display: inline-flex;
    width: 66px;
    height: 50px;
    overflow: hidden;
    align-items: center;
}

.glanceMarvelCardLogo img {
    width: 66px;
    height: auto;
}