/*

Theme Name: My Theme Name

Theme URI: https://mydomainname/

Description: The theme for LFMTE traffic exchanges.

Version: 1.0

Author: Josh Abbott. 
Design Modifications by Jason Larremore @ trafficreations.com.

*/




/* Main font settings */

body {
	font-size: 22px;
	font-family: "Arial Black", Gadget, sans-serif;
	font-weight: 400;
	color: #cb9d0a;
}


/* Main styles for the top level of the main menu */

.lfm_menu_bar {

padding: 0 0 45px;
	margin-bottom: 60px; /* 
/* If your menu bar is overlapping the page content, increase the margin here */
}

@media (max-width: 991.98px) {
	/* Mobile view settings for the top level navigation */
	.lfm_menu_bar {
		padding-bottom: 0;
		margin-bottom: 35px;
	}
}


/* Site logo styles */

.lfm_menu_logo {
	max-height: 50px;
}
@media (min-width: 992px) {
	.lfm_menu_logo {
		margin-right: 20px;
	}
}

/* Desktop View Settings */
@media (min-width: 992px) {
	
		body {
		margin: 0;
		background-color: #203a4b; /* Sets the main background color */
		background-image: url(/themes/i/images/header_bg.jpg); /* Sets the header background image */
		background-repeat: repeat-x;
	}
	
	#headerwrapper {
		/* Set the header image sizes here and inside #header */
		width: 1500px;
		height: 300px;
		margin-right: auto;
		margin-left: auto;
		clear: both;
        background-color: transparent;
	}
	
	#header {
		background-image: url(/themes/i/header_template.png); /* Sets the header image */
		background-repeat: no-repeat;
        background-color: transparent;
		width: 1500px;
		height: 300px;
	}
}
/* Mobile View Settings */
@media (max-width: 992px) {
	
	body {
		margin: 0;
		background-color: #8e544a; /* Sets the main background color */
		background-image: url(/themes/i/images/mobile_header_bg.jpg); /* Sets the mobile header background image */
		background-repeat: repeat-x;
	}
	
	#headerwrapper {
		/* Set the header image sizes here and inside #header */
		width: 300px;
		height: 75px;
		margin-right: auto;
		margin-left: auto;
		clear: both;
        background-color:transparent;
	}
	
	#header {
		background-image: url(/themes/i/images/mobile_header.png); /* Sets the mobile header image */
		background-repeat: no-repeat;
		width: 300px;
		height: 75px;
		background-color: transparent;
	}
  }

.lfm_menu_bar .navbar-nav > .nav-item > .nav-link {
	/* Sets the navigation tabs for the top level */
	font-size: 17px;
	color: #F5DA85;
font-weight: 700;
}

.lfm_menu_bar .navbar-nav > .nav-item.lfm_tab_opened > .nav-link {
	/* Changes the colors when a tab is opened */
background: rgb(32, 58, 75);
color: #FFFFFF;
font-weight: 700;
border: 5px solid #F5DA85;
}

.lfm_menu_bar .navbar-nav > .nav-item > .nav-link:hover {
	/* Hover style when a tab is not opened */
	background-color: #F5DA85;
	color:white;
}

.lfm_menu_bar .navbar-nav > .nav-item.lfm_tab_opened > .nav-link:hover {
	/* Hover style when a tab is opened */
	background-color: #F5DA85;
	color:#fff;
	
}

@media (min-width: 992px) {
	/* Desktop view settings for the top level navigation tabs */
	.lfm_menu_bar .navbar-nav > .nav-item > .nav-link {
		margin: 0px 3px;
		padding: 6px 15px;
		border: 1px solid rgba(255,255,255,0);
		border-radius: 5px;
		position: relative;
	}
	
	.lfm_menu_bar .navbar-nav > .nav-item.lfm_tab_opened > .nav-link,
	.lfm_menu_bar .navbar-nav > .nav-item > .nav-link:hover {
		border: 1px solid #D65051;
	}
	
	.lfm_menu_bar .navbar-nav > .nav-item.lfm_tab_opened > .nav-link:after {
		/* Fills in the gap between an opened tab and the bottom of the bar */
		content: "";
		background-color: transparent;
		width: calc(100% + 2px);
		height: 14px;
		position: absolute;
		bottom: -10px;
		left: -1px;
		border: 0px solid #DDDDDD;
		border-top: none;
	}
}

