html{
    font-size: 100%;
}
body{
    /* background-color: #9FCDBE; */
    font-size: 2.2rem;
    position: relative;
    box-sizing: border-box;
    max-width: 1200px;
    padding-top: 100px;
    margin: auto;

    /* animated background */
    background: linear-gradient(
        to right, #833ab4,
        #fd1d1d, #fcb045);
    background-size: 400% 400%;
    animation: animate-background 10s infinite ease-in-out;

    /* ------------------- */
}
/* Animation Keyframes */
@keyframes animate-background {
    0%{
        background-position: 0% 50%;
    }
    50%{
        background-position: 50% 100%;
    }
    100%{
        background-position: 0% 50%;
    }
}
/* ------------------- */
*{
    box-sizing: border-box;
}
.button-container{
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5,5fr);
    color: #2E3951;
    gap: 6%;
    border-radius: 0 0 20px 20px;
}
.button-operation>span,.button-number>span,.button-equal-sign>span{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.button-container>*{
    width: 100%;
    height: 100%;
}
.color-button-container-bright>div:hover{
    transition-duration: 0.5s;
    background-color:  #18d4a252;
}
.color-button-container-dark>div:hover{
    transition-duration: 0.5s;
    background-color:  #18d4a252;
    color:white;
}
.button-number{
    border-radius: 50%;
    text-align: center;
}
.button-operation{
    border-radius: 50%;
    background-color: #212B41;
    /* color:#18D4A3; */
    font-size:2.4rem;
}
.button-equal-sign{
    border-radius: 50%;
    background-color: #18D4A3;
    font-size:2.4rem;
    font-weight: bold;
}
.calculator {
    left: 50%;
    top:50%;
    width: 300px;
    height: 550px;
    border-radius: 20px;
    /* ejemplo */
    overflow: hidden;
    /* ---- */
    margin: auto;
    display: grid;
    grid-template-rows: 1fr 5fr 18fr;
    -webkit-box-shadow: 0px 0px 14px 4px rgba(112, 112, 112);
    -moz-box-shadow: 0px 0px 14px 4px rgba(112, 112, 112);
    box-shadow: 0px 0px 14px 4px rgb(112, 112, 112);
}
.top-bar{
    display: flex;
    justify-content: space-between;
    height: 1fr;
    align-items: center;
    font-size: 1px;
}  

.button-lg{
    width: 20px;
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    font-family: sans-serif;
    text-decoration: none;
    color: #333;
    border: 2px solid #333;
    letter-spacing: 2px;
    text-align: center;
    position: relative;
    transition: all .35s;
  }
  
  .button-lg span{
    position: relative;
    z-index: 2;
  }
  
  .button-lg:after{
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #ff003b;
    transition: all .35s;
  }
  
  .button-lg:hover{
    color: #fff;
  }
  
  .button-lg:hover:after{
    width: 100%;
  }


.calculator>*{
    padding: 4%;
    box-sizing: border-box;
}
.screen{
    padding-top: 8%;
    font-size: 72px;
    height: 100px;
    text-align: right;
    overflow: hidden;
}
.button-aspect-container-dark{
    width: 40px;
    height: 22px;
    border-radius: 22px 22px 22px 22px;
    background-color: #18D4A3;
    border: #18D4A3 solid 1px;
}
.button-aspect-container-bright{
    width: 40px;
    height: 22px;
    border-radius: 22px 22px 22px 22px;
    background-color: #c5c6c7;
    border: #F5F8FC solid 1px;
}
.button-aspect-dark{
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgb(255, 255, 255);
    margin: 0 0 0 auto;
    box-shadow: inset 0 0 1.5px rgb(87, 85, 85);
}
.button-aspect-bright{
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgb(255, 255, 255);
    margin: auto 0 0 0;
    box-shadow: inset 0 0 1.5px rgb(87, 85, 85);
}
.button-colors{
    border-radius: 50%;
    height: 12px;
    width: 12px;
    background-color: red;
    display: inline-block;
    margin: auto 6px;
}
.color-calculator-dark{
    background-color: #212B41;
}
.color-combi-dark{
    color: #18D4A3;
    background-color: #212B41;
}

.color-combi-bright{
    color: black;
    background-color: #F4FDFB;
}

.color-button-container-bright>.color-combi-nums{
    color: black;
}
.color-button-container-dark>.color-combi-nums{
    color: #819290;
}
.color-calculator-bright{
    background-color: #F4FDFB;
}
.color-button-container-dark{
    background-color: #2E3951;
}
.color-button-container-bright{
    background-color: white;
}
.color-button-container-bright>.color-button-equal{
    color:white;
}
.color-button-container-dark>.color-button-equal{
    color:#212B41;
}
.color-button-container-bright>.color-combi{
    color: black;
    background-color: #F4FDFB;
}
.color-button-container-dark>.color-combi{
    color: #18D4A3;
    background-color: #212B41;
}
.color-combi-nums-dark{
    color: #819290;
}
#minimize-button {
    background-color: #FFC02F;
}
#maximize-button {
    background-color: #28CA40;
}
#close-button {
    background-color: #FD544D;
}
.show {
    display: block;
}
.log {
    display: none;
    padding: 15px;
}

.log ul {
    width: 100%;
    min-height: 475px;
    max-height: 475px;
    list-style: none;
    overflow-y: scroll;
    border-radius: 15px;
}

.log ul li {
    padding: 5px 15px;
    margin-bottom: 5px;
    width: 98%;
    border-radius: 15px;
}