/* Altador Cup - Games, Fan Freebies, NC Item, News, Scout Teammates CSS
Author: Dinah C.
Date: 2022.06.06
*/

/* Games Grid */
.h5-altadorcup-games {
  width: 100%;
  display: grid;
  grid-template: auto / repeat(5, 1fr);
  justify-content: center;
  align-items: center;
  gap: 0.5em;
}
.h5-altadorcup-games .ac-game-item {
  position: relative;
  border: 4px solid #9a5422;
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 8px;
  box-sizing: border-box;
}
.h5-altadorcup-games .ac-game-item a {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
}
.h5-altadorcup-games .ac-game-item a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 190, 147, 0.4);
  pointer-events: none;
  z-index: 1;
}
.h5-altadorcup-games .ac-game-label {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.h5-altadorcup-games .ac-bonus-game {
  position: absolute;
  top: -10%;
  left: -5%;
  width: 35%;
  padding-top: 35%;
  z-index: 3;
}
.h5-altadorcup-games .ac-game {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding-top: 0;
  background-size: cover;
  background-position: center bottom;
}
.h5-altadorcup-games .ac-game-item.ac-placeholder .ac-game {
  background-image: none;
  background-color: #c4a882;
}
@media screen and (max-width: 860px) {
  .h5-altadorcup-games {
    gap: 0.25em;
  }
}
@media screen and (max-width: 650px) {
  /* ENTERING MOBILE MODE */
  .h5-altadorcup-games {
    grid-template: auto auto / repeat(3, 1fr);
    gap: 0.5em;
  }
}
@media screen and (max-width: 400px) {
  .h5-altadorcup-games {
    grid-template: auto auto / repeat(2, 1fr);
  }
}

/* Freebies & NC Item */
.ac-freebies-module,
.ac-ncitem-module {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  align-items: stretch;
  justify-content: space-between;
  height: 100%;
}
.ac-freebies-module .ac-promo-item {
  display: grid;
  grid-template: 0.5fr 3fr 1.5fr / auto;
  align-items: start;
  justify-content: center;
  flex: 1 1 auto;
}
.ac-ncitem-module .ac-promo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  flex: 1 1 auto;
  text-align: center;
}
.ac-ncitem-module .nc-promo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ac-ncitem-module .ac-promo-item > a {
  width: 80%;
  margin: 0 auto;
}
.ac-ncitem-module .ac-promo-item > a button {
  width: 100%;
}
.ac-freebies-module .ac-promo-item p,
.ac-ncitem-module .ac-promo-item p {
  text-align: center;
  margin: 0;
}
.ac-freebies-module .ac-promo-item .promo-icon,
.ac-ncitem-module .ac-promo-item .promo-icon {
  margin: auto;
}
.ac-freebies-module .promo-icon.promo-social img {
  max-width: 100px;
  max-height: 100px;
  width: 100%;
}
.ac-freebies-module .ac-bg-buttons {
  display: grid;
  grid-template: auto / auto auto auto;
  margin-top: 2px;
  gap: 1px;
  justify-content: center;
  align-items: center;
}
.ac-freebies-module .ac-bg-buttons a {
  text-align: center;
  text-decoration: none;
  color: white;
}
.ac-freebies-module .ac-bg-buttons .ac-bg-btn {
  font-size: 10px;
  border-radius: 10px;
  padding: 1px 5px;
}
.ac-freebies-module > a {
  width: 80%;
  margin: 0 auto;
}
.ac-freebies-module > a button {
  width: 100%;
}
.ac-freebies-module .ac-promo-save {
  max-width: 160px;
  border: 3px solid transparent;
  border-radius: 20px;
  padding: 0.5em;
  font-size: 11pt;
}
.ac-ncitem-module img {
  border: 2px solid black;
}

/* Prize Shop Preview Module */
.ac-prizeshop-module {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  text-align: center;
}
.ac-prize-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  width: 100%;
}
.ac-prize-preview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25em;
  text-align: center;
}
.ac-prize-preview-item img {
  max-width: 80px;
  height: auto;
}
.ac-prize-preview-item p {
  margin: 0;
  font-size: 0.85em;
}
.ac-prize-preview-item .ac-item-price {
  font-weight: bold;
}
.ac-prizeshop-module > a {
  width: 80%;
  margin: 0 auto;
}
.ac-prizeshop-module > a button {
  width: 100%;
}

