body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 90%;
  color: #575757;
}

.header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
}

.header h1 {
  margin: 0;
}

.fountain-img {
  display: block;
  width: 120px;
  flex-shrink: 0;
}

.content {
  display: flex;
  gap: 24px;
  padding: 0 20px 20px;
}

.address {
  font-family: "Courier New", Courier, monospace;
  font-size: 110%;
  color: #333;
}

.main a {
  color: #6D96B8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 60px;
  color: silver;
}

h2 {
  font-size: 150%;
}

hr {
  border: 0;
  border-top: dotted 1px #6D96B8;
  border-bottom: transparent;
}

ul, li {
  list-style-image: url(ul.jpg);
}

input {
  border-bottom: 1px solid silver;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  background-color: white;
}

input[type="submit"] {
  border: 1px solid silver;
  background-color: white;
  cursor: pointer;
  padding: 4px 12px;
}

input[type="submit"]:hover {
  background-color: #f0f0f0;
}

input[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input[type="text"] {
  padding: 3px;
  font-size: 100%;
  width: 280px;
  max-width: 100%;
  box-sizing: border-box;
}

.leftNav {
  flex-shrink: 0;
  width: 160px;
  text-align: left;
}

.leftNav li {
  list-style-type: none;
  list-style-image: none;
  margin: 0;
  padding: 0;
  line-height: 1.9em;
}

.leftNav ul {
  margin: 0;
  padding: 0;
}

.leftNav li a {
  color: silver;
  font-size: 130%;
  text-decoration: none;
  padding: 0;
  font-weight: bold;
}

.leftNav li a:hover {
  text-decoration: none;
  color: #6D96B8;
}

.main {
  flex: 1;
  min-width: 0;
}

.footer {
  text-align: right;
  margin: 20px;
  font-size: 80%;
  color: gray;
}

.footer a {
  color: silver;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

blockquote {
  float: right;
  margin: 15px 0 15px 15px;
  width: 170px;
  font-size: 120%;
  color: gray;
  text-align: right;
  line-height: 1em;
}

blockquote:first-letter {
  font-size: 190%;
}

#captcha-container {
  margin: 10px 0;
}

#result {
  margin: 10px 0;
  padding: 10px;
  display: none;
}

#result.success {
  display: block;
  background-color: #e8f5e9;
  border: 1px solid #4caf50;
  color: #2e7d32;
}

#result.error {
  display: block;
  background-color: #ffebee;
  border: 1px solid #f44336;
  color: #c62828;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .header {
    gap: 12px;
    padding: 12px 16px;
  }

  .fountain-img {
    width: 80px;
  }

  h1 {
    font-size: 36px;
  }

  .content {
    flex-direction: column;
    gap: 16px;
    padding: 0 16px 16px;
  }

  .leftNav {
    width: 100%;
  }

  .leftNav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
  }

  .leftNav li {
    line-height: 1.6em;
  }

  input[type="text"] {
    width: 100%;
  }

  .footer {
    text-align: center;
    margin: 16px;
  }
}
