@tailwind base;
@tailwind components;
@tailwind utilities;
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Custom Animations */
.hover-grow {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-grow:hover {
	transform: scale(1.03);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.sidebar-link {
	transition: color 0.3s ease, transform 0.3s ease;
}
.sidebar-link:hover {
	color: #ffffff;
	transform: translateX(10px);
}
.scrollbar-hide::-webkit-scrollbar {
	display: none;
}

.scrollbar-hide {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.snap-x {
	scroll-snap-type: x mandatory;
}

.snap-center {
	scroll-snap-align: center;
}

/* Custom Styles */
.negative-category {
    background: linear-gradient(to right, var(--tw-gradient-stops));
    --tw-gradient-from: #f00;
    --tw-gradient-to: #ff0;
    color: #fff;
    padding: 1rem;
    border-radius: 9999px;
}

 /* Contenedor del Masonry */
.masonry-grid {
    position: relative;
    display: block;
    margin-left: -16px; /* Ajuste para las columnas */
    width: 100%;
}

/* Elementos del Masonry */
.masonry-item {
    position: absolute;
    width: calc(25% - 16px); 
    margin-left: 16px;
    transition: all 0.3s ease;
}

/* Efecto Hover */
.group img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}


/* Fondo de Hover */
.group .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.group:hover .overlay {
    opacity: 1;
}

.overlay span {
    color: white;
    font-size: 14px;
    text-align: center;
    font-weight: bold;
}

/* Asegurar que el botón está sobre la barra */
#toggle-bar-btn {
    position: absolute; /* Se coloca dentro de la barra */
    z-index: 10000; /* Se asegura de estar sobre cualquier otro elemento */
    top: -50px; /* Lo mueve arriba de la barra */
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a202c;
    padding: 10px 20px;
    border-radius: 0 0 10px 10px;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
    opacity: 1;
}

/* Cambia de color al pasar el mouse */
#toggle-bar-btn:hover {
    background-color: #2d3748;
}

/* Asegurar que el botón no esté oculto */
#image-gallery {
    position: relative;
    z-index: 9999;
}

