body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.star-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('starry.gif'); /* Placeholder for starry background */
    background-repeat: repeat;
    opacity: 0.5;
    z-index: -1;
}

header {
    background: rgba(30, 30, 30, 0.9);
    color: #e0e0e0;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

header p {
    margin: 10px 0 20px 0;
}

button, a {
    position: relative;
    padding: 10px 30px;
    margin: 0 15px;
    color: #21ebff;
    background: black; /* Set button and link background to black */
    border: none; /* Remove border for button */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 20px;
    overflow: hidden;
    transition: color 0.5s; /* Transition for text color */
}

button:hover, a:hover {
    color: #111; /* Change text color on hover */
}

a:before, button:before {
    content: ' ';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-top: 2px solid #21ebff;
    border-left: 2px solid #21ebff;
    transition: width 0.5s, height 0.5s; /* Fixed transition for width and height */
}

a:hover:before, button:hover:before {
    width: 100%;
    height: 100%;
}

a:after, button:after {
    content: ' ';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid #21ebff;
    border-right: 2px solid #21ebff;
    transition: width 0.5s, height 0.5s; /* Fixed transition for width and height */
}

a:hover:after, button:hover:after {
    width: 100%;
    height: 100%;
}

/* Add glow effect with delay */
button:hover, a:hover {
    box-shadow: 0 0 50px #21ebff; /* Glow effect */
    transition-delay: 0.5s; /* Delay for glow effect */
    transition: background 0.5s, color 0.5s, box-shadow 0.5s; /* Add box-shadow transition */
}

button:hover, a:hover {
    background: #21ebff; /* Change background on hover */
}

nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 250px;
    height: 100%;
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 20px;
    border-radius: 8px; /* Optional: Rounded corners */
}

/* Glowing border effect */
nav.visible {
    right: 0; /* Show menu */
}

nav::before {
    content: '';
    position: absolute;
    left: 0; /* Align to the left */
    top: 0; /* Align to the top */
    width: 100%; /* Match the width of the menu */
    height: 100%; /* Match the height of the menu */
    border-radius: 8px; /* Match the menu corners */
    background: linear-gradient(45deg, #e6fb04, #ff6600, #00ff66, #00ffff, #ff00ff, #ff0099, #6e0dd0, #ff3300, #099fff);
    background-size: 400%; /* Set background size for animation */
    z-index: -2; /* Ensure it's behind the menu */
    animation: animate 20s linear infinite; /* Animation for glowing effect */
    filter: blur(15px); /* Blur to create a glow */
    pointer-events: none; /* Prevent interaction with the border */
}

/* Black box overlay */
nav::after {
    content: '';
    position: absolute;
    left: 0; /* Align to the left */
    top: 0; /* Align to the top */
    width: 100%; /* Match the width of the menu */
    height: 100%; /* Match the height of the menu */
    background: black; /* Solid black background */
    z-index: -1; /* Ensure it's above the gradient but below the buttons */
}

/* Animation for the glowing border */
@keyframes animate {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: 400% 0;
    }
    100% {
        background-position: 0 0;
    }
}

nav ul {
    list-style: none;
    padding: 0;
    margin-top: 60px;
}

nav ul li {
    margin: 20px 0; /* Adjust the margin for more spacing between buttons */
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s, transform 0.3s;
    padding: 10px 15px; /* Add padding for button-like appearance */
}

nav ul li a:hover {
    color: #b0c4de;
    transform: translateX(5px);
}

main {
    padding: 20px;
    display: flex;
    flex-direction: column; /* Stack sections vertically */
    align-items: center; /* Center align */
}

section {
    max-width: 600px; /* Limit section width */
    margin: 20px 0;
    padding: 15px;
    background: rgba(50, 50, 50, 0.9);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

footer {
    background: rgba(30, 30, 30, 0.9);
    color: #e0e0e0;
    text-align: center;
    padding: 10px;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Additional styles for buttons, toggles, etc., remain the same */

.shop-button {
    margin-top: 20px; /* Add spacing above the button */
    display: inline-block; /* Makes the button respect margin */
}

/* Glowing effect for buttons */
.shop-button, .shop-button:hover {
    color: #21ebff; /* Maintain text color */
    background: black; /* Maintain background color */
    box-shadow: 0 0 50px #21ebff; /* Keep the glow effect */
}

/* Remove color change on hover specifically for shop buttons */
.shop-button:hover {
    background: #21ebff; /* Keep background the same on hover */
    color: #21ebff; /* Keep text color the same on hover */
}

/* Animation Keyframes */
@keyframes shake {
    10% {
        transform: translateX(-5%);
    }
    30% {
        transform: translateX(5%);
    }
    50% {
        transform: translateX(-7.5%);
    }
    70% {
        transform: translateX(7.5%);
    }
    90% {
        transform: translateX(-5%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes dance {
    20% {
        transform: translateY(-50%);
    }  
    40% {
        transform: translateY(5%);
    }  
    60% {
        transform: translateY(-25%);
    }  
    80% {
        transform: translateY(2.5%);
    }  
    90% {
        transform: translateY(-5%);
    }  
    100% {
        transform: translateY(0);
    }
}

/* Toggle Switch Styles */
.toggle-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 20px; /* Space below the toggle */
}

.toggle-container input {
    display: none; /* Hide the default checkbox */
}

.toggle-slider {
    position: relative;
    width: 60px; /* Width of the slider */
    height: 30px; /* Height of the slider */
    background-color: #ccc; /* Default background color */
    border-radius: 15px; /* Rounded corners */
    transition: background-color 0.3s, box-shadow 0.3s; /* Background color and shadow transition */
    margin-right: 10px; /* Space between the slider and label */
}

.toggle-slider::before {
    content: "";
    position: absolute;
    width: 28px; /* Width of the circle */
    height: 28px; /* Height of the circle */
    left: 1px; /* Position the circle inside the slider */
    bottom: 1px; /* Position the circle inside the slider */
    background-color: white; /* Circle color */
    border-radius: 50%; /* Round circle */
    transition: transform 0.3s; /* Circle movement transition */
}

input:checked + .toggle-slider {
    background-color: #21ebff; /* Background color when checked */
    animation: colorGlow 1s infinite alternate; /* Add color change animation */
    box-shadow: 0 0 20px #21ebff, 0 0 30px #21ebff; /* Glowing effect */
}

input:checked + .toggle-slider::before {
    transform: translateX(30px); /* Move circle to the right */
}

/* Color and glow animation */
@keyframes colorGlow {
    0% {
        background-color: #21ebff; /* Start color */
        box-shadow: 0 0 10px #21ebff, 0 0 20px #21ebff;
    }
    100% {
        background-color: #ff21eb; /* End color */
        box-shadow: 0 0 20px #ff21eb, 0 0 30px #ff21eb; /* Change glow color */
    }
}
