@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
  --bg: #fff;
}

* {
  box-sizing: border-box;
}
::selection {
  color: #3e85ff;
  text-shadow: 0 0 5px #94bcff;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box; /* Para que el padding no afecte el ancho total */
  padding: 0 2%; 
}

#txt {
  position: fixed;
  color:#94bcff ;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 10px 20px;
  border-radius: 10px;
  z-index: 100;
}

.box {
  margin: 20px;
  padding: 30px;
  display: inline-block;
  cursor: pointer;
  width: 60vw;
  background-color: transparent;
  transition: transform 0.2s ease-in-out, background-color 0.2s ease;
  outline: none;
  border: none;
  box-shadow: none;
}

.box:hover {
  outline: none;
  border: none;
  box-shadow: none;
}

h1 {
  font-weight: 300;
  margin: 0 0 10px;
  font-size: 1.5rem;
  color: #333;
}

h2 {
    font-size: clamp(10px, 7vw, 20px);
  font-weight: 300; 
  color: #c5c5c5;  
  transition: filter 0.3s ease, color 0.3s ease;
  

}
h2:hover {
  filter: blur(6px);
  color:#94bcff;
}
div > a {
  text-decoration: none;
}
.work-item {
  text-decoration: none;
  color: inherit;
  position: relative;
}

.work-item:hover .box {
  opacity: 0.3;
}

.work-item:hover::before {
  content: attr(data-hover-text);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  z-index: 10;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}


/* IMÁGENES */
.me {
  width: 80%; 
  height: auto; 
  transition: all 0.3s ease;
}

.me:hover {
  content: url('/assets/graphic/me2.png');
}
.letra {
  width: 80%; 
  height: auto; 
}
.sillyguy {
  width: 50%; 
  height: auto; 
}

/*BOTON DE VUELTA AL INDEX*/
.index-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  position: fixed; 
  top: 80px;  /* Increased space from the top */
  right: 30px; /* Increased space from the right */
  z-index: 1000; 
  z-index: 2;
}

.index-button img {
  width: 50px;
  height: auto;
  border: none; 
  cursor: pointer;
  transition: transform 0.3s ease; 
}

.index-button img:hover {
  transform: scale(1.1);
}

.index-button span {
  font-size: 12px; 
  opacity: 70%;
  margin-top: 5px;
}