
@font-face {
  font-family: "Rainy Hearts";
  src: url("https://axayacatl.neocities.org/fonts/rainyhearts/rainyhearts.woff") format("woff"),
       url("https://axayacatl.neocities.org/fonts/rainyhearts/rainyhearts.ttf") format("truetype"),
       url("https://axayacatl.neocities.org/fonts/rainyhearts/rainyhearts.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "bluescreen";
  src: url("https://axayacatl.neocities.org/fonts/bluescreen/Blue%20Screen.woff") format("woff"),
       url("https://axayacatl.neocities.org/fonts/bluescreen/Blue%20Screen.ttf") format("truetype");
}

body {
  margin: 0;
  padding: 0;
  background-image: url("https://axayacatl.neocities.org/images/glitch-anime-bg.gif");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-color: black;
  cursor: url("https://axayacatl.neocities.org/images/kitty_cursor.png"), auto;
  overflow: auto;
  min-height: 100vh;
}

.crt {
  animation: textShadow 1.6s infinite;
}

.crt::after {
  content: " ";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(18, 16, 16, 0.1);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  animation: flicker 0.15s infinite;
}

.crt::before {
  content: " ";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
              linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 2px, 3px 100%;
  z-index: 2;
  pointer-events: none;
}

@keyframes flicker {
  0% { opacity: 0.27861; }
  5% { opacity: 0.34769; }
  10% { opacity: 0.23604; }
  15% { opacity: 0.90626; }
  20% { opacity: 0.18128; }
  25% { opacity: 0.83891; }
  30% { opacity: 0.65583; }
  35% { opacity: 0.67807; }
  40% { opacity: 0.26559; }
  45% { opacity: 0.84693; }
  50% { opacity: 0.96019; }
  55% { opacity: 0.08594; }
  60% { opacity: 0.20313; }
  65% { opacity: 0.71988; }
  70% { opacity: 0.53455; }
  75% { opacity: 0.37288; }
  80% { opacity: 0.71428; }
  85% { opacity: 0.70419; }
  90% { opacity: 0.7003; }
  95% { opacity: 0.36108; }
  100% { opacity: 0.24387; }
}

@keyframes textShadow {
  0%, 100% {
    text-shadow: 0.5px 0 1px rgba(0,30,255,0.5), -0.5px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  50% {
    text-shadow: 2.5px 0 1px rgba(0,30,255,0.5), -2.5px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  10% { transform: translate(-1px, -1px); }
  20% { transform: translate(1px, 1px); }
  30% { transform: translate(-1px, 1px); }
  40% { transform: translate(1px, -1px); }
  50% { transform: translate(-1px, 0); }
  60% { transform: translate(1px, 0); }
  70% { transform: translate(0, 1px); }
  80% { transform: translate(0, -1px); }
  90% { transform: translate(1px, 1px); }
  100% { transform: translate(0, 0); }
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.centered-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 45vw;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  z-index: 1;
  opacity: 1;
}

.links {
  display: flex;
  flex-direction: row;
  align-items: center;
  position: absolute;
  top: 80%;
  color: #fff;
  font-family: "bluescreen", monospace;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  justify-content: center;
}

.links a {
  text-decoration: none;
  margin: 0 -20px;
  width: 15vw;
  font-size: 1.7vw;
  transition: color 0.3s ease;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.links a:hover {
  color: red;
}

.links2 {
  display: flex;
  flex-direction: row;
  align-items: center;
  position: absolute;
  top: 86%;
  color: #fff;
  font-family: "bluescreen", monospace;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  justify-content: center;
}

.links2 a {
  text-decoration: none;
  margin: 0 -20px;
  width: 15vw;
  font-size: 1.7vw;
  transition: color 0.3s ease;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.links2 a:hover {
  color: red;
}

.heart {
  position: fixed;
  right: 25%;
  top: 10%;
  z-index: 0;
  width: 40vh;
}



.animated-cog-container {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  z-index: 2;
}

.animated-cog {
  width: 100%;
  max-width: 6vw;
  cursor: pointer;
  animation: rotateCog 3s linear infinite;
  overflow: visible;
}

.animated-cog img {
  display: block;
  width: 100%;
  height: auto;
}

.update-box {
  position: absolute;
  top: 0;
  left: 100%;
  transform: translateX(10px);
  background-color: yellow;
  padding: 10px;
  border-radius: 5px;
  text-align: left;
  color: #000;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  font-family: "Rainy Hearts", sans-serif;
  border: 1.5px dotted #000;
}

.animated-cog-container:hover .update-box {
  opacity: 1;
  pointer-events: auto;
}

.animated-cog-container:hover .animated-cog {
  animation: rotateCogOpposite 3s ease-in-out 2;
  cursor: none;
}

@keyframes rotateCog {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateCogOpposite {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-720deg);
  }
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20%;
  height: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #000;
  display: none;
  z-index: 10;
  padding: 20px;
  box-sizing: border-box;
}

.popup-content {
  text-align: center;
  font-family: "bluescreen", monospace;
}

.popup-content a {
  color: black;
  text-decoration: none;
}

.popup-content a:visited {
  color: black;
}

.popup-content a:hover,
.popup-content a:focus {
  color: black;
  text-decoration: underline;
}

@keyframes flashRedBlack {
  0%, 100% {
    color: #900c3f;
  }
  50% {
    color: black;
  }
}

.blinking {
  animation: flashRedBlack 2.5s infinite;
}


.ctf-container {
  position: relative;
  width: 70%;
  max-width: 900px;
  margin: 60px auto;
  padding: 30px;
  z-index: 5;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 0;
}

.ctf-title {
  text-align: center;
  font-family: "Rainy Hearts", Arial, sans-serif;
  font-size: 32px;
  color: #ff0f4f;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.ctf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}


.ctf-card {
  position: relative;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 15, 79, 0.4);
  border-radius: 0;
  padding: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.ctf-card:hover {
  border-color: rgba(255, 15, 79, 0.8);
  background: rgba(0, 0, 0, 0.7);
}

.ctf-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 15, 79, 0.3);
  padding-bottom: 10px;
}

.ctf-card-header h2 {
  font-family: "Rainy Hearts", Arial, sans-serif;
  font-size: 20px;
  color: #ff0f4f;
  margin: 0;
}

.ctf-platform {
  font-family: "Rainy Hearts", Arial, sans-serif;
  font-size: 10px;
  color: #ff0f4f;
  padding: 3px 8px;
  border: 1px solid rgba(255, 15, 79, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ctf-score-container {
  margin: 15px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
}

.ctf-score-image {
  max-width: 100%;
  max-height: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  transition: all 0.3s ease;
}

.ctf-card:hover .ctf-score-image {
  filter: brightness(1.1);
}

.ctf-description {
  font-family: "Rainy Hearts", Arial, sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 15px 0;
  padding: 12px;
  background: rgba(255, 15, 79, 0.05);
  border-left: 2px solid rgba(255, 15, 79, 0.4);
}

.ctf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag {
  display: inline-block;
  background: rgba(255, 15, 79, 0.1);
  border: 1px solid rgba(255, 15, 79, 0.3);
  color: #ff0f4f;
  padding: 4px 10px;
  border-radius: 0;
  font-family: "Rainy Hearts", Arial, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(255, 15, 79, 0.2);
  border-color: rgba(255, 15, 79, 0.6);
}

.spy-team-section {
  margin-top: 50px;
  padding: 25px;
  border: 1px solid rgba(255, 15, 79, 0.5);
  background: rgba(255, 15, 79, 0.03);
  position: relative;
}

.spy-team-section::before {
  content: "// TEAM";
  position: absolute;
  top: -10px;
  left: 20px;
  background: black;
  padding: 0 10px;
  font-family: "Rainy Hearts", Arial, sans-serif;
  font-size: 12px;
  color: rgba(255, 15, 79, 0.7);
  letter-spacing: 2px;
}

.spy-team-inner {
  display: flex;
  align-items: center;
  gap: 30px;
}

.spy-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
}


.spy-team-title {
  font-family: "bluescreen", monospace;
  font-size: 26px;
  color: #ff0f4f;
  margin: 0 0 10px 0;
  letter-spacing: 2px;
}

.spy-team-desc {
  font-family: "Rainy Hearts", Arial, sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0 0 18px 0;
}



.return-text {
  position: fixed;
  bottom: 5%;
  left: 4%;
  background-color: black;
  color: #ff0f4f;
  padding: 5px;
  font-family: "Rainy Hearts", Arial, sans-serif;
  font-size: 20px;
  cursor: pointer;
  text-decoration: none;
  z-index: 999;
  transition: all 0.3s ease;
}

.return-text:hover {
  color: #ff0f4f;
  text-decoration: underline;
}

@media (max-width: 600px) {
 
  body {
    background-attachment: scroll;
    overflow: visible;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 0;
  }

  
  .centered-image {
    position: relative !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 80vw !important;
    max-width: 90vw !important;
    height: auto !important;
    margin: 10px 0 20px 0 !important;
    z-index: 1 !important;
    opacity: 1 !important;
  }


  .links, .links2 {
    position: relative !important;
    top: 0 !important;
    width: 100% !important;
    flex-direction: column !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
  }

 
  .links a, .links2 a {
    margin: 6px 0 !important;
    width: 90% !important;
    font-size: 5vw !important;
  }

 
  .links {
    margin-bottom: 8px !important; 
  }
  .links2 {
    margin-top: 0 !important; 
  }

  .heart, .butterfly {
    position: fixed !important;
    width: 25vh !important;
  }

  .heart {
    right: 10% !important;
    top: 5% !important;
  }

  .butterfly {
    left: 10% !important;
    bottom: 5% !important;
  }

  .animated-cog-container {
    top: 10px !important;
    left: 10px !important;
  }

  .animated-cog {
    max-width: 12vw !important;
  }

  .popup {
    width: 90% !important;
    height: auto !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
  }

  .ctf-container {
    width: 95% !important;
    padding: 15px !important;
  }

  .ctf-title {
    font-size: 24px !important;
  }

  .ctf-grid {
    grid-template-columns: 1fr !important;
  }

  .ctf-card {
    padding: 15px !important;
  }

  .ctf-card-header h2 {
    font-size: 18px !important;
  }
}

   
      @media (max-width: 1024px) {
        .ctf-container {
          width: 80%;
          padding: 25px;
        }

        .ctf-title {
          font-size: 28px;
        }

        .heart {
          width: 30vh;
          right: 10%;
          top: 10%;
        }

        .butterfly {
          width: 30vh;
          left: 5%;
          bottom: 5%;
        }
      }

      @media (max-width: 768px) {
        body {
          min-height: auto;
        }

        .crt {
          display: block;
        }

        .ctf-container {
          width: 95%;
          margin: 20px auto;
          padding: 15px;
          background-color: rgba(0, 0, 0, 0.85);
        }

        .ctf-title {
          font-size: 24px;
          margin-bottom: 25px;
        }

        .ctf-grid {
          grid-template-columns: 1fr;
          gap: 15px;
        }

        .ctf-card {
          padding: 15px;
        }

        .ctf-card-header h2 {
          font-size: 18px;
        }

        .ctf-card-header {
          margin-bottom: 12px;
          padding-bottom: 8px;
        }

        .ctf-score-container {
          min-height: 100px;
        }

        .ctf-score-image {
          max-height: 150px;
        }

        .ctf-description {
          font-size: 12px;
          padding: 10px;
          margin: 12px 0;
        }

        .ctf-tags {
          gap: 5px;
        }

        .tag {
          padding: 3px 8px;
          font-size: 9px;
        }

        .heart {
          width: 20vh;
          right: 5%;
          top: 10%;
        }

        .butterfly {
          width: 20vh;
          left: 3%;
          bottom: 10%;
        }

        .return-text {
          bottom: 10px;
          left: 5px;
          font-size: 16px;
        }
      }

      @media (max-width: 480px) {
        .ctf-container {
          width: 100%;
          margin: 15px 0;
          padding: 12px;
        }

        .ctf-title {
          font-size: 20px;
          margin-bottom: 20px;
        }

        .ctf-grid {
          grid-template-columns: 1fr;
          gap: 12px;
        }

        .ctf-card {
          padding: 12px;
          border: 1px solid rgba(255, 15, 79, 0.3);
        }

        .ctf-card-header {
          margin-bottom: 10px;
          flex-wrap: wrap;
        }

        .ctf-card-header h2 {
          font-size: 16px;
          margin-bottom: 5px;
          width: 100%;
        }

        .ctf-platform {
          font-size: 9px;
          padding: 2px 6px;
        }

        .ctf-score-container {
          min-height: 80px;
          margin: 12px 0;
        }

        .ctf-score-image {
          max-height: 120px;
        }

        .ctf-description {
          font-size: 11px;
          padding: 8px;
          margin: 10px 0;
          line-height: 1.4;
        }

        .ctf-tags {
          gap: 4px;
        }

        .tag {
          padding: 2px 6px;
          font-size: 8px;
        }

        .heart {
          width: 15vh;
          right: 3%;
          top: 5%;
        }

        .butterfly {
          width: 15vh;
          left: 2%;
          bottom: 5%;
        }

        .return-text {
          bottom: 8px;
          left: 3px;
          font-size: 14px;
          padding: 2px;
        }
      }
