/* ==========================================================================
   playzo ID - landing page
   Layout is fluid: the card keeps a maximum width and shrinks with the
   viewport, so the same stylesheet serves desktop and phone.
   ========================================================================== */

:root {
  --brand: #f97316;
  --brand-light: #fb923c;
  --brand-dark: #ea580c;
  --brand-hover: #fd7337;

  --glass: rgba(15, 23, 42, 0.55);
  --glass-strong: rgba(15, 23, 42, 0.92);
  --glass-border: rgba(255, 255, 255, 0.22);
  --hairline: rgba(255, 255, 255, 0.18);

  --text: #e2e8f0;
  --text-dim: #cbd5e1;
  --ink: #0f172a;

  --radius: 20px;
  --radius-small: 12px;
  --card-width: 600px;
  --side-width: 375px;
  --pad: 44px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  background-image: url("../image/playzo_background_collage_2026.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-attachment: fixed;
  background-size: cover;
  background-color: #396c9b;
}

#site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
}

/* the wordmark is carried by the card, the heading only serves screen readers */
#site h1 {
  margin: 0;
  padding: 0;
}
#site h1 #logo {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#site #lang-select {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  padding: 8px 12px 0;
}
#site #lang-select a {
  text-decoration: none;
}
#site #lang-select img {
  border: 0;
  display: block;
}

#site #app-store-link-container {
  position: absolute;
  right: 1.125em;
  top: 1.125em;
  width: 140px;
}
#site #app-store-link-container img {
  opacity: 0.5;
  max-width: 100%;
}
#site #app-store-link-container img:hover {
  opacity: 1;
}

#partner-header {
  padding: 8px 16px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   card area
   -------------------------------------------------------------------------- */

#action-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  padding: clamp(64px, 11vh, 150px) 16px 40px;
  width: 100%;
  box-sizing: border-box;
}
#action-container.hide {
  display: none;
}
#action-container #container-title {
  display: none;
}

/* the <img> is replaced by a pseudo element on the card, see below - that way
   the wordmark always sits centred on whichever card is visible */
#action-container #playzo-id-logo {
  display: none;
}

#action-container .form-container {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  box-sizing: border-box;
  padding-bottom: 30px;
  position: relative;
  width: 100%;
  max-width: var(--card-width);
}
#action-container .form-container::before {
  background: url("../image/playzo-id.png") center / contain no-repeat;
  content: "";
  height: 48px;
  left: 50%;
  position: absolute;
  top: -24px;
  transform: translateX(-50%);
  width: 182px;
}
#action-container .form-container.inactive {
  display: none;
}

/* tabs (login / register, password / email) */
#action-container .form-container .rider-container {
  display: flex;
  gap: 16px;
  margin: 44px var(--pad) 5px;
}
/* Die Reiter sind gleich hoch, weil sie Flex-Geschwister sind. Umbricht die
   Beschriftung des einen auf zwei Zeilen, stuende der andere sonst mit seiner
   einen Zeile oben in seinem Kasten - deshalb wird der Text selbst zentriert. */
#action-container .form-container .rider-container .rider {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-small);
  color: #fff;
  cursor: pointer;
  display: flex;
  flex: 1 1 0;
  font-size: 20px;
  justify-content: center;
  padding: 12px 8px;
  text-align: center;
  transition: all 0.2s ease-in-out;
}
#action-container .form-container .rider-container .rider:hover {
  background: var(--brand-hover);
  color: #fff;
}
#action-container .form-container .rider-container .rider.active {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}
#action-container .form-container .rider-container .rider.inactive {
  display: none;
}

