/* font family variable for 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande',
    'Lucida Sans', Arial, sans-serif; set to 'Treb' */
:root {
  --font-sans: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande',
    'Lucida Sans', Arial, sans-serif;
  --color-pencil-yelloworange: #fba80b;
  --color-pencil-yellow: #ffd026;
  --color-green-normal: rgb(36, 161, 65);
  --color-green-border: rgb(25, 129, 11);
  --color-eraser-red: #dc3728;
  --color-brown-normal: rgb(186, 168, 129);
  --color-brown-border: rgb(150, 129, 77);
}

/* #region Reset & Base Styles */
html,
body h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
footer,
header,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
.offscreen {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
.hidden {
  display: none;
}
#app {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-width: 960px;
  min-height: 650px;
}
header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  padding-left: 10px;
}
main {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  bottom: 0;
}
#sectionA {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 30%;
  box-shadow: inset 0px 0px 30px 0px rgba(0, 0, 0, 0.6);
  background: radial-gradient(
    circle,
    rgba(245, 249, 255, 1) 0%,
    rgba(118, 186, 255, 1) 100%
  );
  align-content: center;
  text-align: center;
}
#version {
  position: absolute;
  bottom: 5px;
  left: 5px;
  font-size: 0.9em;
}
#pcanvas {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#sectionB {
  position: absolute;
  top: 0;
  left: 30%;
  bottom: 0;
  right: 300px;
  background: linear-gradient(
    var(--color-brown-normal) 70%,
    var(--color-brown-border) 100%
  );
  overflow-x: hidden;
  overflow-y: scroll;
}
#sectionB h2 {
  color: #fff;
  font-family: var(--font-sans);
  text-align: left;
  font-size: 0.8em;
  text-transform: uppercase;
  font-weight: bold;
  padding: 0.5em 1em;
  background: #222;
  border-bottom: 2px solid #000;
  letter-spacing: 0.05em;
}
#sectionC {
  position: absolute;
  width: 300px;
  top: 0;
  right: 0;
  bottom: 0;
  background: #000;
  box-shadow: rgba(255, 255, 255, 0.5) 0px 0px 15px 0px inset;
}
#sectionC h2 {
  color: #fff;
  font-family: var(--font-sans);
  text-align: left;
  font-size: 0.8em;
  text-transform: uppercase;
  font-weight: bold;
  padding: 0.5em 1em;
  background: #222;
  border-bottom: 2px solid #000;
  letter-spacing: 0.05em;
}
.toggleBtn {
  font-family: var(--font-sans);
  background-color: rgb(27, 27, 27);
  border: 2px solid rgb(79, 79, 79);
  border-radius: 5px;
  appearance: none;
  display: inline-block;
  position: relative;
  color: white;
  padding: 0.2em 1em;
  font-size: 0.7em;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 0.05em;
}
#achievementsNotificationCount {
  position: absolute;
  top: -5px;
  right: 0px;
  color: #fff;
  background: var(--color-eraser-red);
  border-radius: 50%;
  padding: 0.1em 0.3em;
  font-size: 0.9em;
}
/* #endregion */

