/*
 ************
 *
 * MAIN WEBSITE
 *
 ************
 */

* {
    margin: 0;
}

html, body {
    font-family: 'Source Sans 3';
    font-weight: 300;
    font-size: 14px;
    color: black;
    background-color: white;
    height: 100%;
}

a,
a.active,
a:hover {
    text-decoration: none;
    text-shadow: none;
    color: inherit;
    outline: none;
}

header.external,
footer {
    font-family: 'Besley';
    font-weight: 400;
    color: #212a3e;
}

footer {
    line-height: 60px;
    border-top: 1px solid #eeeeee;
    background-color: white;
    width: 100%;
}

footer a, 
footer a:hover {
    font-size: 12px;
    margin-right: 15px;
}

header.external {
    position: fixed;
    z-index: 10;
    border-bottom: 1px solid #eeeeee;
    padding-top: env(safe-area-inset-top);
    width: 100%;

    background-color: rgba(255, 255, 255, 0.95);
    line-height: 80px;
}

img.hdrlogo {
    height: 60px; 
    width: auto;
}

/* menu list */
ul.menuList {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
}

ul. menuList li a.current, 
ul. menuList li a:hover {
    padding-bottom: 2px;
    border-bottom: 1.5px solid #333;
}

nav.twFrame {
    line-height: inherit;
}

a > img {
    vertical-align: middle;
}

a.btn {
    font-size: 13px;
    line-height: inherit;
    color: #212a3e;
    vertical-align: bottom;
    margin-left: 40px;
}


/* Responsive hamburger header */
@media screen and (min-width: 980px) {
    header.external ul.menuList {
        clear: none;
        float: right;
    }

    header.external ul.menuList li {
        float: left;
    }

    .menuIcon {
        display: none;
    }
}
@media screen and (max-width: 832px) {
    /* Footer thus far is only for external pages. */
    footer {
        text-align: center;
    }
}
@media screen and (max-width: 979px) {
    header.external.menuChecked {
        background-color: rgba(255, 255, 255, 0.95);    /* same as header.external's normal background color. */
    }

    header.external ul.menuList {
        clear: both;
        max-height: 0;
    }

    header.external ul.menuList li {
        line-height: 50px;
    }

    header.external ul.menuList li a.btn {
        font-size: 16px;
    }

    /* menu checkbox */
    .menuCheck:checked ~ ul.menuList {
        max-height: 500px;
    }
    .menuCheck:checked ~ .menuOpen {
       display: none;
    }
    .menuCheck:checked ~ .menuClose {
       display: inline-block;
    }

    /* menu icons */
    .menuIcon {
        cursor: pointer;
        display: inline-block;
        float: right;
        position: relative;
        user-select: none;
    }
    .menuIcon.menuClose {
        display: none;
    }
}

main.external {
    font-family: 'Source Sans 3';
    font-weight: 300;
    background-color: #f4f1e9;
    padding-top: calc(env(safe-area-inset-top) + 80px);    /* 80px = @extNavMenuHeight | tolerance for fixed menu */

    /* 
     * Ref. for sticky footer: https://css-tricks.com/couple-takes-sticky-footer/ 
     * Hardcoding sum of @extNavMenuHeight + @navMenuHeight for header and footer, because LESS doesn't work with calc.
     */
    min-height: calc(100vh - 140px);
}

.twlogo {
    font-family: 'Kalnia';
    font-weight: 600;
    font-size: 36px;
}


/* 
 ************
 *
 * EXTERNAL LANDING PAGES
 *
 ************
 */

section {
    padding: 120px 0;
    border-bottom: #999;
}
/* apply to containers that shouldn't bleed to the edges */
.twFrame {
    max-width: 90%;     /* Responsively adjust below */
    margin: 0 auto;
}
img {
    width: 100%;
    height: auto;
    max-height: 100%;
    display: inline;
    margin: auto;
}

