/* Guidelines for test purposes
table { border: 1px green dotted;}
tr { border: 1px orange dotted;}
td { border: 1px purple dotted;}
div { border: 1px blue dotted;}
span { border: 1px green dotted;} */

/* General page attributes */
body {
    height: 100%;
    margin: 0;
    font-family: Arial;
    text-align: left;
	font-size: 12px;
	color: #404040;
}

.wrapper {
    min-height: 100%;
    margin-bottom: -65px;
}

.page { padding: 25px; }

.push { height: 65px; }

a {outline : none;}
a img {outline : none;}
a, a:hover, a:visited {
    color: #707070; 
    text-decoration: none;
}

#inlineLink {
    font-size: 0.9em;
    color: #AD0004;
    font-weight: bold;
    text-decoration: none;
}
#inlineLink:hover { color: #707070; }

img {border : 0;}

img.center {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

input, select, textarea {
    margin-top: 2px;
    padding: 3px;
    border: 1px solid #707070;
}

input { margin-right: 10px; }

input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 3px #AD0004;
    border: 1px solid #AD0004;
}

.button, .g-recaptcha {
	overflow: hidden;
	background-color: #AD0004;
	border: none;
	outline: none;
	border-radius: 2px;
	font-family: Arial;
	font-size: 14px;
	color: white;
	text-align: center;
	padding: 5px 15px;
}

.button:hover, .g-recaptcha:hover {
	background-color: #707070;
}

.buttonAlt {
	overflow: hidden;
	background-color: black;
	border: none;
	outline: none;
	border-radius: 2px;
	font-family: Arial;
	font-size: 14px;
	color: white;
	text-align: center;
	padding: 5px 15px;
}

.buttonAlt:hover {
	background-color: #707070;
}

* { box-sizing: border-box; }

/* Desktop footer details */
.footer {
    background-color: #707070;
    height: 65px;
    padding: 10px 25px;
}

.footer a, .footer a:hover {
	color: white;
    font-size: 0.8em;
	text-decoration: none;
}

/* Desktop layout for 4 column grid */
.container-footer {
    display: grid;
    grid-template-columns: 25% 25% 25% 25%;
    grid-row-gap: 0;
    grid-column-gap: 2pt;
    padding: 0;
    color: white;
    font-size: 1.3em;
    background-color: white;
}

.container-footer .box {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 20px;
    text-align: left;
    background-color: #707070;
}

table { margin: auto; }

td { padding: 0px; }

@media only screen and (max-device-width : 768px) {
    table {
        width: 100%;
        font-size: 1.1em;
    }
}

@media only screen and (min-device-width : 768px) and (max-device-width : 980px) {
    table { width: 80%; }
}

/* Desktop header menu layout */
.menu_container {
    display: grid;
    grid-template-columns: 250px auto 17% 3%;
    grid-template-rows: auto 32px;
    grid-gap: 0px;
}

.menu_container > div {
    border-bottom: 2px solid #AD0004;
    font-size: 1.3em;
}

.item1 { grid-row: 1 / 4; }

.item1 a img {
    object-fit: cover;
    width: 100%;
    max-height: 100%;
}

.item2 {
  grid-area: 1 / span 3;
    padding: 10px;
}

.item2 div, .item4 nav div, .item5 nav div {
    float: right;
}

.item3 nav a { padding: 0 30px; }

.item4 nav a { padding: 0 10px; }

.item5 nav a { padding: 0 10px; }

/* Hide Hamburger Menu and Mobile Menu Items*/
.hamburger-icon, .user-icon, #hamnav label, #usernav label, [id^= hamburger] { display: none; }
.toggle, [id^=drop] { display: none; }

/* Desktop Menu Items */
#hamitems, #useritems {
    padding: 0;
    margin: 0;
    display: flex;
	font-family: Arial;
}

/* Since we'll have the "ul li" "float:left" we need to add a clear after the container. */
nav:after {
	content: "";
	display: table;
	clear: both;
}