#action-container .form-container #register-form h2 {
  color: #fff;
  font-size: 20px;
  margin: 25px var(--pad) 0;
  text-align: center;
}
#action-container .form-container #register-form #success-registration {
  color: #fff;
  margin: 25px var(--pad);
  text-align: center;
}
#action-container .form-container #register-form #accept-terms {
  color: #fff;
  margin: 15px var(--pad) 0;
  text-align: center;
}
#action-container .form-container #register-form #accept-terms a {
  color: #ccc;
  text-decoration: none;
}
#action-container .form-container #register-form #accept-terms a:hover,
#action-container .form-container #register-form #accept-terms:hover {
  color: #fff;
}
#action-container .form-container #register-form #accept-terms a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   form elements
   -------------------------------------------------------------------------- */

.form-label {
  color: var(--text);
  display: block;
  font-size: 16px;
  margin: 14px var(--pad) 5px;
}

.form-input-container {
  padding: 0 var(--pad);
  text-align: center;
}

.form-input {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  box-sizing: border-box;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  padding: 11px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
}
.form-input.error {
  background: rgba(254, 226, 226, 0.95);
  border-color: #dc2626;
}
.form-input::placeholder {
  color: #64748b;
  opacity: 1;
}
.form-input:focus {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(253, 115, 55, 0.35);
  outline: none;
}

.form-submit,
.form-submit-small {
  background: linear-gradient(180deg, var(--brand-light), var(--brand));
  border: none;
  border-radius: var(--radius-small);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: block;
  font-family: inherit;
  font-weight: 600;
  margin: 25px var(--pad) 0;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  width: calc(100% - 2 * var(--pad));
}
.form-submit {
  font-size: 22px;
  padding: 13px 16px;
}
.form-submit-small {
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3);
  font-size: 16px;
  padding: 14px 16px;
}
.form-submit:hover,
.form-submit-small:hover {
  background: linear-gradient(180deg, var(--brand-hover), var(--brand-dark));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.5);
  transform: translateY(-1px);
}
.form-submit-small.half {
  display: inline-block;
  margin: 25px 0 0;
  width: auto;
  min-width: 160px;
}

/* the register steps carry their buttons in #button-line, one or two of them */
#button-line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 0 var(--pad);
}
#button-line .form-submit-small {
  flex: 1 1 160px;
  margin: 25px 0 0;
  width: auto;
}
.floatLeft,
.floatRight {
  float: none;
}

#keep-login {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 14px var(--pad) 5px;
}
#keep-login .form-label {
  display: inline-block;
  margin: 0;
  width: auto;
}
#keep-login #input-keep-login {
  accent-color: var(--brand);
  margin: 0;
  padding: 0;
}

#link-lost-password {
  color: var(--text-dim);
  display: block;
  font-size: 16px;
  margin: 10px var(--pad) 0;
  text-align: left;
  text-decoration: none;
}
#link-lost-password:hover {
  color: #fff;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   messages
   -------------------------------------------------------------------------- */

#error,
#success {
  border-radius: var(--radius-small);
  box-sizing: border-box;
  line-height: 1.45;
  margin: 20px var(--pad);
  padding: 12px 40px 12px 16px;
  position: relative;
  width: auto;
  z-index: 5;
}

/* a message that belongs to the whole page is shown above the card, not below
   it - #site is a flex column, so the order decides */
