/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 2 versions
*/

/*
Colors used

Text Color (black): #000000;
Hyperlink Text Color (dark purple) : #520057;
Background Color (light Purple): #EED8EE;

 */

* { /* the universal * selector will apply the styling to all HTML elements within your CSS file */
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

a {
  color: #520057;
}

a:visited {
  color: #023639;
}

a:hover {
  /* No underlining when hovering over a link */
  text-decoration:none;
}

a:active {
  /* selected link */
  color: #489c79;
}

a:focus {
    outline: 2px #ffffff;
}

.goat-link {
  text-decoration: none;
  font-weight: bold;
}

.page-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  padding: 20px;
  /* I dont like the look of a border between the header and the rest
  border-style: none none dotted none;
  border-color: lightgrey; */
}

.page-header img {
  max-width: 100px;
  max-height: 67px;
}

.page-header__item {
  -webkit-box-flex: 0;
      -ms-flex: 0 1 200px;
          flex: 0 1 200px;
}

.page-header__item:last-child {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  text-align: right;
}

.navigation-list {
  list-style-type: none;
}

.about-list {
  list-style-type: none;
}

.about-list {
  -webkit-padding-start: 0px;
          padding-inline-start: 0px;
  display: block; 
  margin-left: auto; 
  margin-right: auto;
}

.navigation-list li {
  display: inline-block;
  margin-left: 15px;
}

.navigation-list__item--active {
  text-decoration: none;
}
.navigation-list__item {
  font-family: "Quicksand", sans-serif;
  font-size:large;
}

div.navigation
{
  font-family: "Quicksand", sans-serif;
  font-size: large;
    margin: 0 auto;
	padding: 0px 0px 0px 20px;
	text-align: right;
}

div.navigation a
{
  color: black;
    text-decoration: none;
    font: "Quicksand";
    font-size: large;
    padding: 0px 0px 0px 30px;
    position: relative;
    z-index: 0;
    cursor: pointer;
}

.navigation-list__item:hover, .navigation-list__item--active {
  -webkit-transform: scale(1.1);
          transform: scale(1.1);
  font-weight: 500;
}

div.slash-animation a:before, div.slash-animation a:after
{
    position: absolute;
    opacity: 0;
    font-size: 110% ;
    top: 0px;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}

div.slash-animation a:before
{
    content: '\\' '\\';
    left: 22px  42px;
    -webkit-transform: translateX(20px) translateX(25px);
            transform: translateX(20px) translateX(25px);
}


div.slash-animation a:hover:before, div.slash-animation a:hover:after
{
    opacity: 1;
    -webkit-transform: translateX(-18px);
            transform: translateX(-18px);
}


.profile {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.about-text , .about-table {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 0;
}

.contact-information {
  display: inline-block;
  margin-left: 0;
  text-align: left;
}

#contact-form {
  display: inline-block;
  margin-left: 0;
  text-align: left;
}

#contact-animation {
  margin: 0 auto;
}

.contact-h1 {
  max-width: 700px;
  margin: 0 auto 30px auto;
  text-align: center;
  padding: 0;
}

input {
  width: 100%;
}

.profile__portrait {
  float: left;
  max-width: 250px;
  width: 50%;
  min-width: 100px; /* My idea is that on a mobile screen the pic is not gonna be smaller than 100px */
  height: auto;
  margin-right: 40px;
  border-radius: 50%;
}

.berlin-illustration {
  margin: 20px;
}

.goat-link:hover {
  cursor: pointer; /* lets the mouse appear as a hand when hovering over the button */
  color: red;
}

.goat-link:focus {
  cursor: pointer; /* lets the mouse appear as a hand when hovering over the button */
  color: red;
}

section h1 {
  text-align: center;
}

.project-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 20px 1fr 20px 1fr;
  grid-template-columns: 1fr 1fr 1fr;
  /* grid-template-rows: 300px 300px; */
  grid-gap: 20px ;
  margin: 20px;
}

/* Old code before ChatGPT 
.project-grid__item {
 display: inline-block;
 width: 33%;
  background-color:#c2a2c4;
  padding: 20px;
  min-height: auto;
  width: auto;
} */

/* Adjusted Code with help of ChatGPT for the overlay effect */ 
.project-grid__item {
  position: relative;           /* needed for overlay */
  background-color: #c2a2c4;
  padding: 20px;
  overflow: hidden;             /* so overlay stays inside */
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
  min-height: auto;        
  width: auto;
  text-align: center;
}

/* Hover scale effect */
.project-grid__item:hover {
  -webkit-transform: scale(1.05);
          transform: scale(1.05);
  z-index: 2;
}

/* Content inside the grid item */
.project-grid__content {
  position: relative;
  z-index: 1;                   /* stays below overlay */
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

/* Fade content slightly on hover */
.project-grid__item:hover .project-grid__content {
  opacity: 0.4;                  /* faded background */
}

/* Overlay styling */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6); /* dark glass */
  color: white;
  opacity: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 20px;
  text-align: center;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
  z-index: 2;
}

