/* | ---------------------------------- | Style - Created By Harry Baird | --------------------- | */

:root {
    font-size: 18px;
    font-family: 'Open Sans', Arial;
    --primary: #F4F3F3;
    --secondary: #141414;
    --third: #353535;
    --forth: #198836;
    --fifth: #e7e7e7;
    --shadow: rgba(3, 3, 3, 0.267);
    --font-colour: #0e0e0e;
    --nav: var(--primary);
    --navText: var(--secondary);
    --logoTime: 4s;
    color: var(--font-colour);
    --titlePageSize: 85vh
}


/* ----------------------------------- Selection --------------------- */

::selection {
    background-color: black;
    color: white;
}


/* ----------------------------------- Body --------------------- */

body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    background-color: var(--primary);
}

a {
    text-decoration: none;
    color: var(--forth);
}

a:visited {
    color: var(--third);
}


/* ----------------------------------- Scrollbar --------------------- */

body::-webkit-scrollbar {
    width: 0.5em;
}

body::-webkit-scrollbar-track {
    background-color: var(--fifth);
}

body::-webkit-scrollbar-thumb {
    background-color: var(--secondary);
}


/* ----------------------------------- Nav Bar --------------------- */

nav {
    position: fixed;
    top: 0%;
    width: 100%;
    height: 8vh;
    z-index: 10;
    color: var(--navText);
    background-color: rgba(255, 255, 255, 0.5) !important;
    transition: background-color 100ms linear !important;
}

nav.scrolled {
    background-color: var(--nav) !important;
    transition: background-color 200ms linear;
}

navContainer {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    font-size: 10px;
}

.navElement {
    background-color: transparent;
    transition: 500ms;
    flex-basis: 1;
    flex-grow: 2;
    height: 100%;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.navElement div {
    display: inline;
    font-size: 1.5rem;
    vertical-align: middle;
}

.navElement {
    color: var(--navText);
}

.navElement:hover {
    transition: 200ms;
    background-color: whitesmoke;
}

.navElement:first-child {
    flex: 1;
    flex-grow: 1;
    flex-basis: 50px;
    font-size: 1.8rem;
}

.clickable {
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    position: absolute;
    z-index: 1;
}


/* ============================================================== */


/* ----------------------------------- Main Body ---------------- */


/* ============================================================== */

titleContainer {
    display: block;
    width: 100%;
    height: var(--titlePageSize);
    background-color: transparent;
    z-index: -420;
}

titleContents {
    display: flex;
    flex-direction: row;
    width: 100%;
    transform: translate(0, 50%);
}

#titleContainerImage {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -400;
    top: 0%;
    object-fit: cover;
    filter: blur(2px);
    opacity: 0.4;
}


titleImageContainer {
    position: absolute;
    display: block;
    width: 100%;
    height: var(titlePageSize);
    top: 0%;
    overflow: hidden;
}

.mainContent {
    background-color: var(--primary);
    content-visibility: auto;
    width: 100%;
}

logoContainer {
    width: 100%;
}

#logo {
    display: block;
    position: absolute;
    margin-top: 40vh;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    stroke: var(--secondary);
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

logoElementContainer {
    align-self: center;
}

#mister,
#landscaper {
    padding: 10px 10px;
    height: 100%;
    width: auto;
}

.logoAnim {
    stroke-width: 3px;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    fill-opacity: 0;
    fill: var(--secondary);
    animation: draw var(--logoTime) ease-in forwards;
    animation-delay: 1s;
}

.coloredContainer {
    padding: 10px 100px;
    background-color: var(--secondary);
    color: white;
}

@keyframes draw {
    0% {
        stroke-dashoffset: 500;
    }
    95% {
        stroke-dashoffset: 0;
        fill-opacity: 0;
    }
    100% {
        fill-opacity: 1;
        stroke-dashoffset: 0;
    }
}

