/* FONTS */

@font-face {
    font-family: 'Mind Meridian Regular';
    src: url('../fonts/MindMeridian-Regular.woff2') format('woff2'),
        url('../fonts/MindMeridian-Regular.woff') format('woff'),
        url('../fonts/MindMeridian-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mind Meridian Bold';
    src: url('../fonts/MindMeridian-Bold.woff2') format('woff2'),
        url('../fonts/MindMeridian-Bold.woff') format('woff'),
        url('../fonts/MindMeridian-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* MOBILE STYLES */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 1256px;
    padding: 0 15px;
    margin: 0 auto;
}

/* TYPOGRAPHY */

body {
    font-family: 'Mind Meridian Regular';
}

h1,
h2,
h3,
h4,
h5,
a,
.intro-bold,
.label,
.small-body-bold {
    font-family: 'Mind Meridian Bold';
}

h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

h3 {
    font-size: 26px;
    color: #1300c1;
}

.intro,
.intro-bold,
.label {
    font-size: 18px;
}

.body {
    font-size: 16px;
    line-height: 24px;
    color: #484556;
}

.small-body,
.small-body-bold {
    font-size: 16px;
}

/* BUTTONS */

a {
    text-decoration: none;
    color: #1300c1;
}

.btn {
    display: inline-block;
    font-size: 21px;
    padding: 17px 23px;
    border-radius: 6px;
    margin: 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all .25s ease;
}

.btn-pink {
    background-color: #ffcdd9;
}

.btn-pink:hover {
    background-color: #F29FB2;
}

.btn-green {
    background-color: #71f5c4;
}

.btn-green:hover {
    background-color: #79EEB5;
}

/* ARROWS */

#carousel-arrows {
    position: relative;
    width: 100%;
}

.btn-arrow {
    position: absolute;
    background-color: #9DA8FF;
    padding: 10px;
    border-radius: 6px;
    z-index: 2000;
    transition: all .25s ease;
    cursor: pointer;
}

.btn-arrow:hover {
    background-color: #A4F7D9;
}

.btn-arrow img {
    position: relative;
    width: 20px;
    height: 20px;
    vertical-align: text-bottom;
}

#arrow-1 {
    top: 330px;
    left: 10px;
}

#arrow-2 {
    top: 330px;
    right: 10px;
    -moz-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    filter: FlipH;
    -ms-filter: "FlipH";
}

/* HEADER */

header {
    position: relative;
    width: 100%;
    height: auto;
    border-bottom: 2px solid #1300C1;
    padding: 15px 0;
}

#header-brand {
    text-align: left;
}

#logo {
    width: 100px;
}

#header-buttons {
    width: 100%;
    text-align: center;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

#header-buttons .btn {
    width: calc(50% - 5px);
    padding: 11px 26px;
    font-size: 16px;
}

/* BLUE BANNER */

.blue-banner {
    width: 100%;
    color: #ffffff;
    background-color: #1300C1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.blue-banner p {
    width: 100%;
    max-width: 800px;
    padding: 5px 0;
}

.blue-banner .btn {
    margin-top: 20px;
}

/* TREES */

#trees-section {
    width: 100%;
    max-width: 1256px;
    margin: 30px auto 0 auto;
    background: url(../images/trees-bg.jpg) no-repeat center top; 
    -webkit-background-size: inherit;
    -moz-background-size: inherit;
    -o-background-size: inherit;
    background-size: inherit;
    overflow-x: hidden;
    background-position: -430px -55px;
}

#trees-container {
    position: relative;
    width: 100%;
    max-width: 1600px;
    height: 520px;
    margin: 0 auto;
}

.trees-section {
    position: relative;
}

.treeContainer {
    position: absolute;
    display: block;
    transition: visibility 0.3s, opacity 0.5s linear;	
    cursor: pointer;
    pointer-events: none;
}

.name {
    width: 100%;
    top: 0;
    text-align: center;
}

.message {
    position: absolute;
    width: 100%;
    max-width: 260px;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffcdd9;
    color: #282538;
    text-align: center;
    padding: 20px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 14px 28px, rgba(0, 0, 0, 0.15) 0px 10px 10px;
    transition: visibility 0.3s, opacity 0.5s linear;
    border-radius: 6px;    
}

.treeContainer .label {
    display: inline;
    color: #1300C1;
    background: #FFFFFFE6 0% 0% no-repeat padding-box;
    padding: 2px 12px;
    border-radius: 6px;
    transition: all .15s ease;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
}

.treeContainer:hover .label {
    background: #ffffff;
    border: 3px solid #1300c1;
}

.treeContainer .label:hover {
    background: #ffffff;
    border: 3px solid #1300c1;
}

.treePosition0 .label {
    font-size: 25px;    
}

@-webkit-keyframes fadeIn {
    0% {
        -webkit-opacity: 0;
        -webkit-margin-top:8px;
    }
    100% {
        -webkit-opacity: 1;
        -webkit-margin-top:0px;
    }
}

