.progress-bar {
  width: 0%;
  transition: all 5s;
  font-weight: 600;
  color: black;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.2;
}

button:disabled:hover {
  cursor: not-allowed;
  filter: opacity(1); 
}

h1 {
  color: var(--primary);
  font-size: 1.5em;
  font-weight: 700;
}

.progress {
  margin: 40px 100px;
}

.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;

}

.button_green {
  background-color: var(--primary);
}

.button_red {
  background-color: var(--red);
}

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

.inputs {
  margin: 0 auto;
  margin-top: 30px;
  max-width: 960px;
  padding: 5px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 3.5em;
}

p {
  color: var(--dark);
  font-size: 0.875em;
  font-weight: 400;
  margin: 0 20px;
}

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

input#days,
input#percentage,
select {
  height: 2.5em;
  width: 5.3em;
  padding: 0 1em;
  border: 1px solid var(--primary);
  background-color: white;
  
}

.input-group {
  max-width: 600px;
  display: flex;
  justify-content: space-between;
}

.group-time,
.group-days {
  max-width: 180px;
}

.group-percentage {
  max-width: 230px;
}

.group-market {
  max-width: 350px;
  display: flex;
  align-items: baseline;
}

.market {
  margin-right: 0.5em;
}

.inputs label.endMarket {
  margin-right: 0;
}

.buttons {
  gap: 5em;
  margin: 0 18em;
  margin-bottom: 5em;
}

#result {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#text_export {
  width: 100%;
  height: 300px;
}

.export {
  margin: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
}



@media (max-width: 960px)
{
  form {
    margin: 20px 10px;
  }

  .buttons {
    margin: 0 4em;
  }
}

@media (max-width: 640px)
{
  body {
    font-size: 80%;
  }
}

@media (max-width: 550px)
{
  div.inputs{
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
  }

  div.inputs div{
    padding-bottom: 20px;
  }
}

@media (max-width: 385px)
{
  .buttons {
    display: flex;
    flex-direction: column;
    gap: 1em;
  }
}

@media (max-width: 385px)
{
  .inputs {
    gap: 1em;
  }

  .input-group {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1em;
  }

  .group-days,
  .group-percentage,
  .group-time,
  .group-market{
    margin: 0;
  }
}