@media (max-width: 991.98px) {
	/* Mobile view settings for the top level navigation tabs */
	.lfm_menu_bar .navbar-nav > .nav-item > .nav-link {
		padding: 8px 15px;
		text-align: left;
	}
	
	.lfm_menu_bar .navbar-nav > .nav-item.lfm_tab_closed > .nav-link {
		/* Returns to the original colors when a tab is closed in mobile */
		color: #FFFFFF;
		background-color: #007bff;
	}
	
	.lfm_menu_bar .navbar-nav > .nav-item.lfm_tab_closed > .nav-link:hover {
		/* Returns to the original hover effect when closed in mobile  */
		color: #FFFFFF;
		background-color: #089cff;
	}
	
	/* Adds an arrow in mobile view */
	.lfm_menu_bar .navbar-nav > .nav-item > .nav-link:after {
		content: "";
		border-top: 0.3em solid;
		border-right: 0.3em solid transparent;
		border-bottom: 0;
		border-left: 0.3em solid transparent;
		color: #FFFFFF;
		transform: rotate(-90deg);
		position: absolute;
		right: 1.25rem;
		transition: all 0.1s ease-out;
	}
	.lfm_menu_bar .navbar-nav > .nav-item.lfm_tab_opened > .nav-link:after {
		color: #7a3e18;
		transform: rotate(0deg);
	}
	.lfm_menu_bar .navbar-nav > .nav-item.lfm_tab_closed > .nav-link:after {
		color: #FFFFFF;
		transform: rotate(-90deg);
	}
}


/* Main styles for the second level of the main menu */

.lfm_menu_tab {
background: rgb(32, 58, 75);
position: absolute;
	display: none;
	left: 0;
	top: 100%;
	z-index: 999;
	width: 100%;
font-weight: 700;
border: 11px solid #F5DA85;
}

li.lfm_tab_opened .lfm_menu_tab {
	display: flex;
}

@media (max-width: 991.98px) {
	/* Mobile view settings for the second level navigation */
	.lfm_menu_tab {
		background-color: #EEEEEE;
		position: relative;
		flex-direction: column;
		top: 0;
		padding: 5px 0;
	}
	li.lfm_tab_closed .lfm_menu_tab {
		display: none;
	}
	.lfm_menu_tab > li > a {
	    color:#454545 !important;
	}
}


.lfm_menu_tab > li > a {
	/* Sets the navigation links for the second level */
	font-size: 15px;
	padding: 0 10px;
	line-height: 45px;
	color: #fff;
	text-decoration: none;
	display: block;
}


.lfm_menu_tab > li > a:hover {
background: rgb( 245, 218, 133);
color: #fff;
}

.lfm_menu_tab .dropdown-menu a {
	/* Sets the navigation links for the third level */
	font-size: 15px;
	padding: 0 20px;
	line-height: 32px;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
	display: block;
	background-color: rgb( 245, 218, 133);
}
.lfm_menu_tab .dropdown-menu a:hover {
	background-color: #203A4B;
color: #ffffff;
	text-decoration: none;
}

@media (max-width: 991.98px) {
	/* Mobile view settings for the second level navigation links */
	.lfm_menu_tab > li > a {
		padding-left: 40px;
		line-height: 36px;
		width: 100%;
	}
	
	/* Mobile view settings for the third level navigation links */
	.lfm_menu_tab .dropdown-menu a {
		padding-left: 50px;
	}
}


/* Styles for the footer */

.lfm_footer {
background: rgb(32, 58, 75);
}


/* Icon settings */

.far, .fas {
	margin-right:3px;
}

.feedicon {
	color:#3097D1;
	font-size:20px;
	margin-right:5px;
}


/* Profile picture sizes */

.profilepic_small {
	width:40px;
	height:40px;
}

.profilepic_med {
	width:75px;
	height:75px;
}

.profilepic_large {
	width:200px;
	height:200px;
}


/* Various styles */

.buttonlink {
	/* This class defines <a> tag links that look like buttons */
	cursor: pointer;
	background-color:#1468e5;
	border-radius:2px;
	border:1px solid #FF0000;
	display:inline-block;
	cursor:pointer;
	color:#FFFFFF;
	font-family:arial;
	font-size:18px;
	font-weight:500;
	padding:4px 7px;
	margin:2px 1px 2px 1px;
	text-decoration:none;
}
.buttonlink:hover {
	/* This controls the button links when you hover over them */
	color:#FFFFFF;
	background-color:#3385FF;
	text-decoration:none;
}


