
/* Tabbar */
.iphone .tabbar {
  position: absolute;
  bottom: 0;
  height: 60px;
  width: 100%;
  display: flex;
  z-index: 10;
  background: #1C1C1E;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.iphone .tabbar .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}

.iphone .tabbar .tab .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  margin-bottom: 2px;
}

.iphone .tabbar .tab .icon svg {
  width: 20px;
  height: 20px;
  fill: #929299;
}

.iphone .tabbar .tab.selected .icon svg {
    fill: #0A84FF;
}

.iphone .tab-content {
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.iphone .tab-content.selected {
    visibility: visible;
    position: absolute;
}

.iphone .tabbar .tab .label {
  font-size: 12px;
  font-weight: bold;
  color: #929299;
}

.iphone .screen {
  display: none;
}

.iphone .screen.active {
  display: block;
}


.iphone {
    position: relative;
    width: 280px;
    aspect-ratio: 393 / 852;
    overflow: hidden;
    background: #000000;
    margin-inline: auto;
}

.margin-block {
    margin-block: 1rem 2rem;
}

.ios-list {
    border-radius: 32px;
    input:checked ~ .detail {
        left: 0;
    }

    input.none-input:checked ~ .detail {
        left: 100%;
    }

    input:not(.none-input):checked ~ .detail .title {
        display: block;
    }
}

.ios-list > * {
    color: white;
}

.ios-list .list {
    padding: 16px;
    background: #1C1C1E;

    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transition: left 0.5s ease;
}

.ios-list .list ul {
    background: #2C2C2E;
    border-radius: 8px;
}

.ios-list .list {
    ul {
        padding: 0;
        list-style: none;
        background: #2C2C2E;
        border-radius: 8px;

        label {
            position: relative;
            display: block;

            li {
                position: relative;
                padding: 8px 16px;
                transition: background 0.2s ease;
                cursor: pointer;
                z-index: 1;
                color: #FFFFFF;
                margin: 0;
            }

            li::before {
                transition: background 0.2s ease;
            }

            li:hover::before {
                content: '';
                position: absolute;
                left: 0;
                right: 0;
                top: 0;
                bottom: -1px;
                background: #3A3A3C;
                border-radius: inherit;
                z-index: -1;
            }
        }

        label:not(:first-child)::after {
            content: '';
            position: absolute;
            left: 16px;
            right: 0;
            height: 0.5px;
            top: 0;
            background-color: #3A3A3C;
        }

        label:first-child > li {
            border-top-left-radius: 8px;
            border-top-right-radius: 8px;
        }

        label:last-child > li {
            border-bottom-left-radius: 8px;
            border-bottom-right-radius: 8px;
        }
    }
}

.ios-list .list .title {
    font-weight: bold;
    font-size: 24px;
    margin-top: 24px;
    margin-bottom: 12px;
    color: #FFFFFF;
}

.ios-list .detail {
    display: flex;
    flex-direction: column;

    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 100%;
    background: #1C1C1E;
    transition: left 0.5s ease,  box-shadow 0.3s ease;
    z-index: 2;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    width: 100%;
}

.ios-list
.detail
.navbar {
    position: relative;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    background: #1C1C1E;
    color: #FFFFFF;

    .navbutton {
        color: #0A84FF;
        cursor: pointer;

        .chevron:after {
            content: ' ';
            display: inline-block;
            border-bottom: 2px solid #0A84FF;
            border-right: 2px solid #0A84FF;
            height: 10px;
            width: 10px;
            transform: rotate(-225deg);
        }
    }

    .title {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-weight: 600;
        display: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width:100px;
        color: #FFFFFF;
    }
}

.ios-list
.detail
.content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel .content [datacomponent="tabbar"] {
    border: 1px solid rgba(255,255,255,0.2);
    margin-left: 1.45rem
}

.carousel .content > pre:first-child {
    margin-left: 1.45rem;
}

.container {
    background: rgba(255,255,255,0.05);
    padding-block: 2rem;
    border-radius: 6px;
}