#site > #lang-select {
  order: -2;
}
#site > #error,
#site > #success {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  margin: 16px auto 0;
  max-width: var(--card-width);
  order: -1;
  width: calc(100% - 32px);
}
#error {
  background: rgba(254, 242, 242, 0.97);
  border: 1px solid #fca5a5;
  border-left: 4px solid #dc2626;
  color: #991b1b;
}
#success {
  background: rgba(240, 253, 244, 0.97);
  border: 1px solid #86efac;
  border-left: 4px solid #16a34a;
  color: #166534;
}
/* the markup carries a literal "X", it is replaced by a drawn glyph */
.close-parent,
.close-legal-box,
.close-lost-password,
.close-new-password,
.close-app-note {
  border-radius: 50%;
  box-sizing: border-box;
  color: transparent !important;
  display: block;
  font-size: 0;
  height: 32px;
  overflow: hidden;
  position: absolute;
  right: 10px;
  top: 10px;
  transition: background 0.2s ease;
  width: 32px;
}
.close-parent::before,
.close-parent::after,
.close-legal-box::before,
.close-legal-box::after,
.close-lost-password::before,
.close-lost-password::after,
.close-new-password::before,
.close-new-password::after,
.close-app-note::before,
.close-app-note::after {
  background: currentColor;
  border-radius: 1px;
  content: "";
  height: 2px;
  left: 50%;
  position: absolute;
  top: 50%;
  width: 14px;
}
.close-parent::before,
.close-legal-box::before,
.close-lost-password::before,
.close-new-password::before,
.close-app-note::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.close-parent::after,
.close-legal-box::after,
.close-lost-password::after,
.close-new-password::after,
.close-app-note::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* on the light message boxes */
#error .close-parent,
#success .close-parent {
  right: 6px;
  top: 6px;
}
#error .close-parent::before,
#error .close-parent::after {
  background: #991b1b;
}
#success .close-parent::before,
#success .close-parent::after {
  background: #166534;
}
#error .close-parent:hover {
  background: rgba(153, 27, 27, 0.12);
}
#success .close-parent:hover {
  background: rgba(22, 101, 52, 0.12);
}

/* --------------------------------------------------------------------------
   third party login
   -------------------------------------------------------------------------- */

#third-party-login {
  display: block;
  margin-top: 25px;
  text-align: center;
}
#third-party-login .form-label {
  margin: 0 0 8px;
  width: 100%;
}
#third-party-login .icon {
  background-image: url(../../default/image/social/icon-sprite.png);
  background-position: 0 0;
  background-repeat: no-repeat;
  display: inline-block;
  height: 32px;
  margin: 0 3px;
  width: 32px;
}
#third-party-login .icon.facebook {
  background-position: 0 0;
}
#third-party-login .icon.facebook:hover {
  background-position: 0 -32px;
}
#third-party-login .icon.telekom {
  background-position: -160px 0px;
}
#third-party-login .icon.telekom:hover {
  background-position: -160px -32px;
}
#third-party-login .icon.google {
  background-position: -32px 0px;
}
#third-party-login .icon.google:hover {
  background-position: -32px -32px;
}
#third-party-login .icon.microsoft {
  background-position: -128px 0px;
}
#third-party-login .icon.microsoft:hover {
  background-position: -128px -32px;
}
#third-party-login .icon.openid {
  background-position: -192px 0px;
}
#third-party-login .icon.openid:hover {
  background-position: -192px -32px;
}
#third-party-login .icon.yahoo {
  background-position: -64px 0;
}
#third-party-login .icon.yahoo:hover {
  background-position: -64px -32px;
}
#third-party-login .icon.twitter,
#third-party-login .icon.vkontakte {
  background-size: cover;
}
#third-party-login .icon.twitter {
  background-color: #292f33;
  border-radius: 5px;
  background-image: url(../../default/image/social/twitter.png);
}
#third-party-login .icon.twitter:hover {
  background-color: #66757f;
}
#third-party-login .icon.vkontakte {
  background-image: url(../../default/image/social/vkontakte.png);
}

/* --------------------------------------------------------------------------
   account data maintenance (?action=account, ACCOUNT_MANAGEMENT)
   -------------------------------------------------------------------------- */

#action-container #containerAccount #container-title,
#action-container #containerAccountConfirm #container-title {
  color: #fff;
  display: block;
  font-size: 24px;
  margin: 44px 0 5px;
  text-align: center;
  text-shadow: 1px 1px 3px #000;
}

#containerAccount .form-input[readonly] {
  background: rgba(226, 232, 240, 0.55);
  border-color: rgba(255, 255, 255, 0.25);
  color: #f1f5f9;
  cursor: default;
}
#containerAccount .form-input[readonly]:focus {
  background: rgba(226, 232, 240, 0.55);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

