/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after {
	box-sizing: border-box;
}

html, body {
	height: 100%;
	margin: 0;
	padding: 0;
}

body {
	background: #232323 url(images/bg.png) repeat;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Make HTML5 elements display block-level */
header, nav, article, section, aside, footer, address {
	display: block;
}

/* ===========================
   CUSTOM FONT
   =========================== */
@font-face {
	font-family: 'LeagueGothicRegular';
	src: url('fonts/League_Gothic-webfont.eot');
	src: url('fonts/League_Gothic-webfont.eot?#iefix') format('embedded-opentype'),
		 url('fonts/League_Gothic-webfont.woff') format('woff'),
		 url('fonts/League_Gothic-webfont.ttf') format('truetype'),
		 url('fonts/League_Gothic-webfont.svg#LeagueGothicRegular') format('svg');
	font-weight: normal;
	font-style: normal;
}

/* ===========================
   LAYOUT
   =========================== */
.wrapper {
	width: 100%;
	max-width: 980px;
	min-height: 100vh;
	margin: 0 auto;
	text-align: center;
	background: url(images/bg-light.png) no-repeat center top;
	padding: 20px 20px 0;
	display: flex;
	flex-direction: column;
}

.content {
	flex: 1;
}

footer {
	padding: 30px 0 20px;
}

/* ===========================
   LOGO
   =========================== */
.logo {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}

/* ===========================
   LINKS
   =========================== */
a {
	color: #77dff1;
	text-decoration: none;
}

/* ===========================
   HEADINGS
   =========================== */
h1 {
	text-transform: uppercase;
	color: #77dff1;
	font-family: 'LeagueGothicRegular', "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: clamp(40px, 8vw, 80px);
	font-weight: lighter;
	text-shadow: 0px 2px 0px #000;
	margin: 30px 0 0 0;
	line-height: 1.1;
}

h2 {
	text-transform: uppercase;
	color: #77dff1;
	font-family: 'LeagueGothicRegular', "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: clamp(16px, 4vw, 24px);
	font-weight: lighter;
	text-shadow: 0px 2px 0px #000;
	margin: 15px 0 15px 0;
	text-align: left;
}

/* ===========================
   PARAGRAPHS
   =========================== */
p {
	color: #fff;
	margin: 0;
	font-size: clamp(14px, 2.5vw, 16px);
	text-shadow: 0 -2px 0 #000;
}

p.credit {
	font-size: clamp(10px, 2vw, 12px);
	color: #ccc;
	text-shadow: none;
}

/* ===========================
   DIVIDER
   =========================== */
.hr {
	display: block;
	border: none;
	width: 100%;
	height: 2px;
	background: url(images/divider.png) repeat-x;
	margin: 10px 0;
}

/* ===========================
   UTILITIES
   =========================== */
.clear {
	clear: both;
}

/* ===========================
   PROGRESS SECTION
   =========================== */
.progress {
	height: 110px;
	margin: 60px 0 40px;
	background: url(images/progress-container.png) no-repeat center top;
	background-size: 100% auto;
	position: relative;
}

.progress-label {
	display: none; /* visível só em mobile via media query */
	color: #77dff1;
	font-family: 'LeagueGothicRegular', sans-serif;
	font-size: 18px;
	text-transform: uppercase;
	margin-top: 8px;
}

.txt-launch-day-hat {
	background: url(images/txt-launch-day-hat.png) no-repeat;
	width: 117px;
	height: 159px;
	position: absolute;
	top: -120px;
	right: -10px;
}

.txt-launch-day {
	background: url(images/txt-launch-day.png) no-repeat;
	width: 112px;
	height: 110px;
	position: absolute;
	top: -80px;
	right: -40px;
}

.progress-bar {
	height: 43px;
	background: #72dbf1 url(images/progress-bar.png) repeat-x;
	position: absolute;
	top: 14px;
	left: 0;
	border-radius: 10px;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	transition: width 1s ease-in-out;
}

.progress-bar-container {
	width: 100%;
	height: 70px;
	position: relative;
}

/* ===========================
   MAILING LIST
   =========================== */
.mailing-list h2 {
	width: 100%;
	float: none;
	text-align: center;
}

.mailing-list form {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 10px 0 0;
}

.mailing-list input[type=text] {
	width: 280px;
	max-width: 100%;
	height: 46px;
	background: url(images/form-bg.png) no-repeat;
	border: none;
	color: #c9c9c9;
	font-size: 14px;
	padding: 15px 10px;
	margin: 0;
}

.mailing-list input[type=submit] {
	width: 90px;
	height: 44px;
	background: url(images/btn-subscribe.png) no-repeat;
	border: none;
	text-indent: -5000px;
	cursor: pointer;
	margin: 0;
}

.mailing-list input[type=submit]:hover {
	background-position: 0 -44px;
}

.mailing-list input[type=submit]:active {
	background-position: 0 -88px;
}

.mailing-list input[type=text]:focus {
	outline: none;
}

/* ===========================
   TIPSY TOOLTIP
   =========================== */
.tipsy {
	margin-bottom: 25px;
	font-size: 18px;
	opacity: 0.8;
	filter: alpha(opacity=80);
	background-repeat: no-repeat;
	background-image: url(images/tipsy.png);
	font-family: 'LeagueGothicRegular', sans-serif;
	text-transform: uppercase;
}

.tipsy-inner {
	padding: 10px 20px;
	background-color: black;
	color: white;
	max-width: 90vw;
	text-align: right;
	-webkit-box-shadow: 0 20px 15px rgba(0,0,0,0.5);
	-moz-box-shadow: 0 20px 15px rgba(0,0,0,0.5);
	box-shadow: 0 20px 15px rgba(0,0,0,0.5);
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}

.tipsy-north  { background-position: top center; }
.tipsy-south  { background-position: bottom center; }
.tipsy-east   { background-position: right center; }
.tipsy-west   { background-position: left center; }
.tipsy-container { border: 1px solid green; }

/* ===========================
   RESPONSIVE — TABLET (768px)
   =========================== */
@media (max-width: 768px) {
	.wrapper {
		padding: 16px 16px 0;
	}

	h1 {
		font-size: clamp(32px, 9vw, 60px);
		margin: 20px 0 0;
	}

	.progress {
		height: auto;
		min-height: 90px;
		margin: 40px 0 20px;
		background-size: 100% auto;
	}

	.progress-bar {
		height: 34px;
		top: 10px;
	}

	.progress-bar-container {
		height: 55px;
	}

	.txt-launch-day-hat {
		width: 80px;
		height: 108px;
		top: -85px;
		right: -5px;
		background-size: contain;
	}
}

/* ===========================
   RESPONSIVE — MOBILE (480px)
   =========================== */
@media (max-width: 480px) {
	.wrapper {
		padding: 12px 12px 0;
	}

	h1 {
		font-size: clamp(28px, 10vw, 48px);
	}

	p {
		font-size: 14px;
	}

	.progress {
		min-height: 70px;
		margin: 30px 0 15px;
	}

	.progress-bar {
		height: 26px;
		top: 8px;
	}

	.progress-bar-container {
		height: 45px;
	}

	/* Mostrar label de porcentagem no mobile (tooltip não é acessível em touch) */
	.progress-label {
		display: block;
	}

	.txt-launch-day-hat {
		width: 60px;
		height: 82px;
		top: -60px;
		right: -5px;
		background-size: contain;
	}

	.tipsy {
		display: none; /* tooltip não funciona bem em touch */
	}
}