* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: black;
  color: #333;
  line-height: 1.6;
  padding-bottom: 50px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #007bff;
  padding: 20px 40px;
  flex-wrap: wrap;
  color: white;
}

.topbar header {
  font-size: 1.8em;
  font-weight: bold;
  color: white;
}

.topbar .topdiv {
  display: flex;
  gap: 10px;
}

.topmenu {
  background: white;
  color: #007bff;
  border: none;
  padding: 8px 16px;
  font-size: 1em;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

section.b {
  background: white;
  margin: 40px auto;
  padding: 30px;
  max-width: 900px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

fieldset {
  border: 2px solid #007bff;
  border-radius: 10px;
  padding: 20px;
  min-width: 250px;
  max-width: 100%;
}

legend {
  font-weight: bold;
  color: #007bff;
  padding: 0 10px;
}

input[type="number"] {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
}

button {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 16px;
  margin: 10px 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s ease;
}

button:hover {
  background: #218838;
}

figure {
  float: left;
  justify-self: auto;
  width: 200px;
}

figcaption {
  margin-top: 10px;
  font-style: italic;
  font-size: 0.8em;
}

aside {
  margin-top: 15px;
  background-color: #e9ecef;
  padding: 15px;
  border-left: 5px solid #007bff;
  font-size: 0.9em;
  border-radius: 5px;
}

#go-home {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #007bff;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

#go-home img {
  width: 30px;
  height: 30px;
}

#go-home:hover {
  background: #0056b3;
}

footer {
  margin-top: 50px;
  text-align: center;
  background: white;
  color: black;
  padding: 20px;
  font-size: 1em;
}

@media (max-width: 768px) {
  section.b {
    flex-direction: column;
    padding: 20px;
  }

  .topdiv {
    flex-direction: column;
    gap: 10px;
  }
}