/* Show overlay on hover */
.project-grid__item:hover .overlay {
  opacity: 1;
}

.overlay-content {
  max-width: 80%;
}

/* .project-grid__item:nth-child(2) {
  grid-row-start: 1;
  grid-row-end: 3;
  grid-column-start: 2;
  grid-column-end: 3;
} */

.work__hyperlink {
  color: white;
  font-weight: bolder;
}

.work__hyperlink:hover {
  color: white;
  font-weight: bolder;
}

.work__hyperlink:visited {
  color: white;
  font-weight: bolder;
} 


.sun {
  -webkit-animation: 4s color-change infinite alternate linear;
          animation: 4s color-change infinite alternate linear;
}

.sun:hover {
  -webkit-animation-play-state: paused;
          animation-play-state: paused;
  cursor: crosshair;
}

.cloud-front {
  -webkit-animation: 20s cloud-move infinite alternate linear;
          animation: 20s cloud-move infinite alternate linear;
}

.cloud-back {
  -webkit-animation: 40s cloud-move-reverse infinite alternate linear;
          animation: 40s cloud-move-reverse infinite alternate linear;
}

@-webkit-keyframes cloud-move {
  from {
    -webkit-transform: translate(0, 50px);
            transform: translate(0, 50px);
  }
  to {
    -webkit-transform: translate(250px, 50px);
            transform: translate(250px, 50px);
  }
}

@keyframes cloud-move {
  from {
    -webkit-transform: translate(0, 50px);
            transform: translate(0, 50px);
  }
  to {
    -webkit-transform: translate(250px, 50px);
            transform: translate(250px, 50px);
  }
}

@-webkit-keyframes cloud-move-reverse {
  from {
    -webkit-transform: translate(446px, 48px);
            transform: translate(446px, 48px);
  }
  to {
    -webkit-transform: translate(100px, 48px);
            transform: translate(100px, 48px);
  }
}

@keyframes cloud-move-reverse {
  from {
    -webkit-transform: translate(446px, 48px);
            transform: translate(446px, 48px);
  }
  to {
    -webkit-transform: translate(100px, 48px);
            transform: translate(100px, 48px);
  }
}

  @-webkit-keyframes color-change {
  0% {
    fill: #edc655;
  }
  50% {
    fill: #fcffad;
  }
  100% {
    fill: #f76414;
  }
}

  @keyframes color-change {
  0% {
    fill: #edc655;
  }
  50% {
    fill: #fcffad;
  }
  100% {
    fill: #f76414;
  }
}


.page-footer {
  clear: both;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  text-align: center;
}

button {
  display: block;
  border: none;
  /*   font-family: inherit; - takes the font from the outer container */
  font-family: "Quicksand", sans-serif;
  background-color: #357b70;
  color: white;
  text-decoration: none;
  padding: 10px;
  border-radius: 30px;
  /* transition-duration: 0.2s;
  transition-property: opacity; */
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

.button {
  display: block;
  border: none;
  /*   font-family: inherit; - takes the font from the outer container */
  font-family: "Quicksand", sans-serif;
  background-color: #357b70;
  color: white;
  text-decoration: none;
  padding: 10px;
  border-radius: 30px;
  /* transition-duration: 0.2s;
  transition-property: opacity; */
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

/* .button__secondary {
  background-color: #e0b354;
  color: #2b2b2b;  }*/

button:hover {
  cursor: pointer;
  opacity: 0.8;
  color: white;
}

button:focus {
  cursor: pointer;
  opacity: 0.8;
  color: white;
}

.button:hover {
  cursor: pointer;
  opacity: 0.8;
  color: white;
}

.button:focus {
  cursor: pointer;
  opacity: 0.8;
  color: white;
}

button:visited {
 color: white; 
}

.button:visited {
 color: white; 
}

body{    
  background-color: #EED8EE;
        
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.2;
}

h1 {
  font-family: "Epunda Slab", serif;
  font-size: 30px;
  font-weight: 600;
}

h2 {
  font-family: "Epunda Slab", serif;
  font-size: 24px;
  font-weight: 500;
}

h3 {
  font-family: "Epunda Slab", serif;
  font-size: 18px;
  font-weight: 400;
}

@media all and (max-width: 500px) {
  .project-grid {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    grid-gap: 10px;
  }

  .project-grid__item:last-child {
    grid-column: auto / auto;
    grid-row: auto / auto;

  }
  h1 {
    font-size: 22px;
  }
  h2 {
    font-size: 18px;
  } 
  h3 {
    font-size: 15px;
  }
  p {
    font-size:small ;
  }
}
@media all and (min-width: 500px)and (max-width: 767px){
  .project-grid {
    -ms-grid-columns: 1fr 10px 1fr;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
  }
  .project-grid__item:last-child {
    grid-column: auto / auto;
    grid-row: auto / auto;
  }
  .project-grid__item {
        background-color:#f9caca;
  }

  h1 {
    font-size: 22px;
  }
  h2 {
    font-size: 18px;
  }
    h3 {
    font-size: 15px;
  }
    p {
    font-size:smaller ;
  }
}
