@tailwind base;
@tailwind components;
@tailwind utilities;


@layer base {
  body {
    font-family: 'OpenSans', sans-serif;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: 'Adamina', serif;
  }
}

.fadeIn {
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* Estilo para la galería y los ítems */

.gallery-item {
  position: relative;
  overflow: hidden;
}

/* Estilo para el overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Oscurecimiento */
  opacity: 0;
  /* Oculto por defecto */
  transition: 0.5s ease;
  /* Transición suave para el efecto */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Estilo para el texto encima de la imagen */
.text {
  color: white;
  font-size: 0.9rem;
  text-align: center;
}

/* Efecto hover */
.gallery-item:hover img {
  filter: brightness(70%);
  /* Oscurece la imagen */
}

.gallery-item:hover .overlay {
  opacity: 1;
  /* Muestra el overlay */
}


:root {
  --text-color: #333;
}

.dark :root {
  --text-color: #fff; /* Light color for dark mode */
}

body {
  color: var(--text-color); /* Use the variable for text color */
}


body {
  background-color: #f9f9f9; /* Light background color */
}

/* Dark mode */
.dark body {
  background-color: #121212; /* Dark background color */
}