#containerAccount .rider-container {
  border-top: 1px solid var(--hairline);
  margin: 25px var(--pad) 0;
  padding-top: 25px;
}
#containerAccount .rider {
  font-size: 18px;
}
#containerAccount .account-tab-content.inactive {
  display: none;
}

#account-button-line {
  border-top: 1px solid var(--hairline);
  margin: 30px var(--pad) 0;
  padding-top: 25px;
}
#account-button-line #account-service {
  margin: 0;
  width: 100%;
}
#account-button-line #account-logout {
  color: var(--text-dim);
  display: block;
  font-size: 16px;
  margin: 15px 0 0;
  text-align: center;
  text-decoration: none;
}
#account-button-line #account-logout:hover {
  color: #fff;
  text-decoration: underline;
}

#containerAccountConfirm #accountConfirmInput {
  padding-bottom: 5px;
}
#containerAccountConfirm #account-confirm-login {
  margin: 25px var(--pad) 0;
  width: calc(100% - 2 * var(--pad));
}

/* the account pages stand on their own, the game panels stay out of the way */
#containerAccount ~ #game-description,
#containerAccount ~ #news-container,
#containerAccount ~ #screenshot-container,
#containerAccountConfirm ~ #game-description,
#containerAccountConfirm ~ #news-container,
#containerAccountConfirm ~ #screenshot-container {
  display: none;
}

/* --------------------------------------------------------------------------
   side panels
   -------------------------------------------------------------------------- */

#game-description,
#news-container {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  color: var(--text);
  max-width: var(--card-width);
  overflow: auto;
  padding: 20px 25px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  width: 100%;
}

#screenshot-container,
#news-container {
  display: none;
}
#news-container.show {
  display: block;
}

/* --------------------------------------------------------------------------
   overlays
   -------------------------------------------------------------------------- */

/* the theme script toggles these with jQuery show()/hide(), which sets
   display:block - the dialog is therefore centred with auto margins and not
   with flexbox */
#lost-password,
#new-password {
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  bottom: 0;
  display: none;
  left: 0;
  overflow: auto;
  padding: 20px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1000;
}
#new-password {
  display: block;
}

#lost-password-form,
#new-password-form {
  background: var(--glass-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  box-sizing: border-box;
  color: #fff;
  margin: 8vh auto;
  max-width: 420px;
  padding: 22px 10px 26px;
  position: relative;
  width: 100%;
  animation: dialog-in 0.22s ease-out;
}
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  #lost-password-form,
  #new-password-form {
    animation: none;
  }
}
#lost-password-form h2,
#new-password-form h2 {
  font-size: 21px;
  margin: 0 40px 8px 15px;
  text-align: left;
}
#lost-password-form p,
#new-password-form p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 15px 6px;
  text-align: left;
}

/* message of a failed or finished attempt, shown inside the dialog */
.dialog-message {
  border-radius: var(--radius-small);
  font-size: 15px;
  line-height: 1.45;
  margin: 14px 15px 0;
  padding: 12px 14px;
}
.dialog-message.error {
  background: rgba(254, 242, 242, 0.97);
  border: 1px solid #fca5a5;
  border-left: 4px solid #dc2626;
  color: #991b1b;
}
.dialog-message.success {
  background: rgba(240, 253, 244, 0.97);
  border: 1px solid #86efac;
  border-left: 4px solid #16a34a;
  color: #166534;
}

.dialog-back {
  color: var(--text-dim);
  display: block;
  font-size: 15px;
  margin: 16px 15px 0;
  text-align: center;
  text-decoration: none;
}
.dialog-back:hover {
  color: #fff;
  text-decoration: underline;
}
#lost-password-form .form-label,
#new-password-form .form-label,
#lost-password-form .form-input-container,
#new-password-form .form-input-container,
#lost-password-form .form-submit-small,
#new-password-form .form-submit-small {
  margin-left: 15px;
  margin-right: 15px;
  padding-left: 0;
  padding-right: 0;
  width: auto;
}
#lost-password-form .form-submit-small,
#new-password-form .form-submit-small {
  width: calc(100% - 30px);
}

