/*
Theme Name:   Maxwell Child - Rants.org
Description:  Custom Child Theme for Ken Fogel
Author:       Michael Levy, michael.levy.vt@gmail.com
Template:     maxwell
Version:      1.0.0
Text Domain:  maxwellchild
*/

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@100;200;300;400;500;600;700;900&display=swap');


@font-face {
  font-family: "font-awesome";
  src: local("Font-Awesome"),
    url("/wp-content/themes/maxwell-child-rants/fontawesome-free-6.2.1-web/webfonts/fa-solid-900.ttf") format("truetype"),  
	url("/wp-content/themes/maxwell-child-rants/fontawesome-free-6.2.1-web/webfonts/fa-solid-900.woff2") format("woff");
}

i.fa-solid {
	font-family:font-awesome;
	font-style:normal;
}	

/* fonts */

body {
	font-family: 'Jost', sans-serif;
	font-weight:400;
	background:#333;
}

h1,h2,h3,h4,h5,h6, .entry-title, .comments-header .comments-title, .comment-reply-title span, .archive-title, .widget-title, .is-style-widget-title {
	font-family: 'Jost', sans-serif;
	font-weight:400;
}	

/*colors */

body, .site-content, #footer, #page {
	background:#F9F8EB;
}

html h2.entry-title {
	color:#3F3426;
}	

html h2.entry-title a:link, 
html h2.entry-title a:visited {
	color:#3F3426;
}	

/* Menu icons */

.icon span {
	display:none;
}	

.icon:hover span {
    display: block;
    position: absolute;
    top: 140%;
    padding: 10px;
    border-radius: 5px;
    background: black;
	left:-100%;
	transform: translateX(-5px);
}

.icon:hover span:before {
	content:" ";
	display:block;
	width: 0; 
	height: 0; 
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-bottom: 5px solid black;
	position:absolute;
	left:50%;
	top:-5px;
	transform: translateX(-5px);
}

.icon {
	display:inline-block;
	width:18px;
	height:18px;
	background-repeat:no-repeat;
}	

.fa-angle-down:before {
    content: "\f107";
}

.icon.twitter {
	background-image:url('/wp-content/themes/maxwell-child-rants/img/Twitter-logo.v2.svg');
}	

.icon.fediverse {
	background-image:url('/wp-content/themes/maxwell-child-rants/img/fediverse-logo-bw.svg');
}	

.icon.home {
	background-image:url('/wp-content/themes/maxwell-child-rants/img/home.svg');
}	

#primary-menu a {
    line-height: 100%;
    display: block;
	position:relative;
}



 a:link, a:visited { color:#2C7FAB; }

a.more-link {
    background: #14162D;
}

.first-post a.more-link {
    background: #FF8F37;
}

#post-wrapper a.more-link, 
#post-wrapper .more-link:link,
#post-wrapper  .more-link:visited {
    color: #3F3426;
    background: transparent;
	padding:0;
	font-size:17px;
	font-weight: 500;
}

#post-wrapper .entry-content > .more-link {
    text-decoration: none;
    margin: auto;
    display: inline-block;
    width: auto;
    text-align: left;
}

#post-wrapper .entry-content > .more-link:hover {
	text-decoration:none;
	border-bottom:dotted 1px #3F3426;
}	


html #block-7 {
	margin:0;
}

aside#block-6 {
    margin: 0 0 30px;
}

html #block-7 p {
	margin: 0 0 3em 0;
	padding:0;
}

aside#block-8 {
    margin: 0;
}


h1.page-title, 
h1.entry-title {
	font-family: 'Jost', sans-serif;
	font-weight:400;
	text-transform:uppercase;
	 margin-bottom: -5px;
}	

/* masthead */

/*adjust site when logged in */
.admin-bar #masthead {
    margin-top: 30px;
}

html .header-main {
    padding: 1.5em 3em;
    background: #14162D;
    color: #37E6FF;
	display: flex;
    justify-content: space-between;
    align-items: center;
	max-width: 1340px;
    margin: auto;
}	

