html {
    font-family: helvetica, serif;
}
body{
    height: 100%;
    width: 100%;
    margin: 0;
    background-color: white;
}
ul {
 	list-style-type: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background-color: black;
}
ul li {
	float: left;
}
ul li a {
	display: block;
	color: white;
	text-align: center;
 	text-decoration: none;
	margin-top: 10px;
}
.tabs {
    margin: 40px auto;
    display: grid;
    max-width: calc(var(--count) * 250px);
    width: 100%;
    grid-template-columns: repeat(var(--count), minmax(0, 1fr));
    background-color: white;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }

  .tabs:has(.tab:nth-child(1)) {
    --count: 1;
  }
  .tabs:has(.tab:nth-child(2)) {
    --count: 2;
  }
  .tabs:has(.tab:nth-child(3)) {
    --count: 3;
  }
  .tabs:has(.tab:nth-child(4)) {
    --count: 4;
  }
  .tabs::after {
    content: "";
    position: absolute;
    inset: 0px;
    transform: scale(0.94, 0.8);
    --width: calc((100% / var(--count)));
    width: var(--width);
    margin-left: calc(var(--active) * var(--width));
    transition: margin-left 300ms;
    background-color: black;
    z-index: -1;
    border-radius: inherit;
  }
  .tabs:has(.tab:nth-child(1).active) {
    --active: 0;
  }
  .tabs:has(.tab:nth-child(2).active) {
    --active: 1;
  }
  .tabs:has(.tab:nth-child(3).active) {
    --active: 2;
  }
  .tab {
    flex-basis: 200px;
    padding: 15px 0;
    font-size: 1.5rem;
    color: black;
    transition-duration: 0.5s;
  }
  .tab.active {
    color: white;
  }
.tabcontent {
  display: none;
  text-align: center;
  padding: 6px 12px;
  border-top: none;
  color: black;
  font-size: 25px;
}
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  border-radius: 3px 0 0 3px;
  position: absolute;
  top: 50%;
  right: 0%;

}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}
.dot.active, .dot:hover {
  background-color: #717171;
}
.fade {
  animation-name: fade;
  animation-duration: .5s;
}

