:root {
    --itemColor: #6A6BA4;
    --fontColorHover: #2A2B4A;
    --itemBorderColor: #C8C8C8;
}

* {
    box-sizing: border-box;
    font-family: sans-serif;
    white-space: nowrap;
}

#container {
    width: 48rem;
    height: 32rem;
    margin: auto;
    margin-top: 8rem;
}

.item {
    background-color: var(--itemColor);
    border: 0.1rem solid var(--itemBorderColor);
    position: absolute;
    transition: margin-left 0.5s;
}

.btn {
    background-color: var(--itemColor);
    color: var(--fontColorHover);
    border: 0.2rem solid var(--fontColorHover);
    border-radius: 0.5rem;
    font-size: 1.2rem;
    padding: 0.5rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

#btn-container {
    margin: auto;
    text-align: center;
}

#btn-container label {
    background-color: var(--itemColor);
    color: var(--fontColorHover);
    border: 0.2rem solid var(--fontColorHover);
    border-radius: 0.5rem;
    font-size: 1.2rem;
    padding: 0.5rem;
}

@media only screen and (max-width: 770px) {
    #container {
        margin-left: 50vw;
        transform: translate(-50%, 0) scale(0.8);
    }
}

@media only screen and (max-width: 692px) {
    #container {
        margin-left: 20rem;
        margin-top: 8rem;
    }
}

@media only screen and (max-width: 632px) {
    #container {
        transform: scale(0.8);
        margin-left: -4.5rem;
        margin-top: 4rem;
    }
}

@media only screen and (max-width: 620px) {
    #container {
        transform: scale(0.6);
        margin-left: -8rem;
        margin-top: 0rem;
    }

    #btn-container {
        margin-top: -4rem;
    }
}

@media only screen and (max-width: 490px) {
    #container {
        transform: scale(0.4);
        margin-left: -12rem;
        margin-top: -4rem;
    }

    #btn-container {
        margin-top: -8rem;
    }
}