:root {
    --background-light: #fdebf3;
    --background-dark: #1e1e2e;
    --text-light: #fdebf3;
    --text-dark: #1e1e2e;
  }
  
  html {
    background-color: var(--background-dark);
    color: var(--text-light);
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  body {
    margin: 0;
    font-family: "Pacifico", cursive;
    width: 600px;
  }
  
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
  }

  a {
    font-family: "Josefin Sans", sans-serif;
    text-decoration: none;
    color: var(--text-light);
    font-size: 1.3rem;
    margin-right: 0.5rem;
    margin-left: 0.5rem;
  }

  header h1:hover, header a:hover {
    text-decoration: underline;
    text-decoration-color: #375a7f;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    cursor: pointer;
    transform: scale(1.1);
    transition: transform 0.3s ease, text-decoration 0.3s ease;
  }
  main {
    margin-left: 0.5rem;
  }
  .title {
    font-size: 2rem;
    text-decoration: none;
    font-family: "Pacifico", cursive;
    margin: .67em 0;
  }
  
  .icon-theme {
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    transition: transform 0.3s;
  }
  
  .icon-theme:hover {
    transform: rotate(20deg);
  }
  .icon-theme:active {
    transform: rotate(360deg);
  }
  .link {
    display: flex;
    margin-left: auto;
    justify-content: space-between;
    margin-right: 1.5rem;
  }
  .gif {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .gif img {
    max-width: 100%;
    height: auto;
  }
  .gif404 {
    margin-top: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .gif404 img {
    max-width: 50%;
    height: auto;
  }
  .badge {
    font-size: 0.75rem;
    font-weight: bold;
    font-family: "Josefin Sans", sans-serif;
    background-color: #584966;
    border-radius: 6px;
    width: fit-content;
    height: 10px;
    padding: 0.3rem 0.5rem;
    color: white;
    display: flex;
    align-items: center;
    margin-top: -1rem;
    margin-bottom: 10px;
    
}

.eyeofrex {
  font-size: 2.6rem;
  margin-top: -3rem;
}

.abouttext {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.1rem;
  hyphens: auto;
  line-height: 1.5;
  text-indent: 1rem;
}

.lostheader {
  font-size: 7.5rem;
  letter-spacing: 10px;
  text-align: center;
  margin-top: 1rem;
}

.losttext {
 color: #5c5b77;
 font-family: "Josefin Sans", sans-serif;
 text-align: center;
 margin-top: -6rem;
}

.lostlink {
  text-align: center;
  margin-top: 0.3rem;
}

h2 {
  font-family: "Pacifico", cursive;
  text-decoration: underline #375a7f;
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
  font-size: 2.1rem;
  margin-bottom: 0;
}

.lostlink a {
  color: #78c2ad;
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.1rem;
  line-height: 1.5;
  text-indent: 1rem;
}

.btn-portfolio {
  font: 900 18px "Josefin Sans", sans-serif;
  border: 2px solid #78c2ad;
  border-radius: 8px;
  background: #0000;
  color: var(--text-light);
  text-align: center;
  padding: 8px 16px;
  transition: background-color .4s, color .4s;
}

.btn-portfolio:hover {
  background-color: #78c2ad;
  color: var(--text-light);
  cursor: pointer
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.skill-img  {
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  margin: 9px 5px;
  margin-top: 20px;
  width: 46px;
  aspect-ratio: auto 46 / 46;
  height: 46px;
}

footer {
  margin: 4rem 0;
}

.icon-link {
  display: flex;
  justify-content: center;
  padding: 0.5rem;
}

.icon-btn-github {
  padding: 10px;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  border: 2px solid var(--background-light); 
  background-color: var(--background-dark); 
  color: var(--text-light); 
  display: flex;
  justify-content: center; 
  align-items: center; 
  transition: background-color 0.3s, border-color 0.3s, color 0.3s; 
}

.icon-btn-github:hover {
  border-color: #78c2ad;
}

.icon-btn-github svg {
  width: 100%; 
  height: 100%;
  fill: var(--text-light); 
  transition: fill 0.3s;
}

.icon-btn-mail {
  padding: 10px;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  border: 2px solid var(--background-light); 
  background-color: var(--background-dark); 
  color: var(--text-light); 
  display: flex;
  justify-content: center; 
  align-items: center; 
  transition: background-color 0.3s, border-color 0.3s, color 0.3s; 
}

.icon-btn-mail svg {
  width: 100%;
  height: 100%;
  fill: var(--text-light); 
  transition: fill 0.3s; 
}

.icon-btn-mail:hover {
  border-color: #78c2ad;
}

.icon-btn-x {
  padding: 10px;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  border: 2px solid var(--background-light); 
  background-color: var(--background-dark); 
  color: var(--text-light); 
  display: flex;
  justify-content: center; 
  align-items: center; 
  transition: background-color 0.3s, border-color 0.3s, color 0.3s; 
}

.icon-btn-x svg {
  width: 100%;
  height: 100%;
  fill: var(--text-light); 
  transition: fill 0.3s; 
}

.icon-btn-x:hover {
  border-color: #78c2ad;
}

.right-link {
  color: #78c2ad;
  text-decoration: none;
  font-size: 15px;
  text-align: center;
}

.right-text {
  margin-top: 1.5rem;
  font-family: "Josefin Sans", sans-serif;
  text-align: center;
  font-size: 14px;
}

.works-card {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin-top: 16px;
  align-items: center;
  justify-content: center;
}

.work-card {
  list-style: none;
  margin: 10px;
  width: 233px;
  height: 260px;
  padding: 15px 10px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}

.work-card img {
  border-radius: 12px;
  width: 100%;
  height: auto;
}

h3 {
  font-family: "Josefin Sans", sans-serif;
  font-size: x-large;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
}

.description {
  font-family: "Josefin Sans", sans-serif;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.5;
  margin-top: -10px;
}

.project {
  font-family: "Josefin Sans", sans-serif;
  text-align: center;
  font-weight: 500;
  width: 260px;
  height: 270px;
}

.work-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}

.post-card {
  list-style: none;
  margin: 10px;
  text-align: center;
  font-weight: 500;
  font-family: "Josefin Sans", sans-serif;
}

.post-card img {
  border-radius: 16px;
  width: 226px;
  aspect-ratio: auto 226 / 127;
  height: 127px;
  margin-top: -10px;
}

.title-post {
  margin-top: 10px;
}

.posts-card {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin-top: 50px;
  align-items: center;
  justify-content: center;
}

.post-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}

  @media only screen and (max-width: 600px) {
    .header {
      flex-direction: column;
      align-items: center; 
      text-align: center; 
    }
  
    .title {
      margin-bottom: 1rem; 
    }
  
    .link {
      display: flex;
      justify-content: center; 
      margin-left: 0;
      margin-right: 0;
    }
  
    .link a {
      margin: 0.5rem; 
    }

    main {
      margin-left: 1rem;
    }

    .gif {
      margin-top: -2rem;
      margin-bottom: 1.5rem;
    }

    .project:active {
      transform: scale(1.05);
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
      border-radius: 12px;
    }

    .post-card:active {
      transform: scale(1.05);
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
      border-radius: 12px;
    }
  }