/*
 Theme Name:     BoatNames
 Theme URI:      http://www.boatnames.co.uk
 Description:    Boatnames custom theme
 Author:         Rich - rich@06tech.com
 Author URI:     http://www.06tech.com
 Text Domain:    boatnames
 Template:       wp-bootstrap-starter
 Version:        1.0
*/

/*** Boatnames added **/
body {background: #fff;}

.bg-primary {
  background-color: #2C3E50 !important;
}

a.bg-primary:hover, a.bg-primary:focus,
button.bg-primary:hover,
button.bg-primary:focus {
  background-color: #1a252f !important;
}

div#mobile-menu {
    padding-top: 5px;
    padding-bottom: 5px;
    max-width: 1280px;
    margin: auto;
}

.navbar-dark .navbar-toggler {
    border-color: #fff!important;
}

.navbar-brand > a {
    font-weight: normal;
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

div#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1280px;
  margin: auto;
}

@media (min-width: 768px) {

    div#page {
        display: -ms-grid;
        display: grid;
        -ms-grid-columns: 200px 1fr;
        grid-template-columns: 200px 1fr;
        -ms-grid-rows: auto 1fr auto;
        grid-template-rows: auto 1fr auto;
    }

}

div#main-menu {
  padding: 20px;
  /* background-color: #91c4dc; */
  background-color: #019eba;
}

ul.main-menu-nav {
    margin-top: 3em;
    list-style: none;
    width: 100%;
    padding: 0px;
}

ul.main-menu-nav li {
    padding: 0px;
    padding-bottom: 1em;
}

ul.main-menu-nav li a.nav-link {
    border: 1px solid transparent;
    color: #fff;
    text-decoration: none;
    font-size: 1em;
}

ul.main-menu-nav li > a.nav-link:hover {
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #ffe;
    color: #666!important;
}

div#content {
  flex: 1;
  padding: 20px;
}

div#content {
    background-color: #fff;
    background-image: url('./images/content-top.gif');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 100% 35px;
}

header#masthead {

    /* Jan 2022 Use header_image() function
    background-image: url('./images/boatnames-header.png');
    background-size: cover;
    ***/

/*
    min-height: 120px;
    padding: 30px;
    background-color: #91c4dc;
    color: #91c4dc;
*/
    -ms-grid-column-span: 3;
    grid-column: span 3;
    text-align: center;
    font-size: 1.4em;

    background-color: #019eba;
    color: #019eba;
}

footer#colophon {
    -ms-grid-column-span: 3;
    grid-column: span 3;
    padding: 1em;
    font-size: 1em;
    background-color: #eee!important;
}

div.site-info {
    display: flex;
    justify-content: space-between;
    margin-top: 1em;
    color: #666;
}

div.site-info a {
    color: #00f!important;
    text-decoration: none;
}

div#site-info-credits {
    font-size: 0.8em;
}
ol#bn-step-list li {
    margin-bottom: 1em;
}

div#bn-show-basket-area {
    border: 1px solid #ccc;
    border-radius: 0.4em;
    padding: 1em;
}

span#bn-pcount {
    position: relative;
    left: -0.5em;
    top: 5px;
    padding: 0em 0.4em 0.2em 0.4em;
    background: #f99;
    color: #fff;
    width: 18px;
    border-radius: 3em;
    height: 18px;
    line-height: 18px;
    z-index: 1000;
}
div.bn-p-uname {
    border: 1px solid #ccc;
    border-radius: 0.4em;
    padding: 0.5em;
    font-size: 1.3em;
    text-align: center;
    /*
    overflow: auto;
    height: 100%;
    */
}
.bn-p-attr-hdg {
    margin-top: 1em;
}
ul.bn-p-attributes > li {
    margin-bottom: 0.4em;
}
.bn-pkey {
    color: #666;
    font-weight: bold;
    margin-right: 0.5em;
}
.bn-pval {
    color: #0c0;
}
/*** Font combo box ****/

/***
input#bn-c-combo-input {
    padding-right: 20px !important;
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAICAYAAADJEc7MAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAG2YAABzjgAA4DIAAIM2AAB5CAAAxgwAADT6AAAgbL5TJ5gAAABGSURBVHjaYvz//z8DOYCJgUzA0tnZidPK8vJyRpw24pLEpwnuVHRFhDQxMDAwMPz//x+OOzo6/iPz8WFGuocqAAAA//8DAD/sORHYg7kaAAAAAElFTkSuQmCC) right center no-repeat;
}
div#bn-c-combo-container:after {
        font-size: 1.2em;
        font-family: "Font Awesome 5 Free";
        content: "\f150";
        position: absolute;
        top: 2px;
        right: 6px;
}

***/