/* Removing padding, margin and "list-style" from the "ul", and adding "position:relative" */
nav ul {
	padding: 0;
	margin: 0;
	list-style: none;
	position: relative;
	vertical-align: bottom;
}
	
/* Positioning the navigation items inline */
nav ul li {
	display: inline-block;
	float: left;
}

/* Desktop Menu Style Main*/
nav a {
    color: #AD0004;
	font-size: 1em;
	margin: 0;
    text-align: center;
    line-height: 30px;
    text-decoration: none;
    white-space: nowrap;
}

nav a:hover { color: #AD0004; }

/* Hide Dropdowns by Default and giving it a position of absolute */
nav ul ul {
	display: none;
	position: absolute;
	color: #AD0004;
	background-color: white;
	min-width: 140px;
	border-top: 2px solid white;
	border-bottom: 2px solid #AD0004;
	text-align: left;
    padding-top: 4px;
	z-index: 5;
}

/* Display Dropdowns on Hover */
nav ul li:hover > ul { display: inherit; }
	
/* Desktop Menu Style Dropdown */
nav ul ul li {
	float:none;
	display:list-item;
	position: relative;
}

nav ul ul li a {
	width: 100%;
	float:none;
	display:list-item;
	position: relative;
	text-align: left;
}

nav ul li a:visited, nav ul ul li a:visited { color: #AD0004; }

nav ul li ul li:hover a {
    color: #FFFFFF;
    background-color: #AD0004;
}

/* Desktop layout for 1 column grid */
.container-1col { width: 80%; }

/* Desktop layout for 2 column grid */
.container-2col {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-column-gap: 1pt;
    background-color: #AD0004;
}

/* Desktop layout for 2 column grid */
.container-2col-checkout {
    width: 100%;
    display: grid;
    grid-template-columns: 60% 40%;
    grid-column-gap: 1pt;
    background-color: #AD0004;
}

.container-2col .box, .container-2col-checkout .box { background-color: white;}

/* Desktop layout for 2 column list */
.container-cat-list {
    display: grid;
    grid-template-columns: 20% 60% 20%;
}


/* Desktop layout for 3 column grid */
.container-3col {
    display: grid;
    grid-template-columns: 33.3% 33.3% 33.3%;
}

/* Desktop layout for 3 column grid */
.container-3col-list {
    display: grid;
    grid-template-columns: 15% 75% 10%;
}

.container-3col-list img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  float: center;
}

/* Desktop layout for 4 column grid */
.container-4col {
    display: grid;
    grid-template-columns: 25% 25% 25% 25%;
}

.box {
    box-sizing: border-box;
    padding: 20px;
    text-align: center;
}

.container-3col-list .box {
    box-sizing: border-box;
    padding: 20px;
    text-align: left;
}

.container-3col-list .box_span_all_warning {
    box-sizing: border-box;
    padding: 0 20px 30px;
    grid-column: 1 / span 3;
    text-align: center;
    color: red;
    font-weight: bold;
}

.container-4col .box img {
    width: 300px;
    height: 300px;
    border: 1px solid #707070;
}

.container-cat-list .box img {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.colbox3 {
        width: 100%;
        text-align: right;
}

.container-2col .box, .container-cat-list .box p, .container-3col-list .box {
    text-align: left;
}

/* Mobile header menu layout */
@media only screen and (max-width : 768px) {
    .collection {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        background-color: #EEEAEA;
    }
    
    .menu_container {
        display: grid;
        grid-template-columns: 15% 55% 15% 15%;
        grid-template-rows: 100px auto;
    }

    .menu_container div { text-align: center; }
    
    .page { padding: 10px; }

    .item1 { grid-area: 1 / 2 / 2 / 3;}

    .item1 img {
        object-fit: cover;
        max-height: 100%;
    }

    .item2 { grid-area: 2 / 1 / 3 / 5; }
    .item2 div { float: none; }
    .item3 { grid-area: 1 / 1 / 2 / 2; }
    .item4 { grid-area: 1 / 3 / 2 / 4; }
    .item5 { grid-area: 1 / 4 / 2 / 5; }
    .hamburger-icon {
        display: inline-block;    
        margin: 0;
        padding: 17px 15px;
        border-radius: 3px;
        color: #AD0004;
    }

    .user-icon, .cart-icon {
        display: inline-block;    
        margin: 0;
        padding: 15px 0px;
        color: #AD0004;
        font-size: 1.6em;
    }

    .user-icon a, a:hover, a:visited, a:link, a:active { color: #AD0004; }
    .cart-icon a, a:hover, a:visited { color: #AD0004; }

    .hamburger-icon span {
        display: block;
        width: 23px;
        height: 3px;
        background-color: #AD0004;
        margin-bottom: 6px;
    }

    .hamburger-icon span:last-child {
        margin-bottom: 0px;
    }

    #hamnav label, #usernav label { 
        display: inline-block;
        float: right;
    }

    .item3 {
        padding: 10px;
    }
    
    .item4, .item5 {
        float: right;
        padding: 10px 0;
    }
    
    .item2 {
        padding-top: 10px;
        padding-bottom: 0;
    }

    /* Break down Mobile Menu items into vertical */
    #hamitems a, #useritems a {
        box-sizing: border-box;
        display: block;
        width: 100%;
        padding: 0px;
        border-bottom: 1px solid #333;
    }

    #hamitems, #useritems {
        display: none;
        background-color: white;
        position: absolute;
        left: 0;
        right: 0;
        top: 100px;
        line-height: 30px;
        z-index: 5;
    }

    #hamnav input:checked ~ #hamitems { display: block; }
    #usernav input:checked ~ #useritems { display: block; }
    
    /* Display Dropdown when .toggle label is clicked */
	[id^=drop]:checked + ul {
		display: block;
	}

    .toggle {
		display: block;
		width: 100%;
		text-decoration:none;
		border-bottom: 1px solid #333;
		text-align: center;
		color: #AD0004;
	}

    /* Hide Desktop <a> link as .toggle label above used */
    #hamitems ul li .toggle +a {
	    display: none;
	}

    /* Desktop Menu Style Main*/
    nav { margin: 0; }
    nav a {
        color: #AD0004;
		font-size: 1em;
		margin: 0;
        text-align: center;
        line-height: 30px;
        text-decoration: none;
        white-space: nowrap;
    }

	/* Change menu item's width to 100% */
	nav ul li {
		display: block;
		width: 100%;
		line-height: 20px;
	}

    /* Mobile Menu Style Main */
	#hamitems ul ul li a, #useritems ul ul li a {
		margin: 0px;
		padding-left: 20px;
		background-color: #AD0004;
	    text-align: left;
		color: white;
		font-size: 1em; 
	}

    /* Mobile Menu Style Dropdown */
	#hamitems ul ul li a:hover, #useritems ul ul li a:hover {
        background-color: #707070;
		color: white;
	}

	nav a:hover, nav .toggle:hover {
		cursor: pointer;
		background-color: white;
		color: #AD0004;
	}

	/* Hide Dropdowns by Default */
	nav ul ul {
		float: none;
		position: static;
		padding-top: 30px;
	}
		
	/* Hide menus on hover */
	nav ul ul li:hover > ul, nav ul li:hover > ul { display: none; }
		
	/* First Tier Dropdown */
	nav ul ul li {
		display: block;
		width: 100%;
		padding: 0px;
	}

	/* Mobile single column layout for multi columm desktop */
	.container-col, .container-2col, .container-cat-list, .container-3col, .container-4col {
        display: block;
        vertical-align: top;
    }
    
    /* Mobile layout for 1 column grid */
        .container-1col { width: 100%; }

    /* Mobile layout for 3 column grid */
    .container-3col-list {
        display: grid;
        grid-template-columns: auto auto;
    }

