/* Dark mode background and text */
body {
  margin: 0;
  background-color: #121212; /* dark background */
  color: #eee; /* light text */
  font-family: Arial, sans-serif;
}

/* Header container as horizontal row */
.header {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background-color: #1f1f1f; /* slightly lighter dark for header */
  gap: 20px;
  border-bottom: 1px solid #333;
}

/* Logo image in header */
.header img {
  height: 45px;
  width: auto;
}

/* Main title in header */
.header h1 {
  margin: 0;
  font-size: 20px;
  white-space: nowrap;
  color: #e4e4e4;
  transition: color 0.5s;
}

.header h1:hover {
  color: #fff;
}

/* Navigation links */
.header h2 {
  margin: 0;
  font-weight: normal;
  font-size: 15px;
  cursor: pointer;
  color: #bbb;
  transition: color 0.5s;
}

.header a {
  text-decoration: none;
}

.header a:link {
  text-decoration: none;
}

.header a:visited {
  text-decoration: none;
}

.header a:hover {
  text-decoration: none;
}

.header a:active {
  text-decoration: none;
}

.header h2:hover {
  color: #fff;
}

/* Main content container */
.main {
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.right {
  margin-right: 150px;
}

/* Big heading */
#big {
  font-size: 59px;
  margin-top: 120px;
  margin-bottom: 20px;
  margin-left: 30px;
  line-height: 1.1;
}

.main #index button {
    width: 25%;
    padding: 10px;
    margin-top: 100px;
    margin-left: 90px;
    background-color: #0035b1;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 27px;
    cursor: pointer;
    transition: 0.5s;
}

.main #index button:hover {
    background-color: #002476;
}

/* Image with 2:5 aspect ratio and spacing */
.main #index-img img {
  width: 15%; /* adjust width as needed */
  aspect-ratio: 2 / 5;
  object-fit: contain;
  margin: 0 auto;
  display: flex;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.7);
}

.main table {
  width: 75%;
  border-collapse: collapse;
  margin-top: 20px;
  color: #fff;
  object-fit: contain;
  box-shadow: 0 0 10px rgba(0,0,0,0.7);
}

.main table th,
.main table td {
  border: 1px solid #666;
  padding: 8px 6px;
  text-align: center;
}

.main table th {
  background-color: #222;
}

.main #download {
  width: 60%;
  padding: 10px;
  background-color: #005113;
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 16px;
  text-align: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.5s;
}

.main #download:hover {
  background-color: #128c2c;
}

.container {
  background-color: #2c2f33;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: 30px;
  max-width: 500px;
  width: 100%;
  justify-content: center;
  margin: 80px auto; /* vertical spacing and horizontal centering */
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#webhook-head {
  text-align: center;
  margin-bottom: 20px;
  color: #7289da;
}

textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 100px;
  border: none;
  border-radius: 8px;
  padding: 15px;
  font-size: 1rem;
  resize: vertical;
  margin-bottom: 20px;
  background-color: #23272a;
  color: #ffffff;
}

#webhook-button {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background-color: #7289da;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#webhook-button:hover {
  background-color: #5b6eae;
}

.status {
  margin-top: 15px;
  text-align: center;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .header {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    justify-content: flex-start;
  }

  .header img {
    height: 35px;
  }

  .header h1 {
    display: none;
  }

  .header h1,
  .header h2 {
    font-size: 16px;
  }

  .main {
    flex-direction: column;
    padding: 20px 10px;
  }

  #big {
    font-size: 16px;
    margin: 40px 0 10px 0;
    text-align: center;
  }

  .main #index button {
    width: 90%;
    margin: 30px auto 0;
    font-size: 20px;
  }

  .main #index-img img {
    width: 60%;
  }

  .main table {
    width: 100%;
    font-size: 14px;
  }

  .container {
    margin: 20px auto;
    padding: 20px;
  }

  textarea {
    font-size: 0.9rem;
    height: 120px;
  }

  #webhook-button {
    font-size: 0.9rem;
    padding: 12px;
  }
}
