@import url('fonts.css');

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    position: relative;
    font-size: 18px;
}

a {
    text-decoration: none;
    border: none;
}

body, .dlg-message {
    font-family: Roboto;
    font-weight: 400;
    letter-spacing: 0.02rem;

}

/* Page header */
header, main, footer {
    width: 100%;
    text-align: center;
}

header {
    background-color: #404040;
    padding-top: 4px;
    padding-bottom: 4px;
    color: #fff;
    font-size: 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

/* flex container */
header div {
    width: 800px;
    margin: 0 auto 0 auto;
    padding-left: 0px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: center;
    gap: 0 20px;
}

/* flex items */
header nav, header span {
    flex-basis: auto;
    flex-grow: 1;
}

header a {
    display: inline-block;
}

header nav a:link {
    color: #ddd;
}

header nav a:visited {
    color: #ddd;
}

header nav a:focus {
    color: #fff;
}

header nav a:hover {
    border-bottom: 2px dotted;
    border-color: #FF5D00;
}

header nav a:active {
    color: #fff;
}

header nav .L1selected {
    color: #fff;
    border-bottom: 2px solid;
    border-color: #FF5D00;
}

header menu {
    margin: 20px 0 20px 0;
    padding: 0;
    display: inline-block;
    vertical-align: middle;
}

header menu li {
    display: inline-block;
    margin: 0 15px 0 15px;
    vertical-align: top;
}

header #basket_icon {
    margin: 0;
    padding: 0;
}

header #facebook_logo img {
    height: 40px;
    width: 40px;
}

header button {
    display: inline-block;
    vertical-align: middle;
    background-image: url('/siteimages/basket.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #FF5D00;
    height: 40px;
    width: 60px;
    border: none;
    border-radius: 4px;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

header #basket_count {
    display: inline-block;
    font-size: 20px;
    color: #fff;
    min-width: 30px;
    text-align: right;
    padding-right: 4px;
}

main {
    padding: 120px 0 50px 0;

}

main article, main section, footer section {
    display: block;
    margin-left: 5%;
    margin-right: 5%;
    width: 90%;
    text-align: center;
}

/* Page footer */
footer {
    background-color: #666666;
    padding-top: 15px;
    padding-bottom: 15px;
    color: #fff;
    line-height: 1.2rem;
}

footer img {
    height: 80px;
    width: auto;
    opacity: 0.7;
}

h1, h2, h3 {
    font-family: 'Roboto Condensed';
    font-weight: 800;
    letter-spacing: 0.02rem;
}

h1 {
    font-size: 31px;
    text-align: center;
}

h2 {
    margin-top: 38px;
    margin-bottom: 4px;
    font-size: 25px;
    text-align: center;
}

h3 {
    margin-top: 20px;
    font-size: 20px;
    text-align: center;
}

p {
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    max-width: 900px;
}

article p, article ul {
    line-height: 1.5rem;
}

hr {
    border: 0;
    height: 1px;
    background: #333;
    background-image: linear-gradient(to right, #ccc, #333, #ccc);
    margin-top: 20px;
    margin-bottom: 20px;
}

ul {
    margin-left: auto;
    margin-right: auto;
    max-width: 450px;
    padding: 0px;
}

li {
    list-style-type: none;
}

table {
    margin-left: auto;
    margin-right: auto;
}

td {
    text-align: center;
    vertical-align: middle;
}

figure {
    text-align: center;
    vertical-align: top;
    margin: 20px 20px 20px 20px;
    padding: 0;
}

figure figcaption {
    font-weight: normal;
    font-size: 13px;
}

#social-media-buttons {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Link colours: document body text (default): underline when hovering.
    Should always be defined in this order: LVFHA */
article p a {
    font-weight: 500;
    color: #FF5D00;
}

article p a:link {
    border-bottom: 1px dotted;
}

article p a:visited {
}

article p a:focus {
}

article p a:hover {
    border-bottom: 1px solid;
}

article p a:active {
}

.invisiblelink a:link, .invisiblelink a:hover {
    border-bottom: none;
}

.notes {
    font-size: 14px;
    font-style: italic;
}

.logo {
    display: block;
    margin: 0 auto 0 auto;
    width: auto;
    max-height: 70px;
}

/* Home page */
#home_figures_container {
    max-width: 800px;
    margin: 0 auto 0 auto;
    padding: 0;
    overflow: hidden;
}

#home_figures_container figure {
    box-sizing: border-box;
    display: inline-block;
    margin: 0;
    padding: 20px 1% 20px 1%;
}

#home_figures_container figure:first-child {
    width: 46%;
}

#home_figures_container figure:last-child {
    width: 52%;
}

