/* 
==========================
 GENERAL
==========================
*/

* {
  box-sizing: border-box;
}

:root {
  --black: black;
  --white: white;
  --black-2: #232323;
  --light-steel-blue: #abc1ff;
  --grey: #8a8a8a;
  --dim-grey: rgba(224, 224, 255, 0.1667);
  --light-grey: #d4d4d4;
  --orange: #ff9922;
  --red: #fa2020;
  --stats-blue: #4da6ff;
  --full-width: 940px;
  --footer-height: 170px;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  margin: 0;

  -webkit-user-select: none; /* Safari */        
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+/Edge */
  user-select: none; /* Standard */
}

@media screen and (max-width: 800px) {
  body {
    font-size: 12px;
    line-height: 17px;
  }
}

/* 
==========================
 STANDARD COMPONENTS
==========================
*/

h1 {
  color: var(--white);
  text-transform: uppercase;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 36px;
  font-weight: 700;
  line-height: 46px;
}

@media screen and (max-width: 800px) {
  h1 {
    margin-top: 10px;
    font-size: 24px;
    line-height: 28px;
  }
}

h2 {
  text-transform: uppercase;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
}

@media screen and (max-width: 800px) {
  h2 {
    font-size: 20px;
    line-height: 26px;
  }
}

h3 {
  text-transform: none;
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
}

@media screen and (max-width: 800px) {
  h3 {
    font-size: 18px;
    line-height: 20px;
  }
}

strong {
  font-weight: 700;
}

p {
  color: var(--light-grey);
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 24px;
}

.faq {
  -webkit-user-select: text; /* Safari */        
  -moz-user-select: text; /* Firefox */
  -ms-user-select: text; /* IE10+/Edge */
  user-select: text; /* Standard */
}

.faq p {
  line-height: 30px;
}

ol {
  color: var(--light-grey);
  font-size: 16px;
  margin-left: 15px;
}

.faq ul {
  color: var(--light-grey);
  font-size: 16px;
  line-height: 30px;
}

li {
  line-height: 28px;
  padding-bottom: 10px;
}

.no-dot {
  list-style-type: none;
}

a {
  color: inherit;
  margin-right: 10px;
  text-decoration: underline;
  font-weight: 700;
  margin-right: 0;
}

button,
[type='button'],
[type='reset'] {
  border: 0;
  cursor: pointer;
  appearance: button;
  -webkit-appearance: button;
}

/* 
==========================
 WRAPPERS
==========================
*/

.background {
  background-image: url('/assets/images/background-trianglefactory.png'), linear-gradient(to bottom, black, var(--black-2));
  background-position: 100% 100%, 0 0;
  background-repeat: no-repeat, repeat;
  background-size: contain, auto;
  align-self: start;
  min-height: calc(100vh - var(--footer-height));
  padding-top: 80px;
  padding-bottom: 60px;
  padding-left: 40px;
  padding-right: 40px;
}