/* #region scoreboard and main button */
#scoreboard {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  padding: 2.3em 1em;
  background: #ccc url(images/ruler-wood-grain.jpg) 0 0 repeat;
  background-size: cover;
  color: #000;
  box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 15px 0px inset,
    rgba(0, 0, 0, 0.5) 0px 0px 15px 0px;
  overflow: hidden;
  z-index: 1000;
  font-family: var(--font-sans);
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
#progress div {
  font-size: 2.8em;
  margin-top: -0.1em;
}
.pencilsword {
  font-size: 0.6em;
}
#ruler-cm {
  position: absolute;
  width: 100%;
  margin: 0 auto;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
}
#ruler .cm,
#ruler .mm {
  position: absolute;
  border-left: 1px solid #333;
  height: 14px;
  width: 10%;
}
#ruler .cm {
  width: 40px;
}
#ruler .cm:after {
  position: absolute;
  bottom: -15px;
  left: -4px;
  font: 11px/1 sans-serif;
  color: #555;
}
#ruler .mm {
  height: 5px;
}
#ruler .mm:nth-of-type(5) {
  height: 10px;
}
#ruler .cm:nth-of-type(1) {
  left: 0;
}
#ruler .cm:nth-of-type(1):after {
  content: '0';
}
#ruler .cm:nth-of-type(2) {
  left: 40px;
}
#ruler .cm:nth-of-type(2):after {
  content: '1';
}
#ruler .cm:nth-of-type(3) {
  left: 80px;
}
#ruler .cm:nth-of-type(3):after {
  content: '2';
}
#ruler .cm:nth-of-type(4) {
  left: 120px;
}
#ruler .cm:nth-of-type(4):after {
  content: '3';
}
#ruler .cm:nth-of-type(5) {
  left: 160px;
}
#ruler .cm:nth-of-type(5):after {
  content: '4';
}
#ruler .cm:nth-of-type(6) {
  left: 200px;
}
#ruler .cm:nth-of-type(6):after {
  content: '5';
}
#ruler .cm:nth-of-type(7) {
  left: 240px;
}
#ruler .cm:nth-of-type(7):after {
  content: '6';
}
#ruler .cm:nth-of-type(8) {
  left: 280px;
}
#ruler .cm:nth-of-type(8):after {
  content: '7';
}
#ruler .cm:nth-of-type(9) {
  left: 320px;
}
#ruler .cm:nth-of-type(9):after {
  content: '8';
}
#ruler .cm:nth-of-type(10) {
  left: 360px;
}
#ruler .cm:nth-of-type(10):after {
  content: '9';
}
#ruler .cm:nth-of-type(11) {
  left: 400px;
}
#ruler .cm:nth-of-type(11):after {
  content: '10';
}
#ruler .cm:nth-of-type(12) {
  left: 440px;
}
#ruler .cm:nth-of-type(12):after {
  content: '11';
}
#ruler .cm:nth-of-type(13) {
  left: 480px;
}
#ruler .cm:nth-of-type(13):after {
  content: '12';
}
#ruler .cm:nth-of-type(14) {
  left: 520px;
}
#ruler .cm:nth-of-type(14):after {
  content: '13';
}
#ruler .cm:nth-of-type(15) {
  left: 560px;
}
#ruler .cm:nth-of-type(15):after {
  content: '14';
}
#ruler .cm:nth-of-type(16) {
  left: 600px;
}
#ruler .cm:nth-of-type(16):after {
  content: '15';
}
#ruler .cm:nth-of-type(17) {
  left: 640px;
}
#ruler .cm:nth-of-type(17):after {
  content: '16';
}
#ruler .cm:nth-of-type(18) {
  left: 680px;
}
#ruler .cm:nth-of-type(18):after {
  content: '17';
}
#ruler .cm:nth-of-type(19) {
  left: 720px;
}
#ruler .cm:nth-of-type(19):after {
  content: '18';
}
#ruler .cm:nth-of-type(20) {
  left: 760px;
}
#ruler .cm:nth-of-type(20):after {
  content: '19';
}
#ruler .cm:nth-of-type(21) {
  left: 800px;
}
#ruler .cm:nth-of-type(21):after {
  content: '20';
}

#ruler .mm:nth-of-type(1) {
  left: 10%;
}
#ruler .mm:nth-of-type(2) {
  left: 20%;
}
#ruler .mm:nth-of-type(3) {
  left: 30%;
}
#ruler .mm:nth-of-type(4) {
  left: 40%;
}
#ruler .mm:nth-of-type(5) {
  left: 50%;
}
#ruler .mm:nth-of-type(6) {
  left: 60%;
}
#ruler .mm:nth-of-type(7) {
  left: 70%;
}
#ruler .mm:nth-of-type(8) {
  left: 80%;
}
#ruler .mm:nth-of-type(9) {
  left: 90%;
}
#ruler .mm:nth-of-type(10) {
  left: 100%;
}

