/* public_html/style.css */

/* Basic Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a202c; /* Dark background */
    color: #edf2f7; /* Light text */
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #2d3748; /* Darker container background */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
}

/* Forms */
.form-card {
    background-color: #2d3748;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    margin: 50px auto; /* Center the form */
}

.form-card h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #4299e1; /* Blue heading */
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #4a5568;
    border-radius: 6px;
    background-color: #2d3748;
    color: #edf2f7;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="number"]:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}

.btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: #4299e1; /* Blue button */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none; /* For links styled as buttons */
    text-align: center;
}

.btn:hover {
    background-color: #3182ce; /* Darker blue on hover */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #4a5568; /* Grey button */
}

.btn-secondary:hover {
    background-color: #2d3748;
}

.message {
    padding: 10px;
    margin-top: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.message.success {
    background-color: #2f855a; /* Green */
    color: white;
}

.message.error {
    background-color: #c53030; /* Red */
    color: white;
}

/* Dashboard Specific Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #4a5568;
}

.header > div { /* Container for welcome, wallet, profile/logout */
    display: flex;
    align-items: center;
    gap: 15px; /* Space between elements */
}

/* Wallet Container Styling */
.wallet-container {
    display: inline-flex; /* Use flex to align content within the bubble */
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content if needed */
    background-color: #66ff00; /* Bright green, as requested */
    color: #1a202c; /* Dark text for contrast */
    border-radius: 9999px; /* Makes it fully spherical/pill-shaped */
    padding: 8px 15px; /* Adjust padding for size */
    min-width: 100px; /* Ensure a minimum size */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.2s ease-in-out; /* Smooth transition for changes */
    white-space: nowrap; /* Prevent wrapping */
}

.wallet-info { /* Replaced by .wallet-container */
    /* This rule might not be needed if .wallet-container handles it all */
}

.game-area {
    background-color: #1a202c;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden; /* For canvas/plane */
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#multiplier-display {
    font-size: 4rem;
    font-weight: bold;
    color: #ffcc00; /* Gold for multiplier */
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

#plane-canvas {
    background-color: transparent; /* Set background in .game-area */
    width: 100%; /* Adjust as needed */
    height: 200px; /* Adjust as needed */
    display: block; /* Remove extra space below canvas */
}

.controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    margin-top: 20px;
}

.control-group {
    flex: 1;
    min-width: 150px; /* Ensure inputs don't get too small */
}

.control-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #cbd5e0;
}

.game-result {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
}

.game-result.win {
    color: #48bb78; /* Green */
}

.game-result.lose {
    color: #e53e3e; /* Red */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header > div {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%; /* Take full width on small screens */
    }

    .wallet-container {
        width: auto; /* Allow it to shrink */
        min-width: unset;
        font-size: 1rem;
        padding: 6px 12px;
    }

    .controls {
        flex-direction: column;
        gap: 10px;
    }

    .form-card {
        padding: 20px;
        margin: 20px auto;
    }

    #multiplier-display {
        font-size: 3rem;
    }
}
