.topbar {
    display: flex;
    gap: 1em;
    justify-content: space-between;
    font-size: x-large;
    align-items: center;

    max-width: 480px;
    margin: auto;
}

.dice {
    width: 40px;
    background-repeat: round;
    text-align: center;
    transition-property: transform;
    transition-duration: 1s;
}

.dice[result] {
    color: transparent;
    height: 40px;
    box-shadow: 0px 0px 3px 0px #a77900;
    border-radius: 5px;
}

.dice-sum {
    color: black;
    font-weight: 600;
    font-size: larger;
    width: 26px;
    text-align: center;
}

.rolling .dice {
    transform: scale(1.25);
}

.sum-btn {
    width: 44px;
    height: 44px;
    font-size: large;
}

button {
    font-family: monospace;
}

body {
    font-family: monospace;
    background-image: url('img/wide-bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    margin: 0;
    padding: 8px;
    background-blend-mode: color;
}


input {
    font-family: monospace;
    font-size: x-large;
}

.btn-large {
    height: 44px;
}

main {
    max-width: 840px;
    margin: auto;
    backdrop-filter: blur(6px);
    background-color: rgba(255, 255, 255, 0.75);
    padding: 8px;
}


/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

.bar-elem {
    background-color: #ffb900;
    box-shadow: 0px 0px 3px 0px #a77900;
    color: transparent;
}

tr.accent td.count {
    font-weight: 800;
    background-color: #ffb900;
    border-radius: 4px;
}

.mode-MODERN tr.row.under button.sum-btn {
    background-color: #8effa1;
    border: 2px solid #2c7932; /* Slightly darker yellow border for contrast */
} 

td.count {
    text-align: center;
}

tr.row td {
    text-align: center;
}

.actions {
    margin-top: 8px;
}

#red-dice[result="1"] {
    background-image: url('img/r-1.png');
}

#red-dice[result="2"] {
    background-image: url('img/r-2.png');
}

#red-dice[result="3"] {
    background-image: url('img/r-3.png');
}

#red-dice[result="4"] {
    background-image: url('img/r-4.png');
}
#red-dice[result="5"] {
    background-image: url('img/r-5.png');
}

#red-dice[result="6"] {
    background-image: url('img/r-6.png');
}
#yellow-dice[result="1"] {
    background-image: url('img/y-1.png');
}

#yellow-dice[result="2"] {
    background-image: url('img/y-2.png');
}

#yellow-dice[result="3"] {
    background-image: url('img/y-3.png');
}

#yellow-dice[result="4"] {
    background-image: url('img/y-4.png');
}
#yellow-dice[result="5"] {
    background-image: url('img/y-5.png');
}

#yellow-dice[result="6"] {
    background-image: url('img/y-6.png');
}


.round-button {
    width: 44px;
    height: 44px;
    background-color: #ffff8e;
    border: 2px solid #ffa500; /* Slightly darker yellow border for contrast */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px; /* Size suitable for two-digit numbers */
    font-weight: bold;
    color: #333; /* Dark text for readability */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    text-align: center;
    line-height: 1;
    user-select: none;
}
  
.round-button:hover {
    background-color: #ffeb3b; /* Slightly brighter yellow on hover */
}
  
.round-button:active {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(2px);
}


  