/*

Theme Name: LFMTE Default Theme

Theme URI: http://thetrafficexchangescript.com/

Description: The default theme for LFMTE traffic exchanges.

Version: 3.0

Author: Josh Abbott

*/


@charset "utf-8";


/* Main font settings */

body {
	font-size: 16px;
	font-weight: 400;
	color: #212529;
	background-color: #f5f8fa;
}


/* Main styles for the top level of the main menu */



@media (max-width: 991.98px) {
	/* Mobile view settings for the top level navigation */
	.lfm_menu_bar {
		padding-bottom: 0;
		margin-bottom: 20px;
	}
}


/* Site logo styles */

.lfm_menu_logo {
	max-height: 50px;
}
@media (min-width: 992px) {
	.lfm_menu_logo {
		margin-right: 20px;
	}
}


.lfm_menu_bar .navbar-nav > .nav-item > .nav-link {
	/* Sets the navigation tabs for the top level */
	font-size: 15px;
	color: #FFFFFF;
}

.lfm_menu_bar .navbar-nav > .nav-item.lfm_tab_opened > .nav-link {
	/* Changes the colors when a tab is opened */
	color: navy;
	background-color: #FFFFFF;
}

.lfm_menu_bar .navbar-nav > .nav-item > .nav-link:hover {
	/* Hover style when a tab is not opened */
	background-color: #089cff;
}

.lfm_menu_bar .navbar-nav > .nav-item.lfm_tab_opened > .nav-link:hover {
	/* Hover style when a tab is opened */
	background-color: #FFFFFF;
}

@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 #DDDDDD;
	}
	
	.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: #FFFFFF;
		width: calc(100% + 2px);
		height: 14px;
		position: absolute;
		bottom: -10px;
		left: -1px;
		border: 1px 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: navy;
		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-color: #FFFFFF;
	border: 1px solid #DDDDDD;
	position: absolute;
	display: none;
	left: 0;
	top: 100%;
	z-index: 999;
	width: 100%;
}

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 {
	/* Sets the navigation links for the second level */
	font-size: 15px;
	padding: 0 20px;
	line-height: 45px;
	color: #444444;
	text-decoration: none;
	display: block;
}
.lfm_menu_tab > li > a:hover {
	color: navy;
}

.lfm_menu_tab .dropdown-menu a {
	/* Sets the navigation links for the third level */
	font-size: 15px;
	padding: 0 20px;
	line-height: 32px;
	color: #444444;
	text-decoration: none;
	white-space: nowrap;
	display: block;
}
.lfm_menu_tab .dropdown-menu li:hover {
	background-color: #EEEEEE;
}

@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-color: #001330;
}


/* 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 #002175;
	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;
}
/* === NAV BAR 10X STYLING OVERRIDE === */