div#bn-c-outer {
    padding-top: 2em;
    padding-bottom: 1em;
    border: 1px solid #ccc;
    border-radius: 0.4em;
    /* background: #ffe; */
    background: #019eba;
}

div#bn-c-combo-container {
    /* display:inline-block;
    position: relative;
    */
   padding: 0px;
   width: 90%;
}


input#bn-c-combo-input {
    /*
    width: 90%;
    */
    width: 100%;
    border-radius: 4px;
    font-size: 1.2em;
    line-height: 2em;
}

i#bn-c-font-select-arrow {
    margin-left: 0.2em;
    position: absolute;
    font-size: 2.6em;
}

input#bn-c-combo-input.open {
    -webkit-border-bottom-left-radius: 0;
    -moz-border-radius-bottomleft: 0;
    border-bottom-left-radius: 0;
    -webkit-border-bottom-right-radius: 0;
    -moz-border-radius-bottomright: 0;
    border-bottom-right-radius: 0;
}

ul#bn-c-combo-font-list {
    display: none;
    position: absolute;
    padding: 0;
    margin: 0;
    border: 1px solid #d1d1d1;
    z-index: 100;
    background: #fff;
    max-height: 300px;
    overflow-y: auto;
    -moz-box-shadow: 0 2px 3px #ccc;
    -webkit-box-shadow: 0 2px 3px #ccc;
    box-shadow: 0 2px 3px #ccc;
    width: 80%;
}

ul#bn-c-combo-font-list li {
    display: block;
    padding: 5px 10px;
    margin: 0;
    white-space: nowrap;
    font-size: 1.4em;
}

ul#bn-c-combo-font-list li.intent {
    background: #eef;
}

ul#bn-c-combo-font-list li.selected {
    background: #fd7;
}

div.bn-c-colour-container {
    /*
    height: 26px;
    border: 1px solid #333;
    border-right: none;
    */
   display: flex;
   justify-content: space-around;
   width: 100%;
   height: 40px;
   padding-top: 1px;
}
div.bn-c-cbut-container {
    width: 4%;
    height: 35px;
}
button.bn-c-cbut {
    /* opacity: 0.5;
    float: left;
    border-right: 1px solid #333;
    */

    box-sizing: border-box;
    border: 1px solid #333;
    width: 100%;
    height: 90%;
    cursor: pointer;
}

button.bn-c-cbut:hover, button.bn-c-cbut-sel  {
    /*border-top: none;
    border: 1px solid #f00;
    opacity: 1;
    height: 30px;*/
    height: 40px;
}

.copyright a, footer#colophon a {
    color: #00f!important;
}

/** Dropdown selectors */
.bn-c-select {
    display: block;
    /* font-size: 16px; */
    font-size: 0.9em;
    font-family: Raleway,sans-serif;
    font-weight: 300;
    color: #444;
    line-height: 1.3;
    padding: .6em 1.4em .5em .8em;
    /* width: 100%;
    max-width: 100%;
    */
    box-sizing: border-box;
    margin: 0;
    border: 1px solid #aaa;
    box-shadow: 0 1px 0 1px rgba(0,0,0,.04);
    border-radius: .4em;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'),
      linear-gradient(to bottom, #ffffff 0%,#e5e5e5 100%);
    background-repeat: no-repeat, repeat;
    background-position: right .7em top 50%, 0 0;
    background-size: .65em auto, 100%;
}
.bn-c-select::-ms-expand {
    display: none;
}
.bn-c-select:hover {
    border-color: #888;
}
.bn-c-select:focus {
    border-color: #aaa;
    box-shadow: 0 0 1px 3px rgba(59, 153, 252, .7);
    box-shadow: 0 0 0 3px -moz-mac-focusring;
    color: #222;
    outline: none;
}
.bn-c-select option {
    font-weight: normal;
}

select#bn-c-squeegee {
    /*
    padding-left: 0;
    padding-right: 0;
    */
    display: inline
}

