@font-face {
 font-display: swap;
 font-family: 'StratumNo2Reg';
 src: url('textfonts/stratumno2_regular.otf');
}

@font-face {
 font-display: swap;
 font-family: 'Quantico';
 src: url('textfonts/Quantico-Regular.ttf');
}

html{
font-size: 16px; /* The rem calculation changing this changes all rems */
}

.no-pointer {
  pointer-events: none;
  user-select: none;
}

body {
  margin: 0;
  font-family: 'StratumNo2Reg', Arial, sans-serif;
  color: white;
  overflow-x: hidden; /* no sideways scrolling */
  position: relative;
}

.background-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-image:
    linear-gradient(90deg,rgba(41, 46, 55, 1) 0%, rgba(41, 46, 55, 1) 10%, rgba(27, 40, 56, 0.5) 25%, rgba(27, 40, 56, 0.5) 75%, rgba(41, 46, 55, 1) 90%, rgba(41, 46, 55, 1) 100%),
    url('historyimages/still000000.png');

  background-size: cover;
  background-position: center;

  z-index: -2;
}

.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 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5rem;
  background: url('indeximages/linemap.svg') repeat;
  opacity: 0.6;
  z-index: 2;
}

.menu {
  position: fixed;
  top: 0;
  left: 0;
  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: 4rem;
  z-index: 3;
}

.menu a:first-child {
  color: rgb(56, 56, 56) !important;
}

.support-lock 
{
  position: absolute;
  top: 20%;
  left: 32.1%;
  z-index: 4;
}

/* Da menu link states */
a:link {
  text-decoration: none;
}
a:visited{
  color:rgb(21, 84, 255)
}

.play-bg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(65%, -593%);
  width: 400px;
  height: auto;
  z-index: 1;
  opacity: 0.5;
}

.icon-buttons {
  position: fixed;
  top: 0.95rem;
  left: 1rem;
  z-index: 4;
  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);
  z-index: 1;
  opacity: 0; 
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.icon {
  position: relative;
  z-index: 1;
  cursor: pointer;
}

/* Hover effect */
.icon-container:hover .hoverbox {
  opacity: 0.3;
  transform: translate(-50%, -55%) scale(1.1);
}

.timeline {
 width: 75%;
 margin: 8rem auto 0 auto;
 text-align: center;
}

.banner-info {
background: url('historyimages/history_banner_caution_comp.png') repeat;
text-shadow: 0 4px 12px rgba(0, 0, 0, 1);
}

.year-section h1{
margin: 0;
font-size: 3.5rem;
font-family: 'Quantico';
color: rgb(255, 255, 255);
}

.line-divider {
 height: 2rem;
 background-image: url("historyimages/line-divider.svg");
 background-repeat: repeat-y;
 background-position: center;
}

.month-section h2{
margin: 0;
padding-bottom: 12px;
font-size: 2.5rem;
font-family: 'Quantico';
color: rgb(255, 255, 255);
}

.day-major {
color: black;
font-size: 28px;
display: inline-block;

background-color: #ff9b01;
background-image: url("historyimages/major_update.svg");
background-repeat: no-repeat;
background-position: left center;
background-size: 30px 30px;

padding-left: 30px;
margin-top: 10px;
}

.day-regup {
color: black;
font-size: 28px;
display: inline-block;

background-color: #00406b;
background-image: url("historyimages/downloaded.svg");
background-repeat: no-repeat;
background-position: left center;
background-size: 30px 30px;

padding-left: 30px;
margin-top: 10px;
}

.day-regif {
color: black;
font-size: 28px;
display: inline-block;

background-color: #56b3ff;
background-image: url("historyimages/info_i.svg");
background-repeat: no-repeat;
background-position: left center;
background-size: 28px 28px;

padding-left: 30px;
}

.entry {
display: flex;
gap: 20px;
align-items: flex-start;
margin-top: 10px;
}

.info-csup {
font-size: 20px;
text-shadow: 2px 2px black;
flex: 2;
min-width: 0;
}

.info-up {
font-size: 20px;
text-shadow: 2px 2px black;
flex: 2;
min-width: 0;
}


.media iframe {
width: 500px;
height: 400px;
border: white;
margin-bottom: 20px;
}

.scroll-bottom {
position: fixed;      /* Stays on screen */
left: 20px;
bottom: 20px;

display: flex;

background-color: #7fd7ff; /* Light blue */
border-radius: 4px;
border: 4px solid #1d4657;

cursor: pointer;
z-index: 1000;
}

.scroll-bottom img {
width: 64px;
height: 64px;
}

/* Optimizations for IOS can start here */
@media (max-width: 768px) {
  .play-bg {
    top: 50%; /* closer to nav center */
    left: 50%;
    transform: translate(-75%, 0%);
    width: 250px; /* smaller on mobile */
  }

.menu {
  display: flex;
  justify-content: flex-start;   /* 🔑 THIS IS THE FIX */
  gap: 2.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.icon-buttons {
top: 5rem;
left: 0rem;
gap: 10px;
padding: 5px;
}
