* {box-sizing: border-box;}
body {margin:0; font-family: "Minion Pro", serif; color: #4b4b4b; font-size: 18px;}
.wrap {max-width: 1600px; margin: 0 auto; padding: 0 10px;}

html {background: #dafff8;}
body {
    opacity: 1;
    transition: 1s opacity;
    background: #fcfcfc;
}
body.fade-out {
    opacity: 0;
    transition: none;
}

header {background-color: #dafff8; font-style: italic; overflow: auto; border-bottom: 2px solid #eee;}
header h1 {float: left; margin: 60px 0; font-size: 36px; line-height: 18px;}
h1 a {text-decoration: none; color: #4b4b4b; transition: all 0.3s ease-in;}
h1 a:hover {opacity: 0.6;}
header nav {float: right; font-size: 18px;}
header nav ul {list-style-type: none; margin: 60px 0; padding: 0;}
header nav ul li {display: inline-block; margin-left: 20px; color: #717171;}

.cl-effect-3 a {
	color: #717171;
	position: relative;
	padding: 0 0 4px 0;
	text-decoration: none;
	-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
	-moz-transition: opacity 0.3s, -moz-transform 0.3s;
	transition: opacity 0.3s, transform 0.3s;
}

.cl-effect-3 a:hover {
	opacity: 0.5;
}

.cl-effect-3 a::after {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	height: 2px;
	background: rgba(0,0,0,0.3);
	content: '';
	opacity: 0;
	-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
	-moz-transition: opacity 0.3s, -moz-transform 0.3s;
	transition: opacity 0.3s, transform 0.3s;
	-webkit-transform: translateY(10px);
	-moz-transform: translateY(10px);
	transform: translateY(10px);
}

 .cl-effect-3 a:hover::after,
.cl-effect-3 a:focus::after {
	opacity: 1;
	-webkit-transform: translateY(0px);
	-moz-transform: translateY(0px);
	transform: translateY(0px);
}


figure {margin: 0 auto; display: inline-block; position: relative; clear: both;}
header figure {left: 50%; transform: translateX(-50%);}
figure img {display: block;}
figcaption {margin-left: 10px; margin-top: 10px; display: inline-block;}
figcaption strong {text-transform: uppercase;}
figcaption small {font-size: 16px; color: #8a8a8a;}
header p {font-size: 40px; line-height: 54px; max-width: 930px; margin: 340px auto; text-align: center;}
header p a {font-size: 18px; color: #797979; text-transform: uppercase; text-decoration: none;}

/* Homepage */ 
main {padding-bottom: 180px; background: #fcfcfc; overflow: auto;}
main figure {margin: 180px 0 0 0;}

.my-aotearoa, .illusion {position: absolute; bottom: 0; right: -160px; margin: 0; transform: rotateZ(-90deg) translateX(50%);}
.on-the-prowl {position: absolute; right: 0; margin-right: 10px; text-align: right;}
.silhouette {position: absolute; bottom: 0; left: -160px; margin: 0; transform: rotateZ(-90deg) translateX(50%);}
.lord-of-the-jungle {position: absolute; right: 0; margin-right: 10px; text-align: right;}

/* About */
#about > .wrap {max-width: 1000px; padding: 80px 20px;}
img {display: block; margin: 0 auto;}

/* Purchase */
#purchase > .wrap {max-width: 1400px;}
#purchase .sale-item {border-bottom: 1px solid #ddd; display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; padding: 80px 0;}
#purchase .sale-item:last-of-type {border-bottom: 0;}
.sale-item > span {width: 30%; order: -1;}
.sale-item > b {width: 20%; text-align: center; font-size: 20px; font-weight: lighter; color: #666;}

#lightbox {
    position:fixed; /* keeps the lightbox window in the current viewport */
    top:0; 
    left:0; 
    width:100%;
    height:100%; 
    background:rgba(252, 252, 252, 0.75); 
    text-align:center;
    display: flex;
    flex-direction: column;
    flex-wrap: no-wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
}
#lightbox p {
    color:#000; 
    font-size:14px; 
    font-style: italic;
}
#lightbox img {
    max-width:940px;
    width: 100%;
}

/* Contact */
#contact > .wrap {max-width: 1000px; padding: 80px 20px;}

#form {width: 100%;}
form {max-width: 1000px; margin: 0 auto; padding: 0 20px;}
label {font-family: sans-serif; font-size: 12px; text-transform: uppercase; display: block; margin: 10px 0;}
input, textarea {font-family: sans-serif; padding: 20px; -webkit-appearance: none; border: 2px solid #ddd; display: block; margin: 0; font-size: 16px; background: #fff; border-radius: 5px;}
input {float: left; width: calc(50% - 20px); margin: 40px 0;}
input:focus, textarea:focus {outline: none; border: 2px solid #a6ffe4;}
textarea {width: 100%; height: 14em; margin: 40px 0;}
input[type=name] {margin-right: 20px;}
input[type=email] {margin-left: 20px; float: right;}
input[type=submit] {float: none; width: 10em; background: #ffa575; border: 0; border-radius: 40px; margin: 0 auto; display: block; cursor: pointer; color: #fff; transition: all 0.3s ease-in; font-weight: 600; }
input[type=submit]:hover {background: #ffc5a6; color: #fff;}

footer {background: #fcfcfc; padding: 40px 0; text-align: center; font-size: 16px; border-top: 2px solid #eee; color: #999;}
footer ul {margin: 0; list-style-type: none;}
footer ul li {display: inline; margin: 0 4em;}

main a, main a:visited, footer a, footer a:visited {color:#FF7593; transition: all 0.3s ease-in;}
main a:hover, main a:active, footer a:hover, footer a:active {color: #FFA6BB;}

#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 9999;
    width: 32px;
    height: 32px;
    text-align: center;
    line-height: 30px;
    background: #f5f5f5;
    color: #444;
    cursor: pointer;
    border: 0;
    border-radius: 2px;
    text-decoration: none;
    transition: opacity 0.2s ease-out;
    opacity: 0;
}
#back-to-top:hover {
    background: #e9ebec;
}
#back-to-top.show {
    opacity: 1;
}

@media (max-width: 1400px){
header p {margin: 200px auto;}
.my-aotearoa, .illusion {position: relative; right: -10px; transform: none;}
.silhouette {position: relative; left: 10px; transform: none;}
}

@media (max-width: 940px){
header h1 {font-size: 22px; margin: 40px 0;}
header nav ul {margin: 40px 0 20px 0;}
header p {font-size: 32px; line-height: 46px; padding: 0 25px; margin: 140px auto;}

#about img {width: 100%; max-width: 500px;}

textarea {margin-bottom: 20px;}
input {float: none; width: 100%; margin: 0 0 20px 0;}
}

@media (max-width: 780px){
.sale-item > span {order: 2; display: block; width: 100%; text-align: center; padding: 15px 0;}
.sale-item > b {order: 3; display: block; width: 100%;}
}

@media (max-width: 400px){
header nav ul {margin: 0 0 20px 0;}
input[type=submit] {border-radius: 0; width: 100%;}
}