/* Pasek progresu */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  flex-flow: column nowrap;
  line-height: 1.2rem;
}

main{
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: auto;
}

form {
  width: minmax(100px, 40vw);
  border: 1px black solid;
  padding: 3rem;
  border-radius: 0.5rem;
  box-shadow: 10px 10px 0px black;
}

label {
  text-align: end;
}

fieldset{
  all: unset;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
}

legend {
  text-align: center;
  width: 100%;
  font-size: 1.5rem;
  grid-column: 1 / span 2;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 2rem;
}

#przycisk {
  grid-column: 1 / span 2;
  height: 2rem;
  margin-top: 2rem;
  transition: 0.2s ease;
  background-color: #00b4d8;
  border: darkblue 1px solid;
  box-shadow: 0px 4px 0 black;
}

#przycisk:hover {
  box-shadow: 0px -2px 0 black;
  transform: translateY(4px);
}

input {
  border: 1px grey solid;
  border-radius: 2px;
  padding: 0.1rem;
}

input:focus {
  background-color: #00b4d820;
  outline: darkblue solid 2px;
  outline-offset: -1px;
}

input:focus:invalid {
  background-color: #ff000020;
  outline: red solid 2px;
}

#bar {
  width: 100%;
  background-color: transparent;
  font-size: small;
  min-height: 1.2rem;
  /* color: lightblue; */
  display: flex;
  flex-flow: row nowrap;
  background-color: lightblue;
  border-bottom: 1px black solid;
}

#bar_czesc {
  width: 0;
  background-color: #00b4d8;
  padding-inline: 0.5rem;
  overflow: hidden;
  text-align: end;
  transition: 1s ease;
}


