/* styles.css */

html {
  font-size: 16px;
  padding-left: 0px;
}

body {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  padding-bottom: 75px;
  margin: 0px;
}

.container {
  max-width: 800px;
  margin: auto;
  padding: 0 8px;
}

h1 {
  text-align: center;
  font-size: 2rem;
  color: #333;
  background-color: #f0f0f0;
  padding: 10px;
  border-radius: 8px;
}

h2 {
  text-align: center;
  font-size: 1.5rem;
  color: #555;
  border-bottom: 2px solid #F08300;
}


form {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
}

label span {
  font-weight: bold;
}

input[type="number"] {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 1rem;
}

.button-group {
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
}

button {
  flex: 1;
  margin: 0 5px;
  padding: 10px 20px;
  font-size: 1.1rem;
  cursor: pointer;
  background-color: #F08300;
  border: none;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #F0A300;
}

button:active {
  transform: scale(0.98);
}

.button-link {
  display: flex;
  flex: 1;
  margin: 0 5px;
  text-decoration: none;
}

#results {
  text-align: center;
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 5px;
  background-color: #f9f9f9;
  font-size: 1rem;
}

#results div {
  margin-top: 5px;
  text-align: left;
}

table {
  margin-bottom: 15px;
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid #ddd;
  padding: 5px;
  text-align: center;
}

th {
  background-color: #f2f2f2;
  font-weight: bold;
}

td {
  text-align: right;
}

td:first-child {
  text-align: center;
}

.highlight {
  background-color: #F0A300;
}

.center {
  text-align: center;
}

canvas {
  margin-top: 15px;
}

/* Footer styles */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f1f1f1;
}

footer a {
  color: #1A0DAB;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Small screens */
@media screen and (max-width: 600px) {
  html {
    font-size: 13px;
  }

  .button-group {
      flex-direction: column;
  }

  button {
      margin: 5px 0;
  }
}