.infobar {
	/* This class defines sections that span the entire page width */
	width:100%;
	padding-top: 15px;
	padding-bottom: 15px;
	color:#FFFFFF;
	background-color:#555555;
}
.infobar h2 {
	color:#FFFFFF;
}


.vcenter {
	/* This is a class that can be used in Bootstrap rows to vertically center the content */
	display: flex;
	align-items: center;
}


/* The next 3 sections control various text styles used throughout the LFM Members Area */
.lfm_title {
	font-family: "Arial"; color:#333333; font-size:32px;
}

.lfm_descr {
	font-family: "Arial"; color:#111111; font-size:16px;
}

.lfm_descr_bold {
	font-family: "Arial"; color:#000000; font-size:16px;
	font-weight:700;
}

.brown {
    background-color:#8e544a
}

.responsive {
    width: 100%;
    height: auto;
}
/* Responsive overrides for header, footer, partner, banner, and content images */

/* General image responsiveness for <img> tags (e.g., partners, banners, logos, footer images, content images) */
img {
    max-width: 100%;
    height: auto;
    /* Overrides any fixed width/height attributes in HTML */
}

/* Ensure .responsive class is applied if used */
.responsive {
    max-width: 100%;
    height: auto;
}

/* Desktop header responsiveness */
@media (min-width: 992px) {
    #headerwrapper {
        width: 100%; /* Full width instead of fixed 1500px */
        height: 20vw; /* Scales with viewport width, maintains ~0.2 aspect ratio (300/1500) */
        margin-right: auto;
        margin-left: auto;
        clear: both;
        background-color: transparent;
    }
    
    #header {
        background-image: url(/themes/i/header_template.png);
        background-repeat: no-repeat;
        background-size: cover; /* Scales image to fit without distortion */
        background-color: transparent;
        width: 100%; /* Full width instead of fixed 1500px */
        height: 100%; /* Fills the wrapper */
    }
}

/* Mobile header responsiveness */
@media (max-width: 992px) {
    #headerwrapper {
        width: 100%; /* Full width instead of fixed 300px */
        height: 25vw;
        min-height: 100px; /* Increased further for visibility */
        margin-right: auto;
        margin-left: auto;
        clear: both;
        background-color: #8e544a; /* Fallback color */
    }
    
    #header {
        background-image: url(/themes/i/header_template.png);  /* Use the existing desktop image */
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        background-color: transparent;
        width: 100%;
        height: 100%;
    }
}

/* Footer responsiveness (if it has a background image; adjust URL/path if needed) */
.lfm_footer {
    background: rgb(32, 58, 75);
    overflow: hidden; /* Prevents image overflow */
    /* If footer has a background image, add these (uncomment and update URL): */
    /* background-image: url(/path/to/footer-image.jpg); */
    /* background-size: cover; */
    /* background-repeat: no-repeat; */
}

/* Prevent horizontal scrolling on mobile for footer and overall page */
@media (max-width: 767.98px) {
    body, html {
        overflow-x: hidden; /* Stops horizontal scroll globally */
        max-width: 100%; /* Prevents content from exceeding viewport */
    }
    
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%; /* Ensures container doesn't overflow */
    }
    
    /* Force partner image and footer images to scale strictly */
    .container-fluid img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
        margin: 0 auto;
    }
    
    /* Stack table cells vertically on mobile and limit image sizes aggressively */
    .container-fluid table {
        width: 100% !important;
        table-layout: fixed; /* Prevents table from expanding */
    }
    .container-fluid table tbody tr {
        display: block;
        margin-bottom: 10px;
    }
    .container-fluid table tbody td {
        display: block;
        width: 100% !important;
        text-align: center;
        padding: 5px 0;
        box-sizing: border-box; /* Includes padding in width calc */
    }
    .container-fluid table tbody td img {
        max-width: 60px !important; /* Further reduced for small screens */
        height: auto;
        display: block;
        margin: 0 auto;
    }
    
    /* Additional footer control */
    .lfm_footer img {
        max-width: 100% !important;
        height: auto;
    }
}







