@font-face{
  font-family: 'C&C';
  src: url('Fonts/Red_Alert.otf') format('OpenType');
}
a, button {
  cursor: url('Images/Cursor2.png'), pointer;
  font-family: 'C&C', sans-serif;
}
body{
  margin: 0;
  font-family: 'C&C';
  font-size: 20px;
  color: #e0e0ff;
  overflow-x: hidden;
  height: 100%;
  cursor: url('Images/Cursor1.png'), default; 
  background-image: url("Images/bg.gif");
  background-repeat: repeat;
  background-position: right top;
  background-size: 15%;
}
#square{
    width: 200vw;
    height: 200vw;
    top: 0;
    left: 0;
    opacity: 50%;
    z-index: -10;
    position: fixed;
    background-color: #1a0a2a;
}

/*Start Screen Stuff*/
  #start-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(180deg, #35105a, #0a0a1a);
  }
  #game-title {
    font-size: 5rem;
    font-weight: 1500;
    text-shadow: 0 0 15px #ff00ff, 0 0 25px #4f00ff;
    animation: glow 2s infinite;
  }
  #start-button {
    padding: 10px 20px;
    font-family: 'C&C';
    font-size: 2rem;
    color: #e0e0ff;
    background-color: #4b0082; /* Indigo */
    border: 8px ridge #ff00ff;
    transition: background-color 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
  }
  #start-button:hover {
    background-color: #8a2be2; /* Blue violet */
    transform: scale(1.1);
  }
  #start-button:hover::after {
    opacity: 1;
  }
  #start-button::before {
    position: absolute;
    top: -10px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: sparkle 1.5s infinite;
  }
  #start-button::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s;
  }
  .start-socials {
    align-content: center;
    scale: 250%;
    margin-top: 65px;
  }
  .hidden {
    display: none;
  }

/*Home Page*/
#header {
  text-align: center;
  margin: auto;
}
.content-wrapper {
  display: grid;
  gap: 25px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: 3fr 1fr;
  grid-template-rows: auto auto;
}
  /*News Section*/
    #latest-news {
      background-color: #1a0a2a;
      padding: 0 20px 20px 20px;
      border: 4px ridge #ff00ff;
      border-radius: 10px;
    }
    .news-item {
      margin-bottom: 20px;
      opacity: 0;
      transform: translateY(20px);
      animation: fadeInUp 0.5s ease-out forwards;
    }
    .news-item:nth-child(1) { animation-delay: 0.2s; }
    .news-item:nth-child(2) { animation-delay: 0.4s; }
    .news-item h3 {
      color: #ff00ff;
      font-size: 1.5rem;
      margin-bottom: 10px;
    }
  /*Nav Menu*/
    #main-menu {
      background-color: #1a0a2a;
      padding: 10px 25px;
      border: 4px solid #ff00ff;
      border-radius: 10px;
      margin-bottom: auto;
    }
    #main-menu ul {
      list-style: none;
      padding: 0;
    }
    #main-menu a {
      display: block;
      padding: 10px;
      text-align: center;
      background-color: #4b0082;
      border: 2px solid #ff00ff;
      border-radius: 5px;
      margin-bottom: 10px;
      transition: transform 0.3s, box-shadow 0.3s;
      color: #ffffff;
    }
    #main-menu a:hover {
      transform: translateY(-5px);
      box-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
      color: Plum;
    }
    #main-menu a:visited {
        color: Linen;
    }

/*About*/
  /*Header*/
  #about-banner {
    text-align: center;
    padding: 10px;
    background-color: #1a0a2a;
    border-bottom: 4px solid #ff00ff;
  }
  #about-banner h1 {
    font-size: 5rem;
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
    animation: glow 4s infinite;
    line-height: 10px;
  }
  #about-banner .tagline {
    font-size: 2rem;
    color: #e0e0ff;
  }
  #square-about{
      width: 200vw;
      height: 200vw;
      top: 0;
      left: 0;
      opacity: 75%;
      z-index: -10;
      position: fixed;
      background-color: #1a0a2a;
  }
  /*Nav Menu*/
  #helpme {
    max-width: 400px;
    padding-top: 25%;
  }
  #another{
    position: sticky;
    top: 150px;
  }
  /*Contents*/
  #game-description, #features {
    max-width: 790px;
    margin: 0 auto;
  }
  #lore {
    max-width: 790px;
    margin: 0 auto 50px auto;
  }
  #game-description h2, #features h2, #lore h2 {
    font-size: 3rem;
    color: #ff00ff;
    margin-bottom: 20px;
  }
  .feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .feature-item {
    background-color: #1a0a2a;
    padding: 20px;
    text-align: justify;
    border: 2px solid #ff00ff;
    border-radius: 10px;
  }
  .feature-item h3 {
    font-size: 2rem;
    color: #ff00ff;
    margin-bottom: -10px;
  }
  .feature-item p {
    line-height: 1.5;
  }

/*Footer*/
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 20px;
  background-color: #1a0a2a;
  box-shadow: 0 0 100px #8a2be2;
  margin-top: 50px;
}
.social-links a {
  margin: 0 10px;
  color: #e0e0ff;
  text-decoration: none;
}
.social-links a:hover {
  color: #ff00ff;
  text-decoration: underline;
}

/*Animations*/
   /*Used in game title*/
@keyframes glow {
  0% { text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff; }
  50% { text-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff; }
  100% { text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff; }
}
   /*Used when hovering start button*/
@keyframes sparkle {
  0% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0); }
}
   /*Used when news items are loaded*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*Checks if device is phone and shoves the nav menu to the top*/
@media (max-width: 768px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }
  #main-menu {
    order: -1;
  }
}
