* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #1a1a1a;
    color: #fff;
}

/* Main Page Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.header {
    padding: 20px 0;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.game-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto 20px;
    background: #000;
}

#unity-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

button {
    padding: 12px 24px;
    font-size: 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #45a049;
}

#embed-button {
    background: #2196F3;
}

#embed-button:hover {
    background: #0b7dda;
}

.footer {
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid #333;
    color: #888;
}

.loading-bar {
    width: 100%;
    max-width: 960px;
    height: 4px;
    background: #333;
    margin: 20px auto;
}

.loading-bar-fill {
    width: 0%;
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s;
}

/* Embed Page Styles */
.embed-body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
}

.embed-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
}

.game-container-embed {
    position: relative;
    width: 100%;
    height: calc(100vh - 60px);
    background: #000;
}

.loading-bar-embed {
    width: 100%;
    height: 4px;
    background: #333;
    position: absolute;
    top: 50%;
    left: 0;
}

.embed-controls {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
}

.embed-controls button {
    padding: 8px 20px;
    font-size: 14px;
    background: #4CAF50;
}

.embed-controls button:hover {
    background: #45a049;
}

/* Embed Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

.modal-content {
    background: #2a2a2a;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-content p {
    margin-bottom: 15px;
    color: #ccc;
}

.modal-content textarea {
    width: 100%;
    height: 150px;
    padding: 10px;
    font-family: monospace;
    font-size: 14px;
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 5px;
    resize: vertical;
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.close-btn {
    background: #f44336;
}

.close-btn:hover {
    background: #da190b;
}

.copy-btn {
    background: #4CAF50;
}

.copy-btn:hover {
    background: #45a049;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 24px;
    }
    
    .controls {
        flex-direction: column;
    }
    
    button {
        width: 100%;
        max-width: 300px;
    }
}

