.tabs {
    display: flex;
    position: relative;
    background-color: #fff;
    padding: 6px;
    border-radius: 10px;
    width: 612px;
}

.tabs * {
    z-index: 2;
}

input[type=radio] {
    display: none;
}

.tab {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 200px;
    color: #00000066;
    font-size: 1.15rem;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: color 0.15s ease-in;
}

.glider {
    position: absolute;
    display: flex;
    height: 40px;
    width: 200px;
    background-color: #F5F7F9;
    z-index: 1;
    border-radius: 8px;
    transition: 0.25s ease-out;
}

input[type=radio]:checked+label {
    color: black;
}

input[id=radio-1]:checked~.glider {
    transform: translateX(0);
}

input[id=radio-2]:checked~.glider {
    transform: translateX(100%);
}

input[id=radio-3]:checked~.glider {
    transform: translateX(200%);
}

@media (max-width: 700px) {
    .tabs{
        padding: 2vw;
        width: auto;
    }

    .tab {
        width: 30vw;
        font-size: 12px;
    }

    .glider {
        width: 30vw;
    }
}
