/*
@mixin r1 {
    grid-row-start: 1;
    grid-row-end: 1;
}

@mixin r2 {
    grid-row-start: 2;
    grid-row-end: 2;
}

@mixin r3 {
    grid-row-start: 3;
    grid-row-end: 3;
}

@mixin c1 {
    grid-column-start: 1;
    grid-column-end: 1;
}

@mixin c2 {
    grid-column-start: 2;
    grid-column-end: 2;
}

@mixin c3 {
    grid-column-start: 3;
    grid-column-end: 3;
}

@mixin c-span3 {
    grid-column-end: span 3;
}
*/
/***
 *** HEADER ***
***/
#me-header {
  height: 90vh;
  width: 100%;
  padding-bottom: 10vh;
}
#me-header #me-portrait {
  display: inline-block;
  width: 40vh;
  background-image: url("../images/portrait_smaller.jpg");
  background-size: contain;
}
#me-header #me-description {
  display: inline-block;
  width: 60vh;
}
#me-header .header-flex {
  width: 100%;
  height: 100%;
  /*
  .title-headline-container {

      display: flex;

      height: 20%;
      width: 80%;

      flex-direction: row;
      justify-content: center;
  }
  */
}
#me-header .header-flex .title-headline {
  display: flex;
  height: 20%;
  width: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(154, 154, 154, 0) 15%, #fff9 68%, #ffffffe6 76%, #ffffffab 78%, rgba(117, 117, 117, 0) 95%, rgba(0, 0, 0, 0) 100%);
}
#me-header .header-flex .title-headline > * {
  margin: auto;
}
#me-header .header-flex .header-portrait {
  display: flex;
  height: 70%;
  margin-bottom: 2vh;
}
#me-header .header-flex .header-portrait > * {
  margin: auto;
}
#me-header .header-flex .header-portrait img {
  filter: drop-shadow(1px 1px 40px #fff);
  max-width: 100%;
  /* this is very important to not overextend the flex box! */
  max-height: 100%;
  object-fit: contain;
}
#me-header .header-flex .header-bottom-text {
  display: flex;
  height: 10%;
  margin-bottom: 5vh;
}
#me-header .header-flex .header-bottom-text > * {
  margin: auto;
}
#me-header .header-flex .header-text {
  display: flex;
  justify-content: center;
  /* align horizontal */
  align-items: center;
  /* align vertical */
}
#me-header .header-flex .header-text.title1 {
  font-family: title1q;
  font-size: 4em;
  filter: drop-shadow(3px 3px 5px #000B);
}
#me-header .header-flex .header-text.title2 {
  font-family: title1t;
  font-size: 1.2rem;
  filter: drop-shadow(3px 3px 3px #000B);
}

#me-content {
  position: relative;
  margin-top: 15%;
  margin-bottom: 10%;
}

#me-content-background {
  position: absolute;
  width: 70%;
  height: calc(100% + 150px);
  margin-left: 14%;
  margin-top: -50px;
  z-index: 100;
  background: #FFF;
  border: 1px solid #FFF0;
  border-radius: 200px;
  overflow: hidden;
  filter: blur(70px);
}

/*
*** ABOUT ME ***
*/
.me-block {
  position: relative;
  margin: 0% calc(25% - 100px) 8% calc(25% - 100px);
}
.me-block.img-left .me-block-image {
  margin-right: 4%;
}
.me-block.img-left .me-block-content {
  padding-right: 4%;
}
.me-block.img-right .me-block-image {
  margin-left: 4%;
}
.me-block.img-right .me-block-content {
  padding-left: 4%;
}
.me-block.img-right p {
  margin: 4% 0px 4% 4%;
}
.me-block .mb-borders-top {
  border: 0px solid #0000;
  border-bottom: 1px solid #071a46;
  box-shadow: inset 5px 5px 5px #A8CDFFD6, inset -5px 0px 8px #0b275ee3;
}
.me-block .mb-borders-bottom {
  border: 0px solid #0000;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
}
.me-block .me-block-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
}
.me-block .me-block-title {
  flex: 1 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}
