/* Fonts

font-family: 'Roboto', sans-serif;
font-family: 'Lato', sans-serif;

*/

body {
    font-family: 'Lato', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
}

/* Colours */

.red{
	color: #ff0000;
}

.blue{
	color: #0000ff;
}

/* Foundation overrides */

.grid-container {
    max-width: 87.5rem;
}

.top-bar, .top-bar ul {
    background-color: #605F5F;
}

ul {
    list-style: none;
}

ul ul,
ol ul,
ul ol,
ol ol,
ul {
    margin-left: 0;
}

a {
    color: #282828;
}

.top-bar a,
.top-bar li {
    color: #ffffff;
    font-size: 18px;
}

.top-bar {
    padding: 0;
}

.top-bar a.snbTitle:hover {
    color: #bbbbbb;
}

.position-left {
    width: 100%;
    transform: translateX(-100%);
}

h1 {
    font-size: 26px;
}

h2 {
    font-size: 22px;
}

h3 {
    font-size: 19px;
}

h4 {
    font-size: 16px;
}

h5 {
    font-size: 12px;
}

/*********
Styles for the off canvas
 *********/

#offCanvas {
    background-color: #564D65;
}

#offCanvas ul li {
    border-bottom: 1px solid #a5a5a5;
}

#offCanvas ul li span,
#offCanvas ul li a {
    position: relative;
    color: #ffffff;
    display: block;
    cursor: pointer;
    line-height: 30px;
    font-size: 20px;
    padding: 10px;
}

#offCanvas ul li a.menuClose {
    background-color: #dc0000;
}

#offCanvas .menuChild {
    display: none;
    border-top: 1px solid #a5a5a5;
    background-color: #605F5F;
}

#offCanvas li.menuParent i {
    position: absolute;
    right: 8px;
    font-size: 24px;
    top: 12px;
}

#offCanvas .menuSecondChild {
    background-color: #8e8d8d;
}

/*********
 Styles for the header, media queries at element level
 *********/

header {

}

.top-bar-wrapper {
    background-color: #605F5F;
    color: #ffffff;
}

.top-bar a {
    padding: 10px;
}

.top-bar a.topbar-buttons {
    display: inline-block;
    margin-right: 10px;
    font-size: 20px;
}

.top-bar a.topbar-buttons:hover {
    color: #564D65;
}

.callNowNumbers {
    font-size: 14px;
}

.callNowNumbers .town {
    font-size: 18px;
}

.callNowNumbers .number {
    font-size: 18px;
    font-weight: 700;
}

a.snbTitle {
    font-size: 28px;
}

a.snbTitle span {
    font-size: 34px;
    font-weight: 700;
}

header .headerLogo {
    display: block;
    margin: 10px auto;
    max-height: 100px;
    text-align: center;
}

header .helpLine {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    color: #564D65;
}

@media only screen and (min-width: 640px) {
    header .headerLogo {
        display: inline-block;
        margin: 0;
    }

    header .helpLine {
        float: right;
        font-size: 16px;
        margin-top: 50px;
    }
}

@media only screen and (min-width: 768px) {
    header .headerLogo {
        margin: 20px;
    }

    header .helpLine {
        font-size: 20px;
    }
}

@media only screen and (min-width: 1024px) {
    header .helpLine {
        font-size: 30px;
    }
}

header .socialButtons {
    display: inline-block;
}

header .quoteRequest {
    display: inline-block;
    background-color: #564D65;
    color: #ffffff;
    padding: 6px 10px;
}

header .quoteRequest:hover {
    background-color: #605F5F;
}

header .mainMenu {
    background-color: #564D65;
}

header .mainMenu > div > ul {
    display: flex;
    margin-bottom: 0;
}

header .mainMenu > div > ul > li {
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: auto;
    text-align: center;
    position: relative;
}

header .mainMenu > div > ul > li > a,
header .mainMenu > div > ul > li > span {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    color: #ffffff;
}

@media only screen and (min-width: 768px) {
    header .mainMenu > div > ul > li > a,
    header .mainMenu > div > ul > li > span {
        font-size: 16px;
    }
}

