
/* --------------------
  pagetitle
-------------------- */

.services-title {
  position: fixed;
  top: 0px;
  left: 0px;
  z-index: 900;

  width: 100%; 
  height: max(10vh, 80px);

  color: white;
  background-color: var(--moss-green);

  display: flex;
  align-items: center;
  justify-content: center;
}

.services-title h2 {
  color: white;
  margin: 0;
  font-size: clamp(2rem, 8vw, 4rem);
  letter-spacing: 4px;
}

.services-title h3 {
  color: white;
  margin: 0;
  font-size: clamp(1.5rem, 6vw, 3rem);
  letter-spacing: 3px;
}

.language-button-centerer {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.center-abs {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.center-text {
  text-align: center;
}

.language-button {
  display: flex;
  align-items: center;
  justify-content: center;
  top: calc((max(10vh, 80px) - 44px) / 2);  /* Could not get it right another way. 60px high title bar, 44px img. */
  left: 16px;
}

body {
  margin: 0;
  /* prevents overlap with the content of the page. */
  padding-top: max(10vh, 60px);
}

/* --------------------
  txtbody 
-------------------- */
.txtbody {
  width: 100%;  
  padding: clamp(30px, 4vw, 40px)
           clamp(10px, 8vw, 100px)
           40px
           clamp(30px, 8vw, 100px);
  box-sizing: border-box;

  background: white;
  color: var(--moss-green);
}

.txtbody-txt {
  width: 80%;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.txttitle {
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background: transparent;
  border: none;
  padding: 0;

  cursor: pointer;
}

.title-text {
  font-size: 2rem;
  font-weight: bold;
  text-align: left;
  color: var(--moss-green);
}

.spacer-after {
  padding-bottom: 40px;
}

.plus {
  font-size: 2.5rem;
  line-height: 1;

  margin-left: auto;
  color: var(--moss-green);

  transition: transform 0.3s ease;
}

.txtbody-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease,
    margin-top 0.3s ease;
}

.txtbody.active .txtbody-content {
  max-height: 300px;
  opacity: 1;
  margin-top: 25px;
}

/* rotate + to x */
.txtbody.active .plus {
  transform: rotate(45deg);
}

.txtbody-content p {
  width: 80%;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.6;
}

/* full width line */
.section-line {
  width: 100%;
  height: 1px;

  background-color: var(--moss-green);

  margin-top: 30px;
}