body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

header nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

header nav ul li {
    margin: 0 10px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
}

.container {
    width: 90%;
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
}

.price-box, .balance-box, .pnl-box {
    margin-bottom: 20px;
}

.input-container, .button-container, .position-details, .closed-positions {
    margin-bottom: 20px;
}

.input-container input, .input-container label {
    display: block;
    width: 100%;
    margin: 0 auto 10px;
    text-align: left;
}

.input-container input {
    padding: 10px;
    font-size: 16px; /* Prevent zooming on input fields */
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.buy-button, .sell-button, .reset-button, .close-button, .account-button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    color: white;
    width: 100px;
    font-size: 1em;
}

.buy-button {
    background-color: green;
}

.sell-button {
    background-color: red;
}

.reset-button {
    background-color: gray;
}

.close-button {
    background-color: orange;
}

.account-button {
    background-color: blue;
}

.position-details p, .closed-positions p {
    margin: 5px 0;
}

.closed-positions-list {
    list-style-type: none;
    padding: 0;
}

.closed-positions-list li {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

/* Notification Styles */
.notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.notification {
    background-color: #333;
    color: #fff;
    padding: 15px 20px;
    margin-top: 10px;
    border-radius: 4px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.notification.success {
    background-color: #4CAF50;
}

.notification.error {
    background-color: #f44336;
}

.notification:hover {
    opacity: 1;
}

/* Media Queries for Mobile Devices */
@media (max-width: 600px) {
    header nav ul {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    header nav ul li {
        margin: 0 5px;
    }

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

    .buy-button, .sell-button, .reset-button, .close-button, .account-button {
        width: 100%;
    }
}