html{ background-color: black; } body{ -webkit-animation: fadein 1.5s; background: linear-gradient( rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75) ), url('wall_pattern.jpg'); color: white; } /* Disable text selection */ -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; body { overflow: hidden; /* Prevent scrolling */ position: fixed; /* Fix the position to prevent content shifting */ user-select: none; -webkit-user-select: none; -ms-user-select: none; -moz-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-modify: none; margin: 0; color: white; /* Default text color */ font-family: Arial, sans-serif; /* Specify a fallback font */ } .container-fluid { position: fixed; top: 0; left: 0; width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; background: none; /* Remove background */ border: none; /* Remove border */ } #title { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); color: red; font-size: 36px; z-index: 10; /* Ensure it is above other content */ } #puzzled-cubes-container { position: relative; width: 80%; height: 80%; max-width: 100%; /* Adjust maximum width */ max-height: 100%; /* Adjust maximum height */ background-color: transparent; /* Transparent background */ color: red; /* Red text color */ z-index: 5; /* Ensure it is above other content */ overflow: hidden; /* Ensure nothing protrudes */ display: flex; flex-direction: column; align-items: center; justify-content: center; } #puzzled-cubes { display: flex; flex-direction: column; /* Adjusted to stack buttons vertically */ align-items: center; justify-content: center; background-color: transparent; /* Transparent background */ position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 100; /* Ensure buttons are on top */ } #new-game-button, #credits-button { width: 150px; height: 50px; font-size: 18px; color: white; border: none; cursor: pointer; z-index: 100; /* Ensure buttons are on top */ margin-bottom: 20px; /* Add margin between buttons */ text-align: center; /* Center text */ display: inline-block; /* Ensure proper alignment */ text-decoration: none; /* Remove underline */ transition: background-color 0.3s; /* Smooth transition for hover */ pointer-events: auto; /* Enable pointer events */ } #new-game-button { background-color: green; } #new-game-button:hover { background-color: darkgreen; } #credits-button { background-color: blue; } #credits-button:hover { background-color: darkblue; } #volume-button { position: absolute; top: 10px; right: 10px; z-index: 20; background-color: blue; color: white; border: none; padding: 10px; cursor: pointer; font-size: 16px; pointer-events: auto; /* Enable pointer events */ } #volume-button.muted { background-color: red; } #rain-mute-button { position: absolute; top: 10px; right: 70px; z-index: 20; background-color: green; color: white; border: none; padding: 10px; cursor: pointer; font-size: 16px; pointer-events: auto; /* Enable pointer events */ } #rain-mute-button.muted { background-color: orange; } #show-instructions { position: absolute; top: 17px; /* Same top position as the title */ left: 20px; z-index: 100; pointer-events: auto; /* Enable pointer events */ } #game { width: 100%; height: 100%; position: absolute; top: 0; left: 0; z-index: 0; } /* Progress bar styles */ #progress-bar { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 50%; /* Spread across 50% of the screen */ height: 30px; background-color: #f0f0f0; border-radius: 5px; box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); display: none; /* Hide initially */ text-align: center; /* Center text */ line-height: 30px; /* Center text vertically */ font-weight: bold; /* Bold text */ } #progress { width: 0%; /* Default progress width */ height: 100%; background-color: #007bff; border-radius: 5px; position: relative; color: #fff; /* White text color */ } #instructions { position: absolute; top: 80px; /* Adjusted top position */ left: -300px; /* Initially off-screen to the left */ transition: left 0.3s ease-in-out; color: #000; background-color: rgba(255, 255, 255, 0.7); padding: 10px; border-radius: 5px; font-size: 14px; width: 250px; max-height: calc(100% - 100px); /* Adjusted height */ overflow-y: auto; z-index: 1000; /* Ensure it is above other content */ outline: none; /* Remove default focus outline */ pointer-events: auto; /* Enable pointer events */ } /* .close-btn { position: absolute; top: 5px; right: 10px; cursor: pointer; } */ .close-btn { position: absolute; top: 5px; right: 10px; cursor: pointer; font-size: 24px; color: #000; background-color: transparent; border: none; } #page-transition { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: black; z-index: 9999; transition: opacity 1s ease-out; pointer-events: none; } /* .top-scores { overflow-y: auto; // Allow scrolling if content exceeds max-height max-height: 450px; // Adjust max-height as needed padding: 10px; display: flex; flex-direction: column; justify-content: center; // Center vertically align-items: center; // Center horizontally } .top-scores p { margin: 0; line-height: 40px; opacity: 1; } #top-scores ol { list-style-position: inside; padding: 0; margin: 0; // Remove default margin } #top-scores li { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; } #top-scores li.show { opacity: 1; transform: translateY(0); } #topScoresModal .modal-dialog { display: flex; align-items: center; justify-content: center; min-height: calc(100% - 1rem); width: 98%; // Increase the width to 98% max-width: 1200px; // Adjust maximum width as needed } #topScoresModal .modal-content { background-color: rgba(0, 0, 0, 0.7); color: white; width: 98%; // Increase the width to 98% max-width: 1200px; // Adjust maximum width as needed height: 90vh; // Adjust the height as needed overflow: hidden; // Hide overflow to prevent scrollbar } #topScoresModal .modal-body { max-height: calc(90vh - 70px); // Adjust to display more content overflow-y: auto; // Enable scrolling if needed } #submitScoreModal .modal-dialog { display: flex; align-items: center; min-height: calc(100% - 1rem); width: 90%; // Adjust the width as needed max-width: 800px; // Limit maximum width if necessary } #submitScoreModal .modal-content { background-color: rgba(0, 0, 0, 0.7); color: white; width: 100%; // Adjust the width as needed height: 90vh; // Adjust the height as needed overflow: hidden; // Hide overflow to prevent scrollbar } #submitScoreModal .modal-body { max-height: calc(90vh - 70px); // Adjust to display more content overflow-y: auto; // Enable scrolling if needed } #submitScoreModal .form-control { background-color: rgba(255, 255, 255, 0.1); color: white; border: 1px solid rgba(255, 255, 255, 0.2); } #submitScoreModal .form-control::placeholder { color: rgba(255, 255, 255, 0.5); } #submitScoreModal .btn-primary { background-color: #007bff; border-color: #007bff; } #submitScoreModal .btn-primary:hover { background-color: #0056b3; border-color: #0056b3; } #high-scores-button { width: 150px; // Adjust width height: 50px; // Adjust height font-size: 18px; // Adjust font size color: white; border: none; cursor: pointer; z-index: 100; // Ensure it is on top margin-bottom: 20px; // Add margin text-align: center; display: inline-block; text-decoration: none; transition: background-color 0.3s; // Smooth hover transition pointer-events: auto; // Enable pointer events background-color: #8888ff; // Button background color } #high-scores-button:hover { background-color: #7777ff; // Hover background color } #scores-title { color: red !important; text-shadow: 1px 1px 2px black !important; text-align: center; // Center align text font-size: 36px !important; // Adjust the font size as needed font-family: Arial, sans-serif !important; // Use the same font family as "Puzzled Cubes" font-weight: bold !important; // Ensure the text is bold if necessary margin: 0 !important; // Remove any default margins padding: 0 !important; // Remove any default padding line-height: 1.2; // Adjust line height if necessary } */