@keyframes fadein {
    0% {
        opacity: 0%;
    }
    100%   {
        opacity: 100%;
    }
  }

#calculator h1 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 0;
}

#calculator input {
    background-color: #111;
    color: #ecf0f1;
    outline: none;
    text-align: right;
    border: none;
    font-size: 3rem;
    width: 100%;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    padding: 0.5rem 1.5rem;
    -webkit-box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.5);
    -moz-box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.5);
    box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.5);
}

#calculator .container {
    margin: auto;
    text-align: center;
    position: absolute;
}

#calculator .calculator {
    padding: 0.25rem;
    display: inline-block;
}

#calculator table {
    margin: auto;
}

#calculator button {
    border: none;
    background-color: white;
    width: 6vw;
    height: 10vh;
    padding: 0.5rem 0;
    margin: 0.25vmax;
    font-size: 2rem;
	border: 1px solid #CCC;
    border-radius: 0.5rem;
    -moz-transition: all ease 0.5s;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
    -o-transition: all ease 0.5s;
}
#calculator button:active {
    transform: scale(0.95);
    /* Scaling button to 0.98 to its original size */
    box-shadow: 3px 2px 22px 1px rgba(0, 0, 0, 0.24);
    /* Lowering the shadow */
}

#calculator button:hover {
    -webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
    -moz-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
    -moz-transition: all ease 0.5s;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
    -o-transition: all ease 0.5s;
}

#calculator a{
    outline: none;
    -moz-transition: all ease 0.5s;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
    -o-transition: all ease 0.5s;
}

#calculator a:hover{
    text-shadow: 0px 0px 10px rgba(241, 196, 15, 0.5);
    -moz-transition: all ease 0.5s;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
    -o-transition: all ease 0.5s;
}

#calculator #historybutton{
    position: absolute;
    width:40px;
    height:40px;
    border-radius: 20px;
    float:right; 
    margin-top: -10px;
    margin-left: 50%;
    cursor: pointer;
}

#calculator #history{
    position: relative;
}

#calculator .historyelement{
    color: black;
    margin: 10px;
    font-size: 20px;
}

#calculator #bar1, #bar2{
    position: absolute;
    width:30px;
    height: 4px;
    background-color: #111;
    margin-top: 20px;
    margin-left: 85%;
    transform: rotate(45deg);
    cursor: pointer;
    display: none;
}

#calculator #bar2{
    transform: rotate(135deg);
}

