/*
	Free the Faeries Stylesheet
	Author: Dinah C.
	Date: 2023.09.06
 */

.freethefaeries-container {
	position: relative;
	width: 100%;
	height: max-content;
	font-family: "MuseoSansRounded500", 'Arial', sans-serif;
}

.freethefaeries-canvas {
	position: relative;
	width: 100%;
	height: min(calc(600 / 1080 * 100vw), calc(600 / 1080 * 1080px));
	background: url(images/ff-nchub-bg.png) center / 100% no-repeat;
	overflow: hidden;
	font-family: "MuseoSansRounded500", 'Arial', sans-serif;
}

.page-title__2020 .q-button__2020.ftf-faq {
	display: none !important;
}

/* Bottled Faeries */
.freethefaeries-canvas .ftf-cupboard {
	position: absolute;
	left: 5%;
	top: 0;
	width: 45%;
	height: min(600px, calc(600 / 1080 * 100vw));
}

.freethefaeries-canvas .ftf-anchor {
	position: absolute;
	bottom: calc((413 / 464 * 100%) - (212 / 473 * 50%));
	left: 0;
	width: 100%;
	padding-top: calc(212 / 473 * 100%);
	background: url(images/ff-nchub-anchor.png) center / 100% no-repeat;
	pointer-events: none;
}

.freethefaeries-canvas .ftf-shelving {
	position: absolute;
	bottom: 0;
	left: -5%;
	width: 110%;
	padding-top: calc(413 / 464 * 100%);
	background: url(images/ff-nchub-shelving.png) center / 100% 100% no-repeat;
}

.freethefaeries-canvas .ftf-bottles {
	position: absolute;
	bottom: min(calc(60 / 1080 * 100vw + 13%), calc(60 / 1080 * 1080px + 13%));
	left: -1em;
	right: 0;
	width: 55%;
	margin: auto;
	display: grid;
	grid-template: auto / repeat(4, calc(100% / 4));
}

.freethefaeries-canvas .ftf-bottles .ftf-bottle {
	width: 100%;
	padding-top: calc((600 / 3) / (500 / 3) * 100%);
	background: transparent center / 300% 300% no-repeat;
	opacity: 0.6;
	cursor: pointer;
	transition: opacity 0.6s, visibility 0.6s;
}

.freethefaeries-canvas .ftf-bottles .ftf-bottle.ftf-faerie-pink {
	background-image: url(images/ff-nchub-jarpink.png)
}

.freethefaeries-canvas .ftf-bottles .ftf-bottle.ftf-faerie-green {
	background-image: url(images/ff-nchub-jargreen.png)
}

.freethefaeries-canvas .ftf-bottles .ftf-bottle:hover {
	opacity: 1;
	transition: opacity 0.6s, visibility 0.6s;
}

.freethefaeries-canvas .ftf-bottles .ftf-bottle.notavailable, .freethefaeries-canvas .ftf-bottles .ftf-bottle.comingsoon {
	background-position: top left;
}

.freethefaeries-canvas .ftf-bottles .ftf-bottle.available {
	background-position: center left;
	-webkit-animation: flickerAnimation 3s infinite;
	-moz-animation: flickerAnimation 3s infinite;
	-o-animation: flickerAnimation 3s infinite;
	animation: flickerAnimation 3s infinite;
}

.freethefaeries-canvas .ftf-bottles .ftf-bottle.redeemed {
	background-position: bottom left;
}

@keyframes flickerAnimation {
  0%   { opacity:1; }
  50%  { opacity:0.6; }
  100% { opacity:1; }
}
@-o-keyframes flickerAnimation{
  0%   { opacity:1; }
  50%  { opacity:0.6; }
  100% { opacity:1; }
}
@-moz-keyframes flickerAnimation{
  0%   { opacity:1; }
  50%  { opacity:0.6; }
  100% { opacity:1; }
}
@-webkit-keyframes flickerAnimation{
  0%   { opacity:1; }
  50%  { opacity:0.6; }
  100% { opacity:1; }
}

