@import url('https://fonts.googleapis.com/css2?family=Inter&family=Roboto&display=swap');

/*
  1. Use a more-intuitive box-sizing model.
*/
*, *::before, *::after {
  box-sizing: border-box;
}
/*
  2. Remove default margin
*/
* {
  margin: 0;
}
/*
  3. Allow percentage-based heights in the application
*/
html, body {
  height: 100%;
}
/*
  Typographic tweaks!
  4. Add accessible line-height
  5. Improve text rendering
*/
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/*
  6. Improve media defaults
*/
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
/*
  7. Remove built-in form typography styles
*/
input, button, textarea, select {
  font: inherit;
}
/*
  8. Avoid text overflows
*/
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
/*
  9. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

* {
    border: 0px solid red;
}

html {
    font-family: 'Inter', 'Roboto', Helvetica, Arial, sans-serif;
    font-size: clamp(15px, 2vw, 16px);
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: skyblue;
    height: 90vh;
    width: 100vw;
    margin: auto;
    font-size: 1.5rem;
}

.calculator {
    display: flex;
    flex-direction: column;
    background-color: #1B2631;
    border-radius: 0.5rem;
    text-align: right;
}

.screen {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 6rem;
    background-color: #D7DBDD;
    width: 20rem;
    margin-top: 0.625rem;
    margin-bottom: 0.25rem;
    margin-left: auto;
    margin-right: auto;
    word-wrap: break-word;
    font-family: monospace;
}

.prevOutput {
    font-size: 1.125rem;
    padding-right: 0.25rem;
    padding-bottom: 0.25rem;
}

.nextOutput {
    font-size: 2rem;
    padding-right: 0.25rem;
    padding-bottom: 0.25rem;
}

.row {
    display: flex;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.row.top {
    margin-top: 0.25rem;
}

.row.bottom {
    margin-bottom: 0.5rem;
}

.button {
    cursor: default;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background-color: #283747;
    margin: 0.0625rem;
    color: white;
}

#clear {
    flex: 2
}

.button:hover {
    background-color: #34495E;
}

.button:active {
    background-color: #85929E;
}