body {
  background: #5297C8;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 440px;
  margin: 3em auto 2em auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 2.5em 2em 2em 2em;
  text-align: center;
}

h1 {
  margin-bottom: 1.2em;
  font-size: 2em;
  font-weight: 700;
}

label {
  display: block;
  margin-bottom: 0.7em;
  font-size: 1.1em;
}

.input-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  margin-bottom: 0.5em;
}

.rice-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  background: #fff;
}

input[type="number"] {
  width: 120px;
  padding: 0.5em;
  font-size: 1.1em;
  border-radius: 6px;
  border: 1px solid #ccc;
  text-align: center;
}

.warning {
  color: #d32f2f;
  background: #ffeaea;
  border: 1px solid #d32f2f;
  border-radius: 6px;
  padding: 0.5em 1em;
  margin: 0.5em 0 1em 0;
  font-size: 1em;
  display: block;
}

.hidden {
  display: none;
}

button {
  padding: 0.6em 1.2em;
  font-size: 1.05em;
  border-radius: 6px;
  border: none;
  background: #5297C8;
  color: #fff;
  cursor: pointer;
  margin-bottom: 1em;
  transition: background 0.2s;
}

button:hover {
  background: #3873a5;
}

.results {
  margin: 2em auto 0 auto;
  max-width: 400px;
  padding: 1.5em 2em;
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  text-align: center;
}

.results-list {
  display: flex;
  justify-content: space-around;
  gap: 1em;
  margin: 0;
  padding: 0;
}

.result-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 110px;
}

.result-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.5em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.result-label {
  font-size: 1.07em;
  font-weight: 600;
  margin-bottom: 0.2em;
  color: #222;
}

.result-value {
  font-size: 1.25em;
  color: #3873a5;
  font-weight: 700;
}

.explanation {
  margin-top: 2em;
  font-size: 1em;
  color: #333;
  text-align: left;
}

.reference {
  margin-top: 1em;
  font-size: 1em;
  text-align: center;
}

.site-footer {
  border-top: 1px solid #eee;
  padding-top: 1em;
  margin-top: 2em;
  color: #666;
  font-size: 0.95em;
  background: none;
  text-align: center;
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
}

.lang-switch {
  text-align: right;
  margin-bottom: 1em;
}

.lang-switch button {
  background: #eee;
  color: #333;
  border: none;
  margin-left: 0.5em;
  padding: 0.3em 0.8em;
  border-radius: 4px;
  font-size: 0.95em;
  cursor: pointer;
}

.lang-switch button.active {
  background: #5297C8;
  color: #fff;
}

.reference a:hover .fa-instagram {
  color: #000;
}
