/* Reset some defaults */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
    font-size: 1em;
}

/* Base styles */
body {
  font-family: "Noto Sans", "Source Han Sans", Arial, sans-serif;
  line-height: 1.6;
  padding: 20px;
  background-color: #f9f9f9;
  color: #333;
}

/* Default link style */
a {
  color: #0077cc;
  text-decoration: none;   /* removes underline */
  font-weight: 500;        /* slightly bolder for readability */
  text-decoration: underline;
}

/* Hover state */
a:hover {
  color: #005fa3;          /* darker shade on hover */
  text-decoration: none;
}

/* Focus state (keyboard navigation) */
a:focus {
  outline: 2px solid #0077cc;
  outline-offset: 2px;
}

/* Headings */
h1, h2, h3 {
  margin-bottom: 10px;
}

/* Paragraphs */
p {
  margin-bottom: 15px;
}

/* Container */
.container {
  max-width: 800px;
  margin: 0 auto;
}

/* Navigation */
nav {
  background: #333;
  padding: 10px;
}
nav a {
  color: #fff;
  text-decoration: none;
  margin-right: 15px;
}
nav a:hover {
  text-decoration: underline;
}

/* Buttons */
button {
  background: #333;
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
}
button:hover {
  background: #555;
}

/* Responsive tweaks */
img {
  max-width: 100%;
  height: auto;
}

/* General form container */
form {
  max-width: 480px;       /* keeps form narrow and readable */
  padding: 1.5rem;
  background: #fafafa;    /* subtle background */
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

/* Labels */
label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: #333;
}

/* Inputs, selects, textareas */
.text-input,
select,
textarea, input[type="number"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

/* Focus state */
.text-input:focus,
select:focus,
textarea:focus {
  border-color: #0077cc;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,119,204,0.2);
}

/* Buttons */
button,
.btn-auto {
  display: inline-block;
  width: 100%;
  padding: 0.75rem;
  background: #0077cc;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover,
.btn-auto:hover {
  background: #005fa3;
}

/* Error messages */
ul {
  margin: 0 0 1rem 0;
  padding-left: 1.25rem;
}



@media (max-width: 600px) {
  body {
    padding: 10px;
  }
  nav {
    text-align: center;
  }
  nav a {
    display: block;
    margin: 5px 0;
  }
}

