.card {
  margin: 1em;
  width: 40em;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ads-mobile {
  display: none;
}

.ads-desktop {
  display: inline-block;
}

.content {
  margin: 0 auto;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.contentResult {
  margin: 0 auto;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

h1 {
  max-width: 940px;
  margin: 30px auto;
  text-align: center;
  color: var(--primary);
  font-size: 1.5em;
  font-weight: 700;
}

.content p {
  max-width: 940px;
  color: var(--dark);
  font-size: 0.875em;
  font-weight: 400;
}
div{
  margin-bottom: 1rem;
}

label{
  color: var(--dark);
  font-size: 1.125em;
  font-weight: 400;
  margin-right: 1rem;
}

.input {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

input{
  height: 2.5em;
  width: 5em;
  color: var(--dark);
  padding: 0 1em;
  border: 1px solid var(--primary);
  background-color: white;
}

#results {
  border-collapse: collapse;
}

#results th{
  padding: 0 1em;
  color: white;
  text-align: center;
  height: 2.5em;
  font-weight: 400;
  font-size: 1.125em;
  background-color: var(--primary);
}

#results tr {
  border-bottom: 1px solid #DFDFDF;
}

#results td{
  font-weight: 400;
  font-size: 0.875em;
  color: #3F3F3F;
  text-align: center;
  vertical-align: middle;
  padding: 1em 1em;
}

#results tr:nth-child(odd) {
  background-color: var(--blue);
}

#tableResults tr{
  margin-top: 2em;
  margin-left: 0;
  font-weight: 700;
  font-size: 1.125em;
  color: #3F3F3F;
}

.button {
  cursor: pointer;
  border: none;
  color: white;
  font-size: 0.875;
  font-weight: 700;
  width: 10.5em;
  height: 3em;
  box-sizing: border-box;
  box-shadow: 0px 12px 22px gba(0, 0, 0, 0.24);
  border-radius: 4px;
  transition: all 200ms;
  background-color: var(--primary);
  margin-bottom: 1rem;
}

button:hover {
  filter: opacity(0.8); 
}

@media (max-width: 1000px)
{
  .content p.text {
    margin: 1rem 20px;
  }

  table {
    font-size: 90%;
  }

}

@media (max-width: 700px)
{
  table {
    font-size: 70%;
  }

  .card {
   margin: 1em auto;
    width: 90%;
  }
  
}

@media (max-width: 720px)
{
  .ads-desktop {
    display: none;
  }

  .ads-mobile {
    display: inline-block;
  }
}

@media (max-width: 300px)
{
  table {
    font-size: 60%;
  }
}