.overlay {
  /* Height & width depends on how you want to reveal the overlay (see JS below) */
  min-height: 100%;
  max-height: 100%;
  width: 100%;
  display: none;
  position: fixed !important;
  /* Stay in place */
  z-index: 1;
  /* Sit on top */
  left: 0;
  top: 0;
  background-color: #fff;
  overflow: hidden;
  /* Disable horizontal scroll */
  transition: 0.5s;
  /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
  height: 100%;
}
/* Position the content inside the overlay */
.overlay-content {
  position: relative;
  top: 25%;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}
/* The navigation links inside the overlay */
.overlay a {
  /* padding: 8px; */
  text-decoration: none;
  color: #333;
  font-weight: 600;
  cursor: pointer;
  display: block;
  /* Display block instead of inline */
  transition: 0.3s;
  /* Transition effects on hover (color) */
  font-size: 2.3rem;
  line-height: 1.38;
  text-transform: uppercase;
  width: auto;
  margin-left: 0;
}
.overlay-item.wholesale {
  justify-content: center;
  display: flex;
  width: 100%;
}
/* When you mouse over the navigation links, change their color */
.overlay a span,
.overlay a img {
  font-size: 21px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
  /* padding: 7px 12px; */
  border: 2px solid #fff;
}
.overlay a span:hover,
.overlay a img:hover,
.overlay a span.active,
.overlay a img.active {
  border: 2px solid #fff;
}
/* Position the close button (top right corner) */
.overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 60px;
}

.transition-overlay.visible {
  visibility: visible;
  opacity: 1;
  transition: opacity 1s ease-in;
}

.transition-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  position: fixed;
  background: white;
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 1s, opacity 1s ease-in;
}

.transition-overlay img.logo {
  opacity: 0.25;
  height: 40px;
}

/* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */
@media screen and (max-height: 450px) {
  .overlay a {
    font-size: 20px;
  }
  .overlay .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}