#ruler-in {
  position: absolute;
  width: 100%;
  margin: 0 auto;
  bottom: 0;
  left: 0;
  right: 0;
  height: 14px;
}
#ruler-in .in,
#ruler-in .inchfraction {
  position: absolute;
  bottom: 0;
  border-left: 1px solid #333;
  height: 14px;
  width: 10%;
}
#ruler-in .in {
  width: 100px;
}
#ruler-in .in:after {
  position: absolute;
  top: -15px;
  left: -4px;
  font: 11px/1 sans-serif;
  color: #555;
}
#ruler-in .inchfraction {
  height: 5px;
}
#ruler-in .inchfraction:nth-of-type(5) {
  height: 10px;
}
#ruler-in .in:nth-of-type(1) {
  left: 0;
}
#ruler-in .in:nth-of-type(1):after {
  content: '0';
}
#ruler-in .in:nth-of-type(2) {
  left: 100px;
}
#ruler-in .in:nth-of-type(2):after {
  content: '1';
}
#ruler-in .in:nth-of-type(3) {
  left: 200px;
}
#ruler-in .in:nth-of-type(3):after {
  content: '2';
}
#ruler-in .in:nth-of-type(4) {
  left: 300px;
}
#ruler-in .in:nth-of-type(4):after {
  content: '3';
}
#ruler-in .in:nth-of-type(5) {
  left: 400px;
}
#ruler-in .in:nth-of-type(5):after {
  content: '4';
}
#ruler-in .in:nth-of-type(6) {
  left: 500px;
}
#ruler-in .in:nth-of-type(6):after {
  content: '5';
}
#ruler-in .in:nth-of-type(7) {
  left: 600px;
}
#ruler-in .in:nth-of-type(7):after {
  content: '6';
}
#ruler-in .in:nth-of-type(8) {
  left: 700px;
}
#ruler-in .in:nth-of-type(8):after {
  content: '7';
}
#ruler .in:nth-of-type(9) {
  left: 800px;
}
#ruler-in .in:nth-of-type(9):after {
  content: '8';
}

#ruler-in .inchfraction:nth-of-type(1) {
  left: 10%;
}
#ruler-in .inchfraction:nth-of-type(2) {
  left: 20%;
}
#ruler-in .inchfraction:nth-of-type(3) {
  left: 30%;
}
#ruler-in .inchfraction:nth-of-type(4) {
  left: 40%;
}
#ruler-in .inchfraction:nth-of-type(5) {
  left: 50%;
}
#ruler-in .inchfraction:nth-of-type(6) {
  left: 60%;
}
#ruler-in .inchfraction:nth-of-type(7) {
  left: 70%;
}
#ruler-in .inchfraction:nth-of-type(8) {
  left: 80%;
}
#ruler-in .inchfraction:nth-of-type(9) {
  left: 90%;
}
#ruler-in .inchfraction:nth-of-type(10) {
  left: 100%;
}

#clickBtn {
  position: relative;
  cursor: pointer;
  display: inline-block;
  padding: 0;
  width: 200px;
  height: 600px;
  border: 0;
  border-radius: 1em;
  background: transparent;
  transition: all 0.1s ease;
}
@media screen and (max-height: 700px) {
  #clickBtn {
    height: 450px;
  }
}
#clickBtn:hover {
  transform: scale(1.02);
}
#clickBtn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  background: transparent url(images/pencilButton.svg) 0 0 no-repeat;
  background-size: contain;
  background-position: center;
  border-radius: 1em;
  opacity: 1;
}
/* #endregion */