#app-info-box {
  background: var(--glass-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  box-sizing: border-box;
  color: #fff;
  left: 50%;
  margin: 0 auto;
  max-width: 400px;
  padding: 20px 10px 25px;
  position: absolute;
  top: 20%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
}
#app-info-box h2 {
  font-size: 20px;
  margin: 0 0 10px;
  text-align: center;
}
#app-info-box p {
  margin: 0 15px 10px;
  text-align: center;
}
#app-info-box .form-submit-small {
  margin: 12px 15px 0;
  width: calc(100% - 30px);
}

.close-legal-box::before,
.close-legal-box::after,
.close-lost-password::before,
.close-lost-password::after,
.close-new-password::before,
.close-new-password::after,
.close-app-note::before,
.close-app-note::after {
  background: #ffb59a;
}
.close-legal-box:hover,
.close-lost-password:hover,
.close-new-password:hover,
.close-app-note:hover {
  background: rgba(255, 255, 255, 0.14);
}
.close-legal-box:hover::before,
.close-legal-box:hover::after,
.close-lost-password:hover::before,
.close-lost-password:hover::after,
.close-new-password:hover::before,
.close-new-password:hover::after,
.close-app-note:hover::before,
.close-app-note:hover::after {
  background: #fff;
}

/* --------------------------------------------------------------------------
   legal
   -------------------------------------------------------------------------- */

#legal {
  margin-top: auto;
}
#legal #legal-menu {
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-sizing: border-box;
  padding: 14px 12px;
  text-align: center;
  width: 100%;
}
#legal #legal-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
#legal #legal-menu ul li {
  list-style: none;
}
#legal #legal-menu ul li .legal-link,
#legal #legal-menu ul li .legal-link a {
  color: #ccc;
  cursor: pointer;
  text-decoration: none;
}
#legal #legal-menu ul li .legal-link:hover,
#legal #legal-menu ul li .legal-link a:hover {
  color: #fff;
  text-decoration: underline;
}

#legal .legal-box {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  box-sizing: border-box;
  color: #ddd;
  display: none;
  left: 50%;
  max-height: 70vh;
  max-width: 700px;
  overflow: auto;
  padding: 25px;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  z-index: 1001;
}
#legal .legal-box ol,
#legal .legal-box ul {
  margin: 10px 0 0;
  padding-left: 20px;
}
#legal .legal-box ol li,
#legal .legal-box ul li {
  margin: 0 0 10px;
}
#legal .legal-box a {
  color: #ddd;
  text-decoration: underline;
}
#legal .legal-box.open {
  display: block;
}

/* --------------------------------------------------------------------------
   wide viewports: card and game description side by side
   600 card + 24 gap + 375 panel + 32 padding = 1031, below that they stack
   -------------------------------------------------------------------------- */

@media (min-width: 1040px) {

  #action-container .form-container {
    flex: 0 0 var(--card-width);
  }

  #game-description,
  #news-container {
    flex: 0 0 var(--side-width);
    max-width: var(--side-width);
  }

}