.headline, 
.subheadline {
    color: #212a3e;
    font-family: 'Besley';
    font-weight: 800;
    font-size: 40px;
    line-height: 56px;
}
.headline {
    font-size: 48px;
    line-height: 64px;
}
.expln {
    font-size: 24px;
    line-height: 40px;
    margin-top: 80px;
}


span.material-symbols-outlined.spinning_gear {
    font-size: 75px;
    color: #212a3e;
    font-weight: 300;
    animation: spin-animation 3s infinite;
    display: inline-block;
}
@keyframes spin-animation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(359deg);
    }
}


section#banner div.expln {
    font-size: 28px; 
    line-height: 44px; 
    margin: 30px 0px;
}
section#whyus div.why span.material-symbols-outlined {
    font-size: 64px;
    color: #212a3e;
    font-weight: 300;
}
section#whyus div.why {
    max-width: 300px;
}
.flexcontainer {
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 60px;
}


/* Mailchimp embedded form style */
#mc_embed_signup {
    background: #fff; 
    clear: left; 
    font-family: 'Source Sans 3', Helvetica, Arial, sans-serif; 
    font-weight: 400;
    font-size: 20px;
    color: #212a3e;
    width: 600px;
    padding: 40px;
}
#mc_embed_signup div.mc-field-group {
    padding: 10px 0;
}
#mc_embed_signup div.mc-field-group input {
    height: 30px;
}
#mc_embed_signup div.mc-field-group li input[type="radio"] {
    vertical-align: bottom;
    margin-right: 5px;
    -webkit-transform: scale(1.6); /* Chrome, Safari, Opera */
        -ms-transform: scale(1.6); /* IE 9 */
            transform: scale(1.6);

}
#mc_embed_signup div.mc-field-group li label {
    vertical-align: top;
    margin-left: 5px;
}
#mc_embed_signup input[type="submit"] {
    height: 40px;
    line-height: 40px;
    border-radius: 8px;
    background-color: #212a3e;
}


/* 
 ************
 *
 * BUTTONS
 *
 ************
 */

.btn {
    text-decoration: none;
    color: #999999;
    border: none;
    border-bottom: 1px solid #bfbfbf;

    font-family: 'Besley';
    font-weight: 400;
    font-size: 14px;
    height: 25px;
    line-height: 25px;
    vertical-align: middle;
}

.btn.noborder {
    border: none;
}

.btn.roundedBtn,
.btn.roundedBtn:hover,
.btn.roundedBtn.active {
    height: 32px;
    line-height: 32px;
    font-size: 14px;
    padding: 10px 20px;
    background-color: #212a3e;
    color: #f5f5f5;
    border: 1px solid #212a3e;
    border-radius: 15px;
}


/* 
 ************
 *
 * LINKS & TEXT 
 *
 ************
 */

p {
    margin: 0 0 10px;
}

a.plink {
    border-bottom: 1px dotted #999999;
}

a.plink:hover {
    border-bottom: 1px dotted black;
}

span.undl {
    border-bottom: 1px solid black;
}

.filler {
    padding-top: 30px;
}

.tileleft {
    display: inline-block;
    float: left;
    margin-right: 2%;
}

.tileright {
    display: inline-block;
    float: right;
    margin-left: 2%;
}

/* Used with a floated div, it expands into the leftover space. */
.expandinto {
    overflow: hidden;
}

.calign {
    text-align: center;
}



/* 
 ************
 *
 * RESPONSIVE DEFINITIONS
 * iPhone portrait  : x <= 479 px
 * iPhone landscape : 480 <= x <= 767 px
 * iPad portrait    : 768 <= x <= 1023 px
 * iPad landscape   : 1024 <= x <= 1279 px
 * Laptops & above  : x >= 1280 px
 *
 ************
 */


@media screen and (min-width: 1281px) {
    .twFrame {
        max-width: 1152px;      /* Maximum frame fixed at 90% of 1280px for larger screens */
    }
}


