/*! HTML5 Boilerplate v6.1.0 | MIT License | https://html5boilerplate.com/ */

/*
 * 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 {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * 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 audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

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

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


html { box-sizing: border-box; } *, *:before, *:after { box-sizing: inherit; }
a{-webkit-transition:all 0.3s ease;
         -moz-transition:all 0.3s ease;
               -o-transition:all 0.3s ease;
                     transition:all 0.3s ease;
text-decoration: none;
color: #1a1a1a; font-weight: 600;}
a img{-webkit-transition:all 0.3s ease;
         -moz-transition:all 0.3s ease;
               -o-transition:all 0.3s ease;
                     transition:all 0.3s ease;}

.smoothie{-webkit-transition:all 0.3s ease;
         -moz-transition:all 0.3s ease;
               -o-transition:all 0.3s ease;
                     transition:all 0.3s ease;}
h1,h2,h3,h4,h5,h6{margin: 0 0 10px 0; color: #fff; font-weight: 300; letter-spacing: 0px; font-family: 'Baloo Tamma', cursive; text-transform:uppercase;}
h1{font-weight: 300;}
h1 span{font-weight: 700;}
p{margin: 0 0 10px 0; color: #fff;}
strong{font-weight: 800;}
img, iframe{max-width: 100%;}



.container{width: 80%; max-width: 1920px; margin: 50px auto; font-family:'Poppins', 'Roboto', sans-serif; font-weight: 300;box-shadow: 0 30px 90px rgba(0,0,0,0.25), 0 7px 20px rgba(0,0,0,0.05); }
.bodybg{animation: colorchange 90s infinite; /* animation-name followed by duration in seconds*/
         /* you could also use milliseconds (ms) or something like 2.5s */
      -webkit-animation: colorchange 90s infinite; /* Chrome and Safari */}




.header{width: 100%; padding: 30px 5% 25px; display: flex; justify-content: flex-end; flex-wrap: wrap; align-items: center; position: sticky; top: -1px;  max-width: 1920px;  background: rgba(0,0,0,0.2); z-index: 125;  transition: all 600ms ease-in-out;}
.header:hover{ background: rgba(0,0,0,0.4);}
.logo{position: absolute; width: 180px; border: 10px solid #32465B;border: 10px solid rgba(50,70,91,0.21); left: -20px; border-radius: 50%; background: rgba(50,70,91,0.21);  transition: all 600ms ease-in-out;
}
.header:hover .logo {
  -ms-transform: rotate(360deg); /* IE 9 */
  -webkit-transform: rotate(360deg); /* Chrome, Safari, Opera */
  transform: rotate(360deg);
  border:10px #fff solid;
  opacity: 1;
    background: rgba(255,255,255,1);
}

