     @font-face {
      font-family: 'Press Start 2P';
      src: url('PressStart2P-Regular.ttf') format('truetype');
    }

    body {
      font-family: 'Press Start 2P', cursive;
      background-color: #000;
      color: white;
      margin: 0;
      padding: 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      min-height: 100vh;
    }

    h1 {
      text-align: center;
      font-size: 30px;
      margin-bottom: 30px;
    }

    header {
      text-align: center;
      margin-bottom: 40px;
    }

    header h1 {
      font-size: 5rem;
      color: transparent;
      background-image: linear-gradient(45deg, #b5ff2d, #9eff01, #f5e502);
      background-size: 400% 400%;
      background-clip: text;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
      margin: 0;
      animation: gradientMotion 6s ease infinite;
    }

    @keyframes gradientMotion {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

    header h1 .logo {
      width: 90px;
      height: 90px;
      object-fit: contain;
    }

        nav {
            background: #111;
            border: 2px solid #0f0;
            border-radius: 20px;
            margin: 20px auto 30px;
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 0 12px #0f0;
        }

        nav a {
            font-size: 10px;
            color: #91ff00;
            text-decoration: none;
            margin-right: 20px;
        }

        nav a:hover {
            color: #fff;
        }

        nav input[type="text"] {
            background: #000;
            border: 2px solid #91ff00;
            color: #91ff00;
            font-family: 'PressStart2P';
            font-size: 10px;
            padding: 8px;
            border-radius: 12px;
            width: 220px;
        }

  

    .container {
      background: #111;
      padding: 30px;
      border-radius: 10px;
      width: 100%;
      max-width: 600px;
      text-align: center;
      box-shadow: 0 0 10px #0f0;
    }

    .input-wrapper {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-bottom: 20px;
    }

    .input-field {
      padding: 10px;
      font-size: 16px;
      border-radius: 5px;
      border: 1px solid #666;
      background: #222;
      color: white;
    }

    .button {
      padding: 12px 20px;
      font-size: 16px;
      font-weight: bold;
      background: #4eff66;
      color: #000;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .button:hover {
      background: #38c956;
    }

    #generated-image {
      margin-top: 20px;
      max-width: 70%;
      display: none;
      border: 2px solid #0f0;
      border-radius: 10px;
    }

    .gallery-title {
      margin-top: 40px;
      font-size: 20px;
      color: #FFD700;
    }

    .gallery {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 15px;
      margin-top: 20px;
      width: 100%;
      max-width: 700px;
      padding: 20px;
      border: 2px solid #0f0;
      border-radius: 10px;
      background-color: #111;
    }

    .gallery a {
      display: block;
    }

    .gallery img {
      width: 100%;
      border: 2px solid #0f0;
      border-radius: 10px;
      transition: transform 0.2s ease;
    }

    .gallery img:hover {
      transform: scale(1.05);
    }

    #loading {
      margin-top: 15px;
      font-size: 16px;
      color: #4eff66;
      display: none;
    }

    .popup {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.85);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }

    .popup-content {
      background: #111;
      padding: 20px;
      border-radius: 15px;
      border: 2px solid #0f0;
      text-align: center;
      max-width: 90%;
      max-height: 90%;
      overflow: auto;
      box-shadow: 0 0 15px #0f0;
      position: relative;
    }

    .popup-content img {
      max-width: 100%;
      max-height: 60vh;
      border-radius: 10px;
      border: 2px solid #4eff66;
    }

    .close-btn {
      position: absolute;
      top: 10px;
      right: 10px;
      background: #ff3333;
      border: none;
      color: white;
      font-size: 16px;
      padding: 5px 10px;
      border-radius: 6px;
      cursor: pointer;
    }

   
 

    @media (max-width: 480px) {
      h1 { font-size: 18px; }
      .input-field { font-size: 14px; }
      .button { font-size: 14px; padding: 10px 16px; }
      .gallery { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
    }
    
    footer {
    text-align: center;
    font-size: 12px;
    color: white;
    padding: 10px;
    background-color: #11111100;
    width: 100%;
    margin-top: auto;
}

.button {
  font-family: 'Press Start 2P', cursive;
}






#image-container {
  position: relative;
  width: 100%;
  max-width: 720px;
  height: 480px;
  background: #435c63;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
    margin-bottom: 40px;

  
}

#image-container img#image {
  width: auto;
  max-width: 100%;
  max-height: calc(100% - 60px); 
  object-fit: contain;
  transition: opacity 0.3s ease;
  margin: auto 0;
  flex-shrink: 0;
}

#image-container p {
  height: 60px;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.frame-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  border-radius: 24px;
}
#image-container p {
  height: 60px;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.frame-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  border-radius: 24px;
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup.active {
  display: flex;
}

.popup-content {
  background: #111;
  padding: 16px;
  border-radius: 12px;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.popup-content img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  object-fit: contain;
}


.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff3b3b;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  z-index: 10;
  transition: background 0.3s ease;
}

.close-btn:hover {
  background: #ff0000;
}


  

footer {
  text-align: center;
  font-size: 12px;
  color: #fff;
  padding: 10px;
  margin-top: auto;
}



.auth-modal-content {
  width: 95vw;
  max-width: 780px;
  height: 580px;
  max-height: 90vh;
  padding: 20px;
  background: #111;
  border: 2px solid #0f0;
  border-radius: 20px;
  box-shadow: 0 0 20px #0f0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}



.top-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.top-buttons button {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  padding: 8px 14px;
  background: #91ff00;
  color: #000;
  border: 2px solid #0f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.top-buttons button:hover {
  background: #000;
  color: #91ff00;
  box-shadow: 0 0 10px #0f0;
}

