* {
  box-sizing: border-box;
}

.sample-container {
  width: 100%;
  display: grid;
  align-content: center;
  justify-content: center;
}

.main-carousel {
  display: grid;
  width: inherit;
  height: inherit;
  position: relative;
  text-align: center;
  align-items: center;
  box-sizing: border-box;
  justify-content: center;
}
  
.items { 
  display: flex;
  width: inherit;
  height: inherit;
  cursor: pointer;
  user-select: none;
  position: relative;
  overflow-x: scroll;
  overflow-y: hidden;
  white-space: nowrap;
  border-radius: 20px;
  transition: all 0.2s;
  box-sizing: border-box;
  will-change: transform;
  box-sizing: border-box;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
  -webkit-tap-highlight-color: transparent; /* for removing the highlight */
}

.items::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.items:active {
  cursor: grabbing;
}

.btn {
  z-index: 1;
  padding: 0 .5rem;
  margin: 0 5px;
  position: absolute;
  align-self: center;
  border-radius: 5px;
  vertical-align: middle;
  background: #222;
  color: #fff;
}

.prev {
  justify-self: flex-start;
}

.next {
  justify-self: flex-end;
}

.item {
  display: flex;
  flex: 0 0 100%;
  width: inherit;
  height: inherit;
  font-size: 30px;
  align-items: center;
  pointer-events: none;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