@media screen and (max-width: 800px) {
  .tf_background {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.content {
  max-width: var(--full-width);
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.footer {
  padding: 20px;
  padding-bottom: 30px;
  height: var(---height);
}

.footer p {
  font-size: 14px;
}

@media screen and (max-width: 800px) {  
  .footer p {
    font-size: 12px;
  }
}

/* 
==========================
 LAYOUT
==========================
*/

.centered {
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid {
  padding: 10px 0px;
}

.grid:after {
  content: "";
  display: block;
  clear: both;
}

.grid-wide {
  width: 120%;
  transform: translate(-10%, 0);
}

.cell {
  float: left;
  padding: 10px;
}

.cell-2 {
  width: 50%;
}

.cell-3 {
  width: 33.333%;
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 800px) {
  .cell {
    width: 100%;
  }
}

/* 
==========================
 CUSTOM COMPONENTS
==========================
*/

.muted {
  opacity: 33%;
}

.divider {
  background-color: var(--dim-grey);
  width: 100%;
  height: 2px;
  margin-bottom: 20px;
}

.cookie-notice {
  color: var(--grey);
}

.form_submit_button {
  background-color: var(--light-steel-blue);
  color: var(--black);
  text-transform: uppercase;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 7px 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 17px;
  width: 100%;
  height: 50px;
  border-radius: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.form_submit_button:hover {
  background-color: var(--white);
  color: var(--black);
  text-decoration: none;
}

.form_submit_button:disabled {
  background-color: #d3d8e2;
  color: #888;
  cursor: not-allowed;
  opacity: 0.7;
}

.game_logo {
  display: block;
  margin: auto;
  margin-bottom: 50px;
  max-width: 90%;
  max-height: 150px;
}

/* Tooltips */

.tooltip {
  position: relative;
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  display: block;
  background-color:  var(--black-2);
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  text-transform: none;
  width: 200px;
  
  /* Position the tooltip text - see examples below! */
  position: absolute;
  z-index: 900;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
}

/* Tags */

.tag {
  display: inline-block;
  margin-right: 4px;
  width: fit-content;
  vertical-align: middle;
  height: 26px;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 500;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 2px;
  padding-bottom: 0px;
  border-radius: 4px;
  text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.5);
}

.tag_gold {
  background-image: linear-gradient(300deg, rgb(0, 192, 0), rgb(0, 128, 0));
  border-top: rgb(64, 210, 64) solid 1px;
  font-weight: 600;
}

.tag_purple {
  background-color: #81e;
}

.tag_gray {
  background-color: #555;
  color: var(--light-grey);
}

.tag_red {
  background-image: linear-gradient(300deg, #c00, #900);
}

.tag_green {
  background-color: #369400;
}

.tag_blue {
  background-image: linear-gradient(300deg, #08c, #07a);
  border-top: #09e solid 1px;
}

.tag_checkmark::after {
  content: url('/assets/images/mono-icon-check.svg');
  display: inline-block;
  padding: 0;
  margin: 0;
  border: 0;
  top: 4px;
  margin-left: 5px;
}

.hideable-overlay {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  color: var(--light-grey);
  background-color: var(--black);
  padding: 4px;
  font-size: 14px;
  line-height: 35px;
  text-align: center;
}

.hideable-overlay:hover {
  cursor: pointer;
  background-color: var(--black-2);
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

.hidden-overlay {
  animation: fadeOut 0.3s forwards;
}

/* Generic card */

.card {
  text-align: left;
  background-color: var(--black);
  background-image: linear-gradient(307deg, #0a0b0f, #1a1b2a);
  border-radius: 20px;
  flex-flow: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 10px 25px 25px;
  display: flex;
  box-shadow: 0 0 5px 5px #0003;
  border: 1px solid var(--dim-grey);
}

.card_small_print {
  margin: 15px;
  text-align: center;
  font-size: 15px;
  color: var(--light-steel-blue);
}

.card_minheight_60 {
  min-height: 60px;
}

.card_corner {
  position: relative;
}

.card_corner img {
  position: absolute;
  width: 60px;
  height: 60px;
  top: -8px;
  right: -16px;
}

.card_corner .tag {
  position: absolute;
  top: 14px;
  right: -4px;
}

.card h3 {
  margin-bottom: 20px;
}

/* Login card */

.card_login_icons_container {
  justify-content: center;
  align-items: flex-start;
  margin: 25px;
  
  display: flex;
}

.card_login_icon {
  text-align: center;
  height: 64px;
  margin: 4px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.card_login_icon_big {
  text-align: center;
  height: 120px;
  padding-top: 20px;
  padding-bottom: 15px;
}

/* Info card */

.card_info {
  padding: 20px 40px;
}

.card_info p {
  padding-left: 20px;
  padding-right: 20px;
}

.card_info strong {
  color: var(--white);
}

@media screen and (max-width: 800px) {
  .card_info {
    padding: 10px 20px;
  }

  .card_info p {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Datasheet card */

.card_data {
  flex-flow: column;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  padding: 25px 30px 0px 30px;
  margin-bottom: 40px;
  display: flex;
}

.card_data_cell {
  border-bottom: 1px solid var(--black-2);
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  display: flex;
}

.card_data_label {
  width: 220px;
  border-right: 1px solid var(--dim-grey);
  margin-right: 20px;
  padding-right: 20px;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
}

.card_data_content {
  text-align: left;
  font-size: 20px;
  line-height: 24px;
}

.card_data_content_extended {
  text-align: left;
  font-size: 20px;
  line-height: 24px;
  position: relative;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-right: 80px;
}

/* Platform account container */

.card_platform_account_container {
  border-radius: 20px;
  background-color: rgba(64, 64, 92, 0.2);
  margin-top: 15px;
  margin-bottom: 10px;
  margin-left: 3px;
  margin-right: 3px;
  border: 1px solid var(--dim-grey);
}

.card_platform_account_profile {
  position: relative;
  display: flex;
  align-items: top;
  padding: 15px;
  border-radius: 12px;
  color: #ffffff; /* light text on dark */
  gap: 20px;
}

.card_platform_connector {
  position: absolute;
  top: -16px;
  left: 40px;
  transform: translateX(-50%);
  width: 2px;
  height: 32px;
  background-color: var(--grey);
  pointer-events: none; /* ensures it doesn't block mouse interaction */
}

.platform_avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--grey);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.1);
}

.platform_info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  overflow: hidden;
}

.platform_info p {
  margin: 0;
  font-size: 14px;
  color: var(--grey);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.platform_info p:first-child {
  font-weight: bold;
  color: #fff; /* brighter for the username */
}

.platform_info.banned p:first-child {
  color: var(--red);
}

/* Reward card */

.card_reward {
  background-color: var(--black);
  background-image: linear-gradient(307deg, #20081B, #1F0F30);
  border-radius: 20px;
  flex-flow: column;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  padding: 25px;
  display: flex;
  box-shadow: 0 0 5px 5px #0003;
  position: relative;
  overflow: hidden;
}

.card_reward:hover {
  background-image: linear-gradient(307deg, #50283B, #1A0A30);
}

.card_reward_unlocked {
  border: 2px solid rgba(100, 100, 200, 0.33);
}

.card_reward:hover .card_reward_thumbnail {
  transform: scale(1.2);
  transition: transform 0.4s;
}

.card_reward .card_reward_thumbnail {
  transform: scale(1);
  transition: transform 0.4s;
}

.card_reward h3 {
  text-transform: uppercase;
  font-size: 24px;
  font-weight: 600;
  text-align: left;
  margin-right: 96px;
}

@media screen and (max-width: 800px) {
  .card_reward h3 {
    font-size: 20px;
  }
}

.card_reward_thumbnail {
  margin: 0 auto 15px auto;
  padding: 20px;
  width: 85%;
  height: auto;
  z-index: 999;
}

.card_reward_criteria_container {
  background-color: rgba(0, 0, 0, 0.33);
  border-radius: 8px;
  padding: 8px 16px;
}

.card_reward_criteria_container p {
  text-transform: uppercase;
  margin: 15px;
  text-align: center;
  font-size: 15px;
  color: var(--light-steel-blue);
}

.card_reward_criteria {
  list-style-type: circle;
}

.card_reward_criteria_ok {
  list-style-type: disc;
}

.card_reward_criteria_ok::after {
  content: url('/assets/images/mono-icon-check.svg');
  display: inline-block;
  padding: 0;
  margin: 0;
  border: 0;
  margin-left: 10px;
  transform: translateY(0px);
}

.card_reward_criteria_nok {
  color: var(--grey);
}

.card_reward_claim_button {
  border-top: 2px solid rgba(40, 255, 40, 0.5);
  border-bottom: 2px solid rgba(10, 40, 10, 0.5);
  background-color: green;
  background-image: linear-gradient(110deg, green, #0c0);
  color: var(--white);
  text-transform: uppercase;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 7px 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 22px;
  width: 100%;
  height: 56px;
  border-radius: 14px;
}

.card_reward_claim_button:hover {
  background-image: none;
  border-top: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  background-color: var(--white);
  color: var(--black);
  text-decoration: none;
}

.card_menu_button_container {
  position: relative;
  width: 100%;
  height: 40px;
}

.card_menu_button {
  position: absolute;
  right: 0px;
  bottom: -8px;

  width: 32px;
  height: 32px;
  border-radius: 16px;
  background-color: var(--dim-grey);
  padding: 0;
  opacity: 0.75;
}

.card_menu_button:hover {
  opacity: 1;
}

.card_menu_button img {
  width: 24px;
  height: 24px;
  margin: 4px;
  opacity: 0.75;
}

.card_menu_button_inline {
  background-color: var(--dim-grey);
  border-radius: 0.7em;
  display: inline-block;
  vertical-align: middle;
  width: auto;
  height: 1.4em;
  padding: 0.2em;
}

/* Support code */

.support_code_container {
  margin: 20px;
  border: 1px solid var(--light-steel-blue);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; 
  height: 80px;
}

.support_code_prompt {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0; 
  transition: opacity 0.4s;
  color: var(--light-steel-blue);
}

.support_code {
 width: 100%;
 height: 100%;
 display: flex;
 align-items: center;
 justify-content: center;
 margin: 0;
 opacity: 0;
 pointer-events: none;
 position: absolute;
 top: 0; 
 left: 0;
 transition: opacity 0.4s;
 color: var(--light-steel-blue);
}

/* Alert banner */

.alert-banner {
  color: var(--orange);
  border: 1px solid var(--orange);
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  margin: 20px;
  padding: 20px;
  font-size: 16px;
  line-height: 20px;
}

.alert-text {
  color: var(--orange);
}

.card_menu_parent {
  position: relative;
  width: 100%;
  height: 100%;
}

.card_menu {
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 30px;
  
  backdrop-filter: blur(4px);
  background-image: linear-gradient(307deg, rgba(10, 11, 15, 0.95), rgba(26, 27, 42, 0.7));
  border-radius: 20px;

  padding: 0;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
}

.card_menu_submit_button {
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  background-color: var(--black);
  color: var(--light-grey);
  text-transform: uppercase;
  margin-top: 8px;
  margin-bottom: 8px;
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 15px;
  width: 100%;
  height: 44px;
  border-radius: 20px;
}

.card_menu_submit_button:hover {
  background-color: var(--white);
  border: 3px solid var(--white);
  color: var(--black);
  text-decoration: none;
}

.card_menu_submit_button:disabled {
  background-color: #d3d8e2;
  color: #888;
  cursor: not-allowed;
  opacity: 0.7;
}

.card_menu_submit_button_danger {
  background-color: #c11;
  color: var(--white);
}

.card_menu_submit_button_primary {
  background-color: #080;
  color: var(--white);
}

.card_menu_submit_button_link {
  background-color: #009faf;
  color: var(--white);
}

.card_menu_submit_button_darkblue {
  background-color: #1c2cba;
  color: var(--white);
}

/* E-mail form */

.email_form input[type="email"] {
  width: 100%;
  height: 45px;
  border-radius: 6px;
  font-size: 14px;
  padding: 10px;
  color: #000;
}

/* Pop-ups */

.popup_overlay {
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%; 
  background:rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 9998;
  display: none;
}

.popup_box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 500px;
  z-index: 9999;
  display: none;

  text-align: left;
  background-color: var(--black);
  background-image: linear-gradient(307deg, #0a0b0f, #1a1b2a);
  border-radius: 20px;
  border: 6px solid #fff;

  flex-flow: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 25px 50px;
}

@media screen and (max-width: 800px) {
  .popup_box {
    min-width: 80%;
    max-width: 95%;
    padding: 20px 30px;
  }
}

.popup_box p {
  font-size: 16px;
  line-height: 24px;
}

.popup_box h2 {
  padding-bottom: 25px;
}

.popup_buttons {
  transform:translate(0, 60px);
  text-align: center;
  display: none;
}

.popup_buttons button {
  padding: 10px 30px;
  margin: 10px;

  background-color: var(--black);
  color: var(--white);
  text-transform: uppercase;
  font-size: 22px;
  font-weight: 700;
  line-height: 17px;
  height: 50px;
  border-radius: 4px;
  border: 3px solid #fff;
}

.popup_buttons button:hover {
  background-color: var(--white);
  color: var(--black);
  text-decoration: none;
}

/*
==========================
 FOREFRONT STYLING
==========================
*/

.forefront-big-red-button {
  background-color: #a00000;
  border: 2px solid #FFF;
  color: var(--white);
  text-transform: uppercase;
  margin: 10px;
  padding: 10px 25px;
  font-size: 17px;
  font-weight: 700;
  line-height: 29px;
  height: 75px;
  border-radius: 16px;
}

.forefront-big-red-button:hover {
  background-color: var(--white);
  color: #a00000;
  text-decoration: none;
  box-shadow: 0 0 10px 20px #f002;
}

.forefront-big-blue-button {
  background-color: var(--stats-blue);
  border: 2px solid #FFF;
  color: var(--white);
  text-transform: uppercase;
  margin: 10px;
  padding: 10px 25px;
  font-size: 17px;
  font-weight: 700;
  line-height: 29px;
  height: 75px;
  border-radius: 16px;
}

.forefront-release-channel-button:hover {
  background-color: var(--white);
  color: var(--stats-blue);
  text-decoration: none;
  box-shadow: 0 0 10px 20px #f002;
}

.img-hover {
  opacity: 90%;
  transform: scale(0.9);
  transition: transform 0.1s;
}

.img-hover:hover {
  opacity: 100%;
  transform: scale(1);
  transition: transform 0.1s;
}