/* NP Prize item Module*/
.ac-np-item {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ac-np-item .npClaimPrize, .ac-np-item .npPremiumClaimPrize, .ac-np-item .npClaimAllPrize {
	width: 150px;
}

.ac-np-item .npPremiumClaimPrize, .ac-np-item .npClaimAllPrize {
	margin-top: 10px;
}

.ac-np-item .claimedPrizes, .ac-np-item .disabledButton {
	opacity: 0.1;
	pointer-events: none;
}

.ac-np-item .signupPremium {
	width: 230px;
}

.ac-np-item .toggleContainer {
	display: flex;
	align-items: center;
}

.ac-np-item .freemiumItemContainer, .ac-np-item .premiumItemContainer {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ac-np-item .premiumItemContainer {
	border: 2px solid black;
	background-color: rgb(236, 249, 236);
	padding: 10px;
	margin-top: 10px;
	position: relative;
}

.ac-np-item .premiumItem {
	border: 1px solid green;
	margin-top: 15px;
}

.ac-np-item .premiumIcon {
	position: absolute;
	top:0;
	left: 0;
	background: url(/themes/h5/basic/images/v3/premium-icon.svg?d=20210209) center center no-repeat;
	background-size: contain;
	width: 30px;
	height: 30px;
}

.switch {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 21px;
	margin: 9px;
}

.switch #premiumItemToggle {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	-webkit-transition: .4s;
	transition: .4s cubic-bezier(0,1,0.5,1);
	border-radius: 4px;
}

.slider:before {
	position: absolute;
	content: "";
	height: 13px;
	width: 13px;
	left: 3px;
	bottom: 4px;
	background-color: white;
	-webkit-transition: .4s;
	transition: .4s cubic-bezier(0,1,0.5,1);
	border-radius: 3px;
}

#premiumItemToggle:checked + .slider {
	background-color: #52c944;
}

#premiumItemToggle:focus + .slider {
	box-shadow: 0 0 4px #7efa70;
}

#premiumItemToggle:checked + .slider:before {
	-webkit-transform: translateX(26px);
	-ms-transform: translateX(26px);
	transform: translateX(26px);
	left: -2px;
}

#acPressNPItem1, #acPressNPItem0 {
	text-align: center;
}

/* Rounded sliders */
.slider.round {
	border-radius: 34px;
}

.slider.round:before {
	border-radius: 50%;
}



#round {
	border-radius: 34px;
}

#round:before {
	border-radius: 50%;
}

	/* News Module */
.h5-altadorcup-news {
  width: 100%;
  height: 100%;
  max-height: 420px;
}
.h5-altadorcup-news .ac-news-module {
  width: 100%;
  height: 100%;
}
.h5-altadorcup-news .ac-news-item:not(.ac-news-active) {
  display: none;
}
.h5-altadorcup-news .ac-news-list {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}
.h5-altadorcup-news .ac-news-item {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template: auto 1fr / auto;
}
.h5-altadorcup-news .ac-news-buttons {
  position: relative;
  width: 95%;
  min-height: 1.5em;
  margin: 0.5em auto;
  font-weight: bold;
}
.h5-altadorcup-news .ac-news-buttons .ac-news-prev,
.h5-altadorcup-news .ac-news-buttons .ac-news-next {
  position: absolute;
  cursor: pointer;
}
.h5-altadorcup-news .ac-news-buttons .ac-news-prev {
  left: 0;
}
.h5-altadorcup-news .ac-news-buttons .ac-news-next {
  right: 0;
}
.h5-altadorcup-news .ac-news-buttons .ac-news-disabled {
  color: #aeaeae;
  cursor: unset;
}
.h5-altadorcup-news .ac-news-article {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template: auto auto auto/ 100%;
  gap: 0.5em 0;
  overflow: auto;
  box-sizing: border-box;
  scrollbar-width: thin;
}
/* width */
.h5-altadorcup-news .ac-news-article::-webkit-scrollbar {
  width: 5px;
}
/* Track */
.h5-altadorcup-news .ac-news-article::-webkit-scrollbar-track {
  background: #f1f1f1;
  opacity: 0.3;
}
/* Handle */
.h5-altadorcup-news .ac-news-article::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
/* Handle on hover */
.h5-altadorcup-news .ac-news-article::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}
.h5-altadorcup-news .ac-article-banner {
  width: calc(90%);
  max-width: 600px;
  padding-top: min(calc(90% / 4), 150px);
  background: transparent center center / 100% 100% no-repeat;
  border: 1px solid black;
  margin: auto;
  box-sizing: border-box;
}
.h5-altadorcup-news .ac-news-article .ac-article-content {
  height: 100%;
  text-align: justify;
  padding: 0 0.5em;
}
.h5-altadorcup-news .ac-news-article .ac-article-title {
  margin: 0.5em auto;
  text-align: center;
  font-size: 14pt;
  font-family: "MuseoSansRounded700", "Arial Bold", sans-serif;
}
.h5-altadorcup-news .ac-news-article .orion-side-quest_join_button {
  width: 50%;
  min-width: 50px;
  max-width: 150px;
  margin: 0.5em auto;
}

