/* link to data source */
#bottomlink {
  position: absolute;
  bottom: 10px;
  right: 580px;
  height: 20px;
  width: 300px;
}

html {
  scroll-behavior: smooth;
}

#map {
  background-color: rgba(255, 255, 255, 0);
  float: left;
  transform: translate(10px, 20px);
}

#piechart {
  float: top;
  background-color: rgba(255, 255, 255, 0);
}

/* borders in map for submunicipalities */
.stadsdeel-borders {
  fill: none;
  stroke: rgb(26, 26, 26);
  stroke-width: 10px;
  stroke-linejoin: round;
  stroke-linecap: round;
  pointer-events: none;
  opacity: 0.8;
}

/* d3 tooltip */
.d3-tip {
  line-height: 1.5;
  font-weight: 400;
  font-family: "avenir next", Arial, sans-serif;
  padding: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #FFA500;
  border-radius: 1px;
  pointer-events: none;
}

/* Creates a small triangle extender for the tooltip */
.d3-tip:after {
  box-sizing: border-box;
  display: inline;
  font-size: 8px;
  width: 100%;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.6);
  position: absolute;
  pointer-events: none;
}

/* Northward tooltips */
.d3-tip.n:after {
  content: "\25BC";
  margin: -1px 0 0 0;
  top: 100%;
  left: 0;
  text-align: center;
}

/* Eastward tooltips */
.d3-tip.e:after {
  content: "\25C0";
  margin: -4px 0 0 0;
  top: 50%;
  left: -8px;
}

/* Southward tooltips */
.d3-tip.s:after {
  content: "\25B2";
  margin: 0 0 1px 0;
  top: -8px;
  left: 0;
  text-align: center;
}

/* Westward tooltips */
.d3-tip.w:after {
  content: "\25B6";
  margin: -4px 0 0 -1px;
  top: 50%;
  left: 100%;
}

.details {
  color: white;
}

/* change link color */
a:visited {
  color: #d9f2fa;
  background-color: transparent;
  text-decoration: none;
}

a:hover {
  color: red;
  background-color: transparent;
  text-decoration: underline;
}

body,
html {
  height: 100%;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

/* section 1 page layout */
.hero-image {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../../doc/Mainimage.jpg");
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

.hero-text button {
  border: none;
  padding: 10px 20px;
  color: rgb(255, 255, 255);
  background-color: rgb(114, 129, 170);
  text-align: center;
  cursor: pointer;
  border-radius: 16px;
}

.hero-text button:hover {
  background-color: #555;
  color: white;
}

/* line chart properties */
.incomeline {
  fill: none;
  stroke: rgb(255, 0, 0);
  stroke-width: 2px;
}

.rentline {
  fill: none;
  stroke: rgb(0, 85, 119);
  stroke-width: 2px;
}

.area1 {
  fill: rgb(255, 0, 0, .2);
  stroke-width: 0;
  opacity: 1;
}

.area2 {
  fill: rgb(3, 107, 226, .2);
  stroke-width: 0;
  opacity: 1;
}

.legend {
  font-size: 16px;

}

section {
  position: relative;
  width: 100%;
  height: 100%;
}

/* scroll down button text properties */
.demo a {
  position: absolute;
  bottom: 20px;
  left: 48%;
  z-index: 2;
  display: inline-block;
  -webkit-transform: translate(0, -50%);
  transform: translate(0, -50%);
  color: #fff;
  font: normal 400 20px/1 'Josefin Sans', sans-serif;
  letter-spacing: .1em;
  text-decoration: none;
  transition: opacity .3s;
}

.demos a {
  position: absolute;
  bottom: 20px;
  left: 48%;
  z-index: 2;
  display: inline-block;
  -webkit-transform: translate(0, -50%);
  transform: translate(0, -50%);
  color: rgb(0, 140, 255);
  font: normal 400 20px/1 'Josefin Sans', sans-serif;
  letter-spacing: .1em;
  text-decoration: none;
  transition: opacity .3s;
}

.demo a:hover {
  opacity: .5;
}

.demos a:hover {
  opacity: .5;
}

/* section 1 scroll down button */
#section01 a {
  padding-top: 40px;
}

#section01 a span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  border-left: 1px solid #fff;
  border-bottom: 1px solid #fff;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

/* section 2 scroll down button */
#section02 a {
  padding-top: 40px;
}

#section02 a span {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  border-left: 2px solid rgb(0, 140, 255);
  border-bottom: 2px solid rgb(0, 140, 255);
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

/* section 3 scroll down button */
#section03 a {
  padding-top: 60px;
}

#section03 a span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  border-left: 1px solid rgb(0, 140, 255);
  border-bottom: 1px solid rgb(0, 140, 255);
  -webkit-transform: rotate(135);
  transform: rotate(135deg);
}

/* pie chart dopdown properties */
.dropdown {
  position: absolute;
  display: inline-block;
  top: 560px;
  right: 65px;
  height: 500px;
  width: 300px;
}