/* --------------------------------------------------------------------------
   phones
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {

  :root {
    --pad: 20px;
    --radius: 16px;
  }

  #action-container {
    gap: 16px;
    padding: clamp(56px, 9vh, 90px) 12px 28px;
  }

  #action-container .form-container::before {
    height: 40px;
    top: -20px;
    width: 152px;
  }

  #action-container .form-container .rider-container {
    gap: 10px;
    margin-top: 36px;
  }

  #action-container .form-container .rider-container .rider {
    font-size: 16px;
    padding: 10px 6px;
  }

  #action-container #containerAccount #container-title,
  #action-container #containerAccountConfirm #container-title {
    font-size: 20px;
    margin-top: 36px;
  }

  #containerAccount .rider {
    font-size: 15px;
  }

  .form-submit {
    font-size: 19px;
  }

  .form-label {
    font-size: 15px;
  }

  /* keep iOS from zooming into the field on focus */
  .form-input {
    font-size: 16px;
  }

  #site #app-store-link-container {
    position: static;
    margin: 8px auto 0;
    text-align: center;
  }

  #legal #legal-menu ul {
    gap: 4px 12px;
  }

}
/* Magnific Popup CSS */
.mfp-bg {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1042;
  overflow: hidden;
  position: fixed;
  background: #0b0b0b;
  opacity: 0.8;
}

.mfp-wrap {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1043;
  position: fixed;
  outline: none !important;
  -webkit-backface-visibility: hidden;
}

.mfp-container {
  text-align: center;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  padding: 0 8px;
  box-sizing: border-box;
}

.mfp-container:before {
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

.mfp-align-top .mfp-container:before {
  display: none;
}

.mfp-content {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin: 0 auto;
  text-align: left;
  z-index: 1045;
}

.mfp-inline-holder .mfp-content,
.mfp-ajax-holder .mfp-content {
  width: 100%;
  cursor: auto;
}

.mfp-ajax-cur {
  cursor: progress;
}

.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
  cursor: zoom-out;
}

.mfp-zoom {
  cursor: pointer;
  cursor: zoom-in;
}

.mfp-auto-cursor .mfp-content {
  cursor: auto;
}

