.tabs {
  display: flex;
  justify-content: center;
  background-color: none;
  background-size: fit-content;
  padding-top: 20px;
}

.tabs ul {
  display: inline-flex;
  /* border: 1px inset; */
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1px;
  align-items: center;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.tabs ul li {
  background: none;
}

.tabs ul li span {
  display: inline-block;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  padding: 8px 9px;
  color: black;
  text-decoration: none;
  line-height: 1;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #777;
  border-bottom: 1px solid #777;
}

.tabs ul li span:hover {
  box-shadow: inset 0 0 10px 1000px rgba(0, 0, 0, 0.1);
  color: black;
  text-decoration: underline;
}

#active {
  box-shadow: inset 0 0 10px 1000px rgba(0, 0, 0, 0.1);
  border-top: 1px solid #777;
  border-left: 1px solid #777;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
}
.tabs {
  flex-shrink: 0;
}

#maincontent {
  position: relative;
  height: 900px;
  overflow: hidden;
}

.tabs__tab {
  display: none;
}

.tabs__tab.active {
  display: block;
  height: 100%;
  overflow-y: auto;
}

.tabs__tab.exiting {
  animation: tabSlideOutDown 0.25s ease-in forwards;
}

.tabs__tab.entering {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  animation: tabSlideInFromTabBar 0.25s ease-out forwards;
}

@keyframes tabSlideOutDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

@keyframes tabSlideInFromTabBar {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tabs__tab.exiting,
  .tabs__tab.entering {
    animation: none !important;
  }
}

/* responsive calls */
@media (max-width: 768px) {
  #maincontent {
    height: 1450px;
  }
  .tabs ul li span {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  #maincontent {
    height: 1250px;
  }
  .tabs ul li span {
    font-size: 14px;
  }
}
