* {
    box-sizing: border-box;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

html, body {
    padding: 0;
    margin: 0;
    width: 100%;
}

body {
    font-family: Arial;
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    color: #efffff;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #22222233;
    box-shadow: 0 2px 20px #5c5c5c81;
    width: 100%;
    padding: 15px;
}

ul {
    display: flex;
    align-items: center;
}

li {
    display: inline-block;
    padding: 0 30px 0 30px;
    font-size: 0.85em;
    display: flex;
    flex-direction: row;
    list-style: none;
}

a {
    text-decoration: none;
}

nav a {
    letter-spacing: 0.15em;
    position: relative;
    padding: 5px 0 5px 0;
    color: #000000;
}

nav a:after {
    background: none repeat scroll 0 0 transparent;
    bottom: 0;
    content: "";
    display: block;
    position: absolute;
    background: #000000;
    width: 100%;
    height: 2px;
    opacity: 0;
    transition: opacity 0.2s;
}

nav a:hover:after {
    opacity: 1;
}

.permUnderline:after {
    opacity: 1;
}

.menuButton {
    display: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    z-index: 999;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 3px 0;
    transition: 0.4s;
}

.mobileNav {
    display: none;
    background: #e6e6e6;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    z-index: 999;
}

.mobileNav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    margin: 0;
}

.mobileNav li {
    padding: 10px 0;
    width: 100%;
}

.menuButton.open .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.menuButton.open .bar:nth-child(2) {
    opacity: 0;
}

.menuButton.open .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

.menuButton .bar {
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 3px 0;
    transition: 0.4s;
}

.italic {
    font-style: italic;
}

.uppercase {
    text-transform: uppercase;
}

.bold {
    font-weight: 600;
}

.blackText {
    color: #000000;
}

.mainColor {
    color: #fcaa16;
}

::selection {
    color: #fcaa16;
    background: #222222;
}

.mainColor::selection {
    color: #efffff;
    background: #fcaa16;
}

.larger {
    font-size: 2em;
}

.slightlyLarger {
    font-size: 1.4em;
}

.textCenter {
    text-align: center;
}

.slightlyTransparent {
    opacity: 0.7;
}

.heavyTransparent {
    opacity: 0.4;
}

#logo {
    height: 30px;
    padding: 0 30px 0 30px;
}

.container {
    display: flex;
    flex-flow: column wrap;
    align-items: center;
    justify-content: center;
}

.container#home {
    height: 825px;
    width: 100%;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.darkOverlay {
    background: #010101;
    height: inherit;
    width: 100%;
    position: absolute;
    z-index: -1;
}

.backgroundImage {
    z-index: -2;
    height: 100%;
    width: 100%;
    position: absolute;
    object-fit: cover;
    box-shadow: 0 3px 3px #00000066;
    top: 0;
    left: 0;
    filter: blur(2px);
}

h1 {
    font-size: 4.5vw;
    text-shadow: 1px 1px 2px #00000077;
    padding: 0;
    margin: 0;
}

h2 {
    font-size: 3.2vw;
    margin: 10px;
}

.welcome {
    font-size: 1.25vw;
    margin-bottom: 40px;
}

.callToAction {
    margin-top: 40px;
    font-size: 1.1em;
    padding: 15px 25px 15px 25px;
    border: 2px solid #fcaa16;
    background: none;
    color: #fcaa16;
    transition: 0.3s;
    width: fit-content;
}

.callToAction:hover {
    background: #fcaa16;
    cursor: pointer;
    color: #000000;
}

/*About section*/
.gridContainer {
    display: grid;
    grid-template-columns: 33vw auto;
    height: 700px;
    width: 100%;
    border-top: 3px solid #66666644;
    border-bottom: 3px solid #66666645;
}

#about img {
    width: 100%;
    height: 694px;
    object-fit: cover;
    box-shadow: 0 0 20px #99999955;
}

.pContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 0 20px #99999955;
    background: #66666633;
    padding: 35px 60px 35px 40px;
}

/*About section text*/
.smallText { 
    margin-top: 10px;
    font-size: 1.2em;
    color: #666666;
    line-height: 1.2em;
}

.headingContainer {
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 100px 0 35px 0;
}

.separatorDivider {
    height: 2px;
    border-radius: 3px;
    width: 100%;
    background: #44444422;
    margin: 25px;
}

.cardContainer {
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.card {
    cursor: pointer;
    z-index: 2;
    width: 350px;
    height: 475px;
    border: 2px solid #bfbfbf66;
    border-radius:10px;
    margin: 0 20px 40px 20px;
    transition: 0.3s;
    overflow: hidden;
}

.cardImage {
    width: inherit;
    height: inherit;
    object-fit: cover;
    display: inline-block;
}

.card:hover{
    transform: scale(1.05);
    background: #555555cc;
}

.onImage {
    transform: translateY(-60px);
    display: inline-block;
    padding: 10px 10px 10px 20px;
    text-shadow: 0 1px 1px #333333aa;
    color: #333333aa;
}

.container#whyUs {
    flex-direction: row;
}

#showMore, #learnMore {
    margin-bottom: 40px;
    cursor: pointer;
}