.mfp-close,
.mfp-arrow,
.mfp-preloader,
.mfp-counter {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.mfp-loading.mfp-figure {
  display: none;
}

.mfp-hide {
  display: none !important;
}

.mfp-preloader {
  color: #CCC;
  position: absolute;
  top: 50%;
  width: auto;
  text-align: center;
  margin-top: -0.8em;
  left: 8px;
  right: 8px;
  z-index: 1044;
}

.mfp-preloader a {
  color: #CCC;
}

.mfp-preloader a:hover {
  color: #FFF;
}

.mfp-s-ready .mfp-preloader {
  display: none;
}

.mfp-s-error .mfp-content {
  display: none;
}

button.mfp-close,
button.mfp-arrow {
  overflow: visible;
  cursor: pointer;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
  display: block;
  outline: none;
  padding: 0;
  z-index: 1046;
  box-shadow: none;
  touch-action: manipulation;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

.mfp-close {
  width: 44px;
  height: 44px;
  line-height: 44px;
  position: absolute;
  right: 0;
  top: 0;
  text-decoration: none;
  text-align: center;
  opacity: 0.65;
  padding: 0 0 18px 10px;
  color: #FFF;
  font-style: normal;
  font-size: 28px;
  font-family: Arial, Baskerville, monospace;
}

.mfp-close:hover,
.mfp-close:focus {
  opacity: 1;
}

.mfp-close:active {
  top: 1px;
}

.mfp-close-btn-in .mfp-close {
  color: #333;
}

.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close {
  color: #FFF;
  right: -6px;
  text-align: right;
  padding-right: 6px;
  width: 100%;
}

.mfp-counter {
  position: absolute;
  top: 0;
  right: 0;
  color: #CCC;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}

.mfp-arrow {
  position: absolute;
  opacity: 0.65;
  margin: 0;
  top: 50%;
  margin-top: -55px;
  padding: 0;
  width: 90px;
  height: 110px;
  -webkit-tap-highlight-color: transparent;
}

.mfp-arrow:active {
  margin-top: -54px;
}

.mfp-arrow:hover,
.mfp-arrow:focus {
  opacity: 1;
}

.mfp-arrow:before,
.mfp-arrow:after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  position: absolute;
  left: 0;
  top: 0;
  margin-top: 35px;
  margin-left: 35px;
  border: medium inset transparent;
}

.mfp-arrow:after {
  border-top-width: 13px;
  border-bottom-width: 13px;
  top: 8px;
}

.mfp-arrow:before {
  border-top-width: 21px;
  border-bottom-width: 21px;
  opacity: 0.7;
}

.mfp-arrow-left {
  left: 0;
}

.mfp-arrow-left:after {
  border-right: 17px solid #FFF;
  margin-left: 31px;
}

.mfp-arrow-left:before {
  margin-left: 25px;
  border-right: 27px solid #3F3F3F;
}

.mfp-arrow-right {
  right: 0;
}

.mfp-arrow-right:after {
  border-left: 17px solid #FFF;
  margin-left: 39px;
}

.mfp-arrow-right:before {
  border-left: 27px solid #3F3F3F;
}

.mfp-iframe-holder {
  padding-top: 40px;
  padding-bottom: 40px;
}

.mfp-iframe-holder .mfp-content {
  line-height: 0;
  width: 100%;
  max-width: 900px;
}

.mfp-iframe-holder .mfp-close {
  top: -40px;
}

.mfp-iframe-scaler {
  width: 100%;
  height: 0;
  overflow: hidden;
  padding-top: 56.25%;
}

.mfp-iframe-scaler iframe {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  background: #000;
}

/* Main image in popup */
img.mfp-img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  line-height: 0;
  box-sizing: border-box;
  padding: 40px 0 40px;
  margin: 0 auto;
}

/* The shadow behind the image */
.mfp-figure {
  line-height: 0;
}

.mfp-figure:after {
  content: "";
  position: absolute;
  left: 0;
  top: 40px;
  bottom: 40px;
  display: block;
  right: 0;
  width: auto;
  height: auto;
  z-index: -1;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  background: #444;
}

.mfp-figure small {
  color: #BDBDBD;
  display: block;
  font-size: 12px;
  line-height: 14px;
}

.mfp-figure figure {
  margin: 0;
}

.mfp-bottom-bar {
  margin-top: -36px;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  cursor: auto;
}

.mfp-title {
  text-align: left;
  line-height: 18px;
  color: #F3F3F3;
  word-wrap: break-word;
  padding-right: 36px;
}

.mfp-image-holder .mfp-content {
  max-width: 100%;
}

.mfp-gallery .mfp-image-holder .mfp-figure {
  cursor: pointer;
}

@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
  /**
       * Remove all paddings around the image on small screen
       */
  .mfp-img-mobile .mfp-image-holder {
    padding-left: 0;
    padding-right: 0;
  }
  .mfp-img-mobile img.mfp-img {
    padding: 0;
  }
  .mfp-img-mobile .mfp-figure:after {
    top: 0;
    bottom: 0;
  }
  .mfp-img-mobile .mfp-figure small {
    display: inline;
    margin-left: 5px;
  }
  .mfp-img-mobile .mfp-bottom-bar {
    background: rgba(0, 0, 0, 0.6);
    bottom: 0;
    margin: 0;
    top: auto;
    padding: 3px 5px;
    position: fixed;
    box-sizing: border-box;
  }
  .mfp-img-mobile .mfp-bottom-bar:empty {
    padding: 0;
  }
  .mfp-img-mobile .mfp-counter {
    right: 5px;
    top: 3px;
  }
  .mfp-img-mobile .mfp-close {
    top: 0;
    right: 0;
    width: 35px;
    height: 35px;
    line-height: 35px;
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    text-align: center;
    padding: 0;
  }
}
@media all and (max-width: 900px) {
  .mfp-arrow {
    transform: scale(0.75);
  }
  .mfp-arrow-left {
    transform-origin: 0;
  }
  .mfp-arrow-right {
    transform-origin: 100%;
  }
  .mfp-container {
    padding-left: 6px;
    padding-right: 6px;
  }
}
