* {
  box-sizing: border-box;
}
  

body {
  background-color: #FFF7E9;
  margin: 0, auto;
  display: flex;
  flex-direction: column;
}

/* navigation links */
nav {
  margin: 3em;
  font-family: 'Special Elite', cursive;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 0;
}

nav ul img {
  width: 5em;
  margin: 0 5em 0 7em;
}

/*lines under navigation links*/
.underline a {
  text-decoration: none;
  color: #000;
  position: relative;
}

.underline a:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  top: 1.5em;
  left: 0;
  background-color: gray;
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.4s ease-in-out 0s;
}

.underline a:hover:before {
  visibility: visible;
  transform: scaleX(1);
}

/* popup container */
.popup {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* the actual popup */
.popup .popuptext {
  width: 16em;
  background-color: rgb(255, 200, 148);
  color: #fff;
  text-align: center;
  font-family: "Noto Sans", sans-serif;
  border-radius: 6px;
  padding: 1.5em;
  position: absolute;
  z-index: 1;
  top: 175%;
  left: 50%;
  margin-left: -80px;
  display: none;
}

/* popup arrow */
.popup .popuptext::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 32%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent rgb(255, 200, 148) transparent;
}

/* when clicked on */
.popuptext.active {
  display: block;
  -webkit-animation: fadeIn 1s;
  animation: fadeIn 1s
}

/* screen area outside of popup */
#overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

/* when clicked on */
#overlay.active {
  pointer-events: all;
}

/* animation added that fades in the popup */
@-webkit-keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity:1 ;}
}

/* text at the bottom of first page */
h1 {
  font-size: 1.2em;
  text-align: center;
  font-family: 'Special Elite', cursive;
  margin: 1em;
}

/* d3 bubbles */
#chart {
  display: flex;
  justify-content: center;
}

svg {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* tool tips over the bubbles */
.d3-tip {
  background-color: rgb(255, 200, 148);
  color: #fff;
  padding:8px;
  font-family: "Noto Sans", sans-serif;
  font-size: 0.8em;
  text-align: center;
  border-radius: 6px;
} 

/* the fullpage scroll effect */
.section h2 {
  font-size: 2em;
  font-family: 'Special Elite', cursive;
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -20%);
}

.art {
  height: 60%;
  position: absolute;
  top: 60%;
  left: 30%;
  transform: translate(-60%, -70%);
}

.art img  {
  height: 100%
}

.art p {
  text-align: right;
  font-size: 0.7em;
  color: #555555;
  padding-top: 0.5em;
}

.text {
  margin-top: 20%;
  width: 40%;
  margin-left: 5%;
  font-size: 1em;
  color: black; 
  transform: translate(120%, 100%);
}

/* vertical line */
.line {
  border-left: 2px solid rgb(77, 77, 77);
  margin-left: -1px;
  height: 100%;
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 1;
}

.circle {
  border-radius: 50%;
  border: 2px solid rgb(77, 77, 77);
  background-color: rgb(255, 200, 148);
  height: 1em;
  width: 1em;
  position: absolute;
  left: 50%;
  top: 11%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

