body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    font-family: Arial, sans-serif;
}

#game-container {
    width: 100%;
    height: 100%;
    display: block;
}

/* Chat input styling */
input {
    font-size: 16px; /* Prevents auto-zoom on iOS */
    border: 3px solid #000000;
    border-radius: 25px;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
}

input:focus {
    border-color: #333333;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* UI Overlay ensure priority */
#ui-overlay {
    z-index: 10000 !important;
}

/* Ad banner styling */
.ad-banner {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 468px;
    height: 60px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.ad-banner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Share Modal styling */
.share-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.share-menu {
    background: white;
    border: 3px solid #000000;
    border-radius: 15px;
    padding: 20px;
    width: 280px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.share-menu h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #000;
}

.share-menu a {
    display: block;
    padding: 12px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: bold;
    border: 2px solid #000;
    transition: transform 0.1s ease;
}

.share-menu a.twitter { background-color: #1DA1F2; }
.share-menu a.facebook { background-color: #4267B2; }
.share-menu a.linkedin { background-color: #0077b5; }
.share-menu button.copy-link {
    width: 100%;
    display: block;
    padding: 12px;
    color: #ffffff;
    background-color: #4CAF50;
    text-decoration: none;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: bold;
    border: 2px solid #000;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.share-menu button.copy-link:hover {
    transform: scale(1.02);
}

.share-menu button.copy-link:active {
    transform: scale(0.98);
}

.share-menu a:hover {
    transform: scale(1.02);
}

.share-menu a:active {
    transform: scale(0.98);
}

/* Status indicators */
.status-active {
    box-shadow: 0 0 10px #4CAF50;
}

.status-idle {
    opacity: 0.7;
}

.status-inactive {
    opacity: 0.3;
}

/* Chat bubble animations */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.chat-bubble {
    animation: fadeOut 5s linear forwards;
}

/* Responsive design */
@media (max-width: 768px) {
    .ad-banner {
        width: 320px;
        height: 50px;
    }
}

.ui-button {
    width: 90px;
    height: 34px;
    border: 3px solid #000;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.1s;
    touch-action: manipulation;
}

.ui-button:hover {
    transform: scale(1.05);
}

.ui-button:active {
    transform: scale(0.95);
}
