/* a minimalist set of CSS resets */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;900&display=swap");
* {
  box-sizing: border-box;
  font-size: 16px;
  font-family: "Lato", sans-serif;
 /*sans-serif is the "fallback font"
/*   fhref="https://fonts.googleapis.com/css2?family=Alfa+Slab+One&display=swap" */
}
[hidden] {
  display: none !important;
}

/* default to border-box */
html {
  box-sizing: border-box;
  font-size: 16px;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

/* adjust typography defaults */
body {
  margin: 0 auto;
  font-family: "Lato", sans-serif;
  line-height: 1.5;
  background-color: #faf6f0;
  color: #333333;
max-width: 900px;
padding: 10px;
}

canvas {
  border: 2px solid black;
  font-family: "Lato", sans-serif;
  margin: 10px;
}
/*  creating flex boxes for the description section. 1 parent box and 2 children boxes. The parent box is the overall box containing all of the content above the canvas.*/
.flex-container {
  display: flex;
/*   border: 2px solid black; */
  margin: 10px 0;
  max-width: 100%;
}
/*  this child box is for the left side of the canvas containing the image and the caption*/
#flex-container .side1 {
  flex: 1 1 0;
  flex-wrap: wrap;
}
/*  this child box is for the right side of the canvas with the intro paragraphs and legend*/

#flex-container .side2 {
  flex: 1 1 0;
  flex-wrap: wrap;
  flex-grow: 0;
}

/*  title styling */
.title {
  font-family: "Lato", sans-serif;
  font-style: 900;
  font-weight: bold;
  font-size: 40px;
  line-height: 105%;
  margin: 10px;
  position: relative;
}
/*  embedded image styling */
.illustration {
  max-width: 200px;
  max-height: var(--image-max-width);
  margin-top: var(--image-margin);
  position: center;
  right: 50px;
  margin: 10px;
}

/*  text stylings: subheading, caption under the image, and the thrill-seeking levels (color assignments) */
.subheading{
  margin:10px;
  font-size: 24px;
}
.caption {
  font-size: 10px;
  margin: 10px;
}
.scaredy_cat {
  color: #d1aed5;
  font-weight: bold;
}

.middle_pack {
  color: #779fa1;
  font-weight: bold;
}

.daredevil {
  color: #ff6542;
  font-weight: bold;
}

/*  shapes for the graphics legend*/
.square {
  height: 20px;
  width: 20px;
  background-color: #E0CBA8;
}

.triangle-down {
	width: 0;
	height: 0;
	border-left: 20px solid transparent;
	border-right: 15px solid transparent;
	border-top: 20px solid #E0CBA8;
}

.bar-legend{
  border-left: 4px solid #E0CBA8;
  height: 40px;
}

@media screen and (max-width: 600px) {
  .flex-container {
    display: block;
  }
}