/* Aethia */
.freethefaeries-canvas .ftf-aethia {
	position: absolute;
	bottom: -10%;
	left: 45%;
	width: 35%;
	padding-top: calc(1000 / 817 * 35%);
	background: url(images/aethia-sprite.png) center / 100% no-repeat;
}

/* Slingshot Status Info */
.freethefaeries-container .ftf-info {
	position: absolute;
	top: 0;
	right: 0;
	width: 30%;
}

.freethefaeries-container .ftf-status {
	width: 100%;
	padding: 3em;
	border-image: url(images/ff-nchub-gamebacking.png) calc(160 / 3) calc(240 / 3) fill / 50px 80px;
	color: #fff;
	text-align: center;
	box-sizing: border-box;
}

.freethefaeries-container .ftf-status .ftf-header {
	color: #fff;
	margin: auto;
}

.freethefaeries-canvas .ftf-count {
	font-weight: bold;
}

.freethefaeries-container .ftf-buttons {
	width: 100%;
	height: calc((205 / 2) / (275 / 2) * 100%);
	margin-top: -1em;
}

.freethefaeries-container .ftf-buttons .purchase-button {
	display: inline-block;
	width: 40%;
	padding-top: calc((205 / 2) / (275 / 2) * 40%);
	margin-left: 10%;
	background: url(images/ff-nchub-buttons.png?v=2) top right / 200% 200% no-repeat;
	cursor: pointer;
}

.freethefaeries-container .ftf-buttons .purchase-button:hover {
	background-position: bottom right;
}

.freethefaeries-container .ftf-buttons .ncmall-button {
	display: inline-block;
	width: 40%;
	padding-top: calc((205 / 2) / (275 / 2) * 40%);
	background: url(images/ff-nchub-buttons.png?v=2) top left / 200% 200% no-repeat;
}

.freethefaeries-container .ftf-buttons .ncmall-button:hover {
	background-position: bottom left;
}

/* Grass & Slingshots */
.freethefaeries-canvas .ftf-tabletop {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding-top: calc(60 / 1080 * 100%);
	background: url(images/ff-nchub-tabletop.png?v=2) center / 100% no-repeat;
}

.freethefaeries-canvas .ftf-slingshots {
	position: absolute;
	bottom: 15%;
	left: 10%;
	width: 30%;
	display: flex;
	flex-direction: row;
	gap: 1em;
}

.freethefaeries-canvas .ftf-slingshots .ftf-slingshot {
	flex: 1 0 25%;
	padding-top: 25%;
	cursor: pointer;
}

.freethefaeries-canvas .ftf-slingshots .ftf-slingshot.slingshot-1 {
	background: url(images/ff-nchub-slingshot1.png?v=2) top center / 100% 200% no-repeat;
}

.freethefaeries-canvas .ftf-slingshots .ftf-slingshot.slingshot-3 {
	background: url(images/ff-nchub-slingshot3.png?v=2) top center / 100% 200% no-repeat;
}

.freethefaeries-canvas .ftf-slingshots .ftf-slingshot.slingshot-6 {
	background: url(images/ff-nchub-slingshot6.png?v=2) top center / 100% 200% no-repeat;
}

.freethefaeries-canvas .ftf-slingshots .ftf-slingshot.slingshot-12 {
	background: url(images/ff-nchub-slingshot12.png?v=2) top center / 100% 200% no-repeat;
}

.freethefaeries-canvas .ftf-slingshots .ftf-slingshot.slingshot-1:hover, .freethefaeries-canvas .ftf-slingshots .ftf-slingshot.slingshot-3:hover,
.freethefaeries-canvas .ftf-slingshots .ftf-slingshot.slingshot-6:hover, .freethefaeries-canvas .ftf-slingshots .ftf-slingshot.slingshot-12:hover {
	background-position: bottom center;
}

.freethefaeries-container .ftf-back-link {
	position: absolute;
	bottom: 0;
	right: 0;
	color: white;
	font-family: "Cafeteria", 'Arial Black', sans-serif;
	z-index: 2;
}