@keyframes fadeIn {
    0% {
        opacity:0;
        margin-top:8px;
    }
    100% {
        opacity:1;
        margin-top:0px;
    }
}

.tree {
    position: absolute;
    width: inherit;
    height: 100%;
    left: 0;
    top: 20px;
    background-position: center;	
    background-repeat: no-repeat;	
    background-size: auto 100%;	    
    animation:fadeIn 0.5s linear;
   
}

.clickableTree {
    height:calc( 100% - 1em );
    width:50%; /* override */
    margin:1em auto 1em auto;
    /*background-color:rgba(255,255,255,0.5); /* testing */
    pointer-events:auto;
}
.treePosition0 .tree .clickableTree {
    width:80%;
}
.treePosition1 .tree .clickableTree {
    width:30%;
}
.treePosition2 .tree .clickableTree {
    width:45%;
}
.treePosition3 .tree .clickableTree {
    width:30%;
}
.treePosition4 .tree .clickableTree {
    width:30%;
}
.treePosition5 .tree .clickableTree {
    width:46%;
}
.treePosition6 .tree .clickableTree {
    width:20%;
}
.treePosition7 .tree .clickableTree {
    width:28%;
}

.treePosition0 .tree {
    background-size: auto 120%;	
    animation: secondtree 1s linear 1 both;
    animation-delay: 7s;
}

@-webkit-keyframes secondtree {
    0% {
        -webkit-background-image: url(../images/growingtreeNO-LOOP.gif);
    }
    100% {
        -webkit-background-image: url(../images/GrowingTreeLoop[50].gif);
    }
}

@keyframes secondtree {
    0% {
        background-image: url(../images/growingtreeNO-LOOP.gif);
    }
    100% {
        background-image: url(../images/GrowingTreeLoop[50].gif);
    }
}

.treePosition1 .tree {
    background-image: url(../images/tree-1.gif);
}


.treePosition2 .tree {
    background-image: url(../images/tree-2.gif);
    background-size: auto 140%;	
}

.treePosition3 .tree {
    background-image: url(../images/tree-3.gif);
    background-size: auto 115%;	
}

.treePosition4 .tree {
    background-image: url(../images/tree-1.gif);
    -moz-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    filter: FlipH;
    -ms-filter: "FlipH";
}

.treePosition5 .tree {
    background-image: url(../images/tree-2.gif);
    background-size: auto 140%;	
}

.treePosition6 .tree {
    background-image: url(../images/BESTTREELOOP.gif);
}

.treePosition7 .tree {
    background-image: url(../images/BESTTREELOOP.gif);
    -moz-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    filter: FlipH;
    -ms-filter: "FlipH";
}

/* TREES POSITIONS */

/* Main Tree */

.treePosition0 {
    top: 150px;
    width: 310px;				
    height: 400px;
    margin: 0 auto;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Trees -  Right */

.treePosition1 {
    top: 300px;
    left: 0px;
    width: 310px;				
    height: 200px;
    z-index: 800;
    visibility: hidden;
    opacity: 0;
}

.treePosition2 {
    top: 340px;
    left: 10px;
    width: 310px;				
    height: 220px;
    z-index: 900;
    visibility: hidden;
    opacity: 0;
}

.treePosition3 {
    top: 270px;
    left: 10px;
    width: 310px;				
    height: 210px;
    visibility: hidden;
    opacity: 0;
}

/* Trees - Left */

.treePosition4 {
    top: 250px;
    right: 10px;
    width: 310px;				
    height: 200px;
    visibility: hidden;
    opacity: 0;
}

.treePosition5 {
    top: 350px;
    right: 10px;
    width: 310px;				
    height: 220px;
    z-index: 800;
    visibility: hidden;
    opacity: 0;
}

.treePosition6 {
    top: 230px;
    right: 0px;
    width: 310px;				
    height: 100px;
    visibility: hidden;
    opacity: 0;
}

.treePosition7 {
    top: 300px;
    right: 0px;
    width: 310px;				
    height: 150px;
    visibility: hidden;
    opacity: 0;
}

/* CLOUDS */

#clouds-container {
    position: relative;
    width: 100%;
}

.cloud {
    position: absolute;
    transition: visibility 0.3s, opacity 0.5s linear;

}

#cloud-1 {
    left: 200px;
    width: 230px;
    top: -40px;
    animation: cloud1 120s linear infinite;
}

#cloud-2 {
    left: 60px;
    width: 150px;
    top: 50px;
    animation: cloud2 120s linear infinite;
}

/* @keyframes cloud1 {
    0% {
        transform: translateX(0px);
    }
    100% {
        transform: translateX(1600px);
    }
} */

/* @keyframes cloud2 {
    0% {
        transform: translateX(0px);
    }
    100% {
        transform: translateX(1300px);
    }
} */

#cloud-3 {
    animation: cloud2 120s linear infinite;
    right: 280px;
    width: 230px;
    top: 0px;
    visibility: hidden;
    opacity: 0;
}

#cloud-4 {
    animation: cloud2 120s linear infinite;
    left: 400px;
    width: 150px;
    top: 80px;
}