/** Canvas */
div#bn-c-canvas-outer {
    border: 1px dashed #666;
    height: 200px;
    padding: 0px;
    width: 100%;
    margin: auto;
    background-image: url('./images/chequers.png');
    background: #fff;
    margin-bottom: 20px;
}
div#bn-c-size-disclaimer {
    font-size: 1em;
    color: #fff;
}
div#bn-c-canvas-inner {
    width: 100%;
    height: 100%;
    /* background: #f99; */
    display: flex;
}
div#bn-c-v-arrow-container {
    width: 2%;
    height: 100%;
}
div#bn-c-canvas-rhs-container {
    width: 98%;
    height: 100%;
}
div#bn-c-canvas-name {
    width: 100%;
    min-height: 90%;
    /*
    border: 1px solid #c00;
    font-size: 4vw;
    padding-top: 2vh;
    */
    padding-top: 0.5em;
    font-size: 4em;
    text-align: center;
    vertical-align: middle;
    overflow: auto;
}
div#bn-c-h-arrow {
    display: flex;
    width: 90%;
    height: 10%;
    margin: auto;
    line-height: 1;
}
span#bn-c-vert-text,
span#bn-c-horiz-text {
    background: #000;
    color: #fff;
    border-radius: 2px;
    padding: 2px;
    font-size: 1em;
}
div#bn-c-v-arrow {
    display: flex;
    position: relative;
    top: 100px;
    left: -65px;
    height: 2px;
    width: 170px;
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}
div.bn-c-left-point {
    width: 10px;
    height: 10px;
    background-image: url('./images/arrow-left.png');
    background-position: center;
    background-repeat: no-repeat;
}
div.bn-c-arrow-body {
    font-size: 1em;
    text-align: center;
    width: 100%;
    height: 10px;
    background-position: center;
    background-image: url('./images/line.png');
    background-repeat: repeat-x;
}
div.bn-c-right-point {
    width: 10px;
    height: 10px;
    background-image: url('./images/arrow-right.png');
    background-position: center;
    background-repeat: no-repeat;
}

label.bn-c-input-label {
    color: #fff;
    display: block;
    font-weight: bold;
}

label.bn-c-input-label2 {
    color: #fff;
    margin-right: 0.5em;
    font-weight: bold;
}

div.bn-c-row {
    margin-bottom: 20px;
}

span#bn-c-ds-example {
    /* color: #558abb;
    text-shadow: 3px 3px 0px #cc9933;
    color: #0066ff;
    text-transform: uppercase;
    */
    color: #000;
    font-size: 5em;
    text-shadow: 3px 3px 0px #fff;
}

div#bn-c-ds-colour {
    display: none;
}

div.bn-c-arc-container {
    border: 1px solid #ccc;
    border-radius: 0.4em;
    height: 100px;
    text-align: center;
}

div.bn-c-arc-sample {
    font-weight: bold;
    color: #fff;
    margin-top: 0.5em;
}

@keyframes click-wave {
    0% {
        height: 40px;
        width: 40px;
        opacity: 0.35;
        position: relative;
    }

    100% {
        height: 200px;
        width: 200px;
        margin-left: -80px;
        margin-top: -80px;
        opacity: 0;
    }
}

.bn-c-arc-rad {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    -o-appearance: none;
    appearance: none;
    position: relative;
    top: 13.33333px;
    right: 0;
    bottom: 0;
    left: 0;
    height: 40px;
    width: 40px;
    transition: all 0.15s ease-out 0s;
    background: #cbd1d8;
    border: none;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    margin-right: 0.5rem;
    outline: none;
    position: relative;
    z-index: 1000;
}

.bn-c-arc-rad:hover {
    background: #9faab7;
}
.bn-c-arc-rad:checked {
    background: #40e0d0;
}
.bn-c-arc-rad:checked::before {
    height: 40px;
    width: 40px;
    position: absolute;
    content: '✔';
    display: inline-block;
    font-size: 26.66667px;
    text-align: center;
    line-height: 40px;
}
.bn-c-arc-rad:checked::after {
    -webkit-animation: click-wave 0.65s;
    -moz-animation: click-wave 0.65s;
    animation: click-wave 0.65s;
    background: #40e0d0;
    content: '';
    display: block;
    position: relative;
    z-index: 100;
}
.bn-c-arc-rad {
    border-radius: 50%;
}
.bn-c-arc-rad::after {
    border-radius: 50%;
}

select#bn-c-size-select {
    display: inline;
}

input#bn-c-quantity {
    width: 50%;
}

div#bn-c-qty-input,
div#bn-c-total-cost {
    padding: 0px;
}

