body{
  justify-content: center;
}

fieldset{
  display: flex;
  justify-self: center;
  justify-content: center;
}

main{
  display: flex;
  justify-content: center;
}

.page {
  border: 1px solid #00000020;
  border-left: 3px solid coral;
  display: grid;
  width: 420px;
  height: 520px;
  grid-template-columns: repeat(4, 70px); 
  gap: 8px;
  justify-self: center;
  justify-content: center;
  padding: 65px 10px 45px 10px;
  
}

#pages {
  text-align: center;
  justify-content: center;
  justify-self: center;

  
}

#pages .problem{
  display: grid;
  grid-template-columns: 0.5fr 0.9fr;
  width: 50px;
  height: 80px;
  justify-self: center;
}

.problem p{
  text-align: right;
  padding: 0px;
  margin: 5px;
  height: auto;
}

.problem .bott{
  grid-column: 2;
}

.problem input{
  grid-column: 1 / 3;
}

.top{
  grid-column: 2;

}

.hidden{
  display: none;
}

#right-arrow{
  height: 20px;
  align-self: center;
  justify-self: left;
}

div .line{
  border-top: 1px solid;
  grid-column:  1 / 3;
  padding: 0px;
  margin: 0px;
  height: 1px;
}

.reset {
  text-align: center;
}

@media (max-device-width: 480px){
  .page {
    border: 1px solid #00000020;
    border-left: 3px solid coral;
    display: grid;
    width: 80%;
    grid-template-columns: repeat(3, 70px); 
    gap: 8px;
    justify-content: center;
  }
  
  .hidden{
    display: none;
  }
  
  #pages {
    text-align: center;
    justify-content: center;
    justify-self: center;
  }

  #right-arrow{
    height: 80vh;
    align-self: center;
    margin: 10px;
  }
}