*{
    margin: 0;
    padding: 0;
}

body{
    background-color: lightslategray;
}

.main {
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.calculator{
    width: 400px;
    border: 3px solid black;
    height: 675px;
    gap: 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: whitesmoke;
    margin-top: 54px;
}

.inner{
    width: 360px;
}

.display{
   justify-content: end;
    height: 100px;
    display: flex;
    border: 2px solid black;
    padding: 6px 6px;
    border-radius: 16px;
    background-color: rgba(0, 0, 0, 0.656);
    color: white;
}

#show{
    font-size: 28px;
    display: flex;
    justify-content: end;
    flex-direction: column;
}

.para {
  display: flex;
  flex-direction: row;
  justify-content: center;
  font-size: 44px;
  font-weight: 800;
  color: cornflowerblue;
  margin-top: 0px;
}

.grid{
    display: grid;
    margin-top: 50px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    background-color: rgba(0, 0, 0, 0.656);
    padding: 12px 12px;
    border-radius: 16px;
}

.press{
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background-color: whitesmoke;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    cursor: pointer;
}

@media only screen and (max-width: 768px) {
    .calculator{
        width: 300px;
        height: 510px;
    }
    .inner{
        width: 260px;
    }
    .para{
        font-size: 32px;
    }
    .grid{
        gap: 30px;
    }
    .display {
        height: 75px;
    }
    .press{
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    #show {
        font-size: 24px;
    }
}

@media screen and (max-width: 468px) {
    .calculator{
        width: 260px;
        height: 425px;
    }
    .inner {
        width: 225px;
    }
    .para{
        font-size: 26px;
    }
    .grid{
        gap: 20px;
    }
    .display{
        height: 60px;
    }
    .press{
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    #show{
        font-size: 20px;
    }
}