body {
  background-image: url(/assets/imgs/bg/017C.jpg);
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
}

.headerImg {
  width: 500px;
  display: block;
  margin: 20px auto;
  max-width: 90vw;
}

/* TV frame as background */
.crtBorder {
  position: relative;
  margin: 0 auto;
  width: 985px;
  height: 643px;
  box-sizing: border-box;
  overflow: hidden;
}

/* CRT screen inside TV */
.crtScreen {
  position: absolute;
  top: 50px;      /* distance from top edge to screen */
  left: 60px;     /* distance from left edge to screen */
  width: 670px;   /* width of visible screen */
  height: 550px;
}

.crt {
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #000000, #000000, #333333, #333333);
  color: #FF10F0;
  font-family: "Courier New", monospace;
  font-size: clamp(14px, 4vw, 28px);
  text-align: left;
  text-shadow: 0 0 10px #FF10F0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-radius: 20px;
  box-sizing: border-box;
  padding: 2vw 2vw;
  overflow: auto;
}

.tv-frame {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Links styling */
a {
  text-decoration: none;
  color: #FF10F0;
  font-family: "Courier New", monospace;
  font-size: clamp(16px, 4vw, 32px);
  text-align: center;          /* Ensure links are centered */
  text-shadow: 0 0 10px #FF10F0;
  max-width: 100%;
  overflow-wrap: break-word;
  box-sizing: border-box;
  width: 60%;
}

a:hover {
  text-shadow: 0px 0px 2px #b3e6b4;
}

/* Responsive for mobile */
@media (max-width: 700px) {
  .crtBorder {
    width: 98vw;
    height: calc(98vw * 643 / 985);
    max-width: 100vw;
  }
  .crtScreen {
    top: 7.78%;
    left: 6.09%;
    width: 68.02%;
    height: 85.54%;
  }
  .crt {
    font-size: 4vw;
    border-radius: 10px;
    padding: 4vw 2vw;
    gap: 2vw;
  }
}

/* Adjustments for smaller screens */
@media (max-width: 500px) {
  .crt,
  .tv-frame {
    width: 100%;
    height: 100%;
    padding: 5vw 1vw 5vw 4vw;
    font-size: 5vw;
    border-radius: 6px;
  }
  .crt {
    gap: 2vw;
  }
  a {
    margin-bottom: 0;
  }
  .headerImg {
    width: 90vw;
  }
  .crtBorder {
    width: 100vw;
    height: calc(100vw * 643 / 985);
    max-width: 100vw;
  }
  .crtScreen {
    top: 7.78%;
    left: 6.09%;
    width: 68.02%;
    height: 92%;
  }
}

@media (max-width: 1000px) {
  .crtBorder {
    width: 98vw;
    height: calc(98vw * 643 / 985);
    max-width: 100vw;
  }
  .crtScreen {
    top: 7.78%;
    left: 6.09%;
    width: 68.02%;
    height: 84.54%;
  }
}

.linksLogo {
  position: absolute;
  top: 10px;
  left: 0%;
  transform: rotate(-30deg);
  width: 18vw;         /* Responsive width */
  max-width: 200px;    /* Never larger than 200px */
  min-width: 80px;     /* Never smaller than 80px */
  z-index: 10;
  pointer-events: none;
}
