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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    background-image: url(paper.jpg);
    
}

header {
    background-color: #fd4088;
    padding: 20px;
    text-align: center;
}

header h1 {
    font-size: 2rem;
}

/* Scrapbook container: Use Flexbox for layout */
.scrapbook-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 20px;
    padding: 20px;
}

/* Scrapbook item styles */
.scrapbook-item {
    background-color: #fff;
    border: 2px solid #ccc; /* Border around each image */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    width: 250px;
    text-align: center;
    position: relative;
    overflow: hidden; /* Prevents images from overflowing the container */
}

/* Ensures images fit correctly within the border */
.scrapbook-item img {
    width: 100%;
    height: 200px; /* Set a fixed height for uniformity */
    object-fit: cover; /* Ensures image covers the area without distortion */
    border-radius: 8px;
    cursor: pointer; /* Makes images look clickable */
}

/* Scrapbook item text */
.scrapbook-item p {
    margin-top: 10px;
    font-size: 1rem;
    color: #666;
}

/* Modal Styling (hidden by default) */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    padding-top: 60px;
}

/* Modal content */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

/* Caption for the image */
#modal-caption {
    text-align: center;
    color: white;
    font-size: 1.2rem;
    margin-top: 10px;
}

/* Close button (top right corner) */
.close {
    color: white;
    font-size: 40px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 35px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #ccc;
    text-decoration: none;
    cursor: pointer;
}

/* Footer style */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* Hover effect */
.scrapbook-item:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
}
