body {
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.87);
    /* background-color: #000000;  */
    font-family: Arial, Helvetica, sans-serif;
    background-color: #000000 !important;
}

/* #app {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
} */

.spritePosition {
    margin: 10px 0 0 10px;
    font-size: 0.8em;
}

.button {
    width: 140px;
    margin: 10px;
    padding: 10px;
    background-color: #000000;
    color: rgba(255, 255, 255, 0.87);
    border: 1px solid rgba(255, 255, 255, 0.87);
    cursor: pointer;
    transition: all 0.3s;

    &:hover {
        border: 1px solid #0ec3c9;
        color: #0ec3c9;
    }

    &:active {
        background-color: #0ec3c9;
    }

    /* Disabled styles */
    &:disabled {
        cursor: not-allowed;
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: rgba(255, 255, 255, 0.3);
    }
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000000;
    font-family: Arial, Helvetica, sans-serif;
    touch-action: none;
    /* Prevents scroll on touch devices */
}

#app {
    width: 100%;
    height: 100dvh;
    /* Use `dvh` instead of `vh` to avoid navbar issues */
    min-height: 100dvh;
    /* display: flex; */
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Overlay */
#installPromptModal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in-out;
}

#installPromptModal .modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
    position: relative;
    /* allow absolute children */
}

#installPromptModal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

#installPromptModal .close:hover {
    color: #000;
}

/* Buttons */
#installPromptModal button {
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    border-radius: 0.6rem;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    background: #007bff;
    color: #fff;
    transition: all 0.2s ease-in-out;
}

#installPromptModal button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