.freethefaeries-container .ftf-back-button {
	border-image: url(images/ff-nchub-gamebacking.png) calc(160 / 3) calc(240 / 3) fill / 20px;
	padding: 1.1em;
}

/* Mobile Responsive */
@media screen and (max-width: 1080px) {
	.freethefaeries-container .ftf-info {
		width: 50%;
	}

	.freethefaeries-container .ftf-buttons {
		width: 50%;
		height: calc((205 / 2) / (275 / 2) * 50%);
		margin: -1em 0 0 auto;
	}

	.freethefaeries-canvas .ftf-aethia {
		left: 40%;
	}

	.freethefaeries-canvas .ftf-aethia, .freethefaeries-canvas .ftf-tabletop {
		z-index: 1;
	}
}

@media screen and (max-width: 750px) {
	.freethefaeries-canvas .ftf-aethia {
		display: none;
	}

	.freethefaeries-container .ftf-buttons {
		width: 60%;
		height: calc((205 / 2) / (275 / 2) * 60%);
		margin: -1em auto 0;
	}
}

@media screen and (max-width: 630px) and (min-width: 600px) {
	.freethefaeries-container .ftf-buttons {
		margin: -1em auto 0 0;
	}
}

@media screen and (max-width: 600px) {
	.freethefaeries-canvas {
		height: calc(600 / 1080 * 200vw);
        background-size: cover;
		overflow: unset;
	}

	.freethefaeries-canvas .ftf-cupboard {
		top: unset;
		left: 0;
		bottom: 0;
		right: 0;
		width: 90%;
		height: min(600px, calc(600 / 1080 * 160vw));
		margin: auto;
	}

	.freethefaeries-canvas .ftf-anchor {
		bottom: calc((413 / 464 * 120%) - (212 / 473 * 50%));
	}

	.freethefaeries-canvas .ftf-bottles {
		bottom: min(calc(60 / 1080 * 200vw + 13%), calc(60 / 1080 * 1080px + 13%));
	}

	.freethefaeries-canvas .ftf-slingshots {
		width: 70%;
	}

	.freethefaeries-container .ftf-info {
		position: relative;
		width: 80%;
		margin: auto;
	}

	.freethefaeries-container .ftf-buttons {
		width: 80%;
		height: calc((205 / 2) / (275 / 2) * 80%);
	}

	.freethefaeries-container .ftf-back-link {
		position: relative;
		display: block;
		width: max-content;
		margin: auto;
	}
}

@media screen and (min-width: 482px) {
	.page-title__2020 .q-button__2020.ftf-faq {
		display: unset !important;
	}
}

@media screen and (max-width: 450px) {
	.freethefaeries-container .ftf-info {
		width: 90%;
	}

	.freethefaeries-canvas .ftf-cupboard {
		left: -5%;
		width: 110%;
	}

	.freethefaeries-canvas .ftf-anchor {
		display: none;
	}

	.freethefaeries-canvas .ftf-bottles {
		bottom: min(calc(60 / 1080 * 240vw + 13%), calc(60 / 1080 * 1080px + 13%));
	}
}

/* Popups */
.ftf-popup {
	border-image: url(images/ff-nchub-popup-border.png) calc(250 / 3 + 10) calc(400 / 3 + 60) fill / 60px 100px;
	color: #fff;
	max-width: 800px;
	padding: 3em;
	box-shadow: none;
	box-sizing: border-box;
}

.ftf-popup .popup-header__2020, .ftf-popup .popup-body__2020, .ftf-popup .popup-footer__2020 {
	background: none;
	border-bottom: none;
}

.ftf-popup .popup-header__2020 h3 {
	color: #fff;
}

.ftf-popup .popup-exit {
	top: calc(-3em + 5px);
	right: calc(-3em + 5px);
}

.ftf-popup .ftf-item-img {
	border-radius: 15px;
}

.ftf-popup p > a, .ftf-popup p > a:visited {
	color: #bc70d4 !important;
}

.ftf-popup p > a:hover, .ftf-popup p > a:focus {
	color: #d996ee !important;
}

