body {
    margin: 0 auto;
    font-family: Arial, sans-serif;
    background: #F2FBEF;
}

.top_row_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #de6552, #dcc6c2);
    padding-left: 5px;
    padding-right: 50px;
}

h1 {
    font-family: impact;
    color: darkblue;
    padding: 0;
    margin: 0;
    font-size: 30px;
}

#game_name {
    text-align: left;
}

#user {
    text-align: right;
    text-decoration: none;
}

#cash {
    padding-left: 5px;
}

#progressContainer {
    width: 100%;
    background-color: #e0e0e0;
    overflow: hidden;
}

#progressBar {
    height: 30px;
    width: 0;
    background-color: #76c7c0;
}

.ball {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgb(255, 255, 255), rgb(122, 122, 122));
    box-shadow: inset 0 0 20 0px rgb(255, 255, 255);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.history_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
}

.history {
    color: #de6552;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.card-container {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
}

.card {
    width: 120px;
    height: 180px;
    perspective: 1000px;
    position: relative;
}

.card-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 5px;
    border: 1px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.card-front {
    background-color: white;
    transform: rotateY(180deg);
}

.card-back {
    background-image: url('images/card_back.jpg');
    background-size: cover;
}

.card-suit {
    font-size: 30px;
}

.card-text {
    font-size: 20px;
    position: absolute;
    top: 10px;
    left: 10px;
}

.card-text-bottom {
    font-size: 20px;
    position: absolute;
    bottom: 10px;
    right: 10px;
    transform: rotate(180deg);
}

.bet_amount_container {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    align-items: center;
}

.valueInput {
    width: 100px;
    font-size: 16px;
    border: none;
    text-align: center;
    background: none;
}

.bet_btn,
.tie_btn,
.amount_btn {
    padding: 5px 8px;
    font-size: 13px;
    margin: 5px;
    cursor: pointer;
    border: none;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgb(0, 0, 0);
}

.bet_btn {
    width: 110px;
    box-shadow: 0px 0px 10px 5px rgb(224, 200, 64);
    padding: 10px 10px;
    color: white;
}

#left_button {
    background: #7eb983;
}

#right_button {
    background: #7377b4;
}

.tie_btn {
    background: #e77979;
    box-shadow: 0px 0px 10px 5px rgb(224, 200, 64);
    color: white;
}

.highlight {
    background: rgba(153, 45, 224, 0.897);
    color: white;
}

#leftValueInput {
    color: #7eb983;
}

#tieValueInput {
    color: #e77979;
}

#rightValueInput {
    color: #7377b4;
}

.available_amount {
    border: none;
    background: none;
    font-size: 16px;
}

.amount_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.input_field {
    font-size: 16px;
    padding: 10px;
}

.submit_button {
    margin: 20px;
    font-size: 16px;
}

#error {
    color: red;
}