input#bn-c-each,
input#bn-c-total {
    font-size: 1.2em;
    width: 50%;
    padding: 0.5em;
    border-radius: 0.4em;
}

div#bn-c-basket-but-container {
    display: inline;
}

input#bn-c-basket-but {
    background: #40e0d0;
    color: #fff;
    border-radius: 0.4em;
    font-size: 1.2em;
    padding: 0.5em;
    width: 50%;
}

input#bn-c-basket-but:hover {
    cursor: pointer;
    background: #FF706C;
}

div#bn-c-basket-container input.wspsc_add_cart_submit {
    /* display: none;
    width: 90%!important;
    */
}

div#bn-c-err-container {
    display: none;
}

div#bn-c-qty-disclaimer {
    font-weight: bold;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #fff;
}

div#bn-c-errbox {
    border: 1px solid #ccc;
    border-radius: 0.4em;
    padding: 0.2em;
    background: #f99;
    margin-bottom: 0.5em;
    color: #000;
}

span.wpspsc_cart_action_msg {
    color: #ffe;
    display: block;
    background: #c00;
    width: 100%;
    border-radius: 0.2em;
    padding: 0.4em;
}

div#bn-shopping-cart {
    border: 1px solid #ccc;
    border-radius: 0.4em;
    padding: 0.2em;
}
div#bn-odate {
    background: #eef;
    border: 1px solid #ccc;
    border-radius: 0.4em;
    padding: 0.4em;
}
table#bn-ptable {
    margin-top: 2em;
    border: 1px solid #ccc;
}
table#bn-ptable td, table#bn-ptable th {
    padding: .5em;
}
table#bn-ptable td {
    vertical-align: top;
}
tr.bn-pheader {
    background: #666;
    color: #ffe;
}
span.bn-c-font-label {
    float: right;
    margin-right: 0.8em;
}
div.bn-c-cbut-marker-div {
    display: none;
}

div#bn-c-dodger-info {
    background: #eef;
    margin: auto;
    margin-top: 1em;
    padding: 1em;
    border: 1px solid #333;
    border-radius: 4px;
}

div#bn-side-ad {
    margin-top: 3em;
    text-align: center;
}

@media (min-width: 1024px) {

    div#page {
        display: -ms-grid;
        display: grid;
        -ms-grid-columns: 220px 1fr;
        grid-template-columns: 220px 1fr;
        -ms-grid-rows: auto 1fr auto;
        grid-template-rows: auto 1fr auto;
    }

    header#masthead {
        min-height: 250px;
    }
}

@media (max-width: 1024px) {

    header#masthead {
        /**** Jan 2022 use header_image()
        background-image: url('./images/boatnames-header-mob.png');
        ****/

        padding: 0px 100px 100px 0px;
    }

}

@media (min-width: 2048px) {

    ul.main-menu-nav li a.nav-link {
        font-size: 1.2em;
    }

    header#masthead {
        background-image: url('./images/boatnames-header.png');
    }

    div#page {
        display: -ms-grid;
        display: grid;
        -ms-grid-columns: 294px 1fr;
        grid-template-columns: 294px 1fr;
        -ms-grid-rows: auto 1fr auto;
        grid-template-rows: auto 1fr auto;
    }

    footer#colophon {
        background-image: url('./images/footer.gif');
        background-repeat: no-repeat;
        background-position: right top;
        background-size: 100% 35px;
    }
}

@media (max-width: 768px) {

    header#masthead {
        /* background-image: none;
        width: calc(100vw - 100px);
        height: 100vh;
        */
        background-image: url('./images/boatnames-header-mob.png');

        /*
        width: 100vw;
        */
        padding: 0px 100px 100px 0px;
    }

    div#content > div.container {
        padding-left: 5px;
        padding-right: 5px;
    }

    div#bn-c-size-input,
    div#bn-c-qty-input,
    div#bn-c-squeegee-input,
    div#bn-c-each-cost,
    div#bn-c-total-cost,
    div#bn-c-order {
        text-align: center!important;
    }

    /* Split colour buttons across two lines ***/
    div.bn-c-colour-container {
        width: 100%;
        margin: auto;
        border: none;
        flex-wrap: wrap;
        justify-content: space-around;
        margin-bottom: 15px;
    }
    button.bn-c-cbut {
        width: 10%;
    }
    div.bn-c-cbut-marker-div {
        display: block;
        flex-basis: 100%;
        height: 0;
    }
    div#bn-c-ds-colour {
        margin-bottom: 40px;
    }
}