/* #region Pencil Click Behavior pulsing */
@keyframes btnPulse {
  0% {
    transform: scale(0.95);
  }
  12% {
    transform: scale(1.05);
  }
  24% {
    transform: scale(0.97);
  }
  36% {
    transform: scale(1.03);
  }
  48% {
    transform: scale(0.98);
  }
  60% {
    transform: scale(1.02);
  }
  72% {
    transform: scale(0.985);
  }
  85% {
    transform: scale(1.01);
  }
  100% {
    transform: scale(1);
  }
}
.btnPulse {
  animation: btnPulse 0.8s forwards ease-in-out;
}
.clickPopover {
  font-size: 1.7em;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
  text-align: center;
  white-space: nowrap;
  user-select: none;
  z-index: 1000;
  position: absolute;
  pointer-events: none;
  transition: transform 3s ease-out, opacity 3s ease-out;
}
/* #endregion */

/* #region toggle buttons */

.areaContainer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  padding: 1em;
  inset: 1.5em;
  border: 4px solid #000;
  box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 15px 0px;
  overflow-y: auto;
  z-index: 1000;
}
.closeAreaBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: orange;
  color: black;
  border: 1px solid #777;
  padding: 0.5em 1em;
  cursor: pointer;
  text-transform: uppercase;
}
.areaContainer h3 {
  font-weight: bold;
  margin-bottom: 0.2em;
}
.areaContainer p {
  margin-bottom: 1em;
}
/* #endregion */

/* #region factories */
.btnFactory {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(
    to bottom,
    var(--color-brown-normal),
    var(--color-brown-border)
  );
  color: #000;
  padding: 0.5em 1em 0.5em 60px;
  margin: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
  border: 0;
  position: relative;
}
.btnFactory:nth-child(-n + 2) {
  display: flex;
}
.btnFactory.unlocked {
  display: flex;
}
.btnFactory.unlocked + .btnFactory.locked,
.btnFactory.unlocked + .btnFactory.locked + .btnFactory.locked {
  display: flex;
}
.btnFactory:hover {
  background: #ccc;
}
.btnFactory:active {
  opacity: 0.9;
}
.btnFactory.unaffordable {
  opacity: 0.5;
  cursor: not-allowed;
}
.btnFactory span {
  display: block;
}
.btnFactory.locked .itemName {
  display: none;
}
.btnFactory.unlocked .itemNameMystery {
  display: none;
}
.btnFactory span.itemName,
.btnFactory span.itemNameMystery {
  font-size: 1.2em;
}
.btnFactory.locked {
  background: #666;
  color: #ccc;
}
.purchasedFactoryCount {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 2em;
  color: white;
}
.btnFactory .factoryImg {
  width: 50px;
  height: 0;
  padding-top: 50px;
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  background: transparent url(images/sprite-factories.png) 0 0 no-repeat;
  background-position: 0 0;
  background-size: 100px;
}
.btnFactory.unlocked .factoryImg {
  background-position-x: -50px;
  transition: transform 0.1s ease-in-out;
}
.btnFactory.unlocked:hover .factoryImg {
  transform: scale(1.05);
}
.btnFactory.locked .factoryImg {
  background-position: 0 0;
}
.btnFactory.locked.btnFactory101 .factoryImg {
  background-position-y: -50px;
}
.btnFactory.unlocked.btnFactory101 .factoryImg {
  background-position-x: -50px;
  background-position-y: -50px;
}
.btnFactory.locked.btnFactory102 .factoryImg {
  background-position-y: -100px;
}
.btnFactory.unlocked.btnFactory102 .factoryImg {
  background-position-x: -50px;
  background-position-y: -100px;
}
.btnFactory.locked.btnFactory103 .factoryImg {
  background-position-y: -150px;
}
.btnFactory.unlocked.btnFactory103 .factoryImg {
  background-position-x: -50px;
  background-position-y: -150px;
}
.btnFactory.locked.btnFactory104 .factoryImg {
  background-position-y: -200px;
}
.btnFactory.unlocked.btnFactory104 .factoryImg {
  background-position-x: -50px;
  background-position-y: -200px;
}
.btnFactory.locked.btnFactory105 .factoryImg {
  background-position-y: -250px;
}
.btnFactory.unlocked.btnFactory105 .factoryImg {
  background-position-x: -50px;
  background-position-y: -250px;
}
.btnFactory.locked.btnFactory106 .factoryImg {
  background-position-y: -300px;
}
.btnFactory.unlocked.btnFactory106 .factoryImg {
  background-position-x: -50px;
  background-position-y: -300px;
}
.btnFactory.locked.btnFactory107 .factoryImg {
  background-position-y: -350px;
}
.btnFactory.unlocked.btnFactory107 .factoryImg {
  background-position-x: -50px;
  background-position-y: -350px;
}
.btnFactory.locked.btnFactory108 .factoryImg {
  background-position-y: -400px;
}
.btnFactory.unlocked.btnFactory108 .factoryImg {
  background-position-x: -50px;
  background-position-y: -400px;
}
.btnFactory.locked.btnFactory109 .factoryImg {
  background-position-y: -450px;
}
.btnFactory.unlocked.btnFactory109 .factoryImg {
  background-position-x: -50px;
  background-position-y: -450px;
}
.btnFactory.locked.btnFactory110 .factoryImg {
  background-position-y: -500px;
}
.btnFactory.unlocked.btnFactory110 .factoryImg {
  background-position-x: -50px;
  background-position-y: -500px;
}
/* #endregion */

