/* General styling */
body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffefd5; /* Creamy background */
    color: #333;
}

/* Header styling */
header {
    background-color: #ff6f61; /* Coral red */
    color: #fff;
    padding: 1em;
    text-align: center;
    font-size: 36px; /* Larger font size */
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5); /* Text shadow for better readability */
}

/* Container styling */
.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f8edeb; /* Light pink */
    border-radius: 25px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    position: relative; /* Position the container relative for absolute positioning */
}

/* Puzzle container styling */
.puzzle-container {
    position: relative; /* Position relative for absolute positioning of original image */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px; /* Increased gap between puzzle pieces */
    overflow: hidden; /* Prevent puzzle pieces from overflowing */
}

/* Original image container styling */
.original-image-container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    max-width: 100%;
    overflow: hidden;
}

/* Original image styling */
#originalImage {
    max-width: 100%;
    height: auto;
    border-radius: 25px; /* Rounded corners for the original image */
}

/* Puzzle piece styling */
.puzzle-piece {
    width: 100px;
    height: 100px;
    background-color: #ffcc5c; /* Sunflower yellow */
    border: 2px solid #fff;
    border-radius: 20px; /* Rounded corners for puzzle pieces */
    cursor: pointer;
    transition: transform 0.3s ease; /* Smooth hover effect */
}

/* Puzzle piece hover effect */
.puzzle-piece:hover {
    transform: scale(1.1); /* Scale up the piece on hover */
}

/* Controls styling */
.controls {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Button styling */
button {
    padding: 15px 30px;
    background-color: #ff6f61; /* Coral red */
    color: #fff;
    border: none;
    border-radius: 25px; /* Rounded buttons */
    cursor: pointer;
    font-size: 18px; /* Larger font size */
    text-transform: uppercase; /* Uppercase text */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
}

/* Button hover effect */
button:hover {
    background-color: #ff4c40; /* Darker red on hover */
    transition: background-color 0.3s ease; /* Smooth transition */
}
/* Puzzle container styling */
.puzzle-container {
    position: relative; /* Position relative for absolute positioning of original image */
    display: grid;
    grid-template-columns: repeat(4, calc(25% - 20px)); /* Adjust column width to fit within container */
    gap: 20px; /* Increased gap between puzzle pieces */
    overflow: hidden; /* Prevent puzzle pieces from overflowing */
    width: calc(100% - 40px); /* Adjust container width */
    margin: 0 auto; /* Center the container */
}

/* Puzzle piece styling */
.puzzle-piece {
    width: calc(100% - 20px); /* Adjust piece width to fit within container */
    height: 100px;
    background-color: #ffcc5c; /* Sunflower yellow */
    border: 2px solid #fff;
    border-radius: 20px; /* Rounded corners for puzzle pieces */
    cursor: pointer;
    transition: transform 0.3s ease; /* Smooth hover effect */
}

/* Puzzle piece hover effect */
.puzzle-piece:hover {
    transform: scale(1.1); /* Scale up the piece on hover */
}
