/* ================ CSS RESET =================================== */

* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* ================= HIGHLIGHT TARGET ================================================================ */

@import "compass/css3";

/**
 * Use the :target pseudo-element to apply
 * styles to the element with the same ID as  
 * the fragment identifier.
 * (e.g. `#target-section`)
 * 
 * The pseudo-element can also be used in
 * conjunction with another selector to 
 * define a variety of target styles.
 * (e.g. `#target-section:target)
 */

:target {
	-webkit-animation: target-fade 1s;
	-moz-animation: target-fade 1s;
	-o-animation: target-fade 1s;
	animation: target-fade 1s;
}


/**
 * Keyframe animation definition
 * 
 * 1. Insert a color of your choice here
 */

@-webkit-keyframes target-fade {
	from { background-color: pink; } /* [1] */
	to { background-color: transparent; }
}

@-moz-keyframes target-fade {
	from { background-color: pink; } /* [1] */
	to { background-color: transparent; }
}

@-o-keyframes target-fade {
	from { background-color: pink; } /* [1] */
	to { background-color: transparent; }
}

@keyframes target-fade {
	from { background-color: pink; } /* [1] */
	to { background-color: transparent; }
}

/* ===========================================================================================================
 * =======================MY CODE ============================================================================
 * ===========================================================================================================
 */

@font-face {
  font-family: "Venturis";
  src: url("/bon-appetit/fonts/venturis-regular.woff");
}

@font-face {
  font-family: "Monsterrat-Light";
  src: url("/bon-appetit/fonts/Montserrat-Light.ttf");
}

@font-face {
  font-family: "Monsterrat-LightItalic";
  src: url("/bon-appetit/fonts/Montserrat-LightItalic.ttf");
}

html, body {
  margin:0;
  padding:0;
  height:100%;
  width:100%;
}

h1 {
 font-family: 'Venturis';
}

h2 {
  font-family: 'Venturis';
}

p {
  font-family: 'monsterrat-Light';
}

a {
  color: black;
  text-decoration-line: none;
}

a.sidebar {
  color: white;
  text-decoration-line: none;
}

.right {
  float: right;
  margin: 0;
}

img { 
  width: 100%; 
  height: auto;
  outline: solid black 3px;
}

figcaption {
  font-size: 14px;
  font-style: italic;
}

.flex-container {
  display: flex;
  flex-direction: row;
  background-color: pink;
}

.subtitle {
  font-family: 'monsterrat-LightItalic';
  color: black;
  font-size: 20px;
  padding: 0px;
  margin-top: -30px;
  margin-bottom: 0px;
}

.title { 
  /* position: sticky; */
  top: 8px;
  background-color: white;
  text-align: center;
  font-size: 24px;
  line-height: 200%;
  border: 2px solid black;
  margin-left: 25%;
  margin-right: 1%;
  margin-top: 1%;
}

.citation {
  font-size: 16px;
  margin-left: 32px;
  text-indent: -32px;
}

.intext {
  font-size: 16px;
}

.content {
  margin-left: 25%;
  margin-right: 1%;
  width: 70%;
  padding: 20px;
  line-height: 200%;
  font-size: 18px;
  
}

.sidebar {
  height: 100%;
  width: 20%;
  position: fixed;
  top: 0;
  left: 0;
  padding-top: 40px;
  padding-left: 4%;
  background-color: lightblue;
  color: white;
}

/* =================TOOLTIP===============*/

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
  color: steelblue;
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  background-color: RGBA(50, 50, 50, 0.9);
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  font-size: 12px;
  
  width: 400px;
  top: 100%;
  left: 50%;
  margin-left: -200px; /* Use half of the width (120/2 = 60), to center the tooltip */
 
  /* Position the tooltip text - see examples below! */
  position: absolute;
  z-index: 1;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
}

/* ==== TARGET ===== */

:target {
  padding-top: 130px;
  margin-top: -130px
}