@media only screen and (min-width: 1000px) {
    header .mainMenu > div > ul > li > a,
    header .mainMenu > div > ul > li > span {
        font-size: 18px;
    }
}

header .mainMenu > div > ul > li > span i {
    vertical-align: top;
    margin-top: 1px;
    margin-right: 5px;
}

header .mainMenu > div > ul > li > a:hover,
header .mainMenu > div > ul > li > span:hover {
    background-color: #dc0000;
}

header .mainMenu > div > ul > li.menuParent span:hover ul {
    display: block;
}

header .menuChild {
    z-index: 99;
    display: none;
    position: absolute;
    left: 0;
    background-color: #dc0000;
    text-align: left;
    margin: 10px 0 0 0;
    min-width: 200px;
    width: 100%;
    border-radius: 0 0 16px 16px;
    border-left: 1px solid #564D65;
    border-right: 1px solid #564D65;
    border-bottom: 1px solid #564D65;
}

@media only screen and (min-width: 768px) {
    header .menuChild {
        min-width: 250px;
    }
}

@media only screen and (min-width: 1000px) {
    header .menuChild {
        min-width: 300px;
    }
}

header .menuChild li a {
    display: block;
    padding: 8px;
    color: #ffffff;
}

header .menuChild li a:hover {
    background-color: #564D65;
}

header .menuChild li:last-of-type a:hover {
    border-radius: 0 0 16px 16px;
}

header .menuChild li:first-of-type {
    border-top: 1px dashed #564D65;
}

/*********
 Styles for the footer, media queries at element level
 *********/

footer {
    background-color: #605F5F;
    color: #ffffff;
    padding: 20px;
}

.tandcs{
    color: #ffffff;
    padding-bottom: 16px;
    display: inline-block;
    margin-right: 10px;
}

.tandcs:hover{
    color: #dc0000;
}

/****************************
Styles for the machine pages
****************************/

.machine {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    margin-bottom: 40px;
}

.machineDescription ul  li:before {
    font-family: "Font Awesome 5 Pro";
    content: '\f2f8';
    font-weight: 700;
    font-size: 12px;
    margin-right: 5px;
    color: #564d65;
}

#machineBackLink{
    width: 100%;
    padding: 20px;
    font-weight: 700;
}

h1.machineTitle {
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: calc(100% - 40px);
    padding: 20px;
}

.machineImage {
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: 100%;
}

.machineImage img {
    height: auto;
    max-width: 500px;
    padding: 0 20px;
    width: calc(100% - 40px);
}

.machineDetails {
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: 100%;
}

.stockCode{
    background-color: #605F5F;
    color: #FFFFFF;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 16px;
    margin: 5px;
}

.machineSpec li{
    margin-bottom: 5px;
}

.machineSpec li:before,
.machineDescription li:before{
    font-family: "Font Awesome 5 Pro";
    content: '\f2f8';
    font-weight: 700;
    font-size: 12px;
    margin-right: 5px;
    color: #564d65;
}

@media screen and (min-width: 568px) {
    .machineImage {
        flex-grow: 1;
        flex-shrink: 0;
        flex-basis: 40%;;
    }

    .machineDetails {
        flex-grow: 1;
        flex-shrink: 0;
        flex-basis: 60%;
    }
}

/*********
 Main body styles, media queries at element level
 *********/

.homepage main {
    padding: 0;
}

/************************************************
 Styles for the category/machine admin pages
 ************************************************/

.categoryTitle {
    width: 100%;
    padding: 20px 20px 0;
}

.categorySpecifications,
.categoryIntro {
    width: calc(50% - 40px);
    padding: 20px;
    float: left;
}

.categorySpecifications i {
    color: #dc0f16;
}

.categoryTerms {
    clear: left;
    width: 100%;
    padding: 10px;
}

#machineListContainer {
    display: flex;
    flex-wrap: wrap;
}

.machineList-Header {
    text-align: center;
    font-weight: 700;
}

.machineSelection {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    justify-content: space-around;
}

.machineSelection li {
    padding: 10px;
    flex-basis: 50%;
}