/* Improve overall font clarity and spacing */
.lfm_menu_bar .navbar-nav > .nav-item > .nav-link {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 10px 18px;
  color: #ffffff;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover and active tab enhancements */
.lfm_menu_bar .navbar-nav > .nav-item > .nav-link:hover {
  background-color: #0056b3;
  color: #ffffff;
}

.lfm_menu_bar .navbar-nav > .nav-item.lfm_tab_opened > .nav-link {
  background-color: #ffffff;
  color: #007bff;
  border: 1px solid #ddd;
  border-radius: 6px 6px 0 0;
  font-weight: 600;
}

/* Optional: Make the nav sticky */
.lfm_menu_bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Submenu (second level) improvements */
.lfm_menu_tab {
  font-size: 15px;
  line-height: 1.8;
  background-color: #ffffff;
  border: 1px solid #e2e6ea;
  padding: 8px 0;
 
}

.lfm_menu_tab > li > a {
  color: #333;
  font-weight: 500;
  padding: 8px 25px;
  transition: background-color 0.2s ease;
}
.lfm_menu_tab > li > a:hover {
  background-color: #f8f9fa;
  color: #007bff;
}

/* Third-level dropdowns */
.lfm_menu_tab .dropdown-menu a {
  padding: 6px 30px;
  font-size: 14px;
}
.lfm_menu_tab .dropdown-menu li:hover {
  background-color: #f1f1f1;
}

/* Mobile: touch-friendly enhancements */
@media (max-width: 991.98px) {
  .lfm_menu_bar .navbar-nav > .nav-item > .nav-link {
    padding: 12px 20px;
    font-size: 17px;
  }

  .lfm_menu_tab > li > a {
    padding-left: 30px;
    font-size: 16px;
  }

  .lfm_menu_bar .navbar-nav > .nav-item > .nav-link:after {
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
  }

  .lfm_menu_bar .navbar-nav > .nav-item.lfm_tab_opened > .nav-link:after {
    transform: translateY(-50%) rotate(0deg);
  }
}
.navbar-nav > .nav-item {
  margin: 0 6px;
}

/* Float navbar links to the right on desktop */
@media (min-width: 992px) {
  .lfm_menu_bar .navbar-nav {
    margin-left: auto;
    margin-right: 0;
    display: flex;
    justify-content: flex-end;
  }
}
.lfm_menu_bar .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Goal: Top-level nav in one row, right-aligned. Dropdowns (second level) directly under each nav item */

@media (min-width: 992px) {
  .lfm_menu_bar .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .lfm_menu_bar .navbar-nav {
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
  }

  .lfm_menu_bar .navbar-nav > .nav-item {
    position: relative;
    margin: 0 6px;
  }

  .lfm_menu_bar .navbar-nav > .nav-item > .nav-link {
    white-space: nowrap;
  }

  /* Second-level menu directly under each nav item */
  .lfm_menu_tab {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    display: none;
    background-color: #ffffff;
    border: 1px solid blue;
    border-radius:4px;
    min-width: 180px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .lfm_menu_tab > li {
    list-style: none;
  }

  .lfm_menu_tab > li > a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
  }

  .lfm_menu_tab > li > a:hover {
    background-color: #f8f9fa;
    color: #007bff;
  }

  /* Show the tab when the item is opened */
  .navbar-nav > .nav-item.lfm_tab_opened > .lfm_menu_tab {
    display: block;
  }
}


/* Goal: Top-level nav in one row, right-aligned. Dropdowns (second level) directly under each nav item and open on hover (desktop) or click (touch) */

@media (min-width: 992px) {
  .lfm_menu_bar .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .lfm_menu_bar .navbar-nav {
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
  }

  .lfm_menu_bar .navbar-nav > .nav-item {
    position: relative;
    margin: 0 6px;
  }

  .lfm_menu_bar .navbar-nav > .nav-item > .nav-link {
    white-space: nowrap;
  }

  /* Second-level menu directly under each nav item */
  .lfm_menu_tab {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    display: none;
    background-color: #ffffff;
    border: 1px solid #ddd;
    min-width: 180px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .lfm_menu_tab > li {
    list-style: none;
  }

  .lfm_menu_tab > li > a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
  }

  .lfm_menu_tab > li > a:hover {
    background-color: #f8f9fa;
    color: #007bff;
  }

  /* Show the tab on hover only for devices that support hover */
  @media (hover: hover) and (pointer: fine) {
    .lfm_menu_bar .navbar-nav > .nav-item:hover > .lfm_menu_tab {
      display: block;
    }
  }

  /* On touch devices, show on click (requires JS to toggle .lfm_tab_opened class) */
  .lfm_menu_bar .navbar-nav > .nav-item.lfm_tab_opened > .lfm_menu_tab {
    display: block;
  }

  /* Ensure no menu tab is shown by default */
  .lfm_menu_bar .navbar-nav > .nav-item:not(.lfm_tab_opened) > .lfm_menu_tab {
    display: none;
  }
}


