@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap");

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

main {
  max-width: 1200px;
  min-width: 300px;
  margin: 20px auto;
  padding: 20px;
  box-sizing: border-box;
}

h1,
h2,
h3 {
  color: rgb(45, 45, 45);
}

h2 {
  margin-bottom: 0;
}
h4 {
  font-style: italic;
  color: rgb(122, 122, 122);
  font-size: smaller;
  margin-top: 10px;
}

.tool {
  background-color: rgb(225, 222, 222);
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 10px;
  box-sizing: border-box;
  width: 100%;
}

.tool h2 {
  margin-bottom: 10px;
}

.tool div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.tool input {
  margin: 0;
}

.tool label {
  margin-right: 8px;
}

.tool > .item {
  margin-bottom: 8px;
}

input {
  font-family: inherit;
  text-align: center;
}

#perf-check {
  margin-top: 10px;
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
  border: none;
  background-color: rgb(17, 98, 184);
  color: #f2f2f2;
  font-weight: 800;
  transition: background-color 0.3s ease;
}

#perf-check:hover {
  background-color: rgb(67, 134, 1);
}

#performance-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

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

#performance-table th {
  background-color: #f2f2f2;
}

.small {
  font-size: 0.8em;
  color: gray;
  font-style: italic;
  margin: 0;
  margin-top: 10px;
}

#all-apps {
  color: inherit; /* blue colors for links too */
  text-decoration: inherit; /* no underline */
  cursor: pointer;
  background-color: #ffa4a4;
  padding: 5px;
  border-radius: 5px;
  font-weight: 500;
}
#all-apps:hover {
  background-color: coral;
}

#result {
  text-align: center;
}

/* Media query for phones and tablets */
@media screen and (max-width: 767px) {
  .tool {
    padding: 10px;
  }

  #perf-check {
    margin-top: 10px;
  }

  #performance-table {
    font-size: 0.8em;
  }
}