.navlink{color: #fff; font-weight: 400; font-size: 20px; font-weight: 400; font-family: 'Baloo Tamma', cursive; text-transform:uppercase; margin-left: 40px; position: relative;}

.navbuffer{width: 260px;}
.current{font-weight: 900; }

.navlinker{position: absolute; bottom: -10px; left: 0; width: 0; height: 2px; background: #fff; opacity: 0; transition: all 0.3s ease;}
.navlink:hover{opacity: 1;}
.navlink:hover .navlinker{opacity: 1; width: 100%;}

.hero{width: 100%; padding: 0; height: 40vh; overflow: hidden; background: linear-gradient(to bottom,rgba(255,255,255,1) 0, rgba(255,255,255,1) 89.9%,  rgba(246,246,246,1) 50%, rgba(246,246,246,1) 100%); position: relative; z-index: 5;}
.herocover{position: absolute; top: 0; left: 0; width: 100%; height: 100%;  z-index: 5;background: linear-gradient(to bottom,rgba(0,0,0,0.5) 0, rgba(0,0,0,0.4) 10%, rgba(0,0,0,0) 70%, rgba(0,0,0,0) 100%); display: flex; justify-content: center; align-items: center; flex-wrap: wrap; color: #fff; font-size: 60px;font-family: 'Baloo Tamma', cursive; text-transform:uppercase;}
.hero img{width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 4;}

.topslide{object-position: top center;}
.centerslide{object-position: center center;}
.bottomslide{object-position: bottom center;}

.maincontent{width: 100%; padding: 50px 5%; display: flex; justify-content: space-between; flex-wrap: wrap;background: rgba(0,0,0,0.2); }
.tablecontent{width: 100%; padding: 50px 0; display: flex; justify-content: space-between; flex-wrap: wrap;background: rgba(0,0,0,0.2); }

.sidebar{width: 20%;}
.sidelink{display: block; margin-bottom: 10px; color: #fff; background: rgba(50,70,91,0.1); padding: 10px; position: relative;}
.sidelink:hover{opacity: 1; background: rgba(50,70,91,0.6);}
.linkbar{position: absolute; top: 0; right: 0; width: 5px; height: 100%; background: #fff;}

.craigbg{background: #2B9EB7;}
.alisonbg{background: #E12646;}
.maxbg{background: #F39D1B;}
.sambg{background: #8B397F;}
.harrybg{background: #8DA19E;}
.darbybg{background: #43B473;}
.elliebg{background: #E93703;}
.teamperkinsbg{background: #1a1a1a;}

.craiglink:hover{background: #2B9EB7;}
.alisonlink:hover{background: #E12646;}
.maxlink:hover{background: #F39D1B;}
.samlink:hover{background: #8B397F;}
.harrylink:hover{background: #8DA19E;}
.darbylink:hover{background: #43B473;}
.ellielink:hover{background: #E93703;}
.teamperkinslink:hover{background: #1a1a1a;}


.homegallery{background: rgba(255,255,255,0.0); width: 75%; color: #fff;}
.ug-tiles-wrapper{background: none !important;}


.footer{width: 100%; background: #fff; padding: 20px 5%; font-size: 12px;  display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; background: rgba(0,0,0,0.37)}
.footleft{width: calc(100% - 120px);}
.infinity{width: 100px;}
.footnav{width: 100%; display: flex; justify-content: flex-start; flex-wrap: wrap; color: #fff;}
.footnav a{color: #fff;}
.footnav span{margin: 0 5px;}
.footnavlink{color: #1a1a1a;}

.copy span{margin: 0 5px;}
.copy a{color: #000; font-weight: 700;}

.shallowhero{width: 100%; padding: 0; height: 400px; overflow: hidden; background: linear-gradient(to bottom,rgba(255,255,255,1) 0, rgba(255,255,255,1) 89.9%,  rgba(246,246,246,1) 50%, rgba(246,246,246,1) 100%); position: relative; z-index: 5;}
.shallowhero img{width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 4;}


.teamgrid{width: 100%;}

.teamlink{display: flex; justify-content: flex-start; flex-wrap: wrap; align-items: center; margin-bottom: 10px; color: #fff; background: rgba(50,70,91,0.1); padding: 10px; position: relative;}
.teamlinkimage{width: 100px; height: 100px; margin-right: 20px;}
.teamlinkimage img{width: 100%; height: 100%; object-fit: cover;}

.teamhead{width: 100%; display: flex; justify-content: space-between; flex-wrap: wrap; margin-bottom: 40px;}
.teamimage{width: 200px;}
.teamimage img{object-fit: cover; width: 100%; height: 100%;}
.teamcontact{width: calc(100% - 240px);}

.questionanswer{padding: 20px; background: rgba(0,0,0,0.5); margin: 20px 0;}


.bloglink{display: flex; justify-content: flex-start; flex-wrap: wrap; align-items: center; margin-bottom: 10px; color: #fff; background: rgba(50,70,91,0.1); padding: 10px; position: relative;}
.bloglinkimage{width: 100px; height: 100px; margin-right: 20px;}
.bloglinkimage img{width: 100%; height: 100%; object-fit: cover;}
.postedby{font-size: 11px;}

.embed-container {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 0;
	height: 0;
}
.embed-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
    border: none;
}
/*
.footer{background: rgba(0,0,0,0.7);}
.footnavlink{color: #DCCF73}
.copy{color: #fff;}
.copy a{color: #fff; font-weight: 700;}
/* ==========================================================================
   FORM
   ========================================================================== */

.theform{width:100%; max-width: 500px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; padding: 0;}
.halfinput{width:  49%; position: relative;}
.fullinput{width: 100%; position: relative;}
.theform .fullinput label{font-size: 16px; margin-bottom: 15px; color: #fff;}
.textinput{width: 100%; border:1px solid #f9f9f9; padding: 10px; font-size: 0.8rem; background: rgba(0,0,0,0.05); background: #fff; outline: 1px solid #aaa; color: #0C0C0B; margin: 10px 0 20px;}
.textinput:focus{outline: 1px solid #0f0f0f; background: #f6f6f6;}
.submitbutton{width: 100%; border:1px solid #1a1a1a; border-radius: 2px; color: #fff; padding: 10px; transition: 0.4s; cursor: pointer; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; background: #1a1a1a}
.submitbutton:hover{background: #fff; color: #1a1a1a;}
textarea{height: 200px; text-align: left;}


/* ==========================================================================
   SUBSCRIBE
   ========================================================================== */
.subscribe{width: 100%; padding: 40px 5%;}
.subform{display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; width: 100%;}
.subscribeleft{width:100%; font-size: 20px; color: #fff; margin-bottom: 20px;}
.subscriberight{width: 100%; text-align: right;}


.input{display:flex;align-items:center}
.button{width: 25%; border:none; padding: 20px 0; background: #1a1a1a; color: #fff; cursor: pointer;}
#f_your_email{width:75%;background:#FDFCFB;font-family:inherit;color:#737373;text-indent:5%;border-radius:5px 0 0 5px} 

.subscribebutton{width:100%;padding: 20px 40px; background:#1a1a1a;font-family:inherit;font-weight:700;color:#fff;border-radius:5px;transition:background .3s ease-in-out}.subscribebutton:hover{background:#fff;color: #1a1a1a; opacity: 1;}

.tableholder{ width: 100%; background: rgba(255,255,255,0.3); padding: 20px;}
.tablestyle{width: 100%; font-size: 13px;}
.tablestyle p{color: #1a1a1a;}
.homecontent{width: 100%;}


/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
@media only screen and (min-width: 1220px) {.navigation{display: flex!important;}.ham{display: none;}}
@media only screen and (max-width: 1220px) {
    
    .header{align-items: center; z-index: 501;}
    .ham{display: block;}
    .navigation{display: none; width: 100%; height: auto; text-align: right; padding-top: 40px;}
    .navigation a{display: block; width: 100%; margin: 0; font-size: 24px; margin-bottom: 10px;}
}
@media only screen and (max-width: 800px) {
    .container{width: calc(100% - 40px);}
    .logo{width: 100px;}
    .welcome{margin: 0; max-width: 100%; background: rgba(255,255,255,0.5);}
    .homecontent{max-width: 100%;}
    .fullcontent{padding: 0 3%;}
    .content{padding: 40px 5%;}
    .homelinkimage{width: 100%; height: 300px;}
    .homelinktext{width: 100%; padding: 20px; background: #fff;}
    .homelinkbutton{position: relative; left: 0; background: #efefef; padding: 10px 40px;}
    .eachtestimonial{width: 100%; padding: 40px 10%;}
    .testimonial{font-size: 22px;}
  
    .hero{padding: 0; height: 50vh;}
    .header{padding: 20px 5%;}
    .footer{padding: 20px 5%;}
    .latestnews{padding: 0 3%; margin-top: 40px;}
    .eachlatestnews{width: 100%;}
    .eachlatestnews:first-of-type{margin-bottom: 20px;}
    .footleft{width: 100%;}
.infinity{display: none;}
    .herocover{font-size: 30px;}
    .sidebar{width: 100%; margin-bottom: 20px;}
    .homegallery{width: 100%; margin-bottom: 40px;}
    .reversecontent{flex-direction: column-reverse;}
    .teamimage{width: 100px;}
.teamcontact{width: calc(100% - 140px);}
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}
/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

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

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

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

/*
 * Hide visually and from screen readers, 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;
}



/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

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

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

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

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

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