/* #region purchased factories */
.purchasedFactoriesDiv {
  padding: 1.5em 1em 1em;
  background: green;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 0px 30px 0px inset;
  border-bottom: 1px solid var(--color-dollar-accent-red);
  position: relative;
}
.purchasedFactoriesDiv h3 {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--color-trumpvancy-blue);
  color: #fff;
  padding: 0.2em 0.8em;
  font-size: 12px;
  text-transform: uppercase;
  font-family: sans-serif;
}
.purchasedFactoriesDiv span {
  text-indent: -99999px;
  background: white;
  height: 10px;
  width: 10px;
  white-space: nowrap;
  display: inline-block;
  border-radius: 50%;
  margin-right: 5px;
}

/* #endregion */

/* #region multipliers */
#multipliersContainer {
  position: relative;
}
#multipliersContainer:empty {
  padding-bottom: 0;
}
#multipliersContainer:not(:empty) {
  padding-top: 15px;
}
#multipliersContainer:not(:empty)::before {
  content: 'Upgrades';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15px;
  background: #ccc;
  color: #000;
  font-size: 12px;
  text-transform: uppercase;
  font-family: sans-serif;
  text-align: left;
  line-height: 15px;
  padding-left: 10px;
}
#multipliersContainer {
  display: flex;
  gap: 4px;
  padding-bottom: 4px;
}
#multipliersContainer button {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  color: #fff;
  padding: 0;
  margin: 0;
  cursor: pointer;
  width: 50px;
  height: 50px;
  text-align: left;
}
#multipliersContainer button span {
  display: block;
}
#multipliersContainer button span.itemName {
  font-size: 1.2em;
}
.multiplierDescription {
  padding: 0.5em 1em;
  display: none;
}
.multiplierImg img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
/* #endregion */

/* #region achievement */
.achievement {
  width: 50px;
  height: 50px;
  background: transparent url(images/icon-achievement.png) 0 0 no-repeat;
  margin: 4px 4px 4px 0;
  float: left;
  position: relative;
}
.achievement.locked {
  color: #ccc;
  opacity: 0.2;
}
.achievement.locked::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: grayscale(100%);
}
.achievement .contentForPopup {
  display: none;
}
/* #endregion */