h1.site-title {
	font-family: 'Jost', sans-serif;
	font-weight:400;
	text-transform:uppercase;
	 color: #37E6FF;
	 margin-bottom: -5px;
}	

.site-title a:link, .site-title a:visited , #primary-menu a{
	color: #F9F8EB;
	transition:color .2s;
}	

.site-title a:hover, a:hover {
	opacity:.8;
	text-decoration:none;
}

label.wp-block-search__label {
    display: none;
}

div#logo {
    padding-right: 0px;
	min-width: 220px;
}

#logo img {
    float: left;
    margin-right: 10px;
}

.site-branding {
	float: left; 
	margin-right: 10px;
	font-weight: 500;
}	

header#masthead {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
	border-bottom: solid 5px #B5A898;
	background:#3F3426;
}	


html .site-description {
    position: relative;
    clip: auto;
    width: auto;
    height: auto;
    overflow: auto;
	margin:0;
	padding:0;
}

html .site-title {
    line-height:100%;
}

#masthead.clearfix:before, #masthead.clearfix:after {
	display:none;
}	

#masthead input {
	border:solid 1px #37E6FF;
	color:#fff;
	width:320px;
	border-radius:0;
}	

#masthead input::placeholder {
	color:#bbb;
	font-style:italic;
}	

div#profile_links {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-end;
}

@media(max-width:1800px){
	#masthead input {
		width:200px;
	}	
}

@media(max-width:980px){
	
	html .header-main {
		display:block;
	}	
	
	#masthead nav {
		float:right;
	}	
	
	header#masthead {
		padding-bottom: 25px;
	}
	
	#masthead nav {
		gap: 20px; 
	}
}

@media(max-width:900px){
	.wp-block-search {
		display:none;
	}

}	

@media(max-width:780px){
	header#masthead {
		padding: 10px 0 30px 0;
	}
}

@media(max-width:630px){
	
	.site-content {
		padding: 3em 1.5em;
	}
	
	html .header-main {
		padding:0;
	}	
	
	#primary-menu {
		padding:0;
	}	
	
	#masthead #parentLink {
		background:#444;
	}	
	
	div#logo {
		padding-right: 0px;
		max-width: 100%;
		margin: auto;
	}
	
	html .header-main {
		display: flex;
		flex-direction: column;
	}
	
	header#masthead {
		padding: 1em 0 0;
	}
	
	ul#primary-menu {
		margin-bottom: 0px;
	}
	
	html li#topics a {
		padding: 0.75em;
	}
	
    html ul#primary-menu li {
		margin: 0;
	}
	
	html ul#primary-menu li ul.submenu {
		display: block;
		max-height:0px;
		overflow:hidden;
		position: absolute;
		width: 100%;
		border-bottom: solid 5px #B5A898;
		margin-bottom:-1px;
		background:#333;
	}
	
	.submenu a {
		border-top: solid 1px #71716D;
		border-bottom: 0;
	}
	
	html ul#primary-menu li.open ul.submenu {
		max-height:9999px;
	}	
	
	html .icon:hover span {
		display:none;
	}	
	
	a.icon {
		margin: 0 5px;
	}
	
	html ul#primary-menu li ul {
		position: static;
		top: 100%;
		right: 0;
		padding: 0;
		margin: 0;
	}
	
	html ul#primary-menu li ul li, html #primary-menu ul ul a{
		display:block;
		width:100%;
		padding: 0;
		margin:0;
	}
	
	html ul#primary-menu {
		display: block;
		width:100%;
	}
	
	li#topics {
		width: 100%;
	}
	
	#masthead .wp-block-search {
		grid-area: search;
		display: block;
		padding-right:20px;
	}
	
	#masthead #profile_links {
		grid-area: profile_links;
		padding-left:20px;
	}
	
