:root {
	--body-font: 'Oxygen', sans-serif;
	--header-font: 'Montserrat', sans-serif;
	--fancy-font:  'Metamorphous', cursive;
	--header-weight: 600;
	--color-primary: #007bff;
}


body.lonk {
    font-family: var(--body-font);
  }
body.lonk h1, body.lonk h2, body.lonk h3, body.lonk h4, body.lonk h5 {
   font-family: var(--header-font);
   padding-bottom: .44rem;
   padding-top: .8rem;
   line-height: 1rem;
}

main.page {
  padding-top:1rem;
}

.page_title {
  margin-top: 1.2rem;
}

div.faq {
margin-bottom: 2rem;
}

div.qtext, div.atext {
  display: block;
  position: relative;
  padding-left: 2rem;
  margin-bottom: .4rem;
  margin-top: .2rem;

}

div.qtext::before, div.atext::before {
  font-weight: bold;
  position: absolute;
  left: -.2rem;
  top: -.2rem;
  font-size: 1.4rem;
  text-shadow: 1px 1px 6px #222;
}

div.qtext::before {
  content: 'Q:';
  color: red;
}

div.atext::before {
  content: 'A:';
  color: #5fdd5f;
}

div.atext>ul {
  margin-top: -.8rem;
}

.contact-options>dt::after, .my-work-links>dt::after  {
  content: ':';
}
.contact-options>dt, .my-work-links>dt {
  margin-top: 1rem;
}


/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}
body {
  margin-bottom: 80px; /* Margin bottom by footer height */
}
footer.footer {
  position: absolute;
  height: 80px;
  bottom: 0;
  width: 100%;
  text-align:center;
  padding-top: .5rem;
  border-top: 2px solid #cacaca;
}

.footer .nav-link {
  padding: 0 .2rem;
}
.footer .copyline {
  line-height: 2rem;
}



/* Feeds styles
-------------------------------------------------- */


.page-feeds article {
/*	margin-top: 2rem; */
}


.page-feeds article{
    margin-bottom: 1rem;
}
.page-feeds article:last-child{
    margin-bottom: 0;
}


.page-feeds article>header {
	background-color: var(--color-primary);
	color: white;
	text-align: center;
	border-top-left-radius: 1rem;
	border-top-right-radius: 1rem;
	line-height: 2rem;
}


.prod_description header {
	width: 100%;
	text-align: center;
}
.prod_description img {
	width: 90%;
	margin-left: 5%;
}

section.prod_description {
	border-top: 6px solid var(--color-primary);
	padding: 1rem;
}

.prod_title {
	font-size: 1.2rem;
	font-weight: bold;
	display: block;
}
.prod_subtitle {
	font-size: .9rem;
	font-style: italic;
}

.card.graycard {
  border-radius: .5rem;
  border-width: medium;
  margin-bottom: 1rem;
}

/* from https://profromgo.com/blog/google-calendar-responsive/ */
.responsive-iframe-container {
position: relative;
padding-bottom: 56.25%;
padding-top: 30px;
height: 0;
overflow: hidden;
}

.responsive-iframe-container iframe,
.vresponsive-iframe-container object,
.vresponsive-iframe-container embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}






/* Resume styles
-------------------------------------------------- */

body.page-resume address>p {
  line-height: 1rem;
  margin-top: .2rem;
  margin-bottom: .4rem;

}

body.page-resume span.name {
  font-size: 3rem;
}

body.page-resume .resume > h3 {
  color: rgb(0, 123, 255);
  border-top: 2px solid rgb(0, 123, 255);
  border-bottom: 2px solid rgb(0, 123, 255);
  margin-top: 2rem;
  width: max-content;
	padding: .8rem .5rem .8rem .5rem;
}

body.page-resume dd {
  margin-bottom: 1.6rem;
}

body.page-resume dd>p {
  margin-bottom: 0;
}

  @media (max-width: 768px) {
  .nameblock {
    margin-bottom: 1rem;
  }
}

.work-title {
	text-transform: uppercase;
}

.btn.to-pdf {
  margin-bottom: 1rem;
  float:right;
}

#summary {
	margin-top: 1rem;
	border-top: 2px solid rgb(0, 123, 255);
	padding-top: .5rem;
	text-align: center;
}

.summary_1 ul {
  display: inline;
  list-style: none;
  padding: 0px;
}

