/*

 Theme Name:   Practical

 Theme URI:    https://generatepress.com

 Description:  Child theme built for Practical

 Author:       Leaders in Digital Media

 Author URI:   https://leadersindigitalmedia.com

 Template:     generatepress

 Version:      0.1

*/


.popup-intro {
    color: #000000;
    font-size: 16px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
	line-height: 1.3em;
	margin-bottom: 10px;
}

.popup-title {
    color: #000000;
    font-size: 19px;
    font-weight: bold;
    line-height: 1.1em;
    letter-spacing: 0.1px;
}

@media(min-width: 768px){
	.popup-title {
    font-size: 30px;
}
	.popup-intro {
    font-size: 18px;
}
}

body.popup-open {
  overflow: hidden;
}


body.popup-open::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 9998;
}



.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  visibility: hidden;
  width: 650px;
  height: 550px;
  border-radius: 20px;
  overflow: hidden;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0s linear 0.3s;
}

.popup-content {
  padding: 20px;
  overflow-y: auto;
  height: 100%;
}

@media (min-width: 768px) {
	.popup-content {
  padding: 40px;
}
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  background: transparent;
  border: none;
  font-size: 40px;
  cursor: pointer;
  z-index: 10000;
  padding: 0;
  line-height: 40px;
}

@media (min-width: 768px) {
    .close-popup {
      top: 20px;
      right: 30px;
  }
}


.popup.hidden {
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0s linear 0.3s;
}

.popup.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0s linear 0s;
}

@media (max-width: 768px) {
  .popup {
    width: 90%;
    height: auto;
    max-height: 90%;
  }

  .popup-content {
    overflow-y: auto;
		overflow-x: hidden;
  }
}