body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: black;
    color: #fff;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(img/City_map.webp);
    background-size: cover;
    background-position: center;
    opacity: 0.15; /* low opacity */
    z-index: -1; /* behind all content*/
}

.content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    
}

/*---------------- Top Bar ---------------- */
.top-bar {
    width: 100%;
    height: 40px;
    background-color: #800808;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    font-weight: bolder;
    font-size: 1.2rem;
}

/* ---------------- Sinners Grid ---------------- */
.sinners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    padding: 30px;
    margin: 0 auto;
    justify-content: center;

}

.grid-item {
    padding: 20px;
    text-align: center;
}

.sinner {
    background-color: rgba(34, 34, 34, 0.8);
    border: 1px solid #444;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transform: translateY(-5px); box-shadow: 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 10px
}

.sinner-item.img {
    width: 210px;
    height: 240px;
    object-fit: cover;
    max-width: 210px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.sinner-name {
    margin-top: 5px;
    font-weight: bold;
    text-align: center;
}

.image-container {
    text-align: center;
    margin: 20px;
}

.image-container.img {
    width: 200px;
    display: block;
    margin: 0 auto
}

.image-container.p {
    margin-top: 8px;
    color: white;
    font-size: 16px
}

/*---------------- Hover effect ----------------*/
.grid-item:hover {
  transform: scale(1.05);
  background-color: rgba(255, 255, 255, 0.1);  
  cursor: pointer
}

/*---------------- Bottom Content ----------------*/
.bottom-bar {
    background-color: #800808;
    height: 40px;
    width: 100%;
    margin-bottom: 30px;
}

.bottom content {
    max-width: 800px;
    margin: 20px auto 50px auto;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    background-color: transparent;
    border: 1px solid #444;
    text-align: left;
}

.sinner-mc {
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
}

@media (max-width:768px) {
    .sinners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        justify-content: center;
    }

    .sinner-item.img {
        width: 100%;
        max-width: 140px;
        height: auto;
    }
}