body {
    font-family: 'Arial', sans-serif;
    background-color: darkgreen;
    color: white;
    display:flex;
    justify-content:center;
    margin:0;
    text-align: center;
    padding: 0;
}

.container {
    width: calc(100% - 30px);
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
}

h1{
    font-size:18px;
    margin:0;
}

.top-controls{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.controls {
    background:rgba(255,255,255, 0.1);
    border-radius:8px;
    border:2px solid white;
    margin-bottom: 20px;
    margin-top:10px;
    padding:10px;
}

.control-groups {
    display: flex;
    flex-wrap: wrap;
    justify-content:center;
    gap: 10px; /* Provide spacing between control groups */
    margin-top:20px;
}

.control-group {
    display: flex;
    flex-direction: row;
    font-size:18px;
    align-items: center;
}

.control-group #maxCap{
    font-size:18px;
    margin-left:4px;
    width:50px;
}

select, button {
    padding: 10px;
    margin-right: 10px;
    border-radius: 5px;
    border: none;
    background-color: #fff;
    color: black;
    cursor: pointer;
}

select option{
    font-size:16px;
}

.game-info{
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

.bet-details {
    border: 3px solid white;
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Three columns to fit the six bets more compactly */
    margin-bottom:30px;
    margin-top: 10px;
    padding: 0;
    width: 100%;
}

.placebet-container {
    border-right:3px solid white;
    padding: 0;
}

.placebet-container:last-child{
    border-right:none;
}

.placebet-container .placebet-title{
    position:relative;
}

.placebet-container:has(.point) .placebet-title:before{
    align-items: center;
    background:white;
    border:3px solid black;
    border-radius:100px;
    color:black;
    content:'ON';
    display: flex;
    justify-content: center;
    left: 4px;
    font-size:13px;
    font-weight:600;
    height:25px;
    position:absolute;
    top: 50%;
    transform:translate3d(0, -80%, 0) rotate(-30deg);
    width:25px;
}

.placebet-title {
    border-bottom:3px solid white;
    font-size:18px;
    font-weight:600;
    padding: 5px;
    text-align: center;
}

.placebet-value {
    align-items:center;
    display:flex;
    justify-content:center;
    text-align: center;
    font-weight: bold;
    color: white;
    min-height:40px;
}

.result, .point-display {
    text-align: center;
    margin: 10px 0;
}

.info-display {
    font-size: 20px;
    margin-bottom: 4px;
}

.timer{
    width: 120px;
    height: 120px;
    display: flex;
    font-size: 80px;
    margin: 0;
    justify-content: center;
    align-items: center;
    border-radius: 160px;
    border: 10px solid white;
}

/* Ensure .hide class effectively hides elements */
.hide {
    display: none;
}

.highlight {
    color: darkgreen; /* Choose a color that stands out */
    background-color: white; /* Optional: add a background color for more emphasis */
    padding:2px 8px;
}


.result {
    background:white;
    color:darkgreen;
    font-size: 20px;
    margin-top: 20px;
    padding: 5px 22px;
}
.hide {
    display: none;
}


.action-buttons{
    display:flex;
    justify-content:center;
    width:100%;
    gap:10px;
    margin-top:30px;
}

button#showPlacebets,
button#rollAgainButton{
    background:transparent;
    border-radius:0;
    border:2px solid white;
    color:white;
    font-size: 17px;
    font-weight:600;
    letter-spacing: 0.05em;
    margin-right:0;
    text-transform:uppercase;
    width: calc(100% - 30px);
}

/* LANDSCAPE */
.container.landscape{
    max-width:unset;
}

.container.landscape .main-content{
    display:flex;
    width: 100%;
    max-width: 1000px;
    gap: 20px;
}

.container.landscape .controls{
    display:flex;
    flex-direction: column;
}

.container.landscape select, 
.container.landscape button {
    padding: 10px;
    margin-right: 0px;
    border-radius: 5px;
    border: none;
    background-color: #fff;
    color: black;
    cursor: pointer;
}

.container.landscape .controls .control-groups{
    margin-bottom:auto;
    margin-top:10px;
}

.container.landscape .action-buttons{
    flex-direction: row;
    justify-content: center;
    gap:10px;
}

.container.landscape .action-buttons button{
    max-width:200px;
}

.container.landscape button#showPlacebets{
    margin-top:0;
}

@media (min-width:768px){

    button:hover {
        background-color: #ccc;
    }

    button#showPlacebets:hover,
    button#rollAgainButton:hover{
        background:white;
        color:darkgreen;
    }
}