/* #region tooltip */
#tooltipPopover {
  /* background radial gradient starting from upper left*/
  background: rgb(0, 0, 0);
  color: #fff;
  border-radius: 5px;
  font-size: 0.9rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none; /* Prevents mouse interaction with the tooltip itself */
  z-index: 1000; /* Make sure it stays on top */
  width: 400px;
  height: 100px;
  border: 5px solid #555;
  font-family: sans-serif;
}
#tooltipPopoverContent {
  display: flex;
  align-items: start;
  justify-content: start;
  height: 100%;
  padding: 1em;
  gap: 10px;
}
.achievementImageForPopup,
.factoryImageForPopup {
  flex: 0 0 60px;
  width: 50px;
  max-width: 50px;
  height: 50px;
  overflow: hidden;
  background: black url(images/sprite-factories.png) -50px 0 no-repeat;
  background-size: 100px;
  border: 1px solid #000;
}
#tooltipPopover.locked .factoryImageForPopup {
  background-position-x: 0;
  background-color: #333;
}
.factoryImageForPopup[data-factoryId='101'] {
  background-position-y: -50px;
}
.factoryImageForPopup[data-factoryId='102'] {
  background-position-y: -100px;
}

.achievementDescriptionForPopup h4,
.factoryDescriptionForPopup h4 {
  font-size: 1.2em;
  margin-bottom: 0.5em;
}
.achievementDescriptionForPopup p,
.factoryDescriptionForPopup p {
  font-size: 1em;
}
/* #endregion */

/* #region clickerTicker */
/* ----------------------------------------------- */
#clickerTicker {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 60px; /* Adjust as needed */
  display: flex;
  align-items: center;
  background-color: transparent;
  color: white;
  font-family: Arial, sans-serif;
  gap: 4px;
  transition: all 0.3s;
  transform: translateY(100px);
  opacity: 0;
  /*overflow: hidden;*/
  /*border-top: 4px solid #555;  Adds a border at the top for separation */
}
#clickerTicker.breakingnews {
  transform: translateY(0);
  opacity: 0.99;
}

#networkId {
  width: 160px; /* Fixed width for logo area */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-transform: uppercase;
  color: #000;
  border-top: 4px solid var(--color-brown-border);
  background-color: var(--color-brown-normal);
  height: 60px;
}

#networkId div {
  font-weight: bold;
  font-size: 21px;
}

#networkId span {
  font-size: 10px;
  letter-spacing: 0.08em;
}

#tickerContent {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 10px 0 10px;
  background: var(--color-green-normal);
  height: 60px;
  border-top: 4px solid var(--color-green-border);
}

#tickerContentType {
  position: absolute;
  bottom: 64px;
  left: 164px;
  color: #000;
  padding: 4px 12px;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  width: 350px;
  background: linear-gradient(
    -122deg,
    transparent 50%,
    #ffffff 0%,
    var(--color-pencil-yellow) 0
  );
}

#tickerContentText {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
}

#tickerNav {
  width: 160px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 60px;
  background-color: #666;
  border-top: 4px solid #555;
}

.ticketNavBtn {
  background-color: #555;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.ticketNavBtn:hover {
  background-color: #666;
}

.ticketNavBtn:active {
  background-color: #888;
}
/* #endregion */

/* #region affiliate link */
.affiliateLink {
  display: inline-block;
  font-size: 1.2em;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-align: center;
  min-width: 200px;
  font-family: var(--font-sans);
}

.affiliateLink:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.affiliateLink:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Affiliate container layout */
#affiliateContainer {
  flex-direction: column;
  gap: 20px;
}

#affiliateContainer h1 {
  font-family: var(--font-sans);
  font-size: 1.8em;
  font-weight: bold;
  color: #333;
  margin: 0 0 20px 0;
  text-align: center;
}

#affiliateContainer .product-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

#affiliateContainer img {
  flex: 0 0 200px;
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: #fff;
}

#affiliateContainer .product-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#affiliateContainer p {
  font-family: var(--font-sans);
  font-size: 1em;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

#affiliateContainer p:last-of-type {
  margin-top: 10px;
}
/* #endregion */
