/* switch menu */

.switch-menu-wrapper {
    display: grid;
    position: fixed;
    height: 100vh;
    overflow-x: visible;
    top: 0;
    left: 0;
    width: 268px;
    z-index: 2;
    align-content: start;
    background: var(--clr-light);
    -webkit-font-smoothing: antialiased;
    transform-origin: 0% 0%;
    transform: translate(-100%, 0);
    animation-duration: 500ms;
    transition: transform 500ms cubic-bezier(0.77,0.2,0.05,1.0);
    animation-fill-mode: forwards;
    border-right: 1px solid #777;
}

.switch-menu-wrapper:hover {
  animation-name: switchopen;
}

/* 560px */
@media (min-width: 35rem) {

    .switch-menu-wrapper {
        width: 320px;
    }

}

@keyframes switchopen {
    from {transform: translate(-100%, 0)}
    to {transform: none}
}

.switch-toggle {
    position: absolute;
    padding: 1rem;
    background-color: var(--clr-light);
    display: inline-flex;
    right: -57px;
    aspect-ratio: 1/1;
    height: fit-content;
    top: 15%;
    border: 1px solid #777;
    border-left: none;
}

.switch-header {
    position: relative;
    display: flex;
    justify-content: center;
    padding-inline: 3.25rem;
    padding-block: 2.5rem;
}

.switch-toggle img {
    aspect-ratio: 1/1;
    height: 1.5rem;
}

.switch-menu {
    height: 100%;
    padding-inline: 3.25rem;
    list-style: none;
    overflow-y: scroll;

}
  
.switch-menu li,
.switch-menu span {
    padding-block: 0.5rem;
    font-size: 1rem;
}

/* switch styles */

  .tab-card__wrapper {
    display: grid;
    justify-items: center;
  }

  .tab-card {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 2/1;
    perspective: 1000px;
  }
  .tab-card__cover {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-image: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
    background-size: cover;
    background-position: top;
    perspective-origin: 50% 50%;
    transform-style: preserve-3d;
    transform-origin: top center;
    will-change: transform;
    transform: skewX(0.001deg);
    transition: transform 0.35s ease-in-out;
  }
  .tab-card__cover::after {
    display: block;
    content: "";
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(226deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.4) 35%, rgba(255, 255, 255, 0.2) 42%, rgba(255, 255, 255, 0) 60%);
    transform: translateY(-16%);
    will-change: transform;
    transition: transform 0.65s cubic-bezier(0.18, 0.9, 0.58, 1);
  }
  .tab-card:hover .tab-card__cover {
    transform: rotateX(7deg) translateY(-6px);
  }
  .tab-card:hover .tab-card__cover::after {
    transform: translateY(0%);
  }
  .tab-card::before {
    display: block;
    content: "";
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 6px 12px 12px rgba(0, 0, 0, 0.2);
    will-change: opacity;
    transform-origin: top center;
    transform: skewX(0.001deg);
    transition: transform 0.35s ease-in-out, opacity 0.5s ease-in-out;
  }
  .tab-card:hover::before {
    opacity: 0.6;
    transform: rotateX(7deg) translateY(-6px) scale(1.05);
  }
