/* Custom Fly Adventure Game CSS Styling */
.cfa-game-wrapper-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    width: 100%;
    margin: 20px auto;
    padding: 0 15px;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cfa-control-panel {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    box-sizing: border-box;
    border: 1px solid #eef2f5;
}

.cfa-control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cfa-control-group label {
    font-weight: 600;
    font-size: 14px;
    color: #444;
}

.cfa-control-panel select, 
.cfa-control-panel input[type="file"] {
    padding: 8px 12px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    background-color: #fafafa;
    font-size: 14px;
    outline: none;
    max-width: 100%;
}

.cfa-btn-group {
    justify-content: flex-end;
}

.cfa-btn-neon {
    background-color: #39ff14;
    color: #000000 !important;
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(57, 255, 20, 0.3);
    align-self: flex-end;
}

.cfa-btn-neon:hover {
    background-color: #32e010;
    box-shadow: 0 6px 15px rgba(57, 255, 20, 0.5);
    transform: translateY(-1px);
}

/* High Definition Responsive Canvas Box */
.cfa-canvas-wrapper {
    position: relative;
    background: #000000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 450px;
    aspect-ratio: 9 / 16;
}

#cfaGameCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.cfa-game-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 10;
}
