/* animations */
.animate-slide {
    animation: slideIn 1s ease-out;
}

.animate-fade {
    animation: fadeIn 1.5s ease-in;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    background-color: rgb(51, 51, 51);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

p {
    color: #ffffff;
}

/*header*/
h1 {
    font-family: 'Courier New', Courier, monospace;
    color: #ff7eb3;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #333;
}

header a {
    font-family: 'Daughter of Fortune', sans-serif;
    color: #ff7eb3;
    font-size: 2.5rem;
}

nav {
    display: flex;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin-left: 15px;
}

nav ul li a {
    color: white;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
    text-decoration: none;
}

/* categories */
.categories {
    text-align: center;
    margin: 20px 0;
}

.category-btn {
    background-color: #ff7eb3;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 0 10px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.category-btn:hover {
    background-color: #ff4d85;
}

/* collections content */
.collections-content {
    text-align: center;
    margin: 30px 0;
}

.collections-content h1,
.collections-content p {
    margin-bottom: 20px;
}

.categories {
    text-align: center;
    margin-bottom: 40px;
}

.category-btn {
    background-color: #ff7eb3;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.category-btn:hover {
    background-color: #ff4d85;
}

/* grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));  
    gap: 15px;  
    padding: 20px;
}


#grid-illustrations .grid-item,
#grid-graphic-design .grid-item {
    width: 100%;  
    height: 200px;  
    overflow: hidden;
    border-radius: 10px;
    background-color: #333;  
}

#grid-illustrations .grid-item img,
#grid-graphic-design .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

#grid-illustrations .grid-item a,
#grid-graphic-design .grid-item a {
    display: block;
    height: 100%;
    width: 100%;
    text-align: center;
}


.grid-item {
    width: 100%;
    display: block;
}

video {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.hidden {
    display: none;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 80%;
    margin: 20px;
}

.modal img,
.modal video {
    width: 100%;
    height: auto;
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
