* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial;
}

div.gallery {
  border: 1px solid #ccc;
}

div.gallery:hover {
  border: 1px solid #777;
}

div.gallery img {
  width: 100%;
  height: auto;
}

div.desc {
  padding: 15px;
  text-align: center;
}

.responsive {
  padding: 0 6px;
  float: left;
  width: 24.99999%;
}

@media only screen and (max-width: 1500px) {
  .responsive {
    width: 49.99999%;
    margin: 6px 0;
  }
}

@media only screen and (max-width: 1000px) {
  .responsive {
    width: 100%;
  }
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

@media only screen and (orientation:landscape) {

		textarea {
		font: 'lucida sans', 'trebuchet MS', 'Tahoma';
		font-size: 125%;
		}

		.container-external {
		width: 80%;
		margin: 1px 0;
		}

		.container-external2 {
		width: 40.99999%;
		margin: 1px 0;
		}

		.header {
		font-size: large;
		margin-bottom: 50px;
		/* max-width: 40%; */
		margin: 0px auto;
    margin-top: 20px;
    margin-bottom: 20px;
		}

		.cbx{
		width: 25%;
		min-height: 40px;
		margin-top: 15px;
		font: 15px 'lucida sans', 'trebuchet MS', 'Tahoma';
    margin-bottom: 20px;
    margin-left: 10px;
		}

    .dropbtn {
		width: 20%;
		min-height: 40px;
		margin-top: 35px;
		font: 15px 'lucida sans', 'trebuchet MS', 'Tahoma';
		}

    .dropdown-content {
      display: none;
      max-width: 20%;
      box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
      z-index: 1;
    }

		.cbx2 {
		width: 65%;
		min-height: 40px;
		margin-top: 30px;
		margin-bottom: 20px;
		font: 15px 'lucida sans', 'trebuchet MS', 'Tahoma';
		}

		.links {
		font-weight: bold;
		margin-bottom: 20px;
		}

		.results {
		margin-top: 1px;
		margin-bottom: 1px;
		min-height: 20px;
		}

		.hiddenStuff {
		margin-top: 20px;
		margin-bottom: 20px;
		font:  'lucida sans', 'trebuchet MS', 'Tahoma';
		min-height: 400px;
		width: 99%;
		}

		.blockStuff {
		margin-top: 20px;
		margin-bottom: 20px;
		font:  'lucida sans', 'trebuchet MS', 'Tahoma';
		min-height: 200px;
		width: 99%;
		}

		.preview {
		font-size: 150%;
		margin-top: 50px;
		margin-bottom: 50px;
		}

		#copyButton{
		font: 16px 'lucida sans', 'trebuchet MS', 'Tahoma';
		min-height: 50px;
		width: 20%;
		margin-bottom: 25px;
		}

		#copyButton2{
		font: 16px 'lucida sans', 'trebuchet MS', 'Tahoma';
		min-height: 50px;
		width: 20%;
		margin-bottom: 25px;
		}

		#genButton{
		font: 16px 'lucida sans', 'trebuchet MS', 'Tahoma';
		min-height: 50px;
		width: 20%;
		}

		#showButton{
		font: 16px 'lucida sans', 'trebuchet MS', 'Tahoma';
		min-height: 50px;
		width: 20%;
		}
		}

	@media only screen and (orientation:portrait) {

		textarea {
		font-family: inherit;
		font-size: 100%;
		}

		textarea:placeholder-shown {
		font-size: 100%;
		}

		.links {
		margin-top: 20px;
		margin-bottom: 50px;
		font-size: 20px;
		}

		.container-external {
		width: 95%;
		margin-top: 20px;
		height: 100%;
		}

		.container-external2 {
		width: 90%;
		font-size: 18px;
		}

		.results {
		margin-top: 1px;
		margin-bottom: 1px;
		}

		div.desc {
		font-size: 20px;
		}

		.preview {
		font-size: 150%;
		margin-top: 10px;
		margin-bottom: 50px;
		}

		.header {
		width: 90%;
		font-size: x-large;
		margin-top: 0px;
        margin: 0px auto;
		}

		.cbx{
		margin-top: 30px;
		font: 16px 'lucida sans', 'trebuchet MS', 'Tahoma';
		width: 80%;
		min-height: 50px;
		}

    .dropbtn {
     margin-top: 30px;
     font: 16px 'lucida sans', 'trebuchet MS', 'Tahoma';
     width: 80%;
     min-height: 50px;
     }

		.cbx2 {
		margin-top: 30px;
		font: 16px 'lucida sans', 'trebuchet MS', 'Tahoma';
		width: 80%;
		min-height: 50px;
		}

		.hiddenStuff {
		margin-top: 20px;
		font:  'lucida sans', 'trebuchet MS', 'Tahoma';
		min-height: 220px;
		width: 90%;
		}

		.blockStuff {
		margin-top: 20px;
		font:  'lucida sans', 'trebuchet MS', 'Tahoma';
		min-height: 220px;
		width: 90%;
		}
		#copyButton{
		font-size: 120%;
		font: 'lucida sans', 'trebuchet MS', 'Tahoma';
		min-height: 50px;
		width: 60%;
		margin-top: 20px;
		}
		#copyButton2{
		font-size: 120%;
		font: 'lucida sans', 'trebuchet MS', 'Tahoma';
		min-height: 50px;
		width: 60%;
		margin-top: 20px;
		}
		#genButton{
		font-size: 120%;
		font: 'lucida sans', 'trebuchet MS', 'Tahoma';
		min-height: 50px;
		width: 60%;
		}
		#showButton{
		font-size: 120%;
		font: 'lucida sans', 'trebuchet MS', 'Tahoma';
		min-height: 50px;
		width: 60%;
		}
		}

		.container-external {
			max-width: 95%;
            margin: 0px auto;
		}

		.container-external2 {
            margin: 0px auto;
            margin-top: 50px;
		}

		.container-external3 {
			max-width: 95%;
			margin: 0px auto;
		}

		.preview {
			text-align: left;
			margin-bottom: 20px;
		}
		.header {
			text-align: center;
			font-weight:bold;
		}
		.links {
			text-align: center;
		}
		.cbx{
		padding: 10px 5px;
		border: 1px solid #a4c3ca;
		background: #f1f1f1;
		border-radius: 5px;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) inset, 0 1px 0 rgba(255, 255, 255, 1);
		}
    .dropbtn {
		padding: 10px 5px;
		border: 1px solid #a4c3ca;
		background: #f1f1f1;
		border-radius: 5px;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) inset, 0 1px 0 rgba(255, 255, 255, 1);
		}
    .dropdown-content {
      display: none;
      max-width: 20%;
      box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
      z-index: 1;
    }
		.cbx2 {
		padding: 10px 5px;
		border: 1px solid #a4c3ca;
		background: #f1f1f1;
		border-radius: 5px;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) inset, 0 1px 0 rgba(255, 255, 255, 1);
		}

		.hiddenStuff {
		padding: 10px 5px;
		border: 1px solid #a4c3ca;
		background: #f1f1f1;
		border-radius: 5px;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) inset, 0 1px 0 rgba(255, 255, 255, 1);
		}

		.blockStuff {
		padding: 10px 5px;
		border: 1px solid #a4c3ca;
		background: #f1f1f1;
		border-radius: 5px;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) inset, 0 1px 0 rgba(255, 255, 255, 1);
		}

		.hiddenStuff {
		display: none;
		}

		#headerPopup{
		width:75%;
		margin:0 auto;
		margin-top: 0px;
		}

		#headerPopup iframe{
		width:100%;
		margin:0 auto;
		}

		#copyButton{
		font-weight: bold;
		}

		#copyButton2{
		font-weight: bold;
		}

		#genButton{
		font-weight: bold;
		margin-top: 20px;
		}

		#showButton{
		font-weight: bold;
		margin-top: 20px;
		}

