/*
Theme Name: Ian Template
Author: Ian Harper
Description: Custom theme by Ian Harper
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ian-template
*/

/* Blanket site styles */
html {
	font-size: 16px;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	font-weight: 400;
	color: #222;
	background-color: #fff;
	margin: 0;
	padding: 0;
}

h1, h2, h3, h4, h5, h6 {
	font-family: inherit;
	font-weight: 600;
	line-height: 1.2;
	margin: 1.2em 0 0.5em;
}

p {
	margin: 0 0 1em;
}

a {
	color: #0073aa;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* Ad Banners */
/* Hide mobile and sidebar ads by default */
.modiabnr-top-mobile,
.modiabnr-sidebar {
	display: none;
}

/* Show top ad only on mobile */
@media (max-width: 768px) {
	.modiabnr-top-mobile {
		display: flex;
		max-width: 100%;
		max-height: 250px;
		overflow: hidden;
		justify-content: center;
		align-items: center;
		margin: 0.5rem auto;
	}

	.modiabnr-sidebar {
		display: none; 
	}
}

/* Show sidebar ad only on desktop */
@media (min-width: 769px) {
	.modiabnr-sidebar {
		display: flex;
		max-width: 300px;
		width: 100%;
		margin: 1rem auto;
		justify-content: center;
		align-items: center;
	}

	.modiabnr-top-mobile {
		display: none;
	}
}

/* Header */
/* Hide mobile nav on desktop */
.site-header {
	height: 150px;
	display: flex;
	flex-direction: row !important;
	flex-wrap: nowrap;
	align-items: center;
	background-color: white;
	border-bottom: 1px solid black;
	position: fixed;
	z-index: 1000;
	width: 100%;
	top: 0;
}

.site-logo {
	position: absolute;
	left: 40px;
}

.primary-navigation {
	margin: auto;
	display: flex;
	gap: 20px;
}

.mobile-navigation {
	display: none;
	position: absolute;
	right: 20px;
}

.wc-block-mini-cart {
	margin: 40px;
}

#modal-1 {
	background-color: #696969;
	color: white;
	width: 200px;
	height: 200px;
	float: right;
	position: relative;
}

.wp-block-navigation__container {
	margin-right: 40px;
}

.hero {
	margin-top: 150px;
}

.page-content {
	margin-top: 150px;
}

/* Hide desktop nav on mobile */
@media (max-width: 800px) {
	.site-header {
		height: 90px;
	}

	.site-logo {
		left: 20px;
	}

	.primary-navigation {
		display: none;
	}

	.mobile-navigation {
		display: block;
	}
	.hero {
		margin-top: 90px;
	}
}

/* Home Page */
/* Hero Section */
/* Hide the overlay container if it has no heading or paragraph */
.hero-marquee .wp-block-cover__inner-container:empty {
	display: none;
}

.hero-marquee .wp-block-cover__inner-container:empty,
.hero-marquee .wp-block-cover__inner-container:has(h1:empty):has(p:empty) {
	display: none;
}

.wp-block-template-part {
	width: 100%;
}

.wp-block-cover__inner-container {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
}

.wp-block-cover__inner-container .wp-block-heading {
	font-size: 60px;
	color: white;
}

.wp-block-cover__inner-container .has-text-align-center {
	font-size: 30px;
	color: white;
}

/* Main Content Holder */
.wp-block-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex-wrap: nowrap;
}

.entry-content {
	width: 90%;
}

/* Footer */
.site-footer {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-content: center;
	padding-top: 20px;
	background-color: #696969;
	color: white;
}

.footer-top {
	width: 100%;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	gap: 60px;
}

.footer-sitemap h3 {
	text-align: center;
}

#footer-sitemap-list {
	list-style-type: none;
	padding-inline-start: 0;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-content: center;
	max-height: 80px;
}

#footer-sitemap-list li {
	margin: 5px 30px;
}

#footer-sitemap-list a {
	color: white;
}

.footer-bottom {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-content: center;
	justify-content: center;
	align-items: center;
	gap: 150px;
}

#pptnc a {
	color: white;
}

@media (max-width: 800px) {
	.footer-top {
    	flex-wrap: wrap;
    }
    
	.footer-locations {
		margin: 0 auto;
	}

	.footer-sitemap {
		width: 100%;
	}
    
    .footer-sitemap-list {
    	width: 140px;
    }

	.modiatech {
		width: 100%;
	}

	.footer-bottom {
		gap: 0;
        width: 90%;
	}
    
    .wp-block-columns {
    	width: 90%;
    }
    
    .wp-block-woocommerce-product-collection {
    	width: 90%;
    }
    
}

/* Menu Section */
.wp-block-woocommerce-product-collection {
	width: 100%;
}

.wp-block-post-title :where(a) {
	min-height: 70px;
	font-size: 20px;
}

.menu-container {
	background-color: #FFF9E6;
	border: dashed 10px black;
	border-radius: 20px;
	padding: 10px 30px;
	margin-bottom: 60px;
}

.menu-category-title {
	color: red;
	margin: 40px auto !important;
}

.menu-category-title:after {
	content: "";
	position: absolute;
	left: 10%;
	margin-top: 30px;
	width: 80%;
	height: 5px;
	background-color: red;
	border-radius: 9999px;
}

.wc-block-product-template__responsive li {
	border-radius: 20px;
	background: white;
	padding: 20px;
	box-shadow: 5px 5px 5px 0px black;
}

.wp-block-woocommerce-single-product {
	margin: 20px 0;
	max-width: 500px;
	background: white;
	padding: 20px;
	border-radius: 20px;
	box-shadow: 5px 5px 5px 0px black;
}

.single_add_to_cart_button {
	border: none;
    padding: 15px 20px;
    border-radius: 50px;
}

.checkout-btn {
	background: lightgray;
    max-width: 170px;
    margin: 0 auto;
    padding: 10px 20px;
    border-radius: 20px;
}

.checkout-btn a {
	color: black;
}

/* Hide product images in the cart (WooCommerce Blocks) */
.wc-block-cart-item__image {
	display: none !important;
}

.wc-block-components-order-summary-item__image img {
	display: none !important;
}

.stupid-checkout-header {
	width: 100%;
	height: 150px;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	border-bottom: 1px solid black;
}

.stupid-checkout-menu {
	height: 150px;
	display: flex !important;
	flex-direction: row !important;
    flex-wrap: nowrap !important;
}

.stupid-checkout-menu li {
	width: 120px;
}

.wc-block-cart-item__total {
	margin-right: 20px !important;
}