/* flex container */
.home_flex_container {
    display: flex;
    margin: 20px 0 0 0;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0 10px;
}

/* flex item */
.home_flex_item {
    flex-basis: 50%;
    align-items: center;
    overflow: hidden;
    flex-shrink: 1;
    flex-grow: 0;
}

.home_flex_item img {
    width: 100%;
    height: auto;
}

.uk_flag, .uk_flag img {
    vertical-align: middle;
}

.uk_flag img {
    padding-left: 4px;
    padding-right: 4px;
    width: auto;
    height: 30px;
}

.bbs_figure, .bbb_figure {
    display: inline-block;
}

.bbs_figure img {
    width: auto;
    height: 300px;
}

.bbb_figure img {
    width: auto;
    height: 200px;
}

.customer_logos img {
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* default button is large */
.button {
    border: none;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    font-size: 18px;
    margin: 10px 0 10px 0;
    padding: 6px 12px 6px 12px;
    vertical-align: middle;
    cursor: pointer;
}

.button_small {
    border: none;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    font-size: 14px;
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
    padding-top: 6px;
    padding-bottom: 7px;
    padding-left: 7px;
    padding-right: 7px;
    vertical-align: middle;
    cursor: pointer;
}

.button_green {
    background-color: #41AD49;
    color: #fff;
}

/* ***************** BBS page how it works swiper ***************** */
#bbs-swiper-container {
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    max-width: 450px;
    height: auto;
    max-height: 506px;
    margin: 15px 10px 20px 0;
    background-color: #E7E8E9;
    font-family: "league_gothic";
    font-weight: normal;
    font-style: normal;
    overflow: hidden;
}

.swiper-slide figure {
    box-sizing: border-box;
    width: auto;
    height: 100%;
    overflow: hidden;
}

.swiper-slide figure img {
    border: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    height: auto;
}

.swiper-slide figcaption {
    font-size: 30px;
    line-height: 32px;
    color: #41AD49;
}

.swiper-slide figcaption span {
    display: block;
    vertical-align: top;
}

.swiper-slide figcaption .bbs-slide-n {
    float: left;
    clear: left;
    font-size: 60px;
    line-height: 60px;
    color: #555;
    height: 70px;
    width: auto;
    margin-right: 10px;
}

.swiper-pagination-bullet {
    width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    vertical-align: middle;
    font-size: 22px;
    color: #000;
    opacity: 1;
    background: rgba(0, 0, 0, 0.2);
}

.swiper-pagination-bullet-active {
    color: #fff;
    background: #41AD49;
}

.swiper-button-next, .swiper-button-prev {
    color: #41ad49;
}

/* ***************** YouTube video ***************** */
.demo_video {
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    margin-left: 20px;
    padding-bottom: 40px;
    width: 100%;
    max-width: 450px;
    height: auto;
    background-color: #E7E8E9;
}

.demo_video iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: none;
    margin: 0;
    padding: 0;
}


/* ***************** Pricing and discounts table ***************** */
#pricing {
    margin-top: 10px;
    margin-bottom: 10px;
    border-spacing: 4px;
    border-collapse: separate;
    vertical-align: top;
}

#pricing th, #pricing td {
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 12px;
    padding-right: 12px;
}

#pricing th {
    background-color: #ddd;
}

#pricing td {
    background-color: #eee;
}

#pricing td .button_small {
    margin-left: 8px;
}

#pricing .pricing_col1 {
    text-align: right;
}


/* ***************** Add to shopping basket dialogue box ***************** */
::backdrop {
    background-color: #aaa;
    opacity: 0.75;
}

dialog {
    padding: 30px 30px 0px 30px;
    font-size: 18px;
    text-align: center;
    border: 1px solid;
    border-color: #888;
}

#dialog_product {
    font-weight: bold;
}

#dialog_close {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    background-image: url('/siteimages/close.svg');
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    margin: 0;
    padding: 0;
}

#dialog_image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: auto;
    height: 100px;
}



/* ***************** Checkout page ***************** */

/* ***************** Product boxes ***************** */
.product, #shopping_basket {
    text-align: center;
    vertical-align: top;
    margin: 5px;
    padding: 10px;
    font-size: 16px;
}

.product {
    display: inline-block;
    min-height: 360px;
    max-width: 230px;
    font-size: 15px;
    border: 1px solid;
    border-color: #ddd;
    overflow: hidden;
}

.product .button_large {
    margin-top: 0px;
}

.product h2 {
    margin-top: 2px;
    font-size: 22px;
}

.product h3 {
    font-size: 16px;
    margin-top: 5px;
    margin-bottom: 5px;
}

#bbs1_details {
    display: inline-block;
    vertical-align: top;
    margin-left: 10px;
    margin-right: 10px;
}