#cloud-5 {
    animation: cloud2 120s linear infinite;
    right: 100px;
    width: 140px;
    top: 0px;
    visibility: hidden;
    opacity: 0;
}

/* SOCIAL STRAP */

#social-strap {
    position: relative;
    width: 100%;
    height: auto;
    background-color: #ffcdd9;
    text-align: center;
    padding: 10px;
    margin-top: 30px;
}

.social-item {
    display: inline-block;
    vertical-align: middle;
    padding: 10px 0;
}

.social-icon {
    padding-left: 12px;
}

/* ONWARD BLOCKS */

#onward-blocks {
    position: relative;
    width: 100%;
    height: auto;
    margin: 30px 0;
    text-align: center;
}

.onward-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
    vertical-align: top;
}

.onward-item img {
    width: 100%;
    max-width:100%;
    max-height:100%;
}

.onward-component {
    padding: 10px 0;
}

.onward-component img {
    width: 100%;
    object-fit: cover;
    max-height: 220px;
}

.onward-component .btn {
    margin-left: 0;
}

/* FOOTER */

footer {
    position: relative;
    width: 100%;
    background-color: #1300c1;
    padding: 40px 0;
    text-align: center;
    color:#ffffff;
}

.footer-container {
    display: flex; 
    flex-direction: column;
}

.footer-logo {
    padding-top: 30px;
    order: 2;
}

.footer-logo img {
    width: 180px;
}

.footer-text {
    order: 1;
}

.footer-text p#wpnc__link {
    margin-top: 15px;
}

.footer-text p#wpnc__link a {
    color: white;
    cursor: pointer;
    text-align: left;
}

/* DESKTOP & TABLET STYLES */

@media only screen and (min-width: 600px) {

    h1 {
        font-size: 42px;
        margin-bottom: 20px;
    }
    
    h3 {
        font-size: 30px;
    }    

    .intro,
    .intro-bold {
        font-size: 24px;
    }

    .label {
        font-size: 20px;
    }

    .body {
        font-size: 18px;
        line-height: 26px;
    }

    header .container {
        display: flex;
        justify-content: space-between;
    }

    #header-brand {
        display: flex;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
    }

    #header-buttons {
        -webkit-box-pack: end;
        -ms-flex-pack: end;
        justify-content: flex-end;
        width: auto;
    }

    #header-buttons .btn {
        width: auto;
        margin: 0 8px;
        font-size: 21px;
        padding: 17px 23px;
    }

    #logo {
        width: 190px;
    }

    #blue-banner {
        height: 250px;
    }

    #onward-blocks {
        margin: 40px 0;
    }

    .onward-item {
        max-width: 535px;
        margin: 0 auto;
    }

    .btn-arrow {
        padding: 15px;
    }
    
    .btn-arrow img {
        width: 25px;
        height: 25px;
    }

    #arrow-1 {
        top: 400px;
        left: 30px;
    }

    #arrow-2 {
        top: 400px;
        right: 30px;
    }

    #trees-section {
        background-position: top;
    }

    #trees-container {
        height: 630px;
    }

    .treePosition0 {
        top: 230px;
    }

    .treePosition3{
        visibility: visible;
        opacity: 1;
    }

    .treePosition4{
        visibility: visible;
        opacity: 1;
    }

    .message {
        max-width: 280px;
        left: 20px;
    }
}

@media only screen and (min-width: 820px) {
    .footer-container {
        padding: 0 40px;
    }
}

@media only screen and (min-width: 950px) {

    .treePosition3{
        left: 120px;
    }

    .treePosition4{
        right: 120px;
    }

    .treePosition2,
    .treePosition5,
    .treePosition6{
        visibility: visible;
        opacity: 1;
    }

    #cloud-5 {
        visibility: visible;
        opacity: 1;
        right: 100px;
    }
}

@media only screen and (min-width: 1100px) {

    #cloud-3 {
        visibility: visible;
        opacity: 1;
        right: 280px;
    }

    .treePosition1,
    .treePosition7{
        visibility: visible;
        opacity: 1;
    }

    .treePosition2{
        left: 140px;
    }

    .treePosition3{
        left: 260px;
    }

    .treePosition4{
        right: 260px;
    }

    .treePosition5{
        right: 160px;
    }

    .treePosition6{
        right: 80px;
    }

}

@media only screen and (min-width: 1300px) {

    #onward-blocks {
        margin: 90px 0;
    }

    .onward-wrap {
        max-width: 400px;
        padding: 0 20px;
        margin: 0 auto;
    }

    .onward-item .btn {
        margin-top: 20px;
    }

    .onward-item .body {
        min-height: 234px;
    }

    .footer-text,
    .footer-logo {
        display: inline-block;
        align-self: center;
    }

    .footer-logo img {
        width: 200px;
    }

    .footer-container {
        flex-direction: unset;
        padding: 0;
    }

    .footer-logo {
        order: 1;
        margin-right: 70px;
        padding: 0;
    }

    .footer-text {
        order: 2;
    }
    
    .footer-text p#wpnc__link {
        text-align: left;
    }
    
}