*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.caixa-refri{
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    background-color: var(--background);
}

.caixa-refri.ativo{
    display: block;
}

.caixa-refri .nome{
    font-size: 12rem;
    color: white;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
    z-index: 2;
    text-align: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-transform: capitalize; 
}

.fundo{
    width: 75%;
    top: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.lata{
    width: 26rem;
    z-index: 3;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%)
}

#voltar{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 5rem;
    height: 5rem;
    border: 1px solid #eee9;
    background-color: #eee9;
    color: #eee;
    font-size: x-large;
    font-family: monospace;
    cursor: pointer;
    z-index: auto;
    border-radius: 50%;
    left: 3rem;
}

#proximo{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 5rem;
    height: 5rem;
    border: 1px solid #eee9;
    background-color: #eee9;
    color: #eee;
    font-size: x-large;
    font-family: monospace;
    cursor: pointer;
    z-index: auto;
    border-radius: 50%;
    right: 3rem;
}

@keyframes toActive{
    from {
        top: 100%;
        opacity: 0;
    }
}

.caixa-refri.ativo img.fundo{
    animation: toActive 0.5s ease-in-out 1;
}

.caixa-refri.ativo .nome{
    animation: toActive 0.5s ease-in-out 1;
}

.lata.lata-coca{
    width: 33rem;
    height: 33rem;
}

.lata.lata-guarana{
    width: 36rem;
    height: 36rem;
}