/* Optimized styles.css */
@font-face {
  font-family: 'Pacifico';
  font-style: normal;
  font-weight: 400;
  display: swap; /* Improves font loading performance */
}

:root {
  --primary-color: #0041ff;
}

/* Base styles */
html {
  position: relative; /* Changed from absolute for better layout */
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
}

/* Links */
a {
  color: var(--primary-color);
}

/* Layout */
.wrapper {
  overflow: hidden;
  height: 100%;
  width: 100%;
}

/* TV Animation */
.TV {
  position: fixed; /* Changed from absolute for better performance */
  inset: 0; /* Shorthand for top, right, bottom, left */
  background: url('Files/TV.gif') repeat-x;
  width: 3072px;
  will-change: transform; /* Optimize animation performance */
  animation: TV-slide 60s linear infinite;
}

@keyframes TV-slide {
  to {
    transform: translate3d(-1024px, 0, 0);
  }
}

/* Content Layout */
.content-wrapper {
  position: absolute;
  top: 300px;
  left: 0;
  right: 0;
  margin: 0 auto; /* Simplified margin */
  width: 600px;
}

.content-inner {
  position: relative;
}

/* Container styles */
.container.with-title {
  background-color: white;
  z-index: 1; /* Changed from 0 for better stacking context */
}

.content-inner .container::before,
.content-inner .container::after {
  z-index: -1;
}

/* Flex layouts */
.row {
  display: flex;
}

.right-aligned {
  justify-content: flex-end;
}

/* Icon styles */
.icon-link {
  display: flex;
  flex-direction: column;
  font-size: 8px;
}

.matrix-link {
  position: absolute;
  right: 0;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .content-wrapper {
    top: 200px;
    width: 95%;
    font-size: 10px;
  }
  
  .TV {
    top: -15px;
  }
  
  .grass {
    top: -90px;
  }
}
