@font-face {
  font-family: "Troika";
  src: url("/font/Troika.ttf") format("truetype");
}

@font-face {
  font-family: "Orbitron";
  src: url("/font/Orbitron-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "MyriadWebPro";
  src: url("/font/MyriadWebPro-Bold.ttf") format("truetype");
}

:root {
  --big-font-size: 26px;
  --small-font-size: 20px;
  --yellow: #fbb03c;
  --green: #22b573;
  --pink: #ffd3b3;
  --blue: #113254;
  --dark-blue: #0c233b;
  --sky-blue: #0071bc;
  --grey: #ccc;
}

body {
  background-color: var(--blue);
  color: white;
  margin: 20px;
  font-family: "MyriadWebPro";
}

h1 {
  font-family: "Troika";
  font-weight: normal;
}

button:active {
  transform: scale(0.95);
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content {
  display: flex;
  flex-direction: column;
}

button.nav {
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px 30px;
  font-family: "Orbitron";
  background-color: var(--sky-blue);
  font-size: unset;
}

/* store page */

h1.store {
  text-align: center;
}

button.store {
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px 30px;
  font-family: "Troika";
  background-color: var(--green);
  font-size: var(--big-font-size);
  /* width: 100%; */
}

.cash {
  color: var(--green);
  font-size: var(--big-font-size);
  white-space: nowrap;
  text-align: center;
}

.gold {
  color: var(--yellow);
  font-size: var(--big-font-size);
  white-space: nowrap;
  text-align: center;
}

.pro,
.ace {
  font-size: var(--big-font-size);
  white-space: nowrap;
  color: var(--pink);
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-row-gap: 15px;
  grid-column-gap: 40px;
  align-items: center;
  font-family: "Troika";
}

.grid h2 {
  margin-top: 50px;
  margin-bottom: 25px;
  grid-column: span 2;
  font-size: var(--big-font-size);
  font-weight: normal;
  text-align: center;
}

/* product page */

h1.product {
  margin-bottom: 5px;
}

.user {
  font-family: "Troika";
  font-size: var(--small-font-size);
}

.price {
  font-family: "Troika";
  font-size: var(--small-font-size);
}

form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  grid-row-gap: 20px;
}

form label {
  font-family: "Troika";
  font-size: var(--small-font-size);
  display: block;
  color: var(--pink);
}

form input {
  font-family: "Troika";
  background-color: var(--dark-blue);
  color: var(--yellow);
  font-size: var(--big-font-size);
  border: none;
  outline: none;
  padding: 10px;
  display: block;
  width: 100%;
  min-width: 240px;
  box-sizing: border-box;
}

form input.coupon {
  min-width: unset;
}

form button {
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px 30px;
  font-family: "Orbitron";
  background-color: var(--green);
  font-size: var(--big-font-size);
  width: 100%;
}

.height {
  height: 50px;
}

.coupon {
  display: flex;
  grid-column-gap: 20px;
}

.error {
  color: red;
  font-family: "Troika";
  font-size: var(--small-font-size);
  min-height: 1.1em;
}

/* invoice page */

h1.invoice {
  margin-bottom: 5px;
}

#payment-info {
  display: flex;
  flex-direction: column;
}

.field {
  margin-top: 10px;
}

img.qr {
  align-self: center;
  margin-top: 20px;
  margin-bottom: 10px;
}

a.link {
  color: var(--yellow);
  display: block;
  align-self: center;
}

.field label {
  display: block;
  margin-bottom: 3px;
  font-family: "Troika";
  color: var(--pink);
}

.textbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.textbox .text {
  flex-grow: 1;
  max-width: 340px;
  word-wrap: break-word;
  word-break: break-all;
  margin: 0 3px;
}

.textbox button.copy {
  cursor: pointer;
  border: none;
  background-color: transparent;
}

#time-left {
  margin-top: 10px;
  text-align: center;
  font-family: "Troika";
  font-size: var(--big-font-size);
}

.ton {
  align-self: center;
  text-align: center;
}

.ton a {
  margin-top: 10px;
  display: block;
  color: var(--yellow);
}

span.old-price {
  text-decoration: line-through;
  color: var(--grey);
}

.toggle {
  display: flex;
  align-items: center;
  font-size: 16px;
  column-gap: 10px;
  user-select: none; /* Prevent text selection */
  font-size: var(--small-font-size);
}

.switch {
  position: relative;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch input:checked + .slider {
  background-color: var(--sky-blue);
}

.switch input:checked + .slider:before {
  transform: translateX(26px);
}

.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--dark-blue);
  transition: 0.4s;
  border-radius: 34px;
}

.switch .slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
