/* Custom font */
@font-face {
  font-family: 'StratumNo2Reg';
  src: url('textfonts/stratumno2_regular.otf');
}

html{
font-size: 16px; /* The rem calculation changing this changes all rems */
}

.no-pointer {
  pointer-events: none;
  user-select: none;
}

/* Reset + body setup */
body {
  margin: 0;
  font-family: 'StratumNo2Reg', Arial, sans-serif;
  color: white;
  overflow-x: hidden; /* no sideways scrolling */
  position: relative;
}

/* Fixed full-screen background*/
.background-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('playimages/cute_cat_place.jpg') no-repeat center center;
  background-size: cover;
  z-index: -2; /* behind everything */
}

/* Blur bar at top */
.top-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0);
  z-index: 1;
}

/* Linemap overlay at top */
.linemap-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5rem;
  background: url('indeximages/linemap.svg') repeat;
  opacity: 0.6;
  z-index: 2;
}

/* Menu layout */
.menu {
  position: absolute;
  width: 100%;
  height: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  font-family: 'StratumNo2Reg', Arial, sans-serif;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 1);
  font-size: clamp(4rem, 1vw, 1rem);
  z-index: 3;
}

/* Da menu link states */
a:link {
  text-decoration: none;
}
a:visited{
  color:white
}

/* PLAY glowbox effect */
.play-bg {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: auto;
  z-index: -1;
  opacity: 0.5;
}

.icon-buttons {
  position: fixed;
  top: 0.95rem;
  left: 1rem;      /* small spacing from right edge */
  z-index: 3;
  display: flex;
  gap: 20px;
  padding: 10px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 1));
}

.icon-container {
  position: relative; /* needed so hoverbox can sit behind */
  display: inline-block;
}

.hoverbox {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%) scale(1.1); /* start slightly smaller */
  z-index: 1; /* behind icon */
  opacity: 0; /* hidden by default */
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none; /* ignores mouse events */
}

.icon {
  position: relative;
  z-index: 1; /* above hoverbox */
  cursor: pointer;
}

/* Hover effect */
.icon-container:hover .hoverbox {
  opacity: 0.3;
  transform: translate(-50%, -55%) scale(1.1); /* slightly bigger on hover */
}

/* Optimizations for IOS can start here */