:root {
    --border-radius: 15px;
    --gap-pad: 30px;
    --header-text-color: #516aac;
    --bg-color-1: #293b68;
    --bg-color-2: #111659;
}
/* Styles for the whole site */
html body{
    /*! margin: 0; */
    /*! width: 100%; */
    /*! height: 100%; */
    /*! padding: 0; */
    font-size: 16px;
    font-family: 'Oswald', sans-serif;
    display: grid;
    grid-template-rows: min-content 1fr min-content;
    height: 100vh;
    overflow: hidden;
}
body a {
    color: #000000;
    text-decoration: none;
}
body ul li{
    list-style: none;
}
/* End of Styles for the whole site */
/* Style for Header */
header {
    padding: 5px;
    display: grid;
    grid-template-columns: 200px auto;
    background: #ffffff;
    border-bottom: 1px solid lightgrey;
    grid-row: 1;
}
h1,
h2,
h3,
h4,
h5 {
    color: var(--header-text-color);
}
h5 {
    display: inline-block;
    margin: 0;
}
#LogoBox{
    grid-row: 1 / 3;
}
#headerLogo{
    width: 100%
}
#shop,#categories {
    text-align: right;
}
header ul {
    margin: 5px;
}
header ul li, header form{
    display: inline;
}
.headerItem{
    margin: auto 5% auto 0;
    font-size: 1.3rem;
}
#searchBar {
    margin: auto 2% auto 0;
}
#headerProfile {
    font-size: 1.5rem;
    margin: auto 2% auto 0;
}
#headerMenu, #headerMobileSearch {
    display: none;
}
.search-container {
    margin-left: 10px;
    background: #ddd;
    width: fit-content;
    height: fit-content;
    border-radius: 5px;
    padding-bottom: 0;
    display: inline-block;
}
.search-container input {
    border-radius: 5px 0 0 5px;
    margin: 4px 5px;
}
.search-container button {
    padding: 0 15px 0 5px;
    vertical-align: 4px;
    background: transparent;
    font-size: 17px;
    border: none;
    cursor: pointer;
}
#cartCount {
    color: green;
    padding: 0 2px;
}
@media only screen and (max-width: 700px) {
    #categories, #searchBar {
        display: none;
    }
    .headerItem {
        margin: 5% 7% 5% 0;
        font-size: 1.6rem;
    }
    #headerMenu, #headerMobileSearch {
        display: inline;
    }
    header {
        grid-template-columns: 120px auto;
    }
}
@media only screen and (max-width: 420px) {
    .search-container {
        width: 80%;
    }
}
/* End of Header */
/* The Footer */
footer{
    color: #FFF;
    background: #24252b;
    padding: 0 10px;
}
.footBox{
    display: grid;
    grid-template-columns: auto auto auto auto;
    border-bottom: 1px solid #fff;
}
.footBox ul li:first-child{
    font-weight: bold;
    text-decoration: underline;
}
.footBox a {
    color: #FFF;
    text-decoration: none;
}
footer div p {
    margin: 0;
    padding-left: 40px;
}
@media only screen and (max-width: 420px) {
    .footBox{
        grid-template-columns: auto auto;
    }
}
/* End of the Footer */
/* Side Nav Bar Style */
.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 5;
    top: 0;
    right: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}
.sidenav a {
    padding: 4px 8px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}
