@charset "UTF-8";
/* global resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family:  "Inter", sans-serif;
    font-weight: 500;
}

body {
    height: 100%;
    background-color: #333;
}

.container {
    width: 100%;
    max-width: 320px;
    background-color: #1d2f51;
    box-shadow: 0px 10px 15px -3px #222;
    -moz-box-shadow: 0px 10px 15px -3px #222;
    border-radius: 24px;
    padding: 20px;

    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    gap: 20px;

    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
}

.display {
    background-color: #111b2e;
    width: 100%;
    padding: 20px;
    border-radius: 16px;
}

.display > input {
    color: #E2E8F0;
    background-color: #111b2e;
    text-align: right;
    font-size: 40px;
    width: 100%;
    border: none;
}

.buttons__grid {
    /* background-color: #ccc; */
    width: 100%;

    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-template-rows: repeat(5,1fr);
    gap: 5px;
    padding: 10px;
}

.line__button {
    display: flex;
    flex-flow: row nowrap;
    gap: 5px;
    justify-content: space-between;
}

.line__button button {
    width: 60px;
    height: 60px;
    background-color: #1a2437;
    color: #F1F5F9;
    border: none;
    border-radius: 8px;
    
    cursor: pointer;

    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.line__button button:hover {
    opacity: 70%;
    transform: translateY(-2px);
}

.line__button--1 {
    grid-row: 1 / 2;
    grid-column: 1 / -1;
}

.line__button--1 button {
    background-color: #2e4773;
}

.line__button--2 {
    grid-row: 2 / 3;
    grid-column: 1 / -1;
}

.line__button--3 {
    grid-row: 3 / 4;
    grid-column: 1 / -1;
}

.line__button--4 {
    grid-row: 4 /5;
    grid-column: 1 / -1;
}

.line__button--5 {
    grid-row: 5 / 6;
    grid-column: 1 / -1;

    display: flex;
    flex-flow: row nowrap;
}

.line__button--5 > button {
    flex-grow: 1;
    flex-shrink: 1;
}


button.action__buttons {
    background-color: #F97316 ;
}