Escolar Documentos
Profissional Documentos
Cultura Documentos
* {
box-sizing: border-box;
margin: 0;
outline: 0;
padding: 0;
}
body {
background: url(/img/background.png) #cfcfcf;
color: #111111;
font-size: 16px;
/* FLEX */
align-items: center;
display: flex;
justify-content: center;
}
body,
input,
textarea,
button {
font-family: "Roboto", sans-serif;
}
html,
body {
height: 100%;
}
/* CALCULATOR CONTAINER */
.calculator {
animation: sideIn 480ms cubic-bezier(0.42, 0, 0.21, 1);
background-color: #2f2b39;
border-radius: 2px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
padding: 10px 20px;
width: 252px;
}
/* DISPLAY */
.display {
margin: 50px 0 60px;
text-align: right;
}
.display input {
background: transparent;
border: none;
color: #f2f2f2;
font-size: 40px;
font-weight: 400;
text-align: right;
width: 100%;
}
.display h2 {
color: #6d53d6;
font-size: 15px;
font-weight: 500;
height: 18px;
}
/* ROW GRID */
.row {
display: grid;
grid-template-columns: repeat(4, 25%);
margin-bottom: 10px;
}
/* BUTTON */
.button {
background-color: transparent;
border: none;
border-radius: 2px;
color: #f2f2f2;
cursor: pointer;
font-size: 18px;
font-weight: 500;
height: 50px;
margin: 2px;
transition: all 0.15s ease-in-out;
width: 50px;
}
.button:hover {
transform: scale(1.04);
}
.button:active {
transform: scale(0.97);
}
/* COLORS */
.gray {
background-color: #eaeaea;
color: #2f2d38;
}
.purple {
background-color: #7d5dfe;
color: #f2f2f2;
}
.purple-text {
color: #7d5dfe;
}
/* ANIMATION */
@keyframes sideIn {
from {
transform: translateY(-150px);
opacity: 0;
}
50% {
transform: translateY(-75px);
}
to {
transform: translateY(0);
opacity: 1;
}
}