
:root {
    --v1: 120px;
    --v2: 0;
}

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

body {
    height: 100vh;
    width: 100vw;
    background-color: #1d1919;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

button {
    transform: translateY(100%);
    width: 3rem;
    flex-wrap: wrap;
}

.container{
    display: inline-block;
}

#block1, #block2 {
    position: relative;
    display: inline-block;
    height: 3rem;
    width: 3rem;
}
#block1 {
    background-color: #ffce76;
    left: var(--v1);
}

#block2 {
    
    background-color: #f30067;
    left: var(--v2);
}