/* OVERLAYS */
body.overlay-up {
  overflow: hidden;
}
.popup-link {
  font-weight:700;
  cursor:pointer;
}
.popup-link:hover {
  text-decoration:underline;
}
.overlay {
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:125;
  display:none;
}
.overlay .panel {
  background:white;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
  z-index:10;
  width:870px;
  position:fixed;
  padding:28px 41px 46px;
  overflow:auto;
  height:636px;
}
.overlay .bg {
  background:rgba(0,0,0,0.6);
  width:100%;
  height:200%;
  z-index:0;
  position:absolute;
  top:0;
  left:0;
}
.overlay-close {
  position:absolute;
  top:20px;
  right:20px;
  padding:5px;
}
.overlay h2 {
  margin:0 0 28px 0;
  color:#007493;
  font-size:26px;
}
.overlay p {
  font-family:'TitilliumWeb';
  margin-bottom:25px;
}
.overlay .validation-errors p {
  margin-bottom:15px;
}
.overlay .close-btn {
  cursor:pointer;
}
.overlay textarea {
  resize:none;
  width:700px;
  height:201px;
  margin-bottom:30px;
}
.overlay .inputColumn {
  width: 50%;
}
.overlay .inputColumn input {
  width: 95%;
}
.overlay #feedback-form {
  width:700px;
  margin:0 auto;
}
.overlay #feedback-popup p {
  font-size:15px;
}
.overlay #feedback-popup h2 {
  margin:16px 0 0 0;
}
#feedback-btn {
  transform: rotate(90deg);
  width:170px;
  height:40px;
  border-radius:0 0 15px 0;
  background-color:#064D99;
  font-size:18px;
  font-weight:700;
  line-height:40px;
  color:white;
  position:fixed;
  right:-65px;
  top:260px;
  cursor:pointer;
  z-index:100;
}
#feedback-btn::before {
  border-radius:0 0 15px 0;
}
#feedback-btn:hover {
  text-decoration:none;
}
#feedback-popup h2, #whatsnew-popup h2 {
  margin-top:16px;
  margin-bottom:0;
}
#feedback-popup p, #whatsnew-popup p {
  font-size:15px;
  margin-top:8px;
}
#whatsnew-content div{
  margin:8px 2px;
}
#whatsnew-content ul{
  margin:4px;
}

#logo-popup .panel.logo {
  overflow: hidden;
}

#logo-popup #preview-img {
  background-image: linear-gradient(#AAA, #FFF);
  border: 0px;
  text-align:center;
  padding:15px 0;
  margin:25px 0 35px;
  height:375px;
  line-height: 330px;
}

#logo-popup .editBall {
  width: 5px;
  height: 5px;
  border-radius: 10px;
  background-color: white;
  position: absolute;
  pointer-events: none;
  box-shadow: 0 1px 1px rgba(0,0,0,.2);
}

.upLeft {
  top: 0px;
  left: 0px;
  transform: translate(-50%, -50%);
}
.upRight {
  top: 0px;
  right: 0px;
  transform: translate(50%, -50%);
}
.downLeft {
  bottom: 0px;
  left: 0px;
  transform: translate(-50%, 50%);
}
.downRight {
  bottom: 0px;
  right: 0px;
  transform: translate(50%, 50%);
}
#logo-popup #videoWrapper {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  top: 0px;
  height: 100%;
  margin: auto;
  box-shadow: 0 1px 1px rgba(0,0,0,.2);
}

#videoWrapper video {
  opacity: .9;
}

#embedLogoWrapper {
  position: absolute;
  top: 0px;
  left: 0px;
  width: auto;
  height: auto;
  box-sizing: border-box;
  border: 1px solid white;
  box-shadow: 0 1px 1px rgba(0,0,0,.2);
}

#embedLogo {
  top: 0px;
  left: 0px;
  max-width: 100%;
  max-height: 100%;
}

.lines {
  border: 1px solid rgba(255,255,255, .5);
}

.horizontal {
  height: 33.3%;
  width: 100%;
  top: 50%;
  transform: translate(0, -50%);
  position: absolute;
  box-sizing: border-box;
}

.vertical {
  width: 33.3%;
  height: 100%;
  left: 50%;
  top: 0px;
  transform: translate(-50%, 0);
  position: absolute;
  box-sizing: border-box;
  border-top: 0px;
  border-bottom: 0px;
}

#logoForm {
  display: none;
}



#preview-popup #preview-img {
  border: solid 1px #e4e6e8;
  text-align:center;
  padding:15px 0;
  margin:25px 0 35px;
  height:375px;
  line-height: 330px;
  overflow: auto;
}

#preview-content {
  height: 380px;
  overflow-y: auto;
  margin-bottom: 20px; 
  border: solid 1px #e4e6e8;
}

#preview-content #preview-img {
  border: 0px;
  margin: 0px;
  padding: 0;
  width: 100%;
}

#preview-popup #preview-img iframe {
  vertical-align:middle;
}
#preview-popup #preview-img img {
  max-height:100%;
  max-width:100%;
  vertical-align: middle;
}
#preview-popup .btn-container .button {
  margin:0 10px;
}
.overlay ul {
  margin-top:-20px;
}
.overlay ul li {
  font-family: 'TitilliumWeb';
}
.overlay ul li a {
  color:#00bcc5;
}
#whatsnew-popup .button {
  display:block;
  margin:0 auto;
  width:131px;
}
#whatsnew-popup a {
  color:#00bcc5;
}

@media only screen and (max-height: 600px),  only screen and (max-width: 800px) {

  #logo-popup .innerWrapper {
    width: 99vw;
    height: 99vh;
    overflow: auto;
  }

  #logo-popup .innerInnerWrapper {
    min-width: 800px;
    min-height: 600px;
  }

  .overlay-close {
    right: 30px;
  }

  .overlay .panel {
    background:white;
    left:0px;
    top: 0px;
    transform: translate(0%, 0%);
    width: 100%;
    height: 100%;
    padding:10px 10px 10px;
  }

  #logo-popup #preview-img {
    margin: 0 0 0 0;
    width: 700px;
  }

  #logo-popup p {
    max-width: 80vw;
  }

  #logo-popup .btn-container {
    margin-top: 5px;
    display: block;
    width: 700px;
    height: 100px;
  }
}
