@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");
:root {
  --primary-color: #185ee0;
  --secondary-color: #e6eef9; }

*,
*:after,
*:before {
  box-sizing: border-box; }

.subnav-container {
  position: relative;
  background-color: #fff;
  left: 0;
  top: 50px;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center; }

.subnav-tabs {
  display: flex;
  position: relative;
  box-shadow: 0 0 1px 0 rgba(192, 192, 192, 0.15), 0 6px 12px 0 rgba(62, 62, 62, 0.15);
  padding: 0.55rem;
  border-radius: 99px; }
  .subnav-tabs * {
    z-index: 2; }

input[type="radio"] {
  display: none; }

.subnav-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 100px;
  font-size: 0.8rem;
  line-height: 0.85rem;
  text-align: center;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: 99px;
  cursor: pointer;
  transition: color 0.15s ease-in; }

.notification {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-left: 0.75rem;
  border-radius: 50%;
  background-color: var(--secondary-color);
  transition: 0.15s ease-in; }

input[type="radio"]:checked + label {
  color: #000000; }
  input[type="radio"]:checked + label > .notification {
    background-color: var(--primary-color);
    color: #fff; }

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%); }

input[id="radio-4"]:checked ~ .glider {
  transform: translateX(300%); }

.glider {
  position: absolute;
  display: flex;
  height: 48px;
  width: 100px;
  background-color: #eeeeee;
  z-index: 1;
  border-radius: 99px;
  transition: 0.25s ease-out; }

@media (max-width: 700px) {
  .subnav-tabs {
    transform: scale(0.85); }

  .subnav-container {
    top: 30px;
    padding-bottom: 50px; } }
