body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background-color: transparent; /* Allow iframe parent background to show through if desired */
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

#gameWrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 450px;
    margin-top: 10px;
}

#canvas {
    border: 3px solid #154d71;
    background: #70c5ce;
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#player, .asset, #gameLogo {
    display: none;
}

#startButton {
    background-color: #e65c00;
    color: #fff;
    position: absolute;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
    transition: background-color 0.2s, transform 0.1s;
}

#startButton:hover {
    background-color: #ff7a1f;
}

#startButton:active {
    transform: scale(0.95);
}

h1 {
    display: none; /* Hide default H1 to save space in iframe, can be shown if needed */
}

@media (max-width: 500px) {
    #gameWrapper {
        max-width: 95vw;
    }
}