* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-display: swap;
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/press-start-2p-v16-latin-regular.eot'); /* IE9 Compat Modes */
  src: url('../fonts/press-start-2p-v16-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/press-start-2p-v16-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('../fonts/press-start-2p-v16-latin-regular.woff') format('woff'), /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+, iOS 5+ */
       url('../fonts/press-start-2p-v16-latin-regular.ttf') format('truetype'), /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
       url('../fonts/press-start-2p-v16-latin-regular.svg#PressStart2P') format('svg'); /* Legacy iOS */
}

/* scrollbars */
html {
  scrollbar-width: thin;
  scrollbar-color: #00ffff #111;
}

html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track {
  background: #111;
}

html::-webkit-scrollbar-thumb {
  background-color: #00ffff;
  border: 1px solid #ff00ff;
  border-radius: 4px;
  box-shadow: 0 0 5px #ff00ff, 0 0 10px #00ffff;
}

body {
  position: relative;
  background-color: #000000;
  color: #00ffcc;
  font-family: 'Press Start 2P', monospace;
  background-image: url('../images/bg.png');
  background-repeat: repeat;
  background-attachment: fixed;
  text-align: center;
  padding: 10px;
  min-height: 100vh;

  cursor: url('../cursors/rainbow.png') 0 0, auto;
}

a,
a:link,
a:visited {
  cursor: url('../cursors/link.png') 0 0, pointer;
}

#music-player {
  margin: 10px auto;
  background-color: #111;
  border: 2px solid #ff00ff;
  padding: 5px;
  background-image: url('../images/bg2.png');
  text-align: center;
  width: 90%;
  max-width: 600px;
}

#music-player p {
  font-size: 12px;
  color: #00ffcc;
}

#welcome-banner {
  margin-bottom: 15px;
  background-color: rgba(0, 0, 0, 0.7);
  border: 3px dashed #00ffff;
  padding: 10px;
}

#welcome-banner h1 {
  color: #ff00ff;
  font-size: 24px;
  text-shadow: 1px 1px 2px #00ffff;
  animation: flicker 1s infinite alternate;
}

#welcome-banner p {
  font-size: 12px;
  color: #00ffcc;
}

#nav-section {
  margin: 10px auto;
  padding: 15px;
  background-color: #111111aa;
  border: 2px solid #00ffcc;
  width: 90%;
  max-width: 600px;
  text-align: center;
  font-weight: 12px;
}

#nav-section h2 {
  margin-bottom: 10px;
  color: #00ffff;
  font-size: 16px;
}

#nav-section p {
  font-size: 12px;
  line-height: 1.5;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.nav-links a {
  background-color: #ff00ff;
  color: #000;
  padding: 10px 15px;
  text-decoration: none;
  border: 2px solid #00ffcc;
  font-size: 12px;
  font-weight: bold;
  transition: 0.2s;
}

.nav-links a:hover {
  background-color: #00ffff;
  color: #000;
  border-color: #ff00ff;
  transform: scale(1.1);
}

.top-eight {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 15px;
}
.friend-card {
  background-color: #111;
  border: 2px solid #ff00ff;
  padding: 10px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;

  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-decoration: none;
  color: inherit;
}
.friend-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 8px;
}
.friend-card a {
  font-size: 10px;
  color: #00ffff;
  text-decoration: none;
}
.friend-card span {
  font-size: 10px;
  color: #00ffff;
  text-align: center;
}
.friend-card:hover {
  transform: scale(1.1);
  border-color: #00ffff;
  box-shadow: 0 0 10px #ff00ff, 0 0 20px #00ffff;
}





#server-news {
  margin-top: 15px;
  background-color: #000000aa;
  border-top: 2px dotted #00ffff;
  padding: 10px;
  font-size: 10px;
  color: #cccccc;
}

@keyframes flicker {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

marquee {
  font-size: 12px;
  color: #ff0000;
  background-color: #000;
  border: 1px solid #ff00ff;
  padding: 4px;
}

#server-news {
  margin-top: 20px;
  background-color: #000000dd;
  border-top: 2px dotted #00ffff;
  padding: 15px;
  font-size: 12px;
  color: #00ffcc;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

#server-news h3 {
  font-size: 16px;
  color: #ff00ff;
  margin-bottom: 10px;
  text-align: center;
  text-shadow: 1px 1px 2px #00ffff;
}

.news-entry {
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 2px solid #ff00ff;
}

.news-date {
  font-weight: bold;
  color: #00ffff;
  margin-bottom: 4px;
}

.news-body {
  color: #cccccc;
}

.footnote {
  text-align: right;
  font-size: 10px;
  color: #999999;
  margin-top: 20px;
}

.news-scrollbox {
  max-height: 350px;
  overflow-y: auto;
  padding-right: 10px;
  margin-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: #00ffff #111;
  background-color: #000000aa;
  border: 1px solid #00ffff;
}

.news-scrollbox::-webkit-scrollbar {
  width: 6px;
}

.news-scrollbox::-webkit-scrollbar-track {
  background: #111;
}

.news-scrollbox::-webkit-scrollbar-thumb {
  background-color: #00ffff;
  border-radius: 3px;
}

.button-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 15px;
  padding: 5px;
  border-top: 1px dotted #ff00ff;
}

.button-grid img {
  width: auto;
  height: 31px;
}


/* walk skelly along bottom */
#skelly {
  animation: skelly-walk 20s linear infinite;
}

@keyframes skelly-walk {
  0% {
    left: -40px;
  }

  50% {
    left: calc(100% - 30px);
    transform: scaleX(1);
  }

  51% {
    transform: scaleX(-1);
  }

  100% {
    left: -40px;
    transform: scaleX(-1);
  }
}

/* obfuscate email */
div.email>span:nth-child(3) {
  display: none;
}


@media (max-width: 600px) {
  body {
    font-size: 10px;
    overflow: auto;
  }

  .nav-links {
    flex-direction: column;
    gap: 5px;
  }
}
