 body {
            font-family: 'Roboto', sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: 0;
            background-color: #f0f8ff; /* Light blue background */
			overflow-y: auto; /* Allows scrolling if the content overflows */
        }

        .container {
            text-align: center;
            padding: 12px; /* previous padding - 20px*/
            background-color: #eee4da; /* Light blue container background - #e3f2fd*/
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            width: 80%;
            max-width: 600px;
            position: relative; /* Needed for positioning Help button */
			max-height: 600px; /* previous height only not max-height; - auto*/
			overflow-y: auto; /* Allow scroll inside the container */

        }

        h1 {
            margin-bottom: 12px; /* previous padding - 20px*/
            color: #333;
        }
		/* Winning Message Style */
.winning-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 40px 60px;
    background-color: #ffeb3b;
    color: #000;
    border-radius: 12px;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 999;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

/* Animation for winning message */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Celebration background with confetti effect */
.celebration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://i.pinimg.com/originals/d6/cb/8e/d6cb8e825fd37c4e6b0b634042946911.gif') no-repeat center center;
    background-size: cover;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    animation: celebrationEffect 2s forwards;
}

/* Animation for the celebration effect */
@keyframes celebrationEffect {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.8;
    }
}
/* Footer styles */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #e3f2fd;
    color: black;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 300;
}

.footer p {
    margin: 0;
}
/* Play Again Button Style */
#playAgain {
    background-color: #6200ea;
    color: white;
    font-size: 18px;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Play Again Button Hover Effect */
#playAgain:hover {
    background-color: #3700b3;
    transform: scale(1.1);  /* Slight zoom-in effect */
}

