:root {
    --carouselSlotSpacing: 40px;
    --slotClickEnabled_slotBodyHover: pointer;
}

@keyframes pulseLeft {
    0%, 100% {
        transform: translateX(0) scale(1);
    }
    50% {
        transform: translateX(-20%) scale(1.1);
    }
}

@keyframes pulseRight {
    0%, 100% {
        transform: translateX(0) scale(1);
    }
    50% {
        transform: translateX(20%) scale(1.1);
    }
}

.carouselWrapper {
    display: flex;
    flex-flow: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

#carousel {
    position: relative;
    display: flex;
    max-width: 2160px;
    width: 100vw;
    touch-action: pan-x; /* Prevents vertical scrolling on mobile devices when swiping the carousel slides */
    overflow: hidden;
    background-color:#222f41;
}

#carousel::before, #carousel::after {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80%;
    width: 120px;
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 5em;
    color: #0000;
    background-color: #fff;
    z-index: 2;
    border-top-left-radius: 100%;
    border-bottom-left-radius: 100%;
    box-shadow: rgba(255, 255, 255, 0.95) -20px 0 20px;
    transition: color .5s;
}

#carousel::before {
    content: "\f060";
    left: -10px;
    border-radius: 0;
    border-top-right-radius: 100%;
    border-bottom-right-radius: 100%;
    box-shadow: rgba(255, 255, 255, 0.95) 20px 0 20px;
}

#carousel:hover::before, #carousel:hover::after {
    color: #0003;
    cursor: pointer;
}

#carousel::after {
    content: "\f061";
}

#carousel.carouselDragState, #carousel.carouselDragState .slotBody:hover {
    cursor: grab;
}

.carouselNavHint {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: nowrap;
    column-gap: 40px;
    font-size: 2em;
    opacity: 0;
    color: #d1d1d1;
    text-shadow: 0 0 5px #000;
    transition: opacity .5s;
}

.carouselNavHint.pulsating {
    opacity: 1;
}

.carouselNavHint.pulsating i:first-child {
    animation: pulseLeft 1s infinite;
}

.carouselNavHint.pulsating i:last-child {
    animation: pulseRight 1s infinite;
}

.carouselNavHint .fa-fingerprint {
    display: none;
}

.carouselSlots {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-out;
}

.carouselSlots.carouselStyle2d {
    display: flex;
    overflow-x: hidden;
    flex-wrap: nowrap;
    align-items: center;
    column-gap: var(--carouselSlotSpacing);
    transform-style: flat;
    scrollbar-width: none;
}

.slotBody {
    display: flex;
    flex-flow: column;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1) translateZ(0);
    transform-origin: center center;
    transform-style: preserve-3d;
    transition: all 0.35s ease-out;
    border-radius: 10px;
    box-shadow: #2563eb 0 0 10px 2px;
    -webkit-user-select: none;
    user-select: none;
    transition: all 0.35s ease-out;
}

.carouselSlots.carouselStyle2d .slotBody {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    transform-style: flat;
    flex-shrink: 0;
    transition: none;
}

.slotBody:hover {
    cursor: var(--slotClickEnabled_slotBodyHover);
}

.slotBody .slotButton {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 1.2em;
    text-decoration: none;
    color: #fff;
    background-color: #000;
    transition: background-color .25s;
}

.slotButton:hover {
    background-color: #666;
}

.slotIcon, .slotTitle, .slotDescription {
    display: flex;
    align-items: center;
    pointer-events: none;
    color: var(--primary-black);
    text-align: center;
}

.slotIcon {
    flex-basis: 35%;
    font-size: 3em;
}

.slotTitle {
    flex-basis: 15%;
    margin: 0;
}

.carouselWrapper .slotTitle {
  font-size: 1.5rem;           
  font-weight: 700;
  margin: 0 0 .25rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;                
  color: transparent;                 
}

.slotDescription {
    flex-basis: 30%;
    padding: 0 30px;
    align-items: unset;
}

/* -- Responsive design stuff starts here -- */

/* Smartphones */
@media screen and (max-width: 1024px) and (orientation: portrait), /* Modern phones & tablets in portrait */
       screen and (max-width: 1366px) and (max-height: 1024px) and (orientation: landscape) {/* Modern Tablets in landscape */
    .carouselNavHint {
        bottom: 0;
    }

    .carouselNavHint .fa-keyboard {
        display: none;
    }

    .carouselNavHint .fa-fingerprint {
        display: block;
    }

    #carousel::after, #carousel::before {
        content: '';
        width: 30px;
        box-shadow: #fff 10px 0 10px;
        pointer-events: none;
    }

    #carousel::after {
        box-shadow: #fff -10px 0 10px;
    }

    .carouselSlots.carouselStyle2d {
        overflow-x: scroll;
        transition: opacity .5s;
    }

    .scrollAutomation {
        opacity: .1;
    }

    .slotBody {
        width: 250px !important;
        height: 250px !important;
    }

    .slotIcon {
        flex-basis: 25%;
    }

    .slotDescription {
        margin: 0;
        flex-basis: 35%;
    }

    #carousel {
        height: 350px !important;
    }
}

@media screen and (max-width: 1024px) and (orientation: portrait),
       screen and (max-width: 1366px) and (max-height: 1024px) and (orientation: landscape) {

  .carouselWrapper .slotIcon img,
  .carouselWrapper .slotIcon {
    max-width: 50px; 
    font-size: 2rem;   
  }

  .carouselWrapper .slotTitle {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
  }

  .carouselWrapper .slotDescription {
    font-size: 0.85rem;
    line-height: 1.3;
    padding: 0 15px;
  }

  .carouselWrapper .hover-button {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
  }
}

@media screen and (max-width: 1024px) and (orientation: portrait),
       screen and (max-width: 1366px) and (max-height: 1024px) and (orientation: landscape) {

  .slotBody {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 2rem;
  }

  .slotIcon {
    margin-top: 0.5rem;
  }
}
