/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
    font-family: 'Source Sans Pro', sans-serif;

}

body {
    font-size: 1em;
    line-height: 1.4;
}

html {
    background: #f857a6; /* fallback for old browsers */
    background: -webkit-linear-gradient(to left, #f857a6 , #ff5858); /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to left, #f857a6 , #ff5858); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    text-rendering: optimizeLegibility;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    position: relative;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
(-o-min-device-pixel-ratio: 5/4),
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

/*
custom styling
author : Grey Ooi
*/

.container {
    max-width: 820px;
    margin: auto;
    position: relative;
}

header {
    background: rgba(255,255,255,0.1);
    padding: 25px 0;
    overflow: auto;
}
.text_center {
    text-align: center;
}
.logo {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}

h2 {
    font-size: 52px;
    font-weight: 300;
}

.logo img {
    max-width: 30%;
}



.content_wrap ul li {
    float: left;
    display: block;
    width: 25%;
    position: relative;
    text-align: center;


}

.content_wrap ul li h4 {
    text-align: center;
    color: #FF686B;
    font-size: 1.5em;
}

.content_wrap ul li img {
    max-width: 50%;
}

nav {
    position: fixed;
    visibility: hidden;
    overflow: auto;
    height: 100%;
    left: -320px;
    width: 320px;
    display: flex;
    align-items: center;
    z-index: 3;
    top: 0;
    background: #FE585B;
    transition: all 0.15s ease-out;
}

nav.called {
    visibility: visible;
    left: 0;
}


.navigation {
    display: block;
    width: calc(100% - 50px);
    margin-left: 25px;
}


.navigation ul li {
    display: block;
    text-align: right;
    padding: 2.5% 0;
    font-size: 26px;
    font-weight: 300;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navigation ul li:last-child {
    border: none;
}

.navigation ul li a {
    text-decoration: none;
    color: #ffffff;
    
    display: block;
    white-space: nowrap;

}

.navigation ul li a.active {
    font-weight: 700;
}



.navigation ul {
    width: 100%;
}

.overlay {
    background: rgba(32,32,32,0.85);
    position: fixed;
    width: 100%;
    height: 100%;
    visibility: hidden;
    opacity: 0;
    left: 0;
    top: 0;
    z-index: 2;
    transition: all 0.15s ease-out;
}

.overlay.called {
    visibility: visible;
    opacity: 1;
}

.close_menu {
    width: 40px;
    height: 40px;
    position: absolute;
    right: 20px;
    top: 15px;
    background: url('../img/cross.png') 50% 50% no-repeat;
    background-size: 30px;
    cursor: pointer;
    transition: all 0.5s ease-out;
}

.close_menu:hover {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
    -moz-transform: rotate(180deg);
}



.page_des {
    font-size: 26px;
    padding: 0 0 25px 0;
    font-weight: 300;
    margin-top: 0;
}



footer {
    border-top: 1px solid rgba(0,0,0,0.2);
    padding: 35px 0;
}

.menu {
    width: 50px;
    height: 50px;
    background: url('../img/menu.png') 50% 50% no-repeat;
    background-size: 36px;
    cursor: pointer;
    float: right;
    margin-top: 13px;

}
/* form */

.captcha{
    margin:0 auto;
    width: 300px;
    height: 500px;
}

.captcha label{
    float: left;
    margin-bottom: 20px;
    font-size:22px;
    font-family: 'primelight';
    font-size: 20px;
    line-height: 30px;
    margin-right: 10px;
}

.captcha input[type="text"]{
    float: left;
    height:22px;
    padding:0px 5px;
    font-size: 16px;

}

form {
    padding: 40px;
    transition: all 0.15s ease-out;
}

form.called {
    opacity: 0;
    /*height: 240px;*/
}

form > fieldset {
    padding: 15px 0;

}
form label {
    width: 20%;
    margin-right: 5%;
    display: block;
    float: left;
    text-align: right;
    padding: 15px 0;
    font-size: 16px;
}

.form_divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    display: block;
    margin: 20px 0;
}

input:focus, button:focus, textarea:focus {
    outline: none;
}

form input:focus, form textarea:focus {
    background: rgba(255,255,255,0.4);
    box-shadow: 0 0 30px rgba(32,32,32,0.15);
}

form button {
    width: 100%;
    border: none;
    background: rgba(32,32,32,1);
    border-radius: 4px;
    padding: 15px 0;
    font-size: 24px;
    font-weight: 400;
    color: rgba(255,255,255,1);
    transition: opacity 0.15s ease-out;
    -webkit-appearance: none;
}

form button:disabled {
    opacity: 0.5;
}

input[type='tel'],
input[type='text'],
input[type='email'],
textarea {
    width: 70%;
    padding: 15px;
    border: none;
    background: rgba(255,255,255,0.15);
    float: left;
    display: block;
    font-size: 16px;
    box-sizing : border-box;
    -webkit-appearance: none;
    transition: all 0.15s ease-out;
}

.tnc li {
    margin-bottom: 15px;
    font-size: 16px;
}

.tnc h2 {
    font-size: 30px;
}

.tnc a {
    color: #202020 ;
    text-decoration: underline;
}

.tnc a:hover {
    text-decoration: none;
}
.spec_high {
    display: block;
    padding: 15px;
    border: 1px solid rgba(32,32,32,0.1);
    margin-top: 5px;
}
.tnc li ul li, .tnc li ul li ul li {
    margin-left: 25px;
}

.tnc > ul {
    margin: 40px 0 60px;
}

.top_sec {

    padding-bottom: 40px;
    background: #ECE9E6; /* fallback for old browsers */
    background: -webkit-linear-gradient(to left, #ECE9E6 , #FFFFFF); /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to left, #ECE9E6 , #FFFFFF); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */


}

.sec_join_us {
    background: rgba(255,255,255,0.1);
    padding: 30px 0;
}

#gform h3 {
    background: url('../img/email.png') 50% top no-repeat;
    background-size: 60px;
    margin-bottom: 50px;

}

.hint {
    display: block;
    font-style: italic;
}

#gform h3:after {
    content: 'Contact Us';
    font-size: 24px;
    position: relative;
    bottom: -40px;
}

.sec_join_us h3 {
    background: url('../img/shakehand.png') 50% top no-repeat;
    background-size: 60px;

}

.sec_join_us h3:after {
    content: 'Join Us';
    font-size: 24px;
    position: relative;
    bottom: -40px;
}

.sec_join_us p {
    font-size: 24px;
    font-weight: 300;
    margin-top: 50px;
}

.scrollToTop {
    width: 36px;
    height: 36px;
    position: absolute;
    right: 0;
    top: -8px;
    background: url('../img/arrow_up.png') 50% 50% no-repeat;
    background-size: 30px;
}

.scrollToTop:focus {
    outline: none;
}

.error {
    position: absolute;
    right: 52px;
    top: 28px;
    display: none;
    z-index: 1;
}

.chacha {
    position: relative;
}

.thank_you_message {
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /*background: #202020;*/
    color: #202020;
    opacity: 0;
    z-index: 1;
    transition: all 0.15s ease-out;
}


.thank_you_message p {
    font-size: 24px;
    font-weight: 300;
    text-align: center;
}
.thank_you_message h2 {
    display: block;
    text-align: center;
    margin-bottom: 0;
    padding-bottom: 0;
}

.thank_you_message.called {
    visibility: visible;
    opacity: 1;
}

@media only screen 
and (min-width : 320px) 
and (max-width : 768px)  { /* STYLES GO HERE */
    .content_wrap ul li h4 {
        font-size: 1.1em;
    }

    .container {
        max-width: 90%;
        margin: auto;
    }

    .page_des {
        margin-top: 0;
    }

    form label {
        float: none;
        text-align: left;
        width: 100%;
        margin: 0;
        padding: 15px 0 5px 0;
    }

    input[type='tel'],
    input[type='text'],
    input[type='email'],
    textarea {
        width: 100%;
        padding: 15px;
        float: none;
        display: block;

    }
    h2 {
        font-size: 46px;
        padding: 0.83em 0 0.5em 0;
    }


    form > fieldset {
        padding: 5px 0;
    }

    form {
        padding: 40px 20px;
    }

    .logo img {
        max-width: 40%;
    }

    .navigation > div {
        border: none;
        padding: 0;
    }

    .navigation > div:after, .navigation > div:before {
        display: none;
    }

    .navigation ul li {
        font-size: 150%;
    }

    .error {
        top: 60px;
        right: 15px;
    }
    
    .menu {
        margin-top: 5px;
    }

}
.g-recaptcha {
    margin-left: 25%;
}
span.errorText {
    position: absolute;
    right:3.5rem;
    top: 2rem;
    font-size: 11px;
}

@media only screen 
and (min-width : 320px) 
and (max-width : 480px)  { /* STYLES GO HERE */
    .logo img {
        max-width: 50%;
    }

    

    .navigation ul li {
        font-size: 180%;
    }

    .content_wrap ul li {
        
        width: 50%;
        
        padding: 25px 0 10px 0;
        overflow: auto;
    }
    
    .content_wrap ul li img {
        
        max-width: 50%;
        
    }
    
    .content_wrap ul li h4 {
        padding-top: 10px;
    }

    .content_wrap ul li:last-child {
        border: none;
    }
}