@media screen and (min-width: 900px){
    .machineSelection li {
        flex-basis: 25%;
    }
}

.machineSelection li a {
    display: block;
    position: relative;
}

.machineSelection li p {
    color: white;
    font-size: 18px;
    font-weight: 700;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px;
}

.machineSelection li a img {
    width: 100%;
}

.machineSelection li a:hover img {
    opacity: 0.6;
}

@media screen and (min-width: 800px) {
    .machineSelection li span {
        font-size: 16px;
    }
}

@media screen and (min-width: 900px) {
    .machineSelection li span {
        font-size: 18px;
    }
}

@media screen and (min-width: 1000px) {
    .machineSelection li span {
        font-size: 20px;
    }
}

.filterSwitch {
    display: block;
    text-align: center;
    display: block;
    width: 100%;
    font-size: 20px;
    background-color: #605F5F;
    color: #ffffff;
    cursor: pointer;
}

@media screen and (min-width: 640px) {
    .filterSwitch {
        display: none;
    }
}

.filterPanel {
    display: none;
}

@media screen and (min-width: 640px) {
    .filterPanel {
        display: block;
    }
}

.filterBlocks {
    padding: 0 10px 10px;
}

.filterName {
    cursor: pointer;
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0;
}

.filterName:after {
    font-family: "Font Awesome 5 Pro";
    content: '\f107';
    margin-left: 10px;
}

.filterName.open:after {
    content: '\f106';
}

.filterNameUsed {
    display: inline-block;
    margin-left: 10px;
    color: green;
}

.filterBlocks li {
    margin-bottom: 2px;
}

.filterBlocks li a {
    font-size: 14px;
    text-decoration: none;
    color: black;
}

.filterBlocks li a.filterUsed {
    color: green;
}

.clearAllFilters {
    color: #dc0000;
    display: block;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
}

.clearAllFilters:hover {
    color: #ff4800;
}

.machineCount {
    text-align: center;
    margin: 10px auto;
    width: 300px;
    background-color: #564D65;
    color: #ffffff;
    padding: 5px;
    border-radius: 6px;
}

.machineList {
    align-content: flex-start;
}

.machineBlock {
    padding: 10px;
    text-align: center;
}

.machineBlock img {
    width: 80%;
}

.machineBlock span {
    display: block;
    background-color: red;
    color: white;
    font-size: 12px;
    width: 80%;
    margin: 0 auto;
    border-radius: 8px 8px 0 0;
    text-transform: uppercase;
}

.machineBlock p {
    margin-bottom: 6px;
}

.searchBox {
    padding: 10px;
    margin-bottom: 10px;
}

.clearSearch {
    color: #ff0000;
    display: block;
    text-decoration: none;
    padding: 10px 0;
    font-weight: 700;
}

.pagination {
    font-size: 20px;
    text-align: center;
    width: 100%;
    font-weight: 700;
}

.pagination a {
    text-decoration: none;
    color: black;
    padding: 3px 5px;
    display: inline-block;
    width: 30px;
}

.pagination .currentPage {
    border: 1px solid #bbbbbb;
    padding: 3px 5px;
}

.pagination .inactivePagination {
    color: #bbbbbb;
}

/* Styles for the homepage/pages */

.pageHero,
.homePageHero {
    text-align: center;
}

.homePageHero{
    margin-bottom: 20px;
}

.pageContent {
    padding: 20px;
}

.pageContent ul,
.pageContent p {
    padding-left: 10px;
}

.pageContent > h1 {
    font-family: 'Ubuntu', sans-serif;
    background-color: #e80000;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 16px 4px 16px 4px;
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
}

.pageContent ul li:before {
    font-family: 'Font Awesome 5 Pro';
    content: '\f83e';
    color: #e80000;
    margin-right: 6px;
}


.pageContent a {
    font-weight: 700;
    text-decoration: underline;
}

.pageContent a:hover {
    text-decoration: none;
}

.pageSideMenu {
    border-radius: 5px;
    margin-top: 20px;
}

.pageSideMenu ul li a,
.pageSideMenu ul li span {
    display: block;
    padding: 14px 10px;
    color: #ffffff;
    border-bottom: 1px solid #b7b7b7;
}

