/* The Modal (background) */
.modal {
  display: none;/* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 10; /* Sit on top */
  /*padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  display: none;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  margin: 0;
  font-size: 1.2rem;
  
  position: relative;
  top: 200px;
  margin: auto;
  /*
  position: absolute;
  top: 5%;
  left: 10%;
  */
  max-height: 80%;
  overflow:scroll;
  
  
  /*
  top: 40%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  */
  
  /*
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
  */
}

/* The Close Button */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* ----- FILE UPLOAD ----- */

#copylink {
	display: inline-block;
}
#copylink:hover {
	cursor: pointer;
}
.tooltiptext {
  visibility: hidden;
  width: 140px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 25%;
  /*left: 72%;*/
  margin-left: -75px;
  opacity: 0;
  transition: opacity 0.3s;
}
.tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}
#copylink:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {top:-300px; opacity:0} 
  to {top:0; opacity:1}
}

@keyframes animatetop {
  from {top:-1000px; opacity:0}
  to {top:0; opacity:1}
}

/* ----- RWD ----- */

@media screen and (max-width: 600px) {
	.modal-content {
		width: 80% !important;
		margin-top: 80px;
		top: 20px;
	}
}
