body { margin: 0; padding: 0; overflow: hidden; font-family: Arial, sans-serif; background-color: #f0f0f0; } canvas { display: block; } .controls { position: absolute; top: 20px; left: 20px; z-index: 10; display: flex; flex-direction: column; gap: 20px; } .button-container, .button-view-container { display: flex; gap: 10px; flex-wrap: wrap; } .button { width: 140px; height: 40px; border: none; border-radius: 20px; /* background: linear-gradient(135deg, #6a1b9a, #ab47bc); */ background: #c6fe1f; color: #000000; font-size: 16px; font-weight: bold; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); position: relative; } .button:hover { background: #c6fe1f; transform: translateY(-3px); } .button:active { transform: translateY(2px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); } .button.disabled { background: linear-gradient(135deg, #9A1360, #D81B60); transform: translateY(2px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); } /* Initially hide the view buttons */ .button-view-container { visibility: hidden; opacity: 0; flex-direction: column; gap: 10px; margin-top: 10px; transition: opacity 0.3s ease, visibility 0s 0.3s; } /* Show view buttons when hovering over the Views button or the parent container */ .views-container:hover .button-view-container { visibility: visible; opacity: 1; transition: opacity 0.3s ease, visibility 0s; } /* Ensure that the view buttons show properly */ .button-view-container { display: flex; } .zoom-controls { display: flex; gap: 10px; margin-top: 20px; } .zoom-controls .button { width: 80px; height: 40px; font-size: 15px; margin-top: -20px; border-radius: 50%; background-color: #c6fe1f; color: 080105; cursor: pointer; transition: background-color 0.3s ease; } .zoom-controls .button:hover { background-color: #c6fe1f; } /* Control Instructions Section */ .instructions { position: absolute; top: 50px; right: 25px; background-color: #c6fe1f; border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); padding: 5px; font-family: 'Arial', sans-serif; z-index: 20; width: 330px; max-height: 300px; opacity: 0; pointer-events: none; transition: opacity 0.4s ease-in-out, transform 0.3s ease-out; transform: translateY(-20px); /* Start slightly off-screen */ } /* Instruction Title Styling */ .instructions h3 { color: #000000; font-size: 18px; margin-bottom: 10px; margin-top: 10px; font-weight: bold; text-align: center; } /* Instruction List Styling */ .instructions ul { list-style-type: none; padding-left: 10px; margin: 0; font-size: 18px; color: #000000; } .instructions li { color: #000000; font-size: 14px; line-height: 1.6; margin-bottom: 10px; font-weight: bold; font-size: 16px; } /* Instruction Highlight Styling */ .instructions li strong { color: #000000; font-weight: bold; font-size: 15px; } /* Control Instructions Button (styled) */ #instructionsButton { width: 180px; height: 40px; border: none; border-radius: 20px; background: #c6fe1f; color: #000000; font-size: 16px; font-weight: bold; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); position: relative; margin-bottom: 0px; } /* Hover effect for instructions button */ #instructionsButton:hover { background: #c6fe1f; transform: translateY(-3px); } /* Show instructions on hover */ #instructionsButton:hover + #instructionsSection { opacity: 1; pointer-events: auto; transform: translateY(0); /* Smooth movement to visible position */ } /* Optional styling for the hover effect of the button */ #instructionsButton:hover { background: #c6fe1f; transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); } #homeButton { width: 40px; height: 40px; font-size: 16px; border-radius: 50%; background-color: #c6fe1f; position: relative; margin-top: 0px; transition: background-color 0.3s ease; transition: transform 0.2s ease-in-out; } /* Hover effect for home button */ #homeButton:hover { background: #c6fe1f; transform: translateY(-3px); } #homeButton i { margin-right: 0px; /* Space between the icon and text */ } /* Add a dropdown arrow icon to the Views button */ #viewsButton::after { content: '\f0d7'; /* Font Awesome arrow down icon */ font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-left: 10px; }