* {
    box-sizing: border-box;
    outline: none;
}

html {
    height: 100%;
    font-size: 10px;
}

a,
button {
    transition: all .25s ease-in-out;
    text-decoration: none;
}

body {
    font-size: 2rem;
    font-family: sans-serif;
    min-height: 100%;
}

.resizer{
    /* border: 2px solid #45dd90; */
    /* padding: 5px; */
    margin: 0;
    padding: 0;
    border-radius: 4px;
    width: 300px;
    height: 300px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    /* overflow: hidden; */
    background: rgb(238, 255, 0);
    border: 3px solid red;
    z-index: 1;
    /* transition: all .5s ease-in-out; */
    /* transform-origin: left top; */
}

.resizer__corner{
    -webkit-user-select: none;
    width: 60px;
    height: 60px;
    background: rgb(0, 0, 0);
    opacity: 1;
    transition: opacity .8s ease-in-out;
    position: absolute;
    z-index: -1;
}

.left-top{
    left: 0;
    top: 0;
    cursor: nwse-resize;
    transform: translate(-50%, -50%);
}

.right-top{
    top: 0;
    right: 0;
    cursor: nesw-resize;
    transform: translate(50%, -50%);
}

.left-bottom{
    bottom: 0;
    left: 0;
    cursor: nesw-resize;
    transform: translate(-50%, 50%);
}

.right-bottom{
    bottom: 0;
    right: 0;
    cursor: nwse-resize;
    transform: translate(50%, 50%);
}



.draggable{
    display: flex;
    padding: 2vw;
    justify-content: space-between;
}

.box{
    width: 48%;
    height: 500px;
    border: 5px solid green;
    transition: all .5s ease-in-out;
    overflow: hidden;
    position: relative;
}

.box--right{
    border-color: greenyellow;
}

.ball,
.square{
    margin: .2vw;
    display: inline-block;
    border-radius: 50%;
    background-color: indigo;
    width: 50px;
    height: 50px;
    cursor: grab;
}


.ball:active,
.square:active{
    cursor: grabbing;
}

.square{
    background-color: orange;
    border-radius: 0;
}

.box--right span {
    background-color: orange;
}

.box--left span {
    background-color: indigo;
}

.box__count{
    font-size: 120px;
    line-height: 1;
    color: #000;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, -50%);

}

[hidden]{
    opacity: .3;
}