.parallax {
    background-image: url('../Images/parallax.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 80px 0 50px 0;
    height: 400px;
    overflow: hidden;
    box-shadow: 0 0 10px #999999cc;
    filter: blur(2px);
}

figure {
    display: flex;
    align-items: center;
    flex-flow: column wrap;
    margin: 0 50px;
}

figure img {
    width: 128px;
    filter: invert(61%) sepia(83%) saturate(459%) hue-rotate(357deg) brightness(99%) contrast(101%);
}

figcaption {
    margin: 10px 0 60px 0;
}

footer {
    padding: 100px 0 0 0;
    margin-top: 90px;
    background: #dfdede98;
    box-shadow: 0 -10px 20px #99999955;
    height: fit-content;
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
}

.whiteSpaceLR {
    padding: 0 25% 0 25%;
}

.roundEdges {
    border-radius: 10px;
}

.fullWidth {
    width: 100%;
}

form {
    width: 33vw;
    max-width: 500px;
    height: fit-content;
    display: flex;
    flex-flow: column nowrap;
    background: #ffffff;
    padding: 30px;
    box-shadow: 0 0 20px #fcaa1677;
}

input, textarea {
    font-family: Verdana, Tahoma, sans-serif;
    border: #222222;
    border-left: none;
    border-top: none;
    border-right: none;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-bottom: 2px solid #eeeeeebb;
}

.mapContainer {
    margin-left: 100px;
    height: 350px;
    width: 100%;
    max-width: 700px;
    padding: 15px;
}

#map {
    height: 350px;
    width: 100%;
    max-width: 700px;
    border: none;
    display: inline-block;
}

#mapCaption {
    padding-bottom: 10px;
    text-decoration: underline;
}

.showOnClick {
    display: none;
}

.socialMediaIcon {
    margin: 50px 15px 25px 15px;
    height: 50px;
    width: 50px;
    transition: transform 0.3s, filter 0.05s;
}

.socialMediaIcon:hover {
    filter: invert(61%) sepia(83%) saturate(459%) hue-rotate(357deg) brightness(99%) contrast(101%);
    transform: scale(0.95);
}

.footerExtras {
    display: inline-block;
    margin: 25px auto 50px 10px;
}

.footerContact {
    display: flex;
    align-items: center;
    border-top: 2px solid #00000000;
    border-bottom: 2px solid #fcaa16;
    padding: 7px;
    margin: 10px;
    transition: 0.3s;
    cursor: pointer;
    border-radius: 6px;
}

.footerContact:hover {
    background: #fcaa16;
}

.contactImg {
    height: 25px;
    margin-right: 8px;
}

.footerContact a {
    color: #000000;
    text-decoration: none;
}

.underline {
    text-decoration: 3px solid underline;
}

.footerLinks {
    width: 100%;
    max-width: 1250px;
    display: flex;
    flex-flow: row wrap;
}

.footerEnd {
    width: 100%;
    margin-top: 100px;
    background: #cfcfcf98;
    box-shadow: 0 -8px 10px #99999955;
    padding: 15px;
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
}

#socialMedia {
    margin-right: 20px;
    margin-left: 20px
}

#otherPages {
    margin-left: 20px;
}

.copyrightContainer {
    display: flex;
    flex-flow: column wrap;
}

.copyright {
    font-size: 0.8em;
}

.greyBackground {
    width: 100%;
    height: fit-content;
    background: #cfcfcf98;
    padding: 25px;
    margin: 15px 0;
}


@media only screen and (max-width: 1275px) {
    .mapContainer {
        margin-left: 0;
    }
    #map {
        width: 100%;
        height: 70%;
    }
    #mapCaption {
        margin-top: 60px;
    }
    form {
        width: 95%;
    }
    footer {
        padding: 5% 0 0 0;
        flex-direction: column;
    }
}

@media only screen and (max-width: 982px) {
    .gridContainer {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: fit-content;
    }
    .pContainer {
        order: 2;
    }
}

@media only screen and (max-width: 820px) {
    .whiteSpaceLR {
        padding: 0 80px 0 80px;
    }

}

@media only screen and (max-width: 700px) {
    .gridContainer {
        border: none;
    }
    .pContainer {
        width: 95%;
        min-width: unset;
        margin: 30px auto 30px auto;
    }
    #about img {
        margin: 0 auto 45px auto;
        width: 95%;
        height: 100%;
    }
    li {
        font-size: 0.75em;
        padding: 0 15px;
    }
    nav {
        padding: 10px;
    }
    h1 {
        font-size: 1.95em;
    }
    h2 {
        font-size: 1.3em;
    }
    .welcome {
        font-size: 0.7em;
    }
    #logo {
        padding: 0 15px;
    }
}

@media only screen and (max-width: 500px) {
    .pContainer {
        padding: 15px;
    }
    #home.container {
        height: 750px;
    }
    .card {
        width: 90%;
        height: 300px;
        margin: 20px 0;
    }
    .card:hover {
        transform: unset;
    }
    .cardImage {
        width: 100%;
    }
    li {
        display: none;
    }
    nav {
        justify-content: space-between;
    }
    .menuButton {
        display: inline-block;
    }
    .mobileNav.active {
        display: block;
        background: #e6e6e6;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        z-index: 999;
    }
    .mobileNav.active ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        margin: 0;
    }
    .mobileNav.active li {
        display: block;
        padding: 10px 0;
        width: 100%;
    }
    .mobileNav.active li a:after {
        opacity: 0;
    }
    .footerLinks .slightlyLarger {
        font-size: 5vw;
    }
    .whiteSpaceLR {
        padding: 0 15px 0 15px;
    }
    .separatorDivider {
        display: none;
    }
}