.ac-article-orion_image {
  background-repeat: no-repeat;
  background-size: contain;
  width: 150px;
  height: 150px;
  margin: auto;
}

.ac-article-orion_images_container {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* .ac-article-orion_image_container {
  width: 286px;
  height: 152px;
} */

.h5-altadorcup-news .ac-news-article .orion-side-quest_helping_text {
  text-align: center;
  background: #f78700;
  font-family: "Cafeteria", "Arial Bold", sans-serif;
  padding: 5px;
}

.h5-altadorcup-news
  .ac-news-article
  .ac-article-orion_image_container:hover
  .tooltip,
.h5-altadorcup-news
  .ac-news-article
  .ac-article-orion_image_container:focus
  .tooltip {
  display: block;
}

.h5-altadorcup-news
  .ac-news-article
  .ac-article-orion_image_container
  .tooltip {
  left: calc((-303px / 2) - (-100% / 2));
  width: max-content;
}

.h5-altadorcup-news
  .ac-news-article
  .ac-article-orion_image_container
  .tooltip {
  display: none;
  position: absolute;
  bottom: 41%;
  left: 65%;
  width: max-content;
  height: max-content;
  margin: auto;
  background-color: #fff;  
  border-radius: 10px;
  text-align: center;
  box-sizing: border-box;
  z-index: 1;
}

.h5-altadorcup-news
  .ac-news-article
  .ac-article-orion_image_container
  .tooltip
  .ac-article-orion_mysterypic_large {
  width: 300px;
  height: 300px;
}

.altador-cup_orion_side_quest_cntprv_buttons {
  padding: 10px;
}

.altador-cup_orion_side_quest_trophy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.altador-cup_orion_side_quest_final_prizes {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.altador-cup_orion_side_quest_prizes_reveal_text,
.altador-cup_orion_side_quest_prizes_inventory_text {
  margin-bottom: 20px !important;
}

/* Invites Module */
.h5-altadorcup-invite {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}
.ac-invite-module .ac-logo {
  width: 20%;
  padding-top: 20%;
  margin: auto;
}
.ac-invite-module .ac-invite-form {
  text-align: center;
}
.ac-invite-module .ac-invite-form p {
  margin: 1em auto;
}
.ac-invite-module .ac-invite-form hr {
  width: 90%;
  background: black;
  border: none;
  height: 2px;
  margin: 1em auto;
}
.ac-invite-module .ac-invite-form select {
  width: max-content;
  padding: 0.5em;
}
.ac-invite-module .ac-invite-form input:not([type="checkbox"]) {
  width: 40%;
  margin-top: 4px;
}
.ac-invite-module .ac-invite-form input.ac-input-email {
  width: 70%;
}
.h5-altadorcup-invite button {
  width: 50%;
  min-width: 50px;
  max-width: 150px;
  margin: 0.5em auto 0 auto;
}

/* Scout Teammates teaser module (signup.inc) */
.ac-scout-module {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75em;
}
.ac-scout-module .ac-scout-art {
  width: 100%;
}
.ac-scout-module .ac-scout-art img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.ac-scout-module p {
  margin: 0;
  padding: 0 0.5em;
}
.ac-scout-module button {
  width: 50%;
  min-width: 120px;
  max-width: 200px;
}

/* */
.altadorNP-loading {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 2;
}

.altadorNP-loader {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 150px;
	height: 150px;
	margin: auto;
	background: url(/../altador/altadorcup/2025/faellie_loader_white.gif) center / 100% no-repeat;
}
