@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Homemade+Apple&display=swap');

:root{
  --h5-color: #FF8E6E;
  --link-color: #FF8E6E;
  --background-color: #F6F6F6;
  --strong-color: #515070;
  --line-color: #FFBB91;

}
body{
  font-family: "Inconsolata", monospace;
  font-size: xx-small;
   background-color: var(--background-color);
}

a{
 color: var(--link-color);
 text-decoration: none;
}

ul {
  font-size: xx-small;
}

strong{
  color: var(--strong-color);
}

h5 {
  /*text-decoration: underline wavy var(--h5-color) 2px; */
  font-family: "Homemade Apple", cursive;
  color: var(--strong-color)
}

h6{
  color: var(--h5-color);
  font-size: small;
}

#projects-title{
  text-decoration: underline wavy var(--line-color) 1px;
}

#sidebar-box {
  box-shadow: rgba(50, 50, 105, 0.15) 0px 2px 5px 0px, rgba(0, 0, 0, 0.05) 0px 1px 1px 0px;
  max-width: 250px;
}

/* container que segura as caixinhas */
#projects-content {
  display: flex;
  flex-wrap: wrap;            /* quebra de linha automática */
  gap: 1rem;                  /* espaçamento entre caixinhas */
  justify-content: center;    /* centraliza horizontalmente */
  padding: 1rem;
}

#imagem-fade {
  opacity: 0.7;
  transition: opacity 0.5s ease-in-out; /* Transição suave */
}
#imagem-fade:hover {
  opacity: 1; /* Opacidade inicial (visível) */
  transition: opacity 0.5s ease-in-out; /* Transição suave */
}

.title {
  color: var(--strong-color);
  font-family: "Homemade Apple", cursive;
  font-weight: 400;
  font-style: normal;
}

/* caixinha individual */
.project-box {
  padding: 0.6em 2em;
  border: none;
  outline: none;
  background: var(--background-color);
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  text-align: center;
  flex: 0 1 10px; /* largura mínima e ajustável */
  transition: transform 0.2s ease;
}

.project-box:hover {
  transform: scale(1.05);
}

/* efeito neon */
.project-box:before {
  content: "";
  background: linear-gradient(
    45deg,
    #ff0000,
    #ff7300,
    #fffb00,
    #48ff00,
    #00ffd5,
    #002bff,
    #7a00ff,
    #ff00c8,
    #ff0000
  );
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  -webkit-filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing-project-box 20s linear infinite;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
}

@keyframes glowing-project-box {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.project-box:after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--background-color);
  left: 0;
  top: 0;
  border-radius: 10px;
}
