* {
    margin: 0; border: none; outline: none;
	text-decoration: none;
}
			
html {
	scroll-behavior: smooth;
}
			
body {
	font-family: Arial, sans-serif;
	text-align: center;
}

header {
	background-color: #ca12ca;
	color: #fff; display: flex;
    justify-content: flex-end;
}

nav {
    width: 300px; display: flex;
	justify-content: space-evenly;
	padding: 1rem
}

nav li {
	list-style: none; cursor: pointer;
}

.content {
    height: 77vh; display: none;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    margin-bottom: 1rem;
}

.content.active {
    display: flex;
}

h1 {
    margin: 1rem 0;
}

.container {
    width: 300px;
    background-color: #eae5e5;
    box-shadow: 0 .1rem 1rem rgba(0, 0, 0, .5);
    display: flex; flex-flow: column;
    justify-content: center;
}

#display {
	text-align: right; height: 40px;
    line-height: 40px;
    padding: .5rem 1rem;
    font-size: 2em;
    overflow: scroll;
}

.buttons {
    display: grid;
    border-bottom: 1px solid #999;
    border-left: 1px solid#999;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.buttons > div {
    border-top: 1px solid #999;
    border-right: 1px solid#999;
}

.button {
    border: 0.5px solid #999;
    line-height: 57px;
    font-size: 2em;
    cursor: pointer;
}

.func {
	background-color: #fbba15;
}

#equal {
    background-color: #143df1;
    color: #fff;
}

#clear {
	background-color: #f10d0d;
	color: #fff;
}

.button:hover {
    background-color: #666;
    color: #fff;
    transition: 0.5s ease-in-out;
}

label, input, button {
    width: 100%; font-size: 1.3em;
    background-color: #eae5e5;
    border-radius: 10px;
    padding: .5rem 0;
    margin-bottom: .5rem;
}

input {
    border-bottom: .2rem solid #666;
}

button {
    background-color: #143df1;
    color: #fff;
    cursor: pointer;
}

#value {
    font-size: 6em;
    font-weight: bold;
}

.btn {
    width: 40%;
    text-transform: uppercase;
    background-color: #143df1;
    color: #fff; padding: .5rem;
    display: inline-block;
    transition: var(--transition);
    font-size: 1em;
    border: 2px solid #666;
    cursor: pointer;
    box-shadow: 0 .1rem .5rem rgba(0, 0, 0, 0.5);
    border-radius: 10px; margin: .5rem;
}

.btn:hover {
    background: #ca12ca;
}

footer {
    background-color: #788ff5;
    color: #fff; padding: 1rem;
}