* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #0d0d0d;
    color: #b0b0b0;
    margin: 0;
    line-height: 1.6;
    background-image: url('images/background.jpg');
    background-size: cover; /* Adjust size for tape appearance */
}

header {
    background-color: #222; /* Fully opaque background */
    color: #b0b0b0;
    text-align: center;
    padding: 1em 0;
    font-size: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    animation: neonFlicker 1.5s infinite;
}

/* Create the flickering neon light effect */
@keyframes neonFlicker {
    0% {
        text-shadow: 0 0 5px #ffcc00, 0 0 10px #ffcc00, 0 0 15px #ffcc00, 0 0 20px #ffcc00, 0 0 30px #ffcc00, 0 0 40px #ffcc00, 0 0 50px #ffcc00;
    }
    20% {
        text-shadow: 0 0 3px #ffcc00, 0 0 7px #ffcc00, 0 0 10px #ffcc00, 0 0 15px #ffcc00, 0 0 20px #ffcc00;
    }
    40% {
        text-shadow: 0 0 5px #ffcc00, 0 0 15px #ffcc00, 0 0 25px #ffcc00;
    }
    60% {
        text-shadow: 0 0 5px #ffcc00, 0 0 10px #ffcc00, 0 0 15px #ffcc00, 0 0 20px #ffcc00, 0 0 30px #ffcc00;
    }
    80% {
        text-shadow: 0 0 3px #ffcc00, 0 0 7px #ffcc00, 0 0 10px #ffcc00;
    }
    100% {
        text-shadow: 0 0 5px #ffcc00, 0 0 10px #ffcc00, 0 0 15px #ffcc00, 0 0 20px #ffcc00, 0 0 30px #ffcc00, 0 0 40px #ffcc00;
    }
}

footer {
    background-color: #111;
    color: #b0b0b0;
    text-align: center;
    padding: 1em 0;
    margin-top: 20px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.item {
    position: relative;
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.item .description {
    padding: 30px;
    font-size: 1rem;
    color: #ccc;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 0 0 10px 10px;
    flex-grow: 1;
}

p {
    text-decoration: none;
}

.item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9);
    filter: brightness(1.1);
}

.item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.item h2 {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 1.8rem;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 5px 15px;
    border-radius: 5px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.item:hover h2 {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

@media(max-width: 800px) {
    header {
        font-size: 1.5rem;
    }

    .item {
        height: auto;
        width: auto;
    }

    .grid-container {
        grid-template-columns: repeat(1, 1fr);
    }
}
