/* Reset CSS section*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;

}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}


/* Main CSS*/

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Nunito", Verdana, Geneva, Tahoma, sans-serif;
    background-color: #353535;
    color: white;
}

h1 {
    font-size: 30px;
    font-weight: bold;
    padding: 20px 0px 20px 0px;
}

a {
    color:white;
    text-decoration: none;
}

a:visited {
    color:white;
}

.title-section {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.calculator {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(0px 7px 0px #33533d);
}

.calc-container {
    width: 300px;
    /* height: 450px; */
    border-radius: 5px;
    background-color: #000000;
}

.calc-display {
    background-color: #97aa75;
    box-shadow: inset 0 0 10px #505e4f;
    font-size: 30px;
    text-align: right;
    color: #353535;
    padding: 10px;
    margin: 45px 25px 10px 25px;
    overflow: hidden;
}

.calc-history {
    font-size: 15px;
    overflow: hidden;
}

.calc-keys {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 10px;
    padding: 25px;
    height: 300px;
}

.calc-keys button {
    background-color: #8fbc8f;
    font-weight: bold;
    border: none;
    font-size: 18px;
}

.calc-keys button:hover {
    background-color: #1e492f;
    color: #a0d168;
}

#clear-button {
    background-color: #ff7f50;
    grid-column: 1 / span 2;
}

#clear-button:hover {
    background-color: #9e3f1c;
}

.equals-button {
    grid-row: span 2;
}

.zero-button {
    grid-column: span 2;
}

footer {
    margin-top: auto;
    text-align: center;
    font-size: 12px;
    padding: 10px 0px 10px;
    background-color: #000000;
}