.container-3col-list .box {
 
         padding: 5px;

}
    .container-3col-list .box img {
        width: 50px;
        height: 50px;
        object-fit: contain;
        float: center;
}

    .colbox3 {
        width:100%;
        text-align:center;
        margin-top: 20px;
    }

    /* Footer layout for 4 columm */
    .wrapper { margin-bottom: -250px; }
    .push { height: 250px; }
        
    .footer {
        background-color: #707070;
        height: 250px;
        padding: 10px;
    }

    .footer a, .footer a:hover {
    	color: white;
        font-size: 0.8em;
    	text-decoration: none;
    }

    .container-footer {
        display: block;
        vertical-align: top;
    }

    .container-footer .box {
        padding: 10px;
        text-align: left;
        background-color: #707070;
    }

    .box img {
        width: 250px;
        height: 250px;
        border: 1pt solid #707070;
        object-fit: contain;
    }
}

/*                   Picture layout for About Us page                       */
.staff_container {
    float: left;
    position: relative;
    margin: 0 10px 10px 0;
    width: 300px;
}

.staff_image {
    display: block;
    height: auto;
}

.staff_name {
    padding: 5px;
    text-align: center;
    color: white;
    background-color: #AD0004;
}

.staff_name #first_letter { font-size: 1.5em; }

