/* Public site — ported from the PHP site's style.css + responsive.css. */

:root {
  --gold: #ffbf00;
  --gray: #676759;
  --gray-light: #d7d7d4;
  --panel: #f6f6f6;
  --white: #fff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font: 14px/20px Arial, sans-serif;
  color: var(--gray);
  background: var(--white);
  -webkit-text-size-adjust: none;
}

h1, h2, h3, h4, p, ul, ol, section, article, fieldset {
  margin: 0;
  padding: 0;
}
ul, ol {
  list-style: none;
}
img {
  border: 0;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
:focus {
  outline: 0;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.gold { color: var(--gold); }
.gray { color: var(--gray); }
.text-center { text-align: center; }

.containerWrap { padding: 30px; }
.container { width: 800px; max-width: 100%; margin: 0 auto; position: relative; }

/* ---------------------------------------------------------------- header */
header { padding: 0 0 17px; display: flex; justify-content: space-between; align-items: flex-start; }
.logo { margin: 3px 0 0 3px; width: 230px; height: auto; display: block; }
header nav ul { margin: 0; }
header nav ul li { display: inline-block; }
header nav ul li a {
  display: inline-block;
  padding: 11px 17px 9px;
  text-decoration: none;
  border-radius: 4px;
  transition: padding-right 0.3s ease-in, background-color 0.2s;
}
header nav ul li.last a { padding-right: 0; }
header nav ul li.last.current a,
header nav ul li a:hover { padding-right: 17px; }
header nav ul li a:hover { background: var(--panel); }
header nav ul li.current a { background: var(--gold); }
.m-main-menu { display: none; }

.mobile-currency { display: none; }
.mobile-currency ul { width: 100%; background: var(--gray); }
.mobile-currency ul li { border-top: 1px solid #8d8d84; color: var(--white); padding: 0 14px; }
.mobile-currency ul li:first-child { border: none; }
.mobile-currency ul li a { display: block; color: var(--white); padding: 12px 0; text-decoration: none; }

/* ---------------------------------------------------------------- slider */
main { background: var(--panel); display: block; position: relative; }
.slider { position: relative; overflow: hidden; }
.slider-viewport { overflow: hidden; touch-action: pan-y; }
.slides { display: flex; padding: 30px 0 40px; }
.slides.animate { transition: transform 0.3s ease; }
.slides article { flex: 0 0 100%; padding: 0 20px; }
.slides > article > h1 { font: bold 2em/1.2 Arial, sans-serif; }
.down-arrow { font-size: 46px; }
.youtube {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  font-size: 40px;
  color: #f00;
  text-decoration: none;
}
.youtube:hover { color: #c00; }

.exchange { display: flex; align-items: stretch; padding: 20px 0 30px; }
.exchange .gap { width: 8%; }
.exchange .rate { width: 46%; display: flex; }
.exchange .rate-buy { justify-content: flex-end; }
.exchange .rate-sell { justify-content: flex-start; }
.exchange .rate > div { border-radius: 8px; }
.exchange .buy { background: var(--gold); padding: 12px 15px; }
.exchange .sell { background: var(--gray); padding: 12px 15px; color: var(--white); }
.exchange .rate h1 { font: bold 70px/70px Arial, sans-serif; }
.exchange .rate h1 span { font: bold 20px/24px Arial, sans-serif; }
.exchange .rate h2 { font: 16px/20px Arial, sans-serif; padding-top: 10px; }
.exchange .rate h3 { font: 12px/18px Arial, sans-serif; }
.last-update { padding: 0 0 0; }

.flex-prev,
.flex-next {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  font-size: 40px;
  line-height: 40px;
  color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
}
.flex-prev { left: -50px; }
.flex-next { right: -50px; }
.slider:hover .flex-prev,
.flex-prev:focus-visible { opacity: 0.7; left: 10px; }
.slider:hover .flex-next,
.flex-next:focus-visible { opacity: 0.7; right: 10px; }
.flex-prev:hover,
.flex-next:hover { opacity: 1 !important; color: var(--gold); }

.flex-control-nav { display: none; position: absolute; bottom: 10px; width: 100%; list-style: none; margin: 0; padding: 0; }
.flex-control-nav li { display: flex; margin: 0 7px; }
.flex-control-nav button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d8d8d4;
  cursor: pointer;
  transition: width 0.25s ease, height 0.25s ease, background-color 0.25s ease;
}
.flex-control-nav button:hover { background: #bdbdb7; }
.flex-control-nav button.active { width: 18px; height: 18px; background: #6b6b5f; }
.controlGap { height: 30px; background: var(--panel); display: none; }

/* ---------------------------------------------------------------- footer */
footer { padding: 15px 0 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
footer .share { display: flex; align-items: center; gap: 20px; }
.share-links { display: inline-flex; gap: 10px; }
.share-links a { text-decoration: none; }
.social { font-size: 20px; }
.social:hover { color: var(--gold); }
.help-links a { text-decoration: none; color: var(--gray); }
.help-links .sep { padding: 0 8px; }
.copyright a:hover { color: var(--gold); }
.disqusContainer { margin-top: 40px; }
.disclaimer { text-align: center; padding: 40px 170px 20px; font-size: 12px; }
.ads { margin-bottom: 20px; }

/* ------------------------------------------------------------ sticky bar */
.stickyBar {
  background: var(--gold);
  padding: 7px 0;
  margin-bottom: 40px;
  position: relative;
  box-shadow: inset 0 0 30px var(--gold), 0 4px 2px -2px var(--gray-light);
}
.stickyBar.dismissed { display: none; }
.stickyBarWrap { display: flex; justify-content: space-between; align-items: center; min-height: 20px; }
.share-inline { display: flex; align-items: center; }
.share-inline .share-links { gap: 0; }
.share-inline .share-links a { padding: 0 5px; }
.stickyBar a:hover,
.stickyBar .social:hover { color: var(--white) !important; }
.dismiss-sticky { position: absolute; right: 14px; top: 7px; font-size: 20px; }
.dismiss-sticky:hover { color: var(--white); }

/* ---------------------------------------------------------------- popups */
.overlay { position: fixed; inset: 0; background: #000; opacity: 0.9; z-index: 99; }
.popupWrap:focus { outline: none; }
.popupWrap { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); z-index: 100; width: 420px; max-width: calc(100% - 20px); }
.popup { position: relative; border-radius: 4px; background: var(--white); padding: 30px; margin-top: 20px; }
.popupHeader { min-height: 20px; }
.windowTitle { font-size: 16px; font-weight: bold; text-transform: uppercase; }
.popup .close {
  position: absolute;
  right: -13px;
  top: -13px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-size: 16px;
  box-shadow: 0 0 0 2px var(--white);
}
.popup .close:hover { background: var(--gray); }

.form form { padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.form input.text,
.form textarea {
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  color: #595959;
  font: 16px/40px Helvetica, Arial, sans-serif;
  height: 42px;
  width: 100%;
  padding: 0 12px;
  -webkit-appearance: none;
}
.form textarea { height: 120px; line-height: 22px; padding: 10px 12px; resize: vertical; }
.form input[type='submit'] {
  width: 100px;
  height: 42px;
  border: none;
  border-radius: 4px;
  background: var(--gray);
  color: var(--white);
  font: 16px Arial, sans-serif;
  cursor: pointer;
  -webkit-appearance: none;
}
.form input[type='submit']:disabled { opacity: 0.6; cursor: default; }
.form fieldset { border: 0; }
.form legend { padding: 0 0 5px; }
.form .lbl1Wrap { padding-top: 20px; }
.choice { display: inline-flex; align-items: center; cursor: pointer; margin-right: 8px; font-size: 24px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice input:focus-visible + .fa { outline: 2px solid var(--gold); }
.choice em { font: 14px/19px Arial, sans-serif; margin: 5px; font-style: normal; }
.choice:hover { color: var(--gold); }
.inline-field { display: flex; }
.inline-field input.text { border-right: none; border-radius: 4px 0 0 4px; }
.inline-field input[type='submit'] { border-radius: 0 4px 4px 0; flex: 0 0 110px; }

.validator { text-align: center; padding: 20px 0; font-size: 100px; line-height: 1; }
.validator .spinner { color: var(--gold); }
.validator .check-circle { color: #5cb85c; }
ul.error { color: #d9534f; font-size: 12px; padding: 15px 0 0 18px; list-style: disc; }

.formWrap.donate > p { padding: 35px 0; }
.formWrap.donate form { text-align: center; }
.formWrap.donate input[type='image'] { border: none; width: 150px; height: auto; }

/* -------------------------------------------------------------- back top */
.back-top {
  position: fixed;
  right: 15px;
  bottom: 0;
  z-index: 50;
  width: 42px;
  height: 35px;
  font-size: 32px;
  line-height: 36px;
  color: var(--white);
  background: rgba(103, 103, 89, 0.8);
  border-radius: 5px 5px 0 0;
  text-align: center;
  display: none;
}
.back-top.visible { display: block; }

/* ---------------------------------------------------------------- tablet */
@media (min-width: 714px) and (max-width: 900px) {
  .stickyBar { display: none; }
  .logo { width: 220px; }
  .disclaimer { padding: 40px 100px 20px; }
}

/* ---------------------------------------------------------------- mobile */
@media (max-width: 713px) {
  .stickyBar { display: none; }
  .containerWrap { padding: 20px 0; }
  .logo { width: 200px; margin-left: 1px; }

  header { padding: 0 10px 17px; }
  header nav ul { margin: 0; }
  .d-main-menu { display: none; }
  .m-main-menu { display: block; }
  .m-main-menu li { display: block; }
  .m-main-menu li a { padding: 8px 4px 6px 12px !important; font-size: 20px; border-radius: 3px; }
  .m-main-menu li.condensed a { padding-left: 8px !important; }
  .down-up-arrow { font-size: 16px; margin: 0 8px; }

  .mobile-currency.open { display: block; }

  .slides { padding: 30px 0; }
  .slides article { padding: 0 0 30px; }
  .exchange { flex-direction: column; }
  .exchange .gap { display: none; }
  .exchange .rate { width: 100%; }
  .exchange .rate > div { width: 100%; padding: 10px 0; border-radius: 0; }
  .last-update p { padding: 0 20px; }
  .flex-prev,
  .flex-next { display: none; }
  .flex-control-nav { display: flex; justify-content: center; align-items: center; }
  .controlGap { display: block; }

  .popupWrap { top: 30px; width: 100%; max-width: 100%; }
  .popup { background: transparent; padding: 30px 10px; }
  .popupHeader { background: var(--white); border-radius: 4px 4px 0 0; padding: 20px 15px 0; }
  .windowTitle { font-size: 17px; text-transform: none; }
  .popup .close { right: 20px; top: 42px; }
  .formWrap { background: var(--white); border-radius: 0 0 4px 4px; padding: 0 15px 25px; }
  .formWrap.donate > p { padding: 20px 0 5px; }
  .choice { display: flex; margin-bottom: 5px; }

  footer { padding: 30px 10px 40px; }
  footer .copyright { width: 100%; }
  .help-links .long { display: none; }
  .disclaimer { text-align: left; padding: 15px 10px 20px; }
  .disqusContainer { padding: 0 10px; }
  .back-top { bottom: 0; }
}

/* htmx: the spinner above a popup form shows only while it is sending. */
.validator.htmx-indicator { display: none; opacity: 1; }
.validator.htmx-indicator.htmx-request { display: block; }

/* The slider's mobile menu lists every currency but the current one. */
.mobile-currency li[hidden] { display: none; }

/* 404: grey page with the content in a centred white box, like the login screen. */
.not-found {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--panel);
}
.not-found .box {
  width: 100%;
  max-width: 360px;
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.175);
  border-radius: 5px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  text-align: center;
}
.not-found .box .logo { width: 200px; margin: 0 auto; }
.not-found .box h1 { margin: 24px 0 56px; font-size: 20px; }
/* Gold like the login button and the active currency tab. */
.not-found .home-btn {
  display: block;
  height: 50px;
  line-height: 50px;
  background: var(--gold);
  color: #000;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.2s;
}
.not-found .home-btn:hover,
.not-found .home-btn:focus-visible {
  background: var(--gray);
  color: var(--white);
}
