body {
    font-family: Arial, sans-serif;
    background-color: rgb(36, 39, 41);
    margin: 0;
    padding: 0;
}

.game-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 90vh;
    padding: 20px;
}

.game-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.dice-result-area {
    position: relative;
    width: 100%;
    height: 80px;
    overflow: hidden;
}

.dice-roll {
    position: absolute;
    top: 0px;
    font-size: 2.5em;
    font-weight: bold;
    color: #fff;
    transition: left 0.5s ease;
}

.slider-container {
    position: relative;
    width: 90%;
    margin-top: 40px;
}

.slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    outline: none;
    opacity: 0.7;
    cursor: pointer;
    margin-top: 20px;
    z-index: 2;
}

.slider-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    z-index: 1;
}

.win-area {
    height: 8px;
    background: linear-gradient(to right, green 50%, red 50%);
}

.bet-section {
    color: #fff;
    padding: 20px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 20px;
    text-align: center;
}

.bet-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.bet-info p {
    margin: 0;
    font-size: 1.2em;
}

.payout-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.payout-info p {
    margin: 0;
    font-size: 1.2em;
}

input[type="number"] {
    width: 80px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1.1em;
}

button {
    width: 100%;
    padding: 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2em;
}

button:hover {
    background-color: #45a049;
}

.last-rolls {
    margin-top: 20px;
}

.last-rolls ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-between;
}

.last-rolls li {
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
}

.last-rolls li.win {
    background-color: green;
    color: white;
}

.last-rolls li.loss {
    background-color: red;
    color: white;
}

.last-result {
    margin-top: 20px;
    font-size: 1.2em;
}
#backToMenu {
    width: 200px;
}
a {
    text-decoration: none;
    color: white;
}
.big {
    font-size: 37px;
}
.small {
    font-size: 10px;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: linear-gradient(145deg, #fefefe, #e9e9e9);
    margin: 15% auto;
    padding: 20px;
    border-radius: 15px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-out;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover,
.close:focus {
    color: #ff5e57;
}

.modal-body h2 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.modal-body p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1em;
}

.button {
    display: inline-block;
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.2s ease;
}

.button:hover {
    background-color: #0056b3;
}