.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
}
.navList a {
    font-size: 1rem;
}
/* End Side Nav */
/* Index Style */
#productHome {
    /*! min-width: calc(100% - 192px); */
    display: grid;
    grid-template-columns: 5% 90% 5%;
    grid-gap: var(--gap-pad);
    padding: var(--gap-pad);
    justify-content: center;
    /*! width: 100%; */
}
#Banner {
    width: 100%;
    /*! grid-column: 2; */
}
#Banner img {
    width: 100%;
}
#indexFork {
    display: flex;
    grid-column: 2;
    flex-wrap: wrap;
    width: 100%;
    gap: var(--gap-pad);
    justify-content: center;
}
#indexFork a {
    width: 350px;
}
/*
#productLink, #serviceLink {
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
}
*/
.home-section-link {
    width: 100%;
    border-radius: 15px;
    border: 1px solid #000000;
}
#indexFork div div {
    background: #000000;
    text-align: center;
    border-radius: 15px 15px 0 0 ;
}
#indexFork div div h2 {
    color: #ffffff;
    margin: 0;
    font-size: 1.7rem;
}
/*
#productLink {
    background-image: url("../images/ProductLinkImage.jpg");
}
#serviceLink {
    background-image: url("../images/pinehurst.JPG");
}*/
@media only screen and (max-width: 420px) {
    #indexFork {
        height: 90vh;
        grid-template-columns: auto;
        grid-template-rows: auto auto;
    }
}
/* End Index Style */
/* LogIn Style */
#logInWindow{
    padding: 50px;
    text-align: center;
}
#logInWindow input {
    margin: 6px;
}
#logInWindow a:hover {
    color: rgb(57, 70, 99);
    text-decoration: underline;
}
#logInBox{
    width: 25%;
    margin: auto;
    border-radius: 15px;
    background: #ddd;
}
@media only screen and (max-width: 1000px) {
    #logInBox{
        width: 50%;
        margin: auto;
        border-radius: 15px;
        background: #ddd;
    }
}
@media only screen and (min-width : 1224px) {
    /* Styles */
    #indexFork a {
        width: 500px;
    }
}
@media only screen and (max-width: 420px) {
    #logInBox {
        width: 80%;
        margin: auto;
        border-radius: 15px;
        background: #ddd;
    }
}
/* End of LogIn */
/* productCategories.html Style */
.shopProducts{
    display: grid;
    grid-template-columns: calc(100%/3 - 20px) calc(100%/3 - 20px) calc(100%/3 - 20px);
    grid-gap: 30px;
    padding: 30px;
    max-width: 1000px;
    margin: 0 auto;
}
#shopBanner img {
    width: 100%;
}
#shopMain h2 {
    text-align: center;
}
.categoryItem {
    box-shadow:
            0 0 1px 1px #999,
            0 0 4px 1px #666;
    border-radius: 4px;
}
.categoryItem:hover {
    box-shadow:
            0 0 3px 2px #999,
            0 0 6px 2px #666;
}
.categoryItem img {
    width: 100%;
}
.categoryItem h2{
    font-size: 1rem;
}
@media only screen and (max-width: 800px) {
    .shopProducts{
        grid-template-columns: calc(100%/2 - 16px) calc(100%/2 - 16px);
    }
}
/* End of productCategories.html Style */
/* Search Product Style */
#searchDisplay{
    display: grid;
    grid-template-columns: 250px auto;
    grid-gap: 10px;
    padding: 10px;
}
.filterBar {
    padding: 0 10px;
    border-right: 1px solid lightgrey;
}
.filterBar select {
    border-radius: 5px;
    background: #ddd;
}
.catagory {
    font-weight: bold;
    padding: 5px 0;
}
.products {
    margin: 5px;
    width: calc(100% - 10px);
    display: flex;
    flex-wrap: wrap;
}
/* This styling is for the page numbers */
.pageNumbers{
    width: calc(100% - 2px);
    height: 50px;
    white-space: nowrap;
    user-select: none;
    display: flex;
    grid-template-areas:
            "prev numbers next";
    grid-template-columns: 60px calc(100% - 122px) 60px;
    justify-content: center;
}
#leftButton{
    grid-area: prev;
}
#rightButton{
    grid-area: next;
}
.pageButton {
    color: #fff;
    cursor: pointer;
    display: grid;
    grid-auto-flow: column;
    grid-gap: 10px;
    padding: 10px;
}
.pageButton > div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #333;
}
.pageNumbersContainer{
    background: #fff;
    grid-area: numbers;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}
