@import url('https://fonts.googleapis.com/css2?family=Margarine&display=swap');

html {
    height: 100%;
} 

img {
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none; /* disables right-click menu, unless you need clicks */
  }

  a {
    text-decoration: none;
    color: inherit;
  }
  a:visited {
    color: inherit;
  }

body {
    margin: 0;
    padding: 0;
    background-image: url("Images/fabric_1.webp");
    background-repeat: repeat;
    position: relative;

    height: 100%;
    overflow: hidden;

      /* Center everything */
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

/* FACE */
#face-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: -5px; /* adjust if needed - depending on title size */
    display: flex;
    flex-direction: column; /* forces vertical stacking */
    align-items: center;
    justify-content: center;
    gap: -30px;
  }

  #simple-image {
    margin-top: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 50%;
  }

.eyes-nose {
    width: 400;
    margin-bottom: 0px;
  }

#moustache {
    width: 300px;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.2s;
  }
  
#moustache:hover {
    transform: scale(1.05);
  }

#eyes-nose, #moustache {
    user-select: none;
    pointer-events: auto;
  }

  @keyframes moustacheImpact {
    0% { transform: scale(0.1); }
    30% { transform: scale(1.4); }
    85% { transform: scale(0.9); }
    95% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }
  
  #moustache.impact {
    animation: moustacheImpact 0.2s ease;
  }

/* Fade in and Fade-rise animation*/
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
  }
  
  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }
  
  #stamp-button.fade-in {
    animation-delay: 1s;
  }

  .fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(10px); 
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }


/* Title image styles - keep the title at the top */
#title-container {
    position: fixed;
    top: 2%;
    width: 100%;
    text-align: center;
    background: transparent; /* no background */
    z-index: 10;
    padding: 10px 0;
  }
  
  #title-image {
    max-height: 150px;
    height: auto;
    user-select: none;
    pointer-events: none;
  }

/* Flex layout for centre and sides */
.layout {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding-top: 0px;
  gap: 570px; /* gap to separate columns from face */
}

/* BUTTONS */
.button-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 130px;
}

/* Shared button style */
#stamp-button {
  position: relative;
  transform: rotate(var(--rotation, 0deg));
  width: 100px;
  height: auto;
  user-select: none;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.2s;
}

#stamp-button:hover {
  transform: scale(1.15);
}

/*return*/
#return-button {
  position: fixed;
  top: 10%;
  left: 10%;
  z-index: 1000;
  display: inline-block;
  cursor: pointer;
}

#return-button img {
  position: relative;
  transform: rotate(var(--rotation, 0deg));
  width: 100px;
  height: auto;
  user-select: none;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.2s ease-out;x
}

#return-button img:hover {
  transform: rotate(-15deg) scale(1.05); /* slight spin + grow on hover */
}

/*Image with shadow & rotated*/
.about-image {
  transform: rotate(4deg);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.4);
  width: 400px;
  height: auto;
}

.about-text-block {
  font-family: 'Margarine', cursive;
  font-size: 18px;
  max-width: 500px;
  margin: 0 auto;   /*Centre text (funny meme)*/
  text-align: right;
}

.about-body {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem; /* space between text and image */
}

/* Footer */
.site-footer {
  position: fixed;
  bottom: 10px;
  right: 20px;
  font-size: 12px;
  color: rgb(124, 124, 124);
  font-family: sans-serif;
  z-index: 1000; /* above other content */
  pointer-events: none; /* doesn't interfere with clicks */
}

/* Portpholio list */
.portfolio-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding-top: 3%;
}

.portfolio-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.portfolio-item {
  font-size: 1.5rem;
  transition: transform 0.3s ease, font-size 0.3s ease;
  cursor: pointer;
  font-family: 'Margarine', cursive;
  font-size: 48px;
  max-width: 800px;
  margin: 0 auto;   /*Centre text (funny meme)*/
  text-align: center;
}

.portfolio-item:hover {
  transform: scale(1.3);
  z-index: 10;
}