.me-block h3 {
  border-top-right-radius: 25px;
  border-top-left-radius: 25px;
  font-family: title3b;
  font-size: clamp(2.4rem, 0.508475rem + 4.88136vw, 6rem);
  /* calculated by JS */
  filter: drop-shadow(9px 10px 2px rgba(14, 33, 66, 0.28));
  background-color: #313ac487;
  padding: 0.9% 0px 0.6% 4%;
}
.me-block h3 span {
  filter: drop-shadow(2px 3px 2px #000000c4);
}
.me-block .me-block-content {
  flex: 2 1;
  position: relative;
  display: flex;
  flex-direction: row;
  padding: 1% 3% 3% 2%;
  width: 100%;
  box-shadow: inset 2px 0px 0px #A8CDFFD6, inset -5px 0px 8px #0b275ee3;
}
.me-block .me-block-background {
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  height: 100%;
  width: 100%;
  filter: drop-shadow(9px 10px 2px #0006);
}
.me-block .me-block-background-image {
  min-width: 100%;
  min-height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}
.me-block .me-block-image {
  flex: 1;
  object-fit: contain;
  max-width: 45%;
  max-height: 70vh;
  border: 2px solid #FFF;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  border-top-left-radius: 25px;
  border-bottom-right-radius: 25px;
  background-color: rgba(10, 74, 172, 0.62);
  box-shadow: inset 3px 3px 8px #00000096;
  filter: drop-shadow(-2px -1px 0px #FFF) drop-shadow(10px 13px 2px rgba(6, 31, 77, 0.38));
  box-sizing: content-box;
  align-self: center;
  z-index: 20;
}
.me-block .me-block-content-text {
  position: relative;
  /* to make z-index on children work */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}
.me-block p {
  margin: 3% 0 3% 0;
  padding: 4% 3% 2% 5%;
  font-family: title3n;
  font-size: clamp(0.8rem, -0.7070rem + 4.4651vw, 2.4rem);
  font-weight: 400;
  line-height: 115%;
  border: 0px solid #0000;
  border-radius: 10px;
  box-shadow: inset 5px 5px 3px #A8CDFFD6, inset -5px -5px 3px #A8CDFFD6;
  z-index: 10;
}
.me-block span {
  filter: drop-shadow(2px 2px 2px #000);
}
.me-block .me-block-content-text em {
  font-weight: bolder;
  font-style: normal;
  font-size: clamp(2rem, -0.7070rem + 4.4651vw, 4rem);
  /* needs recalculation */
}

/* FORM */
.me-block form p {
  padding: 1.5% 1.5% 1% 1.5%;
  margin: 0% 0% 0.5em 0%;
}
.me-block form label {
  display: block;
  margin: 0% 0% 0.2% 0%;
  color: #FFF;
  font-size: 1em;
  font-family: title3n;
  font-weight: 800;
  filter: drop-shadow(2px 2px 1px #000);
}
.me-block form input, .me-block form select, .me-block form textarea {
  display: block;
  padding: 7px 7px 7px 6px;
  width: 100%;
  font-family: title3b;
  font-size: 0.8em;
  filter: drop-shadow(2px 2px 2px #000);
}
.me-block form button {
  padding: 1.4% 10% 0% 10%;
  margin-top: 1%;
  float: right;
  font-size: 2.5em;
  font-family: title3n;
  font-weight: 800;
  border-style: solid;
  border-radius: 30px;
  background-color: #FFFF;
  border-color: #000;
  border-width: 0px;
  box-shadow: inset 7px 1px 2px #E8D8CBD6, inset -6px 1px 2px #9739137a;
}
.me-block form button:disabled {
  background-color: #BCBCBCBC;
}
.me-block form .contact-form-privacy {
  margin-left: 1%;
  font-size: 1.5em;
  color: #FFF;
}
.me-block form .contact-form-privacy a {
  color: #FFF;
  font-weight: bolder;
}
.me-block form .contact-form-privacy {
  margin-left: 1%;
}
.me-block form .form-error-indicator {
  display: none;
  /* display: block; */
  font-size: 0.8em;
  margin: 1% 0% -1% 0%;
  padding: 1% 1% 0% 1%;
  border: 2px solid red;
  background-color: #FF0000BB;
}

#contact-message-result {
  display: none;
  /* display: block; */
  margin: 3% 0% 2% 0%;
  font-size: 2.5em;
  padding: 2% 2% 2% 2%;
}

.contact-message-result-ok {
  border: 2px solid green;
  background-color: #00FF00BB;
}

.contact-message-result-error {
  border: 2px solid red;
  background-color: #FF0000BB;
}

/* 
* INDIVIDUAL BLOCKS
*/
#me-design .me-block-title h3 {
  background-color: rgba(105, 146, 213, 0.77);
}
#me-design .me-block-image {
  background-image: url("../images/b_uml.png");
  background-size: contain;
  background-color: rgba(10, 74, 172, 0.2);
}
#me-design .me-block-background-image {
  opacity: 0.3;
  filter: blur(1px);
}
#me-design .me-block-content-text p {
  background-color: rgba(93, 134, 202, 0.77);
}

#me-skills .mb-borders-top {
  box-shadow: inset 5px 5px 5px #FFC7F1, inset -5px 0px 8px #1a0119e3;
}
#me-skills .me-block-title h3 {
  background-color: #c61cd5;
}
#me-skills .me-block-background-image {
  filter: blur(1px);
}
#me-skills .me-block-content-text p {
  background-color: #c61cd5cf;
  box-shadow: inset 5px 5px 3px #FF60EED6, inset -5px -5px 3px #35052ED6;
}
#me-skills a {
  color: #FEDEFF;
}

#me-teach .me-block-title h3 {
  background-color: rgba(154, 151, 247, 0.66);
}
#me-teach .me-block-background-image {
  opacity: 0.5;
}
#me-teach .me-block-image {
  background-color: white;
}
#me-teach .me-block-content-text p {
  background-color: rgba(117, 114, 215, 0.66);
}

#me-build .me-block-title h3 {
  background-color: #056ba8;
}
#me-build .me-block-background-image {
  opacity: 0.8;
}
#me-build .me-block-content-text p {
  background-color: #0a374de6;
}
#me-build a {
  color: #cde7fd;
}

#me-contact .me-block-title .mb-borders {
  box-shadow: inset 5px 5px 5px #F48F0DD1, inset -5px 0px 8px #350303AB;
}
#me-contact .me-block-title h3 {
  background-color: #dd7a3fd6;
}
#me-contact .me-block-background-image {
  opacity: 0.7;
  filter: blur(1px);
}
#me-contact .me-block-content-text p {
  background-color: #dd7a3fd6;
  box-shadow: inset 3px 3px 3px #F48F0DC9, inset -2px -2px 3px #350303AB;
}
#me-contact p.mb-borders.mb-borders-mini {
  border-radius: 15px;
}

/** Footer **/
footer {
  flex: 0 0 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-height: 100%;
  background-color: #0080c0;
  color: #FFF;
  align-items: center;
  font-size: 0.85em;
}

footer span {
  flex: 0 1 auto;
  margin: 0px 15px 0px 15px;
}

#storage {
  color: #FFFFFFFF;
  background-color: #4c84dbFF;
}