.page-link {
    height: 100%;
    box-sizing: border-box;
    width: 30px;
    box-shadow: 0 0 1px 1px #999;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    font-size: 13px;
}
.page-link:hover {
    box-shadow: 0 0 4px 2px #666;
}
.page-link.active{
    box-shadow: inset 0 0 3px 1px black;
    background-color: #666;
    color: white;
}
.page-link-filler {
    margin: 0 3px;
}
.pageNumbers div{
}
/* End of the page number styling */
/* itemCardTemplate Style */
.product {
    display: grid;
    grid-template-areas:
            "img"
            "desc";
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 0 1px 1px #999;
    width: 200px;
    height: 280px;
}
.product:hover {
    box-shadow: 0 0 4px 2px #666;
}
.product .image {
    display: flex;
    align-items: center;
    justify-content: center;
}
.product .image > img {
    width: auto;
    height: 150px;
}
.product .desc {
    border-top: 1px solid #000;
}
.product h4, .product h6{
    margin: 0;
}
.product h5{
    margin: 2px 0;
}
/* End itemCardTemplate.html */
@media only screen and (max-width: 800px) {
    .filterBar{
        font-size: 1rem;
        border-right: none;
    }
    .justFilters {
        display: grid;
        grid-template-columns: auto auto;
    }
    .product div {
        font-size: 1rem;
    }
    #searchDisplay{
        grid-template-columns: auto;
    }
}
@media only screen and (max-width: 1000px) {
    .products {
        grid-template-columns: auto auto;
    }
}
@media only screen and (max-width: 420px) {
    .products {
        grid-template-columns: auto;
    }
    #results {
        display: none;
    }
}
/* End of the Search Product Style */
/* Start of the productPage */
#topSection {
    display: grid;
    grid-template-columns: 50% 50%;
    padding: 5px;
}
#imageBox {
    width: 50%;
    text-align: center;
}
#imageBox img {
    width: 45vw;
    margin: 10px auto;
}
#orderBox {
    vertical-align: top;
    padding: 10px 10px 100px 10px;
    border: 1px solid lightgrey;
    border-radius: 5px;
    background: lightgrey;
    position: relative;
}
#orderBox h2 {
    margin: 0;
}
#orderBox h3 {
    color: green;
}
.in-stock {
    color: unset !important;
}
.no-stock {
    color: red;
}
.has-stock {
    color: green;
}
#orderBox a {
    border-radius: 5px;
    margin-top: 1.67em;
    border: 1px solid #000;
    cursor: pointer;
    padding: 10px 40px;
    font-weight: bold;
    background: #539fe0;
}
.productID {
    display: none;
}
.cartButton {
    position: absolute;
    bottom: 10px;
    left: 10px;
}
#orderBox a:hover {
    background: #0275d8;
}
#descriptionContainer {
    width: 100%;
}
.tabs {
    border-left: 1px solid black;
    border-top: 1px solid black;
    border-right: 1px solid black;
    padding: 0 25px;
    text-decoration: none;
    color: #000;
    border-radius: 5px 5px 0 0;
    margin: 0 2px;
}
.tabs:hover {
    background: #0275d8;
}
.tabs:first-child {
    margin-left: 10px;
}
.activeTab {
    background: #c0c0c0;
}
.talkBox {
    padding: 10px;
    display: none;
    border-top: 1px solid black;
    height: 300px;
}
table {
    width: 50%;
    margin: auto;
    border-collapse: collapse;
    border: 1px solid black;
}
table tr {
    border-bottom: 1px solid black;
}
table tr:nth-child(odd){
    background: #c0c0c0;
}
@media only screen and (max-width: 800px) {
    .tabs {
        padding: 0 2%;
    }
    #orderBox a {
        padding: 5px 20px;
        font-weight: normal;
    }
}
/* End of the productPage */
/* About Page */
#aboutContainer {
    padding: 25px;
    grid-column: 2;
    background-color: #ddd;
    border-radius: var(--border-radius);
}
.leaderContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.grid-item {
    width: 250px;
    border-radius: var(--border-radius);
    display: grid;
    grid-template-rows: min-content 200px auto;
    grid-template-columns: 1fr;
    align-items: center;
    justify-content: center;
    /*! overflow: hidden; */
}
.grid-item > * {
    margin: unset;
    width: 100%;
    display: grid;
    justify-content: center;
    align-content: center;
    justify-items: center;
}
.grid-item h3 {
    grid-row: 1;
}
.grid-item img {
    grid-row: 2;
    height: 200px;
    width: auto;
    border-radius: var(--border-radius);
    align-self: center;
}
.grid-item ul {
    grid-row: 3;
    /*! display: grid; */
    padding: 0;
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
}
.grid-item li {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.grid-item li:has(a) {
    display: flex;
    gap: var(--border-radius)

}
.grid-item li h5 {
    grid-column: 1;
}
.grid-item li a {
    grid-column: 2;
}
@media only screen and (max-width: 600px) {
    .leaderContainer {
        grid-template-columns: auto;
    }
    .grid-item img {
        width: 80%;
    }
}
/* End of About Page */
/* Contact Page */
#contactHome {
    display: grid;
    grid-template-columns: 50% 50%;
    padding: 10px;
}
#contactInformation {
    border-right: 1px solid lightgray;
}
#contactForm, #contactInformation {
    padding: 25px;
}
#contactHeading h2, h4{
    margin-block-start: 0.25em;
    margin-block-end: 0.25em;
}
#contactForm {
    width: 90%;
    margin: auto;
}
.contactInput {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    font-size: 14px;
    line-height: 18px;
    font-family: 'ClearSans', Arial, sans-serif;
    color: #555;
    height: 54px;
    padding: 10px 15px 13px;
    box-sizing: border-box;
    width: 100%;
}
.textInput {
    width: 100%;
    height: 20vh;
    padding: 10px 15px 13px;
    box-sizing: border-box;
    border: 1px solid #d9d9d9;
    color: #555;
}
.contactSubmit{
    width: 50%;
    height: 54px;
    margin: 0 25%;
    border-radius: 20px;
    font-size: 1.2rem;
    line-height: 18px;
    font-family: 'ClearSans', Arial, sans-serif;
    background: #000;
    color: #fff;
    border: none;
}
@media only screen and (max-width: 700px) {
    #contactHome {
        grid-template-columns: auto;
    }
    #contactInformation {
        border-right: none;
    }
}
/* End of Contact Page */
/* Delivery Page */
#deliveryHome {
    min-height: 665px;
}
#deliveryHome h2 {
    background: silver;
    padding-left: 10px;
    margin: 0;
    border-bottom: 1px solid #000000;
    position: relative;
    cursor: pointer;
}
/* Creates the down arrow */
#deliveryHome h2:after, #deliveryHome h2:before {
    top: 40%;
    right: 30px;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}
#deliveryHome h2:after {
    border-color: rgba(194, 225, 245, 0);
    border-top-color: #000000;
    border-width: 1px;
    margin-left: -1px;
}
#deliveryHome h2:before {
    border-color: rgba(194, 225, 245, 0);
    border-top-color: #000000;
    border-width: 11px;
    margin-left: -11px;
}
/* End of down arrow */
/* Hides content for jQuery */
.deliveryContent {
    display: none;
    padding: 5px;
}
/* End of Delivery Page */
/* Services Page */
#serviceHeader {
    text-align: center;
    margin: 5px 0;
    color: white;
    text-shadow:
            -1px -1px 0 #000,
            1px -1px 0 #000,
            -1px 1px 0 #000,
            1px 1px 0 #000;
    font-size: 3rem;
}
#serviceMain h2, #serviceMain p, #serviceMain span {
    padding: 5px;
}
.serviceBanner {
    width: 100%;
    height: 300px;
    background: #cccccc no-repeat center;
    background-size: cover;
    position: relative;
}
.bannerTitle {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    line-height: 300px;
}
.bannerTitle h1 {
    font-size: 2.5rem;
    letter-spacing: 1px;
    text-shadow: 0 0 3px #000;
    color: white;
    margin: 5px;
}
#refinishImage {
    background-image: url("../images/finishedKitchen2.JPG");
}
#rawWoodImage {
    background-image: url("../images/beforeKitchen2.JPG");
}
#touchUpImage {
    background-image: url("../images/darkCabinet2.jpg");
}
#serviceForm {
    width: 90%;
    margin: auto;
}
#serviceFormLegend{
    display: grid;
    grid-template-columns: auto auto;
}
.serviceInput {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    font-size: 14px;
    line-height: 18px;
    font-family: 'ClearSans', Arial, sans-serif;
    color: #555;
    height: 54px;
    padding: 10px 15px 13px;
    box-sizing: border-box;
    width: 80%;
    margin: 0 10%;
}
.textService {
    width: 80%;
    margin: 0 10%;
    height: 23vh;
    padding: 10px 15px 13px;
    box-sizing: border-box;
    border: 1px solid #d9d9d9;
    color: #555;
}
#serviceSubmit {
    width: 30%;
    height: 54px;
    margin: 10px 35%;
    border-radius: 20px;
    font-size: 1.2rem;
    line-height: 18px;
    font-family: 'ClearSans', Arial, sans-serif;
    background: #000;
    color: #fff;
    border: none;
}
@media only screen and (max-width: 700px) {
    #serviceFormLegend{
        grid-template-columns: auto;
    }
}
/* End of Services Page */
/* Terms and Conditions */
.termTitle {
    font-weight: bold;
}
/* End of Terms and Conditions */
/* Start of the jobPositions.php */
#careers{
    width: 850px;
    margin: auto;
    padding: 50px;
    min-height: 70vh;
}
#careerHeader{
    width: 400px;
    text-align: center;
    margin: auto;
}
#careerHeader ul{
    padding: 0;
}
table{
    margin: auto;
    padding: 10px;
    border-spacing: 0;
}
th{
    background-color: #000;
    color: #FFF;
    padding-right: 10px;
}
td{
    padding: 5px;
    border-bottom: solid 2px #000;
}
tr:hover td:first-child{
    color: #0275d8;
}
td:first-child{
    font-weight: bold;
    color: #FFF;
    background-color: #000;
}
td a{
    font-weight: bold;
    margin-left: 20px;
}
@media only screen and (max-width: 700px) {
    #careers{
        width: 100%;
        padding: 0;
    }
    #careerHeader{
        width: 100%;
    }
}
/* End of the jobPositions.php */
/* Start of cart.php */
main {
    /*! min-height: 75vh; */
    grid-row: 2;
    height: 100%;
    overflow: auto;
}
main > .body {
    padding: var(--gap-pad);
}
#cartHeading {
    padding: 0 40px;
    text-align: center;
}
.nothingSign {
    text-align: center;
}
#cartTotal {
    padding: 10px 40px;
    font-weight: bold;
    text-align: left;
    width: 200px;
    margin: auto;
}
#cartTotal div {
    margin: 5px;
    white-space: nowrap;
}
#cartTotal a{
    padding: 2px;
    border: 1px solid #000;
    border-radius: 5px;
}
#cartTotal a:hover{
    background: #0275d8;
}
.itemRow {
    display: grid;
    grid-template-columns: min-content 50vw auto;
    padding: 1rem;
    border-top: 1px solid silver;
    border-left: 1px solid silver;
}
.itemRow div img {
    width: 90px;
    padding: 5px;
}
.itemRow ul li {
    display: inline;
    margin: 0 5px;
}
#totalCost, .itemTotal {
    color: green
}
.itemTotal::before{
    content: "$";
}
.deleteCart {
    border: 1px solid lightgrey;
    border-radius: 5px;
    padding: 0 2px;
}
.deleteCart:hover {
    background: lightcoral;
}
.cartTotals {
    margin: auto;
    width: 150px;
    text-align: left;
}
@media only screen and (max-width: 700px) {
    .itemRow {
        display: grid;
        grid-template-areas:
                'imageCart description'
                'price price';
    }
    .imageCart{
        grid-area: imageCart;
    }
    .descriptionCart{
        grid-area: description;
    }
    .priceCart{
        grid-area: price;
    }
}
/* End of cart.php */
/* Start of account.php*/
.accountMain {
    display: grid;
    grid-template-columns: 200px auto;
}
#accountNavButton {
    display: none;
}
.accountTabs a div {
    border-bottom: 1px solid lightgrey;
    padding: 10px;
    font-size: 1.2rem;
}
.accountTabs a div:hover {
    background: lightgrey;
}
.accountProfile {
    border-left: 5px solid lightgrey;
    padding: 10px;
}
.accountEdit {
    padding: 2px;
    border: 1px solid lightgrey;
    border-radius: 5px;
}
@media only screen and (max-width: 700px) {
    .accountMain {
        grid-template-columns: 50px auto;
    }
    #accountNavButton {
        display: block;
    }
}
/*End of account.php*/
/* Start of orderHistory.php*/
.orderHistoryMain {
    display: grid;
    grid-template-columns: 200px auto;
}
.accountTabs a div {
    border-bottom: 1px solid lightgrey;
    padding: 10px;
    font-size: 1.2rem;
}
.accountTabs a div:hover {
    background: lightgrey;
}
.orderHistoryProfile {
    border-left: 5px solid lightgrey;
    padding: 10px;
}

