* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #ffffff;
  overflow-x: hidden;
}

/* Navigation Menu */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: rgba(255, 255, 255, 0.0);
  z-index: 1000;
}

.nav-left {
  display: flex;
  align-items: center;
}

.nav-icon {
  width: 40px;
  height: 40px;
  fill: white;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.nav-icon:hover {
  transform: scale(1.1);
}

.nav-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-button {
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.9em;
  font-weight: 700;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
}

.nav-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  color: white;
}

.background-graph {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 20px;
  text-align: center;
  background-image: url('../img/banner.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.logo {
  max-width: 150px;
  margin-bottom: 20px;
  width: 50vw;
}

a {
  text-decoration: none;
  color: #000000;
}

a:hover {
  color: #272727;
}

h1 {
  color: #000000;
  font-size: 2.5em;
  margin: 0;
}

p, p2 {
  font-size: 1.2em;
  color: #333;
  margin: 10px 0;
}

.subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 5px 0;
}

.buttons {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.buttons a button {
  padding: 10px 20px;
  font-size: 1em;
  border: none;
  border-radius: 5px;
  background-color: #000000;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

.buttons a button:hover {
  background-color: #272727;
}

.text-box {
  background-color: rgba(255, 255, 255, 0.0);
  padding: 25px 25px;
  border: 0px solid #000000;
  border-radius: 28px;
  width: 100%;
  font-size: 1em;
  color: #222;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.text-box.main-content {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 40px;
  font-family: Arial, sans-serif;
  text-align: center;
}

.text-box.main-content h1 {
  font-size: 2.0em;
  font-weight: 900;
  color: #000000;
  line-height: 1.0;
  max-width: 450px;
}

.text-box.main-content h2 {
  font-size: 1.5em;
  font-weight: 500;
  color: #000000;
  margin: 0 0 20px 0;
  line-height: 1.1;
  max-width: 450px;
}

.text-box.main-content p {
  font-size: 0.9em;
  color: #000000;
  line-height: 1.6;
  margin-bottom: 30px;
}

.ca-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 0 10px;
}

.ca-text {
  margin-bottom: 8px;
  word-break: break-all;
}

.ca-buttons {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.copy-button {
  background-color: rgba(0, 0, 0, 1.0);
  border-radius: 28px;
  padding: 20px 40px;
  font-size: 0.85em;
  border: none;
  color: white;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.copy-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateY(-2px);
}

.buy-button {
  padding: 8px 12px;
  font-size: 0.85em;
  border: none;
  background-color: #000000;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.buy-button:hover {
  background-color: #272727;
}

.tweet-feed {
  width: 100%;
  margin: 40px auto 0;
  padding: 0 10px;
}

.secondary-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px 0px;
  padding: 20px;
  text-align: center;
}

footer {
  position: relative;
  left: 0;
  right: 0;
  padding: 40px 15px;
  text-align: center;
  font-size: 0.7em;
  color: #666;
  background-color: rgba(255, 255, 255, 0.9);
}

.disclaimer {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.3;
}

.copyright {
  margin-top: 10px;
  color: #999;
}

@media (max-width: 600px) {
  h1 {
    font-size: 2em;
  }

  .logo {
    max-width: 120px;
  }

  .text-box {
    font-size: 0.95em;
    padding: 12px 20px;
  }

  .text-box.main-content {
    padding: 25px 20px;
  }

  .text-box.main-content h1 {
    font-size: 2em;
  }

  .text-box.main-content p {
    font-size: 1em;
  }

  .ca-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .copy-button {
    padding: 15px 25px;
    font-size: 0.8em;
  }

  .container {
    height: 100vh;
    height: 100dvh; /* Use dynamic viewport height on mobile for better support */
  }

  .secondary-container {
    min-height: 100vh;
    min-height: 100dvh; /* Use dynamic viewport height on mobile */
    padding: 15px;
  }

  /* Mobile Navigation */
  .navbar {
    padding: 10px 15px;
  }

  .nav-icon {
    width: 32px;
    height: 32px;
  }

  .nav-right {
    gap: 10px;
  }

  .nav-button {
    font-size: 0.8em;
  }
}

.underline {
  text-decoration: underline;
}

/* Robowaii Logo Styling */
.container .text-box {
  width: 100%;
  max-width: 70vw;
  margin: 420px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container .text-box img {
  width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

/* Characters Section */
.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.character-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 12px;
  padding: 20px;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333;
}

.character-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.character-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 2px solid #4CAF50;
}

.character-name {
  font-size: 1.4em;
  margin: 0 0 8px 0;
  color: #4CAF50;
  font-weight: bold;
}

.character-type {
  font-size: 0.9em;
  color: #aaa;
  margin: 0 0 15px 0;
  font-style: italic;
}

.character-trait,
.character-ability {
  font-size: 0.9em;
  margin: 8px 0;
  line-height: 1.4;
}

.character-trait strong,
.character-ability strong {
  color: #4CAF50;
}

.character-description {
  font-size: 0.85em;
  line-height: 1.6;
  color: #ccc;
  margin: 15px 0;
}

.character-date {
  font-size: 0.75em;
  color: #666;
  display: block;
  margin-top: 15px;
  text-align: right;
}

@media (max-width: 768px) {
  .characters-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .character-card {
    padding: 15px;
  }
}

/* Footer */
footer {
  background-color: #000000;
  color: white;
  text-align: center;
  padding: 40px 20px 20px;
  border-top: 1px solid #333;
}

.disclaimer {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 20px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.copyright {
  font-size: 14px;
  color: #fff;
}