/* Prize Popups */
#FTFPrizePopup .ftf-prize, #FTFPrizeClaimedPopup .ftf-prize {
	margin-top: 1em;
}

#FTFPrizeBonusFinalPopup .ftf-prizes {
	margin-top: 1em;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	justify-content: center;
	gap: 1em;
}

/* Purchase Popups */
#FTFPurchasePopup .ftf-openers {
	margin-top: 1em;
	display: flex;
	flex-direction: row;
	gap: 1em;
}

#FTFPurchasePopup .ftf-openers .ftf-opener {
	padding: .5em;
	background-color: #bc70d4;
	border-radius: 25px;
	cursor: pointer;
}

#FTFPurchasePopup .ftf-openers .ftf-opener:hover, #FTFPurchasePopup .ftf-openers .ftf-opener.selected {
	background-color: #d996ee;
}

#FTFPurchasePopup .ftf-openers .ftf-opener.selected {
	border: 1px solid #FFF;
	filter: drop-shadow(0 0 4px #FFF);
}

#FTFPurchasePopup .ftf-openers .ftf-opener .opener-img {
	border-radius: 15px;
}

#FTFPurchasePopup .ftf-openers .ftf-opener .opener-price {
	font-weight: bold;
}

#FTFPurchasePopup .ftf-purchase-buy {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	justify-content: center;
	gap: .5em;
	margin-top: 1em;
}

#FTFPurchasePopup .ftf-purchase-buy .ftf-purchase-button {
	max-width: max-content;
	padding: 5px 1em 10px;
}

#FTFPurchasePopup .ftf-purchase-buy .ftf-purchase-error, #FTFPurchaseConfirmPopup .ftf-purchase-error {
	width: max-content;
	height: max-content;
	margin: auto;
	color: #ff9a9a;
	text-shadow: 0 0 1px #000;
	border-bottom: 1px solid red;
	font-weight: bold;
	box-sizing: border-box;
}

#FTFPurchasePopup .ftf-purchase-buy .ftf-purchase-form {
    width: 60%;
    margin: 1em auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2px;
}

#FTFPurchasePopup .ftf-purchase-buy .ftf-purchase-form p {
    margin: 1em auto;
}

#FTFPurchasePopup .ftf-purchase-buy .ftf-purchase-form button {
    max-width: 100px;
}



.disabledBtn {
    opacity: 0.3;
    pointer-events: none;
}

#FTFPurchaseConfirmPopup .ftf-purchase-error, #FTFCompletePurchasePopup .ftf-complete {
	margin-top: 1em;
}

#FTFCompletePurchasePopup .ftf-complete img {
	border-radius: 15px;
}

#FTFCompletePurchasePopup .ftf-complete span {
	margin-top: 1em;
	display: inline-block;
}

@media screen and (max-width: 600px) {
	#FTFPurchasePopup .ftf-openers {
		display: grid;
		grid-template: auto / auto auto;
	}
}

/* FAQ */
.faq-title h1 {
	border-image: url(images/ff-nchub-gamebacking.png) calc(160 / 3) calc(240 / 3) fill / 20px;
	padding: .5em 3em;
	color: #fff;
	width: max-content;
}

.faq-container {
	border-image-slice: 64 fill;
	border-image-width: 50px;
	border-image-source: url(/faeriefestival/2023/np/questlog-body.png);
	border-image-repeat: stretch stretch;
	border-image-outset: 25px 0 0 0;
	padding: 10px 15px 25px;
}

div.faq-container ol {
	padding: unset;
}

.faq-container ol {
	font-size: 11pt;
	font-family: "MuseoSansRounded500", "Arial", sans-serif;
	width: 90%;
	margin: 5px auto;
	text-align: center;
	list-style-position: inside;
}

.faq-container ol li:not(:last-child) {
	border-bottom: 1px solid #363b51;
}

.faq-container ol li {
	padding: 15px 0;
}

@media screen and (min-width: 600px) {
	.faq-container {
		width: 80%;
		margin: auto;
	}
}