#fade {
  display: none;
  position: fixed;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  background-color: black;
  z-index: 1001;
  -moz-opacity: 0.8;
  opacity: .80;
  filter: alpha(opacity=80);
}
#light {
  display: none;
  position: absolute;
  top: 5%;
  left: 5%;
  max-width: 90%;
  border: 2px solid #FFF;
  background: #FFF;
  z-index: 1002;
  overflow: visible;
}
#boxclose {
  float: right;
  cursor: pointer;
  color: #fff;
  border: 1px solid #AEAEAE;
  border-radius: 3px;
  background: #222222;
  font-size: 31px;
  font-weight: bold;
  display: inline-block;
  line-height: 0px;
  padding: 11px 3px;
  position: absolute;
  right: 2px;
  top: 2px;
  z-index: 1002;
  opacity: 0.9;
}
.boxclose:before {
  content: "×";
}
#fade:hover ~ #boxclose {
  display:none;
}
.test:hover ~ .test2 {
  display: none;
}

body {
    font-family: Calibri,Candara,Segoe,Segoe UI,Optima,Arial,sans-serif;
    text-align: center;
}
/* div {
    display: inline-block;
} */

#table {
    display: block;
    margin-top: 20px;
}
th, td {
    /* border: 1px solid black; */
    padding: 5px;
}
#partnerids{
  min-width: 49%;
}
#offerids{
  min-width: 49%;
}
.massApprove{all:unset;}

.container-templates {
  max-width: 65%;
  margin: 0px auto;
}