.summary_1 li {
	display: inline;
}

.summary_1 li::after {
  content: " | ";
}

.summary_1 li:last-child::after {
    content: "";
}



/* Portfolio styles
------------------------------ */

dl.info {
	display: grid;
	grid-template-columns: 3.7rem auto;
	position: relative;
	margin-bottom: 0px;
}

.info dd::after,
.info dt::after {
	--x-off: .6rem;
	--height: 1.6em;
	--line-width: 2px;
	--corner-color: rgba(0,123,255,.25);
	content: '';
	position: absolute;
	width: 7rem;
	height:var(--height);
	background-color: #e6e6e6;
	background: linear-gradient(90deg, var(--corner-color) 0%, rgba(255,255,255,1) 100%);
}

.info dt {
  grid-column: 1;
	font-weight: normal;
	position: relative;
	font-family: var(--header-font);
	letter-spacing: .04em;

}

.info dt::after {
	top: -.3rem;
	left: -.8rem;
	height: 2rem;
	clip-path: polygon(
		calc( var(--x-off) + var(--line-width))   var(--line-width),
		100%                                      var(--line-width),
		100%                                      0px,
		var(--x-off)                              0px,
		0px                                       var(--height),
		var(--line-width)                         var(--height)
		);
}






.info dd {
  grid-column: 2;
	line-height: 1.25;
	position: relative;
}

.info dd.no-p {
	margin-bottom: 1.5rem;
}

.info dd::after {
	bottom: .3rem;
	right: -.3rem;
	height:var(--height);
	background: linear-gradient(-90deg, var(--corner-color) 0%, rgba(255,255,255,1) 100%);
	clip-path: polygon(
		calc(100% - var(--x-off)) calc(var(--height) - var(--line-width)),
		0px                       calc(var(--height) - var(--line-width)),
		0px                       var(--height),
		calc(100% - var(--x-off) + 2px) var(--height),
		100% 0px,
		calc(100% - var(--line-width))  0px
		);
}

.info dd.no-p::after{
	bottom:-.5rem;
}




.portwork {
	margin-bottom: 2rem;
}

article .card {
	--headline-height: 3.5rem;
	--preview-height: 12rem;
	border-radius: .4rem;
	box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.4);

}

.card-header {
	display: flex;
	flex-direction: column;
	align-content: center;
	background-image: url('/media/bubble-back.jpg');
	background-color: var(--color-primary);
	background-size: cover;
}

article .card-title {
	height: var(--headline-height);
	display: grid;
	align-content: center;

}
article .card-title > span {
	font-family: var(--header-font);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.15;
	color: white;
}

.card .preview {
	height: var(--preview-height);
	object-fit: contain;
	overflow: hidden;
	display: flex; /* to center the image in the figure */
	margin: 0px;
	padding-top: .5rem;
	padding-bottom: .5rem;
}

.preview img {
	object-fit: contain;
	max-height: 100%;
	object-position: center;
}

.card-body p:first-child {
	margin-bottom: 2rem;
}

@media only screen and (max-width: 991.98px) {
  .portwork >figure {
    text-align: center;
  }
  .portwork h3 {
    font-size: 1.2rem;
    line-height: 1.3rem;
  }

	.info dd::after {
		display: none;
	}
	.info dt::after {
		width: 11rem;
	}

	.card-title {
		text-align: center;
	}
	article .card-title > span {
		font-size: 2rem;
	}
}
.portwork h3 >p {
  line-height: 1.8rem;
  font-weight: bold;
}

.portfolio-main h3 {
  margin-top: 1rem;
  border-top: 6px double #a0a0a0;
  border-bottom: 1px dashed #e0e0e0;
}




.portwork .topic {
  color: #606060;

}

.portwork .detail p {
  font-size: 1.2rem;
}

/* bio */
p.ill-in:first-of-type::first-letter,
.page-bio main.page .col:first-of-type::first-letter {
	--block-height: 4rem;
	font-family: var(--fancy-font);
	font-size: var(--block-height);
	line-height: var(--block-height);
	float: left;
	padding: .1em;
	border: 2px solid var(--color-primary);
	margin-right: .5rem;
	margin-bottom: .5rem;
	color: var(--color-primary);
	background-image: url('/media/lines.png');
	background-position: 65% 45%;
}