li.sideMenuLvl1 ul li:last-of-type a,
li.sideMenuLvl1 ul li:last-of-type span {
    border-bottom: none;
}

.pageSideMenu ul li.current > a:before {
    font-family: 'Font Awesome 5 Pro';
    content: '\f138';
    margin-right: 6px;
}

.pageSideMenu ul li a:hover {
    opacity: 0.8;
}

.pageSideMenu ul li.sideMenuLvl1 > span {
    text-align: center;
    border-radius: 16px 4px 0px 0;
    background-color: #564d65;
    font-weight: 700;
    font-size: 18px;
}

.pageSideMenu ul li.sideMenuLvl1 > ul {
    background-color: #605F5F;
    border-radius: 0 0 16px 4px;
}

.pageSideMenu ul li.sideMenuLvl3 > a {
    padding-left: 32px;
    min-height: 66px;
    background-color: #909090;
    font-weight: 400;
}

.pageSideMenu ul li.sideMenuLvl3.current > a {
    background-color: #848484;
    padding-left: 10px;
}

/* About us time line */
.timelineTitle{
    font-size: 26px;
    text-align: center;
}

.timeline{
    position: relative;
    overflow: hidden;
    padding-top: 50px;
}

.timeline .line {
    position: absolute;
    left: 50%;
    top: 0;
    background-color: #564D65;
    width: 5px;
    height: 120%;
    margin-top: -100px;
    z-index: 2;
}


.timeline li{
    border-top: 5px solid #564D65;
    width: 50%;
    clear: both;
    position: relative;
    text-align: center;
}

.timeline li img {
    max-height: 300px;
}

.timelineDate {
    font-size: 20px;
    padding: 10px;
    background-color: #605F5F;
    color: #ffffff;
}

.timeline li:before{
    display: none;
}


.timeline li:nth-child(odd){
    float: left;
}

.timeline li:nth-child(odd) div{
    padding: 0 20px 0 0;
}

.timeline li:nth-child(even){
    float: right;
}

.timeline li:nth-child(even) div{
    padding: 0 0 0 20px;
}

.timeline li .timelineMarker{
    position: absolute;
    top: -38px;
    z-index: 3;
}

.timeline li:nth-child(odd) .timelineMarker{
    right: -37px;
}

.timeline li:nth-child(even) .timelineMarker{
    left: -43px;
}

.timeline .fa-circle{
    color: red;
}

.timeline .fa-map-marker-alt{
    color: white;
}

/* Careers page */

.jobBlocks{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.jobBlocks div {
    flex-basis: 100%;
    border: 1px solid black;
    border-radius: 16px 0 16px 0;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #564d65;
    color: white;
}

@media screen and (min-width:1024px){
    .jobBlocks div {
        flex-basis: calc(33.33333333333333% - 20px);
    }
}

.hireLink {
    margin: 0 auto;
    display: block;
    width: 300px;
    border-radius: 16px 0 16px 0;
    text-align: center;
    background-color: #564d65;
    padding: 10px;
}

.hireLink:hover {
    background-color: #5e3e94;
}

.hireLink a{
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
}

/*  Message system */

.messageModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999999;
}

.messageModal div {
    color: #ffffff;
    box-shadow: 2px 2px 5px 1px #7d7d7d;
    font-size: 16px;
    padding: 10px 50px;
    position: relative;
    text-align: center;
}

.messageModal div a{
    color: #ffffff;
    font-weight: 700;
}

.messageModal div.success {
    background-color: #008000;
}

.messageModal div.error {
    background-color: #ff0000;
}

.messageModal div i {
    position: absolute;
    top: 14px;
    right: 20px;
}

.messageModal div i:hover {
    color: #808080;
    cursor: pointer;
}

.adminBlock{
    margin-bottom: 20px;
}

/******************
Printing
 ******************/


@media print {
    .top-bar-wrapper,
    .pageSideMenu,
    .mainMenu,
    .machineSelection,
    .filterPanel,
    .machineCount,
    .pagination,
    .filterSwitch,
    .machineBlock span{
        display: none;
    }
}