/*                       Page layout for items page                        */
.container-item {
    display: block;
    vertical-align: top;
}

.item_image_block {
    display: grid;
    grid-template-columns: auto auto auto;
    column-gap: 5px;
    row-gap: 10px;
}

.spacer { display: inline-block; }

@media only screen and (min-width: 400px) {
    .item_image_block {
        display: grid;
        grid-template-columns: auto auto auto auto;
        column-gap: 5px;
        row-gap: 10px;
    }
    
    .item_image_block .image_list img {
        width: 60px;
        height: 60px;
    }
}

@media only screen and (min-width: 768px) {
    .container-item {
        display: grid;
        grid-template-columns: 30% 70%;
    }

    .item_title { grid-area: 1 / 1 / 1 / span 2; }

    .item_image { grid-area: 2 / 1; }

    .item_image_block {
        display: grid;
        grid-template-columns: 33.3% 33.3% 33.3%;
        row-gap: 20px;
    }

    .item_image_block .image_list img {
        width: 100px;
        height: 100px;
    }

    .item_text {
        grid-area: 2 / 2 / span 2 / 2;
    }

    .item_text .largeButton { width: 200px; }
    .item_text .largeButtonAlt { width: 200px; }

    .item_text .mediumButton { width: 100px; }
    .item_text .mediumButtonAlt { width: 100px; }
    
    .item_text .spacer { width: 50px; }

    .collectionContainer {
        display: grid;
        grid-template-columns: 30% auto;
        grid-template-rows: auto auto;
    }

    .collection {
        grid-column: 1;
        grid-row: 1 / 3;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        background-color: #EEEAEA;
    }
    
    .colbox2 {
        grid-column: 2;
        grid-row: 1;
        margin: 0 10px;
    }

}

.item_title, .item_text {
    box-sizing: border-box;
    padding-bottom: 10px;
    text-align: left;
}

.item_image, .item_image_block {
    box-sizing: border-box;
    padding-bottom: 10px;
    text-align: center;
    justify-self: center;
}

.main_image {
    width: 300px;
    height: 300px;
    object-fit: contain;
    cursor: zoom-in;
}

/* Style the images inside the grid */
.image_list img {
    width: 50px;
    height: 50px;
    border: 1px black solid;
    object-fit: contain;
    opacity: 0.8; 
    cursor: pointer;
}

.image_list img:hover {
    opacity: 1;
    box-shadow: 0 0 3px #AD0004;
    border: 1px solid #AD0004;
}

.buttonSpacer {
     display: inline-block; 
     width: 30px;
}

.mediumButton,
.mediumButtonAlt {
    flex: 0 0 auto;
    width: 120px;
    box-sizing: border-box;
    height: 40px;
    font-size: 16px;
    font-family: Arial;
    border-radius: 2px;
    text-align: center;
    vertical-align: middle;
}

