:root {
    --background-color: rgb(1, 1, 34);
    --text-color: #fff;
    --shadow-color: white;
    --custom-color: #FFD700;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}

h1, h2 {
    color: var(--custom-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.center-text {
    text-align: center;
    margin-bottom: 40px;
    
}

.base-text {
    font-size: 1rem;
    line-height: 2.9;
}

.title-text {
    font-size: 2.1rem;
    font-weight: bold;
    text-align: center; /* Ensure the title is centered */
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px; /* Adds spacing between the items */
}

.item {
    position: relative;
    width: 30%; /* 3 items in a row */
    overflow: hidden;
    border-radius: 8px; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    margin-bottom: 16px;
}

.item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px var(--custom-color); /* Custom shadow on hover */
}

.info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 8px;
}

.item:hover .info {
    opacity: 1;
}

.image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.subtitle {
    font-size: 0.875rem;
    color: var(--custom-color);
    margin-bottom: 8px;
}

.main-title {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 12px;
}

.info p {
    font-size: 1rem;
    color: white;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .item {
        width: 48%; /* 2 items per row on medium screens */
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 16px;
    }

    .title-text {
        font-size: 1.2rem;
    }

    .item {
        width: 100%; /* 1 item per row on small screens */
    }

    .info .subtitle, .info .main-title, .info p {
        font-size: 0.9rem;
    }
}
