/* remove body scroll on overlay open */
body.no-scroll {
  overflow: hidden;
}

/* overlay newsletter */
.modal-newsletter {
  /* background-color: #c3c3c3; */
  /* padding: 100px 15%; */
  /* display: grid; */
  /* justify-content: center; */
}

/* overlay content (duplicate) */
.overlay-newsletter-container {
  padding: 100px 15%;
}

/* overlay icon */
.jbtn-modal-light {
  background-color: #d8d8d8;
  border-color: #d8d8d8;
}

/* overlay title */
.modal-title-w-icon {
  display: grid;
  justify-items: center;
  align-content: flex-start;
  text-align: center;
  margin-bottom: 50px;
}
.modal-title-w-icon .jbtn-icon {
  margin-bottom: 30px;
}
.modal-title-w-icon h4 {
  margin-bottom: 20px;
}

/* overlay jcard */
.jcard-input {
  background-color: #d8d8d8;
  padding: 8px 30px;
  border-radius: 50px;
}

/* overlay fonts */
form h6 {
  font-size: 8px;
  /* font-weight: 400; */
  margin-bottom: 0;
  color: white;
}

/* form btn container */
.form-btn-container .jbtn {
  margin-top: 40px;
}

/* custom select color */
#overlay-newsletter .input-select {
  background-color: #d8d8d8;
}

/* form privacy label style */
#overlay-newsletter .form-privacy {
  margin-left: 12px;
}

/*  ----- NAVBAR TOGGLE BUTTON ------------------------------------------------------------------------------- */

.toggle-container-newsletter {
  display: flex;
  align-items: center;
}

.toggle-button-newsletter {
  position: relative;
  top: 0.5rem;
  height: 30px;
  width: 35px;
  cursor: pointer;
  z-index: 100;
  transition: opacity 0.25s ease;
}

/* .toggle-button-newsletter .top {
}
.toggle-button-newsletter .middle {
  width: 35px;
}
.toggle-button-newsletter .bottom {
  width: 18px;
}

.toggle-button-newsletter:hover span {
  background: #fff;
}
.toggle-button-newsletter:hover .bottom {
  width: 35px;
} */

.toggle-button-newsletter.active:hover .top {
  background: #fff;
}
.toggle-button-newsletter.active:hover .middle {
  background: #fff;
}
.toggle-button-newsletter.active:hover .bottom {
  background: #fff;
  width: 35px;
}

.toggle-button-newsletter.active {
  z-index: 100;
  position: fixed;
  top: 11px;
  right: 0;
  top: 44px;
  right: 33px;
}

.toggle-button-newsletter.active .top {
  transform: translateY(11px) translateX(0) rotate(45deg);
  background: #fff;
  border-radius: 5px;
}
.toggle-button-newsletter.active .middle {
  transform: translateY(5px) translateX(0) rotate(45deg);
  background: #fff;
  border-radius: 5px;
}
.toggle-button-newsletter.active .bottom {
  transform: translateY(-5px) translateX(0) rotate(-45deg);
  background: #fff;
  border-radius: 5px;
  width: 35px;
}

.toggle-button-newsletter span {
  background: #fff;
  border: none;
  /* height: 3px; */
  height: 1px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.35s ease;
  cursor: pointer;
  border-radius: 5px;
}

.toggle-button-newsletter span:nth-of-type(2) {
  top: 11px;
}
.toggle-button-newsletter span:nth-of-type(3) {
  top: 22px;
}

/* ----- NAVBAR OVERLAY ------------------------------------------------------------------------------- */

.overlay-newsletter {
  position: fixed;
  top: 0;
  right: 0;
  width: 0%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s, width 0.35s;
  overflow: hidden;
  z-index: 4;
  /* display: none; */
}

.overlay-newsletter.open {
  opacity: 1;
  visibility: visible;
  width: 100%;

  /* main grid to split in screen */
  display: grid;
  grid-template-columns: 1fr 40%;
}

/* darken rest of screen */
.overlay-newsletter-background {
  background-color: #000;
  opacity: 0.5;
}

/* content container */
.overlay-newsletter-container {
  min-height: 100vh;
  min-height: 100dvh;

  overflow-y: auto;
  display: grid;
  /* grid-template-rows: auto 1fr; */
  align-content: flex-start;

  background: #c3c3c3;
  /* background: linear-gradient(
      132deg,
      rgb(195, 195, 195) 0%,
      rgb(65, 65, 65) 100%
    ); */

  opacity: 1 !important;
}


/* ----- ANIMATIONS ------------------------------------------------------------------------------- */
/* The @keyframes rule specifies the animation code , more info: https://www.w3schools.com/cssref/css3_pr_animation-keyframes.asp */

@keyframes fadeInRight {
  0% {
    opacity: 0;
    left: 20%;
  }
  100% {
    opacity: 1;
    left: 0;
  }
}
@keyframes fadeInLeft {
  0% {
    opacity: 0;
    right: 20%;
  }
  100% {
    opacity: 1;
    right: 0;
  }
}


/* ----- MEDIA QUERIES ------------------------------------------------------------------------------- */
@media (max-width: 1150px) {
  /* 50% screen nav */
  .overlay-newsletter.open {
    grid-template-columns: 1fr 50%;
  }
}
@media (max-width: 900px) {
  /* full screen nav */
  .overlay-newsletter.open {
    grid-template-columns: 1fr;
    overflow-y: hidden !important;
  }
  /* remove dark bg */
  .overlay-newsletter-background {
    display: none;
  }
}
@media (max-width: 576px) {
  /* overlay content */
  .overlay-newsletter-container {
    padding: 100px 10%;
  }
  /* move up toggle and title (nav top) */
  .toggle-button-newsletter.active {
    top: 35px;
  }
}
@media (max-width: 400px) {
  /* input custom style */
  .input,
  .input-select {
    padding-left: 0;
  }
  /* overlay content */
  .overlay-newsletter-container {
    padding: 100px 30px;
  }
}
@media (max-width: 300px) {
  /* overlay content */
  .overlay-newsletter-container {
    padding: 100px 15px;
  }
}
