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

body {
    background-image: url('pictures/pattern.png');
    background-size: 120%;
    background-position: center;
    background-repeat: no-repeat;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.background-container {
    position:relative;
    min-height: 240vh;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
}

.picture-item {
    position: absolute;
    width:auto;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.picture {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.text-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.text-box h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.text-box p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.picture-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.picture-item:hover .picture {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Fixed Positions for Each Picture */
.item-1 {
    left: 100px;
    top: 100px;
}

.item-2 {
    left: 600px;
    top: 50px;
}

.item-3 {
    left: 1000px;
    top: 150px;
}

.item-4 {
    left: 150px;
    top: 700px;
}

.item-5 {
    left: 550px;
    top: 550px;
}

.item-6 {
    left: 1300px;
    top: 500px;
}

.item-7 {
    left: 1100px;
    top: 900px;
}

.item-8 {
    left: 1600px;
    top: 1000px;
}

.item-9 {
    left: 100px;
    top: 1550px;
}

.item-10 {
    left: 1300px;
    top: 1400px;
}

.item-11 {
    left: 300px;
    top: 1050px;
}

.item-12 {
    left: 700px;
    top: 1100px;
}

.item-13 {
    left: 1500px;
    top: 100px;
}

.item-14 {
    left: 600px;
    top: 1600px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .picture-item {
        width: 200px;
    }

    .picture {
        height: 200px;
    }

    .text-box {
        width: 100px;
        height: 100px;
        padding: 8px;
    }

    .text-box h3 {
        font-size: 14px;
    }

    .text-box p {
        font-size: 12px;
    }

    /* Adjust positions for mobile */
    .item-1 { left: 20px; top: 50px; }
    .item-2 { left: 200px; top: 20px; }
    .item-3 { left: 20px; top: 350px; }
    .item-4 { left: 200px; top: 380px; }
    .item-5 { left: 20px; top: 750px; }
    .item-6 { left: 200px; top: 780px; }
    .item-7 { left: 20px; top: 1150px; }
    .item-8 { left: 200px; top: 1180px; }
    .item-9 { left: 20px; top: 1550px; }
    .item-10 { left: 200px; top: 1580px; }
}
