/* ====== Global Reset ====== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* ====== Body and Layout ====== */
body {
  background-color: #121212;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  width: 100%;
  padding: 1rem;
}

/* ====== Containers ====== */
.container {
  width: 100%;
  /*max-width: 480px;*/
  display: flex;
  flex-direction: column;
  align-items: stretch; /* ensures all children fill width */
  gap: 1rem;
}

/* ====== Headings & Text ====== */
h1, h2, h3, h4 {
  color: #ffffff;
  text-align: center;
  font-weight: 600;
}

p {
  color: #bdbdbd;
  text-align: center;
  line-height: 1.5;
}

/* ====== Text Inputs & Textareas ====== */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #333;
  border-radius: 8px;
  background-color: #1e1e1e;
  color: #fff;
  font-size: 1rem;
  outline: none;
}

/* ====== Number Input (bigger & with arrows visible) ====== */
input[type="number"] {
  width: 100%;
  padding: 1rem;
  border: 1px solid #333;
  border-radius: 10px;
  background-color: #1e1e1e;
  color: #fff;
  font-size: 5rem;
  outline: none;
  text-align: center;
  -moz-appearance: textfield; /* remove weird Firefox styling */
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 1; /* make arrows visible */
  height: 2em;
  width: 2em;
}

/* ====== Focus ====== */
input:focus,
textarea:focus {
  border-color: #03dac6;
  box-shadow: 0 0 0 2px rgba(3, 218, 198, 0.3);
}

/* ====== Submit / Button Inputs ====== */
input[type="submit"],
input[type="button"],
input[type="reset"] {
  width: 100%;
  display: block;
  margin: 0 auto;
  padding: 1rem;
  border: none;
  border-radius: 10px;
  background-color: #03dac6;
  color: #000;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}

input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
  background-color: #00bfa5;
}

input[type="submit"]:active,
input[type="button"]:active,
input[type="reset"]:active {
  background-color: #009688;
}

/* ====== Table ====== */
table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background-color: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  /*width: 25%;*/
  word-wrap: break-word;
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #333;
}

th {
  background-color: #2c2c2c;
  color: #03dac6;
}

tr:last-child td {
  border-bottom: none;
}

/* ====== Utility ====== */
.full-width {
  width: 100%;
}

.center {
  text-align: center;
}

/* ====== Mobile Portrait Optimization ====== */
@media screen and (orientation: portrait) {
  body {
    padding: 1rem;
  }

  .container {
    max-width: 100%;
  }
}
