/** KAREV.CA (Personal brand) 
*
* Author: Dmitry Karev (dmitry@karev.ca)
* License: (c) 2023 - All rights reserved
*/

/* @import url('https://fonts.googleapis.com/css2?family=Barlow Condensed:wght@100;300;400;500;700;&display=swap'); */

:root {
	--brand-color-primary: #f7f8f9;
	--brand-bg-color: #f7f8f9;
	--brand-text-color: #333;
	--brand-color-1: #c95b3a;
	--brand-color-link: #3a5170;
	--brand-color-hover: #1c2033;
	
	--body-font-family: "Barlow Condensed", "Bahnschrift Light SemiCondensed", "Amazon Ember Cd Rc",  Play, sans-serif;
	--body-font-size: 1.0rem;	
	--body-line-height: 1.15;
	
	--brand-font-family-headings: "Bahnschrift SemiBold", "Barlow Condensed", -apple-system,BlinkMacSystemFont, Arial, sans-serif;
	--brand-font-smaller: 1.5rem;
}

body {
	background-color: var(--brand-bg-color);
	color: var(--brand-text-color);
	font-size: 1.25rem;
	line-height: 1.25;
}
p {
	margin:0;
}
h1 {
	font-family: var(--brand-font-family-headings);
    font-weight: var(--brand-font-weight-headings,600);
	font-size: 5rem;
}
h3 {
	font-family: var(--brand-font-family-headings);
	text-transform: uppercase;
    font-weight: 500;
    /* font-size: 2.2rem; */
	font-stretch: condensed;
    padding-top: 4rem;
}

figure.float-right {
	max-width: 45%;
	position: absolute;
    right: 0;
}