@keyframes draw2 {
    0%,
    100% {
        stroke-dashoffset: 10;
    }
    60% {
        stroke-dashoffset: 0;
    }
}

@keyframes tween {
    0%,
    100% {
        transform: skew(0, 0);
    }
    50% {
        transform: skew(5deg, 6deg);
    }
}

@keyframes tween2 {
    0%,
    100% {
        transform: skew(5deg, -2deg);
    }
    50% {
        transform: skew(0, 0);
    }
}

container {
    display: flex;
    flex-direction: row;
    width: 100%;
    padding: 10px 0;
}

textContainer {
    flex: 1;
    padding: 10px;
    flex: 1 1 auto;
}

.coloured {
    background-color: var(--secondary);
    color: var(--fifth);
}

.coloured hr {
    border: none;
    background-color: var(--fifth);
    color: var(--fifth);
    height: 1px;
}

textContainer h {
    font-size: 1.5rem;
}

containerImage {
    padding: 0px 2px;
    height: 100%;
    flex: 1 1 auto;
}
containerImage_wall {
    height: 100%;
    flex: 1 1 auto;
    display: block;
    width: 500PX;
    background-color: black;
}

containerImage img {
    width: auto;
    height: 100%;
    max-width: 100%;
}

containerImage_wall img {
    width: auto;
    height: auto;
    max-width: 100%;
}

.flexImage {
    flex-grow: 0;
    flex-shrink: 0;
    height: 100px;
    margin: 20px;
}

hr {
    border: none;
    background-color: var(--font-colour);
    color: var(--font-colour);
    height: 1px;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.center * {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.bigh {
    font-size: 2.5rem;
}

.contactus {
    stroke: var(--primary);
    fill: transparent;
    stroke-width: 2px;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    fill-opacity: 0;
    fill: transparent;
    animation: draw var(--logoTime) ease-in-out forwards;
}


/* Parallax */

.parallax {
    z-index: -10;
    height: 100vh;
}

.parallax img {
    object-fit: cover;
    position: absolute;
}

.bigImage {
    width: 200px;
}

.smallImage {
    width: 100px;
}

.mediumImage {
    width: 150px;
}

.leaf {
    position: absolute;
    fill: var(--forth) !important;
    opacity: 0.2;
}

.leafAnim1 {
    animation: tween 5s ease-in forwards infinite;
}

.leafAnim2 {
    animation: tween 11s ease-in forwards infinite;
    z-index: 100;
}

.leafAnim3 {
    animation: tween2 5s ease-in forwards infinite;
    z-index: 100;
}


/* ----------------------------------- Footer --------------------- */

.footer {
    position: absolute;
    width: 100%;
    height: 20px;
    margin-top: 20px;
    margin-bottom: 0px;
    padding-top: 2px;
    padding-bottom: 2px;
    background-color: var(--secondary);
    color: white;
    font-size: 0.6rem;
}

mainFooterContainer {
    display: flex;
    width: 100%;
    height: 100%;
}

footerContainer {
    flex: 1;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
}


/* *********************************** Mobile ****************** */

@media only screen and (max-width: 900px) {
    .mainContent {
        background-color: var(--secondary);
    }
    container {
        flex-direction: column;
        padding: 0;
    }
    titleContents {
        flex-direction: column;
    }
    containerImage {
        width: 100%;
    }
    containerImage img {
        width: 100%;
        align-items: center;
        justify-content: center;
    }
    .mobileflip {
        flex-direction: column-reverse !important;
    }
    #logo {
        flex-direction: column;
    }
    .coloredContainer {
        padding: 10px 40px;
    }
    nav {
        display: none;
    }
}

@media only screen and (max-width: 500px) {
    #logo * {
        margin-left: 5px;
        width: 90%;
    }
}

@media screen and (min-width: 1300px) {
    logoElementContainer {
        height: 100%;
    }
    #logo {
        height: 15vh;
    }
}

@media screen and (min-width: 900px) {
    #landscaper {
        margin-top: 20px;
    }
}