/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    color: #fff;
}

header {
    background-color: rgba(255, 105, 135, 0.9);
    width: 100%;
    padding: 1em 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffd1dc;
}

main {
    text-align: center;
    padding: 2em;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 2em;
}

.balance {
    font-size: 2em;
    margin-bottom: 1em;
    color: #ffd1dc;
}

.bet-controls {
    margin-bottom: 1em;
}

.bet-controls input, .bet-controls button {
    padding: 0.75em;
    font-size: 1em;
    margin: 0.5em;
    border-radius: 8px;
    border: none;
    outline: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.2s;
}

.bet-controls input {
    background-color: #ffd1dc;
    color: #333;
}

.bet-controls button {
    background-color: #ff8a9c;
    color: #fff;
    cursor: pointer;
}

.bet-controls button:hover {
    background-color: #ff5e7b;
    transform: translateY(-2px);
}

.earnings {
    font-size: 1.5em;
    margin-bottom: 1em;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(5, 60px);
    grid-gap: 10px;
    justify-content: center;
}

.grid-item {
    width: 60px;
    height: 60px;
    background-color: #ff8a9c;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.grid-item.clicked {
    background-color: #ff5e7b;
    color: #fff;
}

.grid-item:hover {
    background-color: #ffd1dc;
    transform: translateY(-2px);
}