/* Play Again Button Active Effect */
#playAgain:active {
    background-color: #6200ea;
    transform: scale(1);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.4);
}

      /* Hamburger Menu */
        .hamburger {
            font-size: 30px;
            cursor: pointer;
            position: absolute;
            top: 5px;
            left: 20px;
            color: #6200ea;
        }

        /* Sidebar menu */
    /*    .sidebar { */
    /*        height: 100 */
    /*        width: 250px; */
    /*        position: fixed; */
    /*        top: 0;    */
    /*        left: -250px; *//* Hidden by default */
    /*        background-color: #333; */
    /*        color: white; */
    /*        padding-top: 60px; */
    /*        transition: 0.3s; */
    /*        z-index: 1; */
    /*    }  */
        
    /* Sidebar as Modal Overlay */
    .sidebar {
        display: none; /* Initially hidden */
        position: fixed;
        top: 0;
    /*  right: 0; */
        width: 300px;
        height: 100%;
        background-color: #333;
        color: white;
        padding-top: 60px;
        z-index: 1001;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        transition: opacity 0.3s ease, transform 0.3s ease;
        overflow-y: auto;
        }

    /* Show the sidebar as modal */
    .sidebar.show {
        display: block;
    }
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background-color: rgba(0,0,0,0.4);
        z-index: 1000;
    }

    /* Show overlay with sidebar */
    .sidebar.show + .sidebar-overlay {
        display: block;
    }



        .sidebar a {
            padding: 15px 25px;
            text-decoration: none;
            font-size: 20px;
            color: white;
            display: block;
            transition: background-color 0.3s ease;
        }

        .sidebar a:hover {
            background-color: #575757;
        }

        .sidebar .close-btn {
            font-size: 36px;
            color: #fff;
            position: absolute;
            top: 20px;
            right: 25px;
	    cursor: pointer;  /* Ensure the pointer cursor is set */
        }

        /* Open the sidebar when toggled */
        .sidebar.open {
            left: 0;
        }
        @media (max-width: 768px) {
    .hamburger {
        display: block;
        
    }
     .container {
        position: relative;
    }
        }
    
        .grid {
            display: grid;
            gap: 5px;
            margin: 20px 0;
            transition: all 0.3s;
			width: 100%; /* Ensure grid occupies the full width */
			max-width: 100%; /* Ensures no overflow from the grid */
        }

        .tile {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: white; /* Tile background is white */
            border: 1px solid #ddd;
            font-size: 45px; /* Tile background is white - 18px */
            font-weight: bold;
            color: #333; /* Default text color is black */
            cursor: pointer;
            border-radius: 4px;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        .tile.correct {
            background-color: darkgoldenrod; /* Green background for correct tile - #4caf50*/
            color: white; /* White text for correct tile */
        }

        .tile:hover {
            background-color: black;  /* Change background color to black on hover */
            color: white;               /* Default text color remains black until moves start */
        }

        .tile.gameStarted:hover {
            color: white;  /* Change text color to white after the game starts */
        }

        .empty {
            background-color: #faf8ef; /* background for correct tile - transparent*/
            cursor: default;
        }

        .controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            margin-bottom: 20px;
			 width: 100%; /* Ensures the controls take up the full width */
        }

        .controls button {
            background-color: #776e65; /* background for correct tile - #6200ea*/
            color: white;
            border: none;
            padding: 10px 15px;
            font-size: 16px;
            cursor: pointer;
            border-radius: 4px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .controls button:hover {
            background-color: #3700b3;
        }

        .timer {
            font-size: 18px;
            font-weight: 500;
            color: #333;
        }

        .moves {
            font-size: 18px;
            font-weight: 500;
            color: #333;
        }

        select {
            padding: 10px;
            font-size: 16px;
            cursor: pointer;
            border-radius: 4px;
            border: 1px solid #ccc;
        }

        /* Help Icon Button */
        .help-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            background-color: transparent;
            color: #6200ea;
            border: none;
            padding: 10px;
            cursor: pointer;
            font-size: 24px;
        }

        .help-btn:hover {
            color: #3700b3;
        }

        /* Modal for Help */
        .help-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: none;
            justify-content: center;
            align-items: center;
        }

        .help-modal-content {
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            text-align: center;
            max-width: 650px;
            width: 100%;
			 max-height: 80vh; /* Limit height of the modal */
			overflow-y: auto; /* Enable scrolling inside the modal content */
			box-sizing: border-box; /* Ensure padding doesn't affect the size */
			position: relative;  /* Ensure the close button is positioned relative to this */
        }

        .help-modal-content h2 {
            margin-bottom: 15px;
			text-align: center;
            font-size: 24px; /* Larger heading for better emphasis */
            color: #6200ea; /* Matching the theme color */
        }
		 .help-modal-content h3 {
            margin-bottom: 12px;
			text-align: left;
            font-size: 18px; /* Larger heading for better emphasis */
            color: #6200ea; /* Matching the theme color */
        }
		.help-modal-content p {
        	text-align: left;
        
        }

        .help-modal-content ul {
            list-style-type: disc; /* Makes the list items more visible */
            padding-left: 20px; /* Adds some padding to the left */
        }

        .help-modal-content ul li {
            font-size: 16px; /* Slightly larger text for easier reading */
            margin-bottom: 10px; /* Spacing between items */
			text-align: left;
        }

        .help-modal-content button {
            margin-top: 20px;
            background-color: #6200ea;
            color: white;
            border: none;
            padding: 12px 18px;
            font-size: 16px;
            cursor: pointer;
            border-radius: 6px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .help-modal-content button:hover {
            background-color: #3700b3;
        }
		/* Close button inside the help content menu */
/* Close button inside the help content menu */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    color: white;  /* Keep the color white */
    font-size: 32px;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;  /* Ensures the close button is above the content */
}

/* Ensure close button stays white on hover */
.close-btn:hover {
    color: white;  /* Keep the color white on hover */
}

/* Close button at the bottom */
.md-button {
    background-color: #6200ea;
    color: white;
    font-size: 16px;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
    margin-top: 20px;
}

.md-button:hover {
    background-color: #3700b3;
}

.md-button:active {
    background-color: #6200ea;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}


/* Help Modal Content */
/*.help-modal-content {
    position: relative;  
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    max-width: 650px;
    width: 100%;
	
}*/



        @media (max-width: 600px) {
            .grid {
                width: 100%;
                margin: 10px 0;
            }

            .controls {
                flex-direction: column;
                align-items: stretch;
            }

            .controls button {
                margin: 4px 0; /* previoius margin - 5px*/
                width: 100%;
            }

            select {
                width: 100%;
            }
        }
	 /* Material Design button styling */
        .md-button {
            background-color: #6200ea;
            color: white;
            font-size: 16px;
            padding: 12px 24px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s ease;
            display: inline-block;
        }

        .md-button:hover {
            background-color: #3700b3;
        }

        .md-button:active {
            background-color: #6200ea;
            box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
        }

        .md-icon {
            margin-right: 8px;
        }
	@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.logo {
    font-size: 36px;
    font-weight: bold;
    color: #6200ea;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2px;
    text-align: center;
    animation: fadeIn 1.5s ease-in-out; /* Apply fade-in animation */
	margin-top: 4px; /* Add gap at the top for better visibility */
}
