
/* Timeline */

.timeline {
  overflow: hidden;
  transform-origin: bottom right;
  transform: rotate(-7deg);
  height: 400px;
  z-index: 1;
}

.lines {
  //display: flex;
  margin-left: 150px;
  margin-top: 40px;
  --dotsize: 40px;
}

.dot {
  display: inline-block;
  width: var(--dotsize);
  height: var(--dotsize);
  background: var(--color1);
  border-radius: calc(var(--dotsize) / 2);
}

.line {
  display: inline-block;
  --linewidth: 5px;
  width: 470px;
  height: var(--linewidth);
  background-color: var(--color1);
  margin-bottom: calc(var(--dotsize) / 2 - (var(--linewidth) / 2));
}

.boxlist {
  overflow-x: scroll;
  white-space: nowrap;
  height: 100%
}

.box {
  display: inline-block;
  height: 100%;
  width: 350px;
  padding: 50px;
  margin: 0 30px;
  max-width: 30rem;
  background: var(--background-color);
  position: relative;
  box-shadow: none;
  transition: transform 300ms ease-in-out, box-shadow 400ms ease, background 100ms ease;
  transform-origin: top left;
  transform: rotate(7deg);
}

.box:first-child {
  margin-left: 160px;
}

.box h2 {
  color: black;
  letter-spacing: normal;
  font-family: frutiger;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 1em;
  padding-top: 0;
  padding-bottom: 0;
}

.box p {
  font-weight: normal;
}

[data-interactive]:hover,
[data-interactive]:focus-within {
  background: var(--color2);
  box-shadow: 0 1rem 1rem rgba(0,0,0,0.3);
  //transform-origin: bottom left;
  //transform: translateY(-0.5rem);
}

.box > * + * {
  margin-top: 1em;
}

.box a {
  display: inline-block;
}

.info-button {
  font: inherit;
  font-weight: 600;
  padding: 0.6rem 2rem;
  background: transparent;
  color: currentcolor;
  border: 1px solid;
  transition: background 100ms ease;
  position: static;
  margin-top: 35px;
  text-decoration: none;

}

.info-button,
.info-button::before {
  cursor: pointer;
}

.info-button::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.info-button:focus {
  outline: none;
}

.info-button:hover {
  background: var(--color2);
}

.info-button:focus::before {
  outline: 1px solid #ffffff;
  outline-offset: -0.8rem;
}

:not([data-interactive]) > .info-button::before {
  display: none;
}

/* Modal */

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 12; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: var(--color2);
  margin: auto;
  padding: 40px;
  padding-bottom: 80px;
  border: 1px solid #888;
  width: 860px;
  max-width: calc(90vw - 80px); /* 90% with padding */
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  /* animation-name: animatetop;
  animation-duration: 0.4s */
}

.modal-content p {
  //width: 80%;
  width: 100%;
  margin: auto;
  margin-top: 20px;
}

.modal-content p strong {
  font-weight: bold;
}

.modal-content h3 {
  display: none;
}

@-webkit-keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

@keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

.modal-close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.modal-close:hover,
.modal-close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
}

.modal-body {padding: 2px 16px;}

.modal-footer {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
}

/* Modal Header */

.modal .verdi-angle {
  box-shadow: 0 4px 8px 0 rgb(0 0 0 / 20%), 0 6px 20px 0 rgb(0 0 0 / 19%);
}

.modal-animation {
  animation-name: animatetop;
  animation-duration: 0.4s;
}

.modal .title {
  padding-bottom: 150px;
}

.modal .title h1 {
  text-align: right;
  font-size: 3em;
}

.modal .title h1 i {
  margin-right: 50px;
  font-size: 1.8em;
}

@media (max-width: 650px) {
  .modal .verdi-angle {
    height: 150px;
  }

  .modal .title h1 {
    margin-top: 30px;
    margin-right: 0;
    text-align: center;
    font-size: var(--size-h1);

  }

  .modal .title {
    height: 100px;
    padding-bottom: 0;
    margin-bottom: 40px;
  }

  .modal-close {
    position: relative;
    top: -20px;
  }

}
