:root {
    --lg-font: 16px;
    --md-font: 16px;
    --sm-font: 12px;
}
.contenedor-global{
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.history-button{
    position: absolute;
    top: -18px;
    right: -18px;
    color: white;
    background-color: #a12e63;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    cursor: pointer;
}
.clock-history{
    width: 24px;
}
.historial-caja{
    width: 200px; /* responsive attribute */
    max-height: 150px; /* responsive attribute */
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 12px;
    border: 4px solid rgb(0, 0, 0);
    border-radius: 12px;
    box-shadow: 4px 4px 4px 0 rgba(0, 0, 0, 0.5);
    background-color: #f1d8e4;
    color: black;
    z-index: 1;
}
.historial-entrada{
    width: 100%;
    text-align: center;
    padding: 8px 0px;
    border: solid;
    border-width: 1px;
}
.entrada{
    font-size: 20px;
}
.calculadora-caja{
    width: 240px; /* responsive attribute */
    height: 340px;
    border: 4px solid black;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    box-shadow: 4px 4px 4px 0 rgba(0, 0, 0, 0.5);
    position: relative;

}
.contador-header{
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: stretch;
    background-color: white;
    z-index: 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.contador-body{
    flex: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    background-color: #7bc1dc;
}
.contador-contenedor{
    flex : 1;
    display: flex;
    align-items: center;
    
}
.contador, .cuenta{
    margin-right: 12px;
    text-align: end;
    flex: 1;
    
}
.contador{
    font-size: 26px;
    color: rgb(0, 0, 0);
}
.cuenta{
    font-size: 18px;
    color: #a12e63;
}
.button_generic{
    position: static;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 3px;
    box-shadow: 4px 4px 4px 0 rgba(0, 0, 0, 0.2)
}
.button_generic:active {
    position: absolute;
    margin-top: 4px;
    margin-left: 4px;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
}
.button-grid{
    height: 18%;
    display: flex;
    width: 90%;
}
.button-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}
.anim-box{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
}
.bg-white{
    background-color: white;
    color: black;
}
.bg-darkpink{
    background-color: #a12e63;
    color: white;
}
.lg{
    font-size: var(--lg-font);
}
.md{
    font-size: var(--md-font);
}
.sm{
    font-weight: 600;
    font-size: var(--sm-font);
}
/* Responsive design for the following screens: */
/* xm */
@media screen and (max-width: 992px){
    :root {
        --lg-font: 42px;
        --md-font: 28px;
        --sm-font: 14px;
    }
    .calculadora-caja{
        width: 80%;
        height: 80%;
    }
    .button_generic{
        width: 80%;
        height: 80%;
    }
    .contador{
        font-size: var(--lg-font);
    }
    .cuenta{
        font-size: var(--md-font);
    }
}
@media screen and (orientation: portrait) and (min-width: 992px) {
    :root {
        --lg-font: 42px;
        --sm-font: 16px;
    }
    .calculadora-caja{
        width: 60%;
        height: 60%;
    }
    .button_generic{
        width: 80%;
        height: 80%;
    }
    .contador{
        font-size: 64px;
    }
    .cuenta{
        font-size: 48px;
    }
}
@media screen and (max-width: 992px) and (min-height: 700px) {
    .calculadora-caja{
        height: 60%;
    }
}
