*{
    font-family: Arial, Helvetica, sans-serif;
    font-size: xx-large;
}

body{
    background-color: #0b3480;
}

.calc{
    display: grid;
    justify-self: center;
    justify-items: center;
    grid-template-rows:1fr 1fr ;
    border: solid 1px;
    padding-bottom: 18px;
    width: 270px;
    height: 440px;
    margin-top:14vh ;
    background-color: #18366e;
    border-radius: 6px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.box-visor {
  position: relative;
  display: flex;
  flex-direction: column; /* organiza em cima/baixo */
  justify-content: end;
  align-items: flex-end;
    border-radius: 4px;
  border: 1px solid;
  width: 210px;
  height: 120px;
  margin: 20px;
  background-color: white;
  padding: 5px;
}

.visor{
    align-self: start;
    display: flex;
     max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-align: right;
  white-space: nowrap;
  overflow-x: auto; /* scroll horizontal */
}

.numpad{
  display: grid;
  grid-template-columns: repeat(3, 45px); /* tamanho fixo */
  gap: 10px;
  justify-content: center; /* centraliza grid */
}

.pads{
     display: grid;
  grid-template-columns: auto auto; /* melhor que 1fr 1fr */
  gap: 16px;
  justify-content: center;
}



.aritmeticos{
   display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
 
}

.btn{
   background-color: aliceblue;
  border-radius: 6px;
  cursor: pointer;

  width: 45px;
  height: 45px;
  display: flex;              /* ESSENCIAL */
  justify-content: center;    /* horizontal */
  align-items: center;        /* vertical */
}
.zero {
  grid-column: span 2;
  width: 100%; /* deixa o grid controlar */
}

.btn:hover {
  background-color: #dbeafe;
}

.btn:active {
  transform: scale(0.95);
}

.result {
  width: 100%;
  text-align: right;

  font-size: 14px;
  color: #555;

  white-space: nowrap;
  overflow-x: auto; /* nunca corta */
  overflow-y: hidden;
  
}