@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,500;1,600;1,700;1,800;1,900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Fredoka", sans-serif;
  background: linear-gradient(135deg, #68ace1 0%, #ffff 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.logo {
  margin: -14px auto;
  width: 166px;
}

.logo img {
  width: 100%;
}

.title {
  font-size: 42px;
  font-weight: bold;
  color: white;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
}

.subtitle {
  font-size: 24px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 30px;
}

.input-section {
  margin-bottom: 30px;
}

.username-input {
  display: block;
  margin: 10px auto;
  padding: 10px;
  width: 80%;
  max-width: 300px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 16px;
  outline: none;
}

.username-input:focus {
  border-color: #4c98af;
  box-shadow: 0 0 10px rgba(76, 134, 175, 0.3);
}

.error-message {
  color: #ff0000;
  font-size: 14px;
  font-weight: bold;
  margin-top: 5px;
  min-height: 20px;
}

.generate-btn {
  display: block;
  margin: 5px auto 30px;
  padding: 5px 10px;
  border: 2px solid #117fb6;
  border-radius: 8px;
  background: linear-gradient(to bottom, #6399e0, #117fb6);
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
  border-bottom: 6px solid #117fb6;
  font-family: "Fredoka", sans-serif;
  transition: border-bottom-width 0.3s, border-bottom-color 0.3s;
}

.generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.generate-btn:active {
  transform: translateY(0);
}
.fix-stroke {
  paint-order: stroke fill;
}
.selection-text {
  color: white;
  text-align: center;
  -webkit-text-stroke: 3px black;
  font-size: 18px;
  margin: 20px 0 10px 0;
  font-weight: bold;
}

.selection-error {
  color: #ff0000;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
}

.gamepasses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.gamepass-item {
  background: white;
  border-radius: 15px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 3px solid transparent;
}

.gamepass-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gamepass-item.selected {
  border-color: #117fb6;
  background: #f0f8f0;
}

.gamepass-item.selected::after {
  content: "✓";
  position: absolute;
  top: -10px;
  right: -10px;
  background: #117fb6;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
}

.gamepass-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  font-weight: bold;
}

.gamepass-name {
  font-size: 14px;
  font-weight: bold;
  margin-top: 19px;
  color: #333;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 30px;
  border-radius: 8px;
  width: 400px;
  text-align: center;
  position: relative;
  animation: slideIn 0.5s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal h2 {
  color: #333;
  margin-bottom: 20px;
  font-size: 24px;
}

.modal p {
  color: #666;
  margin-bottom: 30px;
  font-size: 16px;
}

.verify-btn {
  display: block;
  margin: 20px auto 20px;
  padding: 5px 10px;
  border: 2px solid #117fb6;
  border-radius: 8px;
  background: linear-gradient(to bottom, #6399e0, #117fb6);
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
  border-bottom: 6px solid #117fb6;
  font-family: "Fredoka", sans-serif;
  transition: border-bottom-width 0.3s, border-bottom-color 0.3s;
}

.verify-btn:hover {
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Specific gamepass colors */
/* .pixel-angelus {
  background: linear-gradient(45deg, #87ceeb, #4169e1);
} */
/* .vip { */
/* background: linear-gradient(45deg, #ffd700, #ffa500);
}
.huge-hunter {
  background: linear-gradient(45deg, #00ced1, #1e90ff);
}
.lucky {
  background: linear-gradient(45deg, #32cd32, #228b22);
}
.ultra-lucky {
  background: linear-gradient(45deg, #9370db, #4b0082);
}
.eggs-15 {
  background: linear-gradient(45deg, #deb887, #cd853f);
}
.pets-15 {
  background: linear-gradient(45deg, #dc143c, #b22222);
}
.magic-eggs {
  background: linear-gradient(45deg, #ff69b4, #ff1493);
}
.super-drops {
  background: linear-gradient(45deg, #ff4500, #ff6347);
}
.shiny-hunter {
  background: linear-gradient(45deg, #c0c0c0, #708090);
}
.double-stars {
  background: linear-gradient(45deg, #ffd700, #daa520);
}
.egg-hatch {
  background: linear-gradient(45deg, #9370db, #8a2be2);
} */

.loading-content {
  padding: 40px 30px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #117fb6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-content h2 {
  color: #333;
  margin-bottom: 0;
  font-size: 20px;
}

@media (max-width: 470px) {
  .logo {
    margin: 0px auto;
    width: 166px;
  }

  .modal-content {
    width: 90%;
  }
}
