body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px; /* Base font size */
}

h1, h2, h3 {
    font-weight: bold;
}

p, li, button {
    font-size: 1rem; /* Ensures consistency */
}
#controlsContainer {
    margin-top: 50px; /* Adjustable top margin for controls */
    margin-bottom: 20px; /* Adjustable margin between controls and canvas */
    text-align: center;
}

#canvasContainer {
    display: flex;
    justify-content: center;
    align-items: center;
}

#gameCanvas {
    display: block; /* Remove bottom margin/spacing */
}


#gameAndInstructionsContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0; /* Remove any default margins */
    padding: 0; /* Remove any default paddings */
}
#instructionsContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex: 1;
    max-width: 20%;
    min-width: 100px;
    padding: 20px; /* Updated padding */
    margin: 0; /* Remove margin */
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 24px; /* Updated font size */
}
#selectionDock {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 100px; /* Increase this value to move the dock further to the left */
    top: 50%;
    transform: translateY(-50%);
}
#selectionDock button, #loadLevelButtonContainer button, #colorPickerModal button {
    background-color: #E3E3E3; /* Light grey background */
    border: 1px solid #999; /* Grey border */
    padding: 12px 16px; /* Reduced padding inside buttons (originally 15px 15px) */
    margin-bottom: 10px;
    width: 160px; /* Reduced width (originally 200px) */
    text-align: center;
    font-family: "Lucida Grande", sans-serif; /* Font similar to Mac OS */
    font-size: 16px; /* Reduced font size (originally 20px) */
    color: #000; /* Text color */
    text-shadow: 0 -1px 1px rgba(255,255,255,0.7), 0 1px 1px rgba(0,0,0,0.3); /* Text shadow for depth */
    box-shadow: 0 2px 2px rgba(0,0,0,0.2), 0 1px 0 rgba(255,255,255,0.8) inset, 0 -1px 0 rgba(0,0,0,0.2) inset;
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s, box-shadow 0.3s; /* Smooth transition for hover effect */
}

#selectionDock button:hover, #loadLevelButtonContainer button:hover, #colorPickerModal button:hover {
    background-color: #D3D3D3; /* Slightly darker on hover */
    /* Adjusting shadow for a pressed effect on hover */
    transform: scale(1.05); /* Slightly increase size */
    box-shadow: 0 0 15px rgba(255,255,255,0.7); /* Brighter shadow to simulate light */
}

#selectionDock button:active, #loadLevelButtonContainer button:active, #colorPickerModal button:active {
    /* Transform the button to simulate a press-down effect */
    transform: translateY(2px);
    /* Adjust the box-shadow to give the impression that the button is pressed down */
    box-shadow: 0 1px 1px rgba(0,0,0,0.2), 0 1px 0 rgba(255,255,255,0.8) inset, 0 -1px 0 rgba(0,0,0,0.1) inset;
}

#gameCanvasContainer {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* This keeps the canvas centered */
    justify-content: center;
    margin: 0; /* Remove any default margins */
    padding: 0; /* Remove any default paddings */
}

#gameCanvas {
    margin-bottom: 10px;
}

#loadLevelButtonContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#loadLevelButtonContainer button {
    display: block;
    margin-bottom: 10px;
    background-color: white;
    border: 1px solid black;
    padding: 5px 10px;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 500px; /* Maximum width */
}

/* Style the color picker input */
#blockColorPicker {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Style the Set Color button */
#colorPickerModal button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #4CAF50; /* Green background */
    color: white; /* White text xl*/
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#colorPickerModal button:hover {
    background-color: #45a049; /* Darker green on hover */
}


/* #toggleGridButton, #showInstructionsButton { */

 
@keyframes ripple-effect {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-effect 0.6s linear;
    background-color: rgba(255, 255, 255, 0.7);
    pointer-events: none; /* Prevents the ripple from interfering with button clicks */
}
button, #selectionDock button, #loadLevelButtonContainer button, #colorPickerModal button, #toggleGridButton, #showInstructionsButton {
    cursor: pointer; /* This ensures the hand cursor is shown for all buttons */
}

#searchResultsContainer {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Creates 5 columns */
    gap: 10px; /* Optional: adds space between items */
    margin-top: 20px;
    width: calc(100% + 1px); /* Adjusted width to be 600px wider */
}

.search-result-button {
    padding: 10px;
    text-align: center;
    cursor: pointer;
    background-color: #f8f8f8; /* Light background for the buttons */
    border: 1px solid #ccc; /* Optional border for the buttons */
    white-space: nowrap; /* Prevents the text from wrapping */
    overflow: hidden; /* Keeps the text within the button */
    text-overflow: ellipsis; /* Adds an ellipsis (...) if the text overflows */
}

#searchResultsModal .modal-content {
    width: 90%; /* Increase the width */
    max-width: 1100px; /* Adjust the maximum width as needed */
    margin: 5% auto; /* Center the modal vertically and horizontally */
    padding: 20px; /* Adjust padding for better spacing */
}
/* New Styles for the Top Dock */
.top-dock {
    position: fixed; /* Fixed position to stay at the top */
    top: 0; /* Align to the top of the viewport */
    left: 0; /* Align to the left of the viewport */
    width: 100%; /* Full width */
    background-color: #fefefe; /* Light background */
    border-bottom: 1px solid #888; /* Bottom border for some separation */
    padding: 10px 0; /* Padding for aesthetic spacing */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Subtle shadow for depth */
    z-index: 1000; /* Ensure it's above other content */
    display: flex; /* Use flexbox for alignment */
    justify-content: center; /* Center items horizontally */
    align-items: center; /* Align items vertically */
}

#searchContainer button, #logoutButton {
    margin-left: 10px; /* Spacing between buttons and input */
}

/* Adjust the z-index for modals to ensure they appear above the top dock */
.modal {
    z-index: 999; /* Just below the top dock */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
#userLevelsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* This will create new columns as needed */
    grid-auto-rows: minmax(50px, auto); /* Minimum height for each row */
    grid-auto-flow: dense; /* This ensures that the grid fills empty spaces */
    gap: 10px; /* Space between items */
    margin-top: 20px;
    width: 100%; /* Ensures the grid takes full width of its container */
    overflow: hidden; /* Prevents overflow issues */
}

.user-level-button {
    padding: 10px;
    text-align: center;
    cursor: pointer;
    background-color: #f8f8f8; /* Light background for the buttons */
    border: 1px solid #ccc; /* Optional border for the buttons */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
}

.user-level-button:hover {
    background-color: #e0e0e0; /* Slightly darker on hover */
}


#postsContainer {
    display: flex;
    flex-direction: column;
    max-height: 600px; /* Adjust based on your preference */
    overflow-y: auto; /* Allows scrolling */
}

.post-button {
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    padding: 10px 15px;
    margin: 5px;
    text-align: left;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.post-button:hover {
    background-color: #e2e2e2;
}
#fullPostModal .modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 500px; /* Maximum width */
}

/* Full screen for the forum modal */
#forumModal .modal-content {
    width: 96%; /* Full width */
    height: 100%; /* Full height */
    max-width: none; /* Remove max width restriction */
    margin: 0; /* No margin */
    padding: 20px; /* Padding inside the modal */
    top: 2%; /* Lower the modal by 10% from the top */
    left: 1%;
    position: absolute; /* Needed to position relative to the nearest positioned ancestor */
}

/* Enhance the full post modal to be twice as big and centered */
#fullPostModal .modal-content {
    width: 80%; /* Increase width */
    max-width: 800px; /* New max width */
    margin: 10% auto; /* Centering the modal */
    padding: 20px; /* Padding inside the modal */
}
.modal-content {
    width: 90%; /* Limit width to enhance readability */
    max-width: 600px; /* Optimal reading width */
    padding: 20px;
    margin: 10% auto; /* Center it nicely */
}
button, a, input[type="button"], input[type="submit"] {
    cursor: pointer;
    outline: none; /* Remove default outline */
}

button:focus, a:focus {
    outline: 2px solid #4CAF50; /* Custom focus outline */
}
.highlight {
    position: relative;
    z-index: 2000;
}

.gray-out {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}
/* Update the sidebar CSS */
.sidebar {
    height: 100%; /* Full height */
    width: 250px; /* Initial width of the sidebar */
    position: fixed;
    z-index: 1;
    top: 40px; /* Adjust this value to be just below your top dock */
    left: 0; /* Align with the left side of the viewport */
    background-color: #333; /* Dark shade for visibility */
    color: white; /* Text color */
    overflow-x: hidden;
    transition: 0.5s;
    box-sizing: border-box;
}

/* Update the hamburger button CSS */
.sidebar .hamburger {
    position: fixed; /* Fixed position relative to the viewport */
    top: 40px; /* Align vertically with the top of the sidebar */
    left: 250px; /* Position it right at the edge of the sidebar */
    width: 40px; /* Adjust the width as needed */
    height: 40px; /* Adjust the height as needed */
    background-color: #333; /* Background color */
    color: white; /* Icon color */
    font-size: 20px; /* Icon size */
    text-align: center; /* Center the hamburger icon */
    line-height: 40px; /* Center the icon vertically */
    cursor: pointer; /* Pointer cursor on hover */
    z-index: 2; /* Ensures it is above other content */
}

.menu-items button {
    display: block;
    color: white;
    background: none;
    text-align: left;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 16px;
    width: 100%;
    border: none;
    transition: 0.3s;
    cursor: pointer;
}

.menu-items button:hover {
    background-color: #555; /* Lighter background on hover for visibility */
}




.hidden {
    display: none;
}

.fullWidthCanvas {
    width: 100%;
}


#blockBar .block {
    text-align: center;
    padding: 10px;
    cursor: pointer;
}
#blockBar .block img {
    width: 50px; /* Adjust size as needed */
    height: auto;
}

    
/* Add margin above specific buttons in the sidebar */
#snapFeature{
    margin-top: 50px; /* Adjust the space as needed */
}




#searchInput {
    width: 40%; /* Increase width to full container width */
    padding: 4px 20px; /* Increase padding for better visibility */
    font-size: 18px; /* Increase font size for better readability */
    margin: 8px 0; /* Optional: Adjust margin as needed */
}