/* Menus */	
	
	#masthead #primary-menu {
		grid-area: primary_menu;
		margin:0;
	}
	
	html #masthead nav {
		width: 100%;
		text-align: center;
		display:grid;
		grid-template-rows: auto;
		grid-template-areas: 
		"profile_links search search search "
		"primary_menu primary_menu primary_menu primary_menu";
		gap: 20px;
		column-gap: 40px;
		padding: 0 0px;
		margin-top:1em;
	}
	
	html .submenu a {
		color: white;
		padding: 0.5em 0;
	}
	
	html .submenu a:hover {
		background: transparent;
	}
		
	html .header-main {
		padding: 1.5em 0;
	}	
	
	html .icon {
		width: 24px;
		height: 24px;
	}
		
}	

@media(max-width:400px){

	html .header-main {
		padding: 10px;
	}
	
	html #masthead nav {
		display:grid;
		grid-template-rows: auto;
		"profile_links search search search "
		"primary_menu primary_menu primary_menu primary_menu";
		gap: 10px;
		column-gap: 40px;
		padding: 0 0px;
		margin-top:1em;
	}

}

#logo:after {
	content:" ";
	display:block;
	clear:both;
}	

div#logo-text {
    text-align: left;
    float: left;
}

html input {
	font-family: 'Jost', sans-serif;
	font-weight:400;
}

button.wp-block-search__button.wp-element-button {
    background: transparent;
}

form.wp-block-search__button-outside.wp-block-search__text-button.wp-block-search {
    text-align: center;
}

ul#primary-menu li {
    list-style: none;
    display: inline-block;
}

ul#primary-menu {
    display: flex;
    gap: 25px;
	justify-content:center;
}

ul#primary-menu li {
	position:relative;
}	

ul#primary-menu li ul {
	position: absolute;
    top: 100%;
    right: 0;
    padding: 0;
    margin: 0;
}

ul#primary-menu li ul li{
	display:block;
	background:#333333;
    width: 200px;
}

ul#primary-menu li ul.submenu {
	display:none;
}	

ul#primary-menu li:hover ul.submenu {
	display:block;
}	

.submenu a {
    display: block;
    padding: 5px 20px;
	border-bottom:solid 1px #71716D;
	color:white;
}

.submenu a:hover {
	background:#71716D;
	opacity:1;
}	


#masthead nav {
    margin: 0;
    padding: 0;
    grid-template-columns: .5fr 1fr;
    gap: 40px;
	align-items:center;
	display:flex;
}

.wp-block-search__inside-wrapper {
	display:flex;
}		

.site {
	padding:0;
	margin-top: 120px;
}	

div#post-wrapper:before {
	display:block;
	content:" ";
	height:2rem;
	position:relative;
	top:-2rem;
	border-top: solid 1px #14162D;
}	


/* home page */

.first-post {
    max-width: 800px;
    margin: 1em auto 0;
	padding-bottom:2rem;
}

.first-post .entry-meta {
    margin: 0 0 0;
    padding: 0;
    color: rgba(0, 0, 0, 0.5);
    color: var(--light-text-color);
    font-size: 14px;
    font-size: 0.875rem;
    text-align: center;
}


.post-column {
	width: 30%;
	margin-bottom: 40px;
}

@media(max-width:768px){
	.post-column {
		width: 45%;
	}
}	

@media(max-width:600px){
	.post-column {
		width: 100%;
	}
}	

.post-column:before {
    position: absolute;
    display: block;
    left: 0%;
    bottom: 0px;
    width: 100%;
    height: 1px;
    border-bottom: solid 1px rgba(0,0,0,.1);
    content: " ";
}	

/* gutter used for parallax */
.gutter-sizer {
	width:5%;
}	

div#footer {
    margin: 0 3em;
	text-align:center;
}

/* pagination */

nav.navigation.pagination {
    margin: 0px auto;
    text-align: center;
}

span.page-numbers.current {
    background: #FF8F37;
}

a.page-numbers {
    background: #71716D;
}

html h2.entry-title a:link:hover, 
html h2.entry-title a:visited:hover {
	border-bottom: dotted 1px #3F3426;
	text-decoration:none;
}	

.first-post .entry-meta {
    color: rgba(0, 0, 0, 0.5);
}


a.more-link {
    background: #3F3426;
}

.first-post a.more-link {
    background: #394759;
}

html .collapsed-archives input + label:before {
    color: #aaa;
}



html .header-main {
    background: #3F3426;
    color: #F9F8EB;
}	

@media(max-width:630px){
	
	html .header-main {
		padding:0;
	}	
	
	.site {
		padding: 0;
		margin-top: 180px;
	}
	
}	

h1.site-title {
	color: #F9F8EB;
    text-transform: none;
}

.site-title a:link, .site-title a:visited {
	color: #F9F8EB;
}	

#masthead input {
	border:solid 1px #F9F8EB;
	color:#fff;
}	

#masthead input::placeholder {
	color:#bbb;
}	

ul#primary-menu li ul li{
	background:#333333;
}

.submenu a {
	border-bottom:solid 1px #71716D;
	color:white;
}

.submenu a:hover {
	background:#71716D;
}	

span.page-numbers.current {
    background: #394759;
}

a.page-numbers {
    background: #71716D;
}


.first-post .wp-post-image {
	max-width:100%;
	margin:auto;
	display:block;
	margin-bottom:1em;
}	

.single div#content {
    display: flex;
}

aside#block-11 {
    padding: 0;
    margin: 0;
}

h3.latest-posts-heading.is-style-default {
    margin-bottom: 0;
	font-size:20px;
}

ul.wp-block-latest-posts__list.wp-block-latest-posts {
    margin-top: 1em;
}

.pagination a:hover, .pagination a:active, .pagination .current {
	background: #3F3426;
}	

ul.wp-block-latest-posts__list.wp-block-latest-posts {
    line-height: 1.3;
}

/* single */
.single main#main {
    max-width: 800px;
	width:100%;
	padding-top:1em;
	margin:auto;
}

.single .content-area {
	padding-right:0;
}	

div#latestPosts, #archiveList {
    position: relative;
	border-top: solid 1px #14162D;
	margin-top:4rem;
	padding-top:3rem;
}

/* archive list */
#archiveList {
	margin-top:0;
}	

div#latestPosts h1,
div#archiveList h1
 {
	margin-top:0;
	padding-top:0;
	padding-bottom:1rem;
	color: #394759;
    text-align: center;
}	

div#archiveList ul {
    list-style: none;
    padding: 0;
    display:block;
    margin: auto;
	max-width:800px;
	width:100%;
}

div#archiveList ul li {
	width:25%;
	float:left;
	margin:0;
	padding:0;
	text-align: center;
	line-height:200%;
}	
	

@media(max-width:768px){
	div#archiveList ul li {
		width:20%;
	}	
}	

@media(max-width:600px){
	div#archiveList ul li {
		width:33%;
		line-height:40px;
	}	
}


.single div#post-wrapper:before {
	display:none;
}	

@media(min-width:769px){
	.post-column:nth-child(10):before,
	.post-column:nth-child(8):before,
	.post-column:nth-child(9):before {
		display: none;
	}
}

@media(max-width:768px){
	.post-column:nth-child(10):before{
		display: none;
	}
}	
	
.required-field-message {
	display:block;
}

.archive div#post-wrapper:before,
.search div#post-wrapper:before {
	border:0;
}	

 .comment-reply-title span, .comment-form label, .archive-title {
	 font-weight:500;
 } 
 
 .archive-title {
	font-size:2.25rem;
	font-weight:400;
}	
 
button, input[type="button"], input[type="reset"], input[type="submit"] {
	background:#3F3426;
 } 
 
 

h2.entry-title {
	font-family: 'Jost', sans-serif;
	font-weight:400;
}	

.site-content {
    padding: 3em;
}

.content-area {
	width:100%;
}	

html h2.entry-title {
	text-align:center;
	color:#14162D;
}	

html h2.entry-title a:link, 
html h2.entry-title a:visited {
	color:#14162D;
}	

.entry-meta {
    margin: 0;
}	

img.key-image {
    max-width: 100%;
    margin: auto;
    margin-bottom: 1em;
}

.entry-content > .more-link {
    text-decoration: none;
    margin: auto;
    display: block;
    width: 150px;
    text-align: center;
}
