body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
    font-family: Arial, sans-serif;
    background: rgba(0, 0, 0, 0.9);
    color: #00ff88;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 15px rgba(0, 255, 136, 0.3);
}

#scene-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Estilos para el menú de hamburguesa */
.hamburger {
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.hamburger input {
    display: none;
}

.hamburger svg {
    height: 3em;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
    fill: #00ff88;
}

.line {
    fill: none;
    stroke: #00ff88;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
                stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line-top-bottom {
    stroke-dasharray: 12 63;
}

.hamburger input:checked + svg {
    transform: rotate(-45deg);
}

.hamburger input:checked + svg .line-top-bottom {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42;
}

/* Estilos para el menú de opciones */
.menu {
    position: absolute;
    top: 70px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    max-height: 80%;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    box-shadow: inset 0 0 15px rgba(0, 255, 136, 0.3);
}

.menu h2, .menu h3 {
    color: #00ff88;
    margin-bottom: 15px;
    text-align: center;
}

.menu label {
    color: #00ff88;
    display: block;
    margin-bottom: 5px;
    text-align: center;
}

.menu input {
    margin-bottom: 15px;
    width: 100%;
}

.hamburger input:checked ~ .menu {
    transform: translateX(0);
}

/* Estilos adicionales para mejorar la apariencia */
.menu input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    background: #ddd;
    outline: none;
    border-radius: 5px;
    box-shadow: inset 0 0 15px rgba(0, 255, 136, 0.3);
}

.menu input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #00ff88;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.menu input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #00ff88;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

/* Estilos para la barra de desplazamiento */
.menu::-webkit-scrollbar {
    width: 10px;
}

.menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.menu::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
    box-shadow: inset 0 0 15px rgba(0, 255, 136, 0.3);
}

.menu::-webkit-scrollbar-thumb:hover {
    background: #555;
    box-shadow: inset 0 0 15px rgba(0, 255, 136, 0.3);
}

/* Estilos para la barra de desplazamiento en Firefox */
.menu {
    scrollbar-width: thin;
    scrollbar-color: #888 rgba(255, 255, 255, 0.1);
}

/* Estilos para los checkboxes personalizados */
.checkbox-wrapper-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-wrapper {
    --checkbox-size: 25px;
    --checkbox-color: #00ff88;
    --checkbox-shadow: rgba(0, 255, 136, 0.3);
    --checkbox-border: rgba(0, 255, 136, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    padding: 10px;
}

.checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-wrapper .checkmark {
    position: relative;
    width: var(--checkbox-size);
    height: var(--checkbox-size);
    border: 2px solid var(--checkbox-border);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 15px var(--checkbox-shadow);
    overflow: hidden;
}

.checkbox-wrapper .checkmark::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--checkbox-color), #00ffcc);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: scale(0) rotate(-45deg);
}

.checkbox-wrapper input:checked ~ .checkmark::before {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.checkbox-wrapper .checkmark svg {
    width: 0;
    height: 0;
    color: #1a1a1a;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

.checkbox-wrapper input:checked ~ .checkmark svg {
    width: 18px;
    height: 18px;
    transform: rotate(360deg);
}

.checkbox-wrapper:hover .checkmark {
    border-color: var(--checkbox-color);
    transform: scale(1.1);
    box-shadow:
        0 0 20px var(--checkbox-shadow),
        0 0 40px var(--checkbox-shadow),
        inset 0 0 10px var(--checkbox-shadow);
}

.checkbox-wrapper input:checked ~ .checkmark {
    animation: pulse 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px var(--checkbox-shadow);
    }
    50% {
        transform: scale(0.9);
        box-shadow:
            0 0 30px var(--checkbox-shadow),
            0 0 50px var(--checkbox-shadow);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px var(--checkbox-shadow);
    }
}

/* Glowing dots animation */
.checkbox-wrapper::after,
.checkbox-wrapper::before {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--checkbox-color);
    opacity: 0;
    transition: all 0.5s;
}

.checkbox-wrapper::before {
    left: -10px;
    top: 50%;
}

.checkbox-wrapper::after {
    right: -10px;
    top: 50%;
}

.checkbox-wrapper:hover::before {
    opacity: 1;
    transform: translateX(-10px);
    box-shadow: 0 0 10px var(--checkbox-color);
}

.checkbox-wrapper:hover::after {
    opacity: 1;
    transform: translateX(10px);
    box-shadow: 0 0 10px var(--checkbox-color);
}
/* Botón Inicio */
.home-button {
    position: absolute;
    top: -35px; /* Ajusta este valor para subir el botón un poco más */
    left: 10px;
    padding: 10px 20px;
    background-color: #1a1a1a; /* Fondo negro */
    color: #00ff88; /* Letras verdes */
    border: 2px solid transparent; /* Borde transparente inicialmente */
    border-radius: 0 0 5px 5px;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    transition: top 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
    z-index: 1000;
}

.home-button:hover {
    top: 0; /* Ajusta este valor para controlar la posición final al pasar el ratón */
    border-color: #00ff88; /* Borde verde al pasar el ratón */
    box-shadow: 0 0 15px #00ff88; /* Brillo verde al pasar el ratón */
}

.home-icon {
    margin-right: 8px;
    font-size: 20px;
}



/* Responsividad */
@media (max-width: 768px) {
    .menu {
        width: 100%;
        top: 0;
        right: 0;
        border-radius: 0;
    }

    .hamburger {
        top: 10px;
        right: 10px;
    }
}
