Files
moon-gaming/index.css
T
2025-04-02 14:44:50 +00:00

178 lines
3.7 KiB
CSS

body {
margin: 0;
font-family: 'Play', sans-serif;
background-color: #f0f0f0;
color: #333;
}
.dark-mode {
background-color: #121212;
color: #e0e0e0;
}
.loader {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
display: flex;
justify-content: center;
align-items: center;
z-index: 9999; /* Ensure it covers everything */
transition: transform 0.5s ease; /* Smooth transition for leaving */
}
.dark-mode .loader {
background-color: rgba(18, 18, 18, 0.8);
}
.content {
display: none; /* Hide content initially */
text-align: center;
padding: 20px;
}
.dark-mode .loader img {
content: url('./loading-dark.webp'); /* Replace with your dark mode GIF path */
}
.nav-bar {
background-color: #333;
color: #fff;
padding: 10px;
display: flex;
justify-content: space-between;
align-items: center;
}
.dark-mode .nav-bar {
background-color: #1e1e1e;
}
.nav-bar h1 {
margin: 0;
font-size: 24px;
}
.nav-elem {
display: flex;
align-items: center;
}
.nav-elem button {
background: none;
border: none;
color: #fff;
margin-left: 10px;
cursor: pointer;
font-size: 16px;
font-weight: bold;
text-transform: capitalize;
}
.nav-elem button a {
color: #fff;
text-decoration: none;
}
.side-bar-menu {
display: none;
position: fixed;
top: 0;
right: 0;
width: 250px;
height: 100%;
background-color: #333;
color: #fff;
padding: 20px;
box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
z-index: 10000;
}
.dark-mode .side-bar-menu {
background-color: #1e1e1e;
}
.side-bar-link a {
color: #fff;
text-decoration: none;
display: block;
margin-bottom: 10px;
}
.side-bar-button {
background: none;
border: none;
color: #fff;
font-size: 24px;
cursor: pointer;
}
.side-bar-close-button {
background: none;
border: none;
color: #fff;
font-size: 24px;
cursor: pointer;
position: absolute;
top: 10px;
right: 10px;
}
.non-sidebar-content {
display: block; /* Ensure it is visible */
position: relative; /* Ensure it is not positioned relative to the sidebar */
margin: 0; /* Remove any margins */
padding: 20px; /* Add padding for spacing */
z-index: 1; /* Ensure it is above the sidebar if overlapping occurs */
clear: both; /* Prevent floating elements from affecting it */
}
.non-sidebar-content {
background-image: url('/image-robert-added/BackG.webp'); /* Set the image as the background */
background-size: cover; /* Ensure the image covers the entire area */
background-position: center; /* Center the image */
background-repeat: no-repeat; /* Prevent the image from repeating */
color: #fff; /* Adjust text color for better contrast */
height: calc(100vh - 50px); /* Adjust height to stop below the nav bar (assuming nav bar height is 50px) */
margin-top: 50px; /* Push content below the nav bar */
}
.main-content {
padding: 20px;
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
.version {
position: fixed;
bottom: 10px;
right: 10px;
background-color: #f1f1f1;
padding: 5px 10px;
border-radius: 5px;
b;o;x;-;s;h;a;d;o;w: 0p;x 0p;x 5p;x rgba(0, 0, 0, 0.2);
font-family: Arial, sans-serif;
font-size: 14px;
z-index: 10001;
}
.dark-mode .version {
background-color: #333;
color: #e0e0e0;
}
body, html {
height: 100%;
}
@media only screen and (max-device-width: 1366px) {
.parallax {
background-attachment: scroll;
}
}