.back-to-top-link {
    bottom: 1.5rem;
    position: fixed;
    right: 2rem;
}
.back-to-top-link:focus, .back-to-top-link:hover {
    background-color: var(--brand-color-link);
    border-color: var(--white,#fff);
    color: var(--white,#fff);
}

.com-content-article__body h1 {
    padding-top: 20rem;
    padding-bottom: 4rem;
}
.com-content-article__body .title-page {
	border-left: 3px solid var(--brand-color-1);
    padding-left: 1rem;
    font-size: 2rem;
    margin-bottom: 25rem;
}
.container-header {
    background-color: var(--brand-color-primary);
    background-image: none;
    -webkit-box-shadow: 0 5px 5px rgba(0,0,0,.03);
    box-shadow: 0 5px 5px rgba(0,0,0,.03);
	margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}
.container-header .container-nav {
    padding-bottom: 1em;
    padding-top: 1em;
}
.container-header .mod-menu {
    -webkit-box-flex: 1;
    color: var(--brand-text-color);
}
.container-header .navbar-toggler {
    border: 1px solid #333;
    color: #333;
    cursor: pointer;
}
.container-topbar {
	color: var(--brand-color-link);
    position: absolute;
    text-align: right;
    width: -webkit-fill-available;
    padding-top: 5px;
    padding-right: 1rem;
}
.container-topbar .social a {
	padding-right: 5px;
}
.container-topbar .social a:visited {
	color: var(--brand-color-link);
}
.container-topbar .social a:hover {
	color: var(--brand-color-1);
}

.fa-canadian-maple-leaf {
    background: #fff;
    color: red;
    padding-left: 2px;
    padding-right: 0px;
    border-right: 4px solid red;
    border-left: 5px solid red;
    margin-right: 7px;
}
.footer {
    background-color: var(--brand-color-link);
    background-image: -o-linear-gradient(315deg,var(--brand-color-link) 0,var(--brand-color-hover) 100%);
    background-image: linear-gradient(135deg,var(--brand-color-link) 0,var(--brand-color-hover) 100%);
    color: #fff;
	font-size: var(--body-font-size);
    margin-top: 1em;
    margin: auto 0;
    padding: 0;
    text-align: center;
}
.footer .grid-child {
	align-items: flex-start;
    justify-content: center;
    padding: 0.5rem 0.5em;
    text-align: left;
}
.footer .mod-menu, .footer .mod-footer {
	margin: auto;
	display: contents;
}
.footer .nav-header {
	font-weight:600;
}
.footer .nav-item {
	padding-right: 2rem;
}
.footer .mod-list li .mod-menu__sub {
    padding-left: 0;
}


.mod-education {
	display: flex;
	margin: 5rem auto;
	padding: 0 5%;
}
.mod-education h1, h3 {
	text-align: center;
}
.mod-education li {
	padding-bottom: 1rem;
}
.mod-education .mod-custom {
	display: flex;
}
.mod-education .title {
	padding-right: 1rem;
	width: 50%;
}
.mod-education .edu {
    display: flex;
    flex-direction: column;
	padding: 1.5rem;
}
.mod-education .edu-education {
	display: flex;
}
.mod-education .n5 {
	margin-top: 10rem;
}
.mod-education .edu-container {
	padding: 0 1rem;
	width: 25%;
	text-align: center;
}
.mod-education .edu-container img {
	max-width: 200px;
	margin: auto;
}

.mod-experience {
	margin: 5rem auto;
	padding: 0 5%;
}
.mod-experience h1 {
	padding-top: 3rem;
}
.mod-experience h1, h3 {
	text-align: center;
}
.mod-experience li {
	padding-bottom: 1rem;
}
.mod-experience .exp {
    display: flex;
    flex-direction: column;
	padding: 1.5rem;
}
.mod-experience .exp-container {
	display: flex;
}

.mod-product {
	margin: 5rem auto;
	padding: 0 5%;
}
.mod-product h1 {
	padding-top: 3rem;
}
.mod-product h1, h3 {
	text-align: center;
}
.mod-product li {
	padding-bottom: 1rem;
}
.mod-product .prod {
    display: flex;
    flex-direction: column;
	height: fit-content;
	padding: 1.5rem;
	width: 20%;
}
.mod-product .prod-container {
	display: flex;
}
.mod-product .prod-container img {
	max-width: 200px;
	margin: auto;
}

.mod-title {
	margin: 5rem auto;
	padding-left: 15%;
}
.mod-title .custom {
	background-position-x: right;
    background-repeat: no-repeat;
	background-size: contain;
	padding-bottom: 0.5rem;
}

.mod-profile {
	margin: 5rem auto;
	padding-left: 15%;
}
.mod-profile .custom {
	background-position-x: right;
    background-repeat: no-repeat;
	background-size: contain;
	padding-bottom: 0.5rem;
}
.mod-profile .profile {
    padding-left: 1rem;
    font-size: 2rem;
    margin-bottom: 25rem;
}
.mod-profile .profile li {
    padding-bottom: 0.5rem;
}
.mod-profile .profile li li {
    font-size: var(--brand-font-smaller);
}


@media (min-width: 380px) {
	h1 {
		font-size: 3rem;
	}
	h3 {
		font-size: 1.7rem;
		padding-bottom: 1rem;
	}
	.com-content-article__body .title-page {
		margin-bottom: 1rem;
	}

	.gray {
		background-color: #ddd;
	}
	
	.mod-education .mod-custom {
		flex-direction: column;
	}	
	.mod-experience {
		margin: 5rem auto;
		padding: 0 5%;
	}
	
	.mod-education h1, 
	.mod-experience h1,
	.mod-product h1	{
		padding-top:3rem;
		text-align: center;
		line-height: 1;
	}
	.mod-experience h3,
	.mod-education h3, 
	.mod-experience h3,
	.mod-product h3	{
		padding-top:2rem;
		text-align: center;
	}
	.mod-education .n5 {
		margin-top: 0;
	}
	.mod-education .title, 
	.mod-experience .title {
		padding-right: 0;
		width: 100%;
	}
	
	.mod-education .edu-container,
	.mod-experience .exp-container {
		flex-direction: column;
		font-size: 1.25rem;
		width: 100%;
	}	
	.mod-experience .exp_02, .mod-experience .exp_04 {
		padding-top: 0;		
	}
	
	.mod-product .prod-container {
		flex-direction: column;
	}
	
	.mod-product .prod {
		width: auto;
	}
	.mod-profile .profile {
		padding-left: 1rem;
		font-size: 1.4rem;
		margin-bottom: 5rem;		
	}
	.mod-profile .profile li li {
		font-size: 1.1rem;
	}
	
	.mod-title {
		padding-left: 10%;
	}

	.container-header .navbar-toggler {
		margin-top: -1rem;
	}
	
	.position-sticky {
		position: sticky!important;
	}
}

@media (min-width: 1200px) {
	p {
		margin:0;
	}
	h1 {
		font-family: var(--brand-font-family-headings);
		font-weight: var(--brand-font-weight-headings,600);
		font-size: 5rem;
	}
	h3 {
		font-family: var(--brand-font-family-headings);
		text-transform: uppercase;
		font-weight: 500;
		font-size: 1.5rem;
		font-stretch: condensed;
		padding-top: 4rem;
	}
	
	.mod-education {
	display: flex;
	margin: 5rem auto;
	padding: 0 5%;
}
	.mod-education h1 {
		padding-top: 20rem;
	}
	.mod-education h1, h3 {
		text-align: center;
	}
	
	.mod-education li {
		padding-bottom: 1rem;
	}
	.mod-education .mod-custom {
		flex-direction: row;
	}
	.mod-education .title {
		padding-right: 1rem;
		width: 50%;
	}
	.mod-education .edu {
		display: flex;
		flex-direction: column;
		padding: 1.5rem;
	}
	.mod-education .edu-education {
		display: flex;
	}
	.mod-education .n5 {
		margin-top: 10rem;
	}
	.mod-education .edu-container {
		padding: 0 1rem;
		width: 25%;
		text-align: center;
	}
	.mod-education .edu-container img {
		max-width: 200px;
		margin: auto;
	}

	.mod-education,
	.mod-experience .exp-container {
		flex-direction: row;
		width: fit-content;
	}
	.mod-experience .exp_02 {
		padding-top: 14rem;
	}
	.mod-experience .exp_04 {
		padding-top: 7rem;
	}
	
	.mod-education .gray,
	.mod-experience .gray {
		background-color: inherit;
	}
	
	.mod-product .gray {
		background-color: inherit;
	}
	.mod-product .prod-container {
		flex-direction: row;
	}

	.mod-product .prod {
		width: 20%;
	}
}