.orderHistoryOrder li {
    display: inline;
    margin: 0 5px;
    padding: 2px;
    border-top: 1px solid lightgrey;
    border-left: 1px solid lightgrey;
}
/* orderHistory Items */

.orderHistoryRowHeader {
    background-color: lightgrey;
    padding: 5px;
}
.orderHistoryRowContent {
    border-left: 5px solid lightgrey;
}
.orderHistoryRowItem {
    display: flex;
    justify-content: flex-start;
    padding: 5px;
}
.orderHistoryImageBox img {
    width: 100px;
}
.orderHistoryItemDetails {
    display: block;
    margin-left: 5px;
}
.orderHistoryName {
    font-weight: bold;
}

@media only screen and (max-width: 700px) {
    .orderHistoryMain {
        grid-template-columns: 50px auto;
    }
    .accountTabs a div {
        display: none;
    }
    #accountMenu {
        margin: 25% 25%;
        font-size: 1.6rem;
    }
}

/*End of orderHistory.php*/
/* Start of checkOut.php */
.checkOutSections {
    border-top: silver 1px solid;
    border-left: silver 1px solid;
    display: flex;
}
.checkOutSections div {
    padding: 5px 0 0 5px;
}
.checkOutSections div:first-child {
    width: 280px;
    border-right: 1px solid silver;
}
.checkOutSections div h1,
.checkOutSections div h2{
    margin: 0;
}
.orderedItem {
    padding-left: 0;
    border-bottom: 1px solid lightgrey;
}

.checkOutSections ul li,
.checkOutSections ul li h2,
.checkOutSections ul li h3 {
    display: inline;
    margin: 0 5px;
}
.checkOutSections ul li img {
    width: 50px;
}
#submit{
    cursor: pointer;
    padding: 3px 30px;
    border: 1px solid black;
    border-radius: 5px;
    font-size: 1.5rem;
    background-color: silver;
}
/* End of checkOut.php */
/* Start of ordered.php*/
.completedSection {
    margin: auto;
    width: 350px;
    padding: 10px;
}
/* End of ordered.php*/

.hidden {
    display: none;
}