.mediumButton {
	background-color: #AD0004;
	border: none;
	color: white;
}

.mediumButton:hover {
	background-color: #707070;
}

.mediumButtonAlt {
	background-color: inherit;
	border: 1px solid #AD0004;
	color: #AD0004;
}

.mediumButtonAlt:hover {
	background-color: #707070;
	color: white;
	border: none;
}

.largeButton,
.largeButtonAlt {
    flex: 0 0 auto;
    width: 160px;
    box-sizing: border-box;
    height: 40px;
    font-size: 16px;
    font-family: Arial;
    border-radius: 2px;
    text-align: center;
    vertical-align: middle;
}

.largeButton {
	background-color: #AD0004;
	border: none;
	color: white;
}

.largeButton:hover {
	background-color: #707070;
}

.largeButtonAlt {
	background-color: inherit;
	border: 1px solid #AD0004;
	color: #AD0004;
}

.largeButtonAlt:hover {
	background-color: #707070;
	color: white;
	border: none;
}

.XLargeButton {
	overflow: hidden;
	background-color: white;
	border: 1px solid #AD0004;
	outline: none;
	vertical-align: middle;
	border-radius: 2px;
	font-family: Arial;
	font-size: 16px;
	color: #AD0004;
	text-align: center;
	width: 380px;
	height: 40px;
}

.XLargeButton:hover {
	background-color: #707070;
	color: white;
	border: none;
}

/* Image slideshow, Hide the images by default */

.mySlides img{
    width: 600px;
    height: 600px;
    object-fit: contain;
    opacity: 1;
}

/* Next & previous buttons */
.prev, .next, .close {
    cursor: pointer;
    position: absolute;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 50px;
    user-select: none;
    -webkit-user-select: none;
}

/* Position the navigation buttons */
.prev {
    top: 50%;
    left: -60px;
}

/* Position the "next button" to the right */
.next {
    top: 50%;
    right: -60px;
}

.close {
    top: 0px;
    right: -60px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .close:hover, .next:hover { background-color: rgba(0, 0, 0, 0.2); }

/* Number text (1/3 etc) */
.numbertext {
    color: white;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
    left: -60px;
}

#dimScreen {
    width: 100%; 
    height: 100%;
    position: fixed;
    text-align: center;
    display:none;
    background-color: rgba(100, 100, 100, 0.8);
    z-index: 3;
}

.dimContainer {
    position: relative;
    margin: auto;
    width: 600px;
    height: 600px;
}

#child {
    position: relative;
    display: table-cell;
    vertical-align: middle;
    font-size: 2em;
    color: #fffdd0;
    }

/* Style for form layouts, inputs, select elements and textareas */
.form {
    border-radius: 5px;
    background-color: #f2f2f2;
    margin: 10px 15%;
    padding: 10px 10%;
}

.form input[type=text], input[type=password], input[type=email], input[type=number], select, textarea {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    box-sizing: border-box;
    resize: vertical;
}

/* Style the label to display next to the inputs */
label {
    padding: 8px 8px 8px 0;
    display: inline-block;
}

/* Floating column for labels: 25% width */
.col-25 {
    white-space: nowrap; 
    min-width: max-content;
    text-align: left;
    float: left;
    width: 25%;
    margin-top: 6px;
}

/* Floating column for inputs: 75% width */
.col-75 {
    float: left;
    width: 75%;
    margin-top: 6px;
}

.form_row {
    display: block;
    overflow: hidden; /* helps contain floated columns */
    margin-bottom: 10px;
}

/* Clear floats after the columns */
.form_row:after {
    content: "";
    display: table;
    clear: both;
}

.smallLink {
	font-size: 0.75em;
	color: #707070;
}

.smallLink a {
	color: #707070;
	text-decoration: none;
}

/* Responsive layout - when the screen is less than 600px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
    .col-25, .col-75 {
        width: 100%;
        margin-top: 0;
    }
}