#bbs1_details h2 {
    margin-top: 20px;
}


/* ***************** Shopping basket ***************** */
#shopping_basket .basket_item {
    display: none;
}

#shopping_basket {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

#shopping_basket h1 {
    margin-top: 0;
    margin-bottom: 10px;
}

#shopping_basket table {
    border-collapse: collapse;
    border: none;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 10px;
}

#shopping_basket tr {
    background-color: #eee;
    border: 1px solid;
    border-color: #ddd;
    font-size: 16px;
}

#shopping_basket td {
    text-align: left;
    padding: 2px 8px 2px 8px;
}

#shopping_basket .inputfield {
    display: inline-block;
    width: 20px;
    height: 20px;
    padding: 4px;
}

#shopping_basket .basket_del_btn {
    color: #41AD49;
    cursor: pointer;
}

#shopping_basket #payment_form {
    text-align: center;
}

#shopping_basket .payment_method {
    width: 300px;
    height: 260px;
}

#guarantee {
    vertical-align: middle;
    width: 80px;
    height: 80px;
}


/* Back Box Bracket page */
.bbb_product_images {
    display: inline-block;
}

.bbb_product_images img {
    height: 200px;
    width: auto;
    margin: 0 10px 0 10px;
}

/* 404 not found page */
#page {
    text-align: center;
}

/* Overrides for phones and tablets up to 1024px */
@media only screen and (max-width:1024px) {

    #bbs-swiper-container {
        margin-left: auto;
        margin-right: auto;
        max-width: 550px;
        max-height: 600px;
    }

    .demo_video {
        margin-left: auto;
        margin-right: auto;
        max-width: 550px;
    }

    header {
        padding: 5px 0 5px 0;
    }

    header div {
        width: 94%;
        margin: 0 3% 0 3%;
    }

    #home_figures_container {
        width: 100%;
        max-width: none;
    }

    .logo {
        max-height: 65px;
    }

}

@media only screen and (max-width:760px) {
    header {
        min-height: 62px;
    }

    header div {
        padding: 0;
        justify-content: space-between;
    }

    header menu {
        margin: 3px 0 3px 0;
        display: block;
    }

    header menu li {
        display: block;
        margin: 5px 0px 5px 0px;
        vertical-align: top;
        font-size: 0.95rem;
    }

    header #basket_icon {
        text-align: right;
    }

    header #basket_count {
        min-width: 20px;
    }

    main article, main section, h1, h2, h3, p, li {
        text-align: left;
    }

    #home_figures_container figure, 
    .bbs_figure {
        display: block;
        margin: 0;
        padding: 20px 0 20px 0;
    }

    #home_figures_container figure img {
        margin: 0 auto 0 auto;
    }

    .bbs_figure img, .bbb_figure img {
        width: 100%;
        height: auto;
    }

    #home_figures_container figure:first-child {
        width: 100%;
    }

    #home_figures_container figure:last-child {
        width: 100%;
    }

}

/* Overrides for small devices (phones) up to 630px: */
@media only screen and (max-width:630px) {
    figure {
        margin: 0 0 20px 0;
    }

    .logo {
        margin: 0;
        width: 100%;
        height: auto;
        max-height: none;
    }

    .uk_flag {
        font-size: 16px;
    }

    .uk_flag img {
        width: auto;
        height: 22px;
        vertical-align: top;
        font-size: 14px;
    }

    footer img {
        height: 60px;
        margin-top: 8px;
        margin-bottom: 8px;
    }

    ul {
        padding-left: 20px;
    }

    #bbs-swiper-container {
        width: 100%;
        max-width: none;
    }

    .swiper-slide {
        font-size: 16px;
    }

    .swiper-slide figure {
        margin: 8px;
    }

    .product, #bbs1_details, #shopping_basket {
        max-width: none;
        min-height: 0;
        margin-left: 0px;
        margin-right: 0px;
    }

    .product, #bbs1_details {
        width: 96%;
        padding-left: 2%;
        padding-right: 2%;
        border: none;
    }

    #bbs1_details #pricing th, #bbs1_details #pricing td {
        padding-top: 4px;
        padding-bottom: 4px;
        padding-left: 4px;
        padding-right: 4px;
    }

    #pricing .pricing_col1 {
        text-align: center;
    }

    #shopping_basket {
        box-sizing: border-box;
        min-width: 0;
        width: 100%;
    }

/*
    .product h2, .product h3, .product p, #shopping_basket h2, #shopping_basket h3, #shopping_basket p {
        text-align: center;
    }
*/
    .ui-dialog {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-width: none;
    }

    .ui-dialog-content, .ui-dialog-content p {
        text-align: center;
    }

}
