body {
    height: 100vh;
    max-width: 960px;
    margin: 0 auto;
    background-color: black;
    color: black;
    font-family: Helvetica, Arial, sans-serif;
}

/* Containers */

.container-player {
    display:block;
    height: calc(20% - 10px);
    padding-top: 10px;
}

.container-dice {
    display:flex;
    gap: 10px;
    flex-wrap:wrap;
    flex-direction: row;
    height: 80%;
    justify-content: center;
    align-items: center;
    padding: 0 10px 0 10px;
}

.container-center {
    position: relative;
    top:calc(50% - 25px);

    height: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.container-result {
    display:block;
    width: calc(100% - 10px);
    height: calc(60% - 10px);

    border-style:inset;
    border-width: 5px;
    border-color: #bbb;
}

.container-result .container-dice {
    box-sizing: border-box;
    padding-top:28px;
    overflow-y: auto;
}


#J2, #J2-results {
    transform: rotate(180deg);
    background-color: #0C4362BB;
}
#J2-results {
    background-color: #0C4362;
}

#J1 {
    background-color: #9B0600BB;
}
#J1-results {
    background-color: #9B0600;
}

#J2-results {
    height:50%;
}

#J1-results {
    height: 50%;
}

.dice-string {
    font-size: large;
    color:white;
}

.archimage-string {
    text-align: center;
    font-size: large;
    color:white;
}

/* Buttons */

button {
    background-color: black;
    color:white;
    border: 1px solid #bbb;
    border-radius: 4px;
}

.button-clear {
    position:absolute;
    z-index: 1;
}
.button-clear button {
    height:50px;
}

#J1-clear {
    /*right:0;*/
    margin-right:5px;
    transform: translateY(-100%);
}
#J2-clear {
    transform: rotate(180deg);
}

#button-roll {
    position: absolute;
    font-size: larger;
    text-align: left;
    text-shadow: 
        2px 2px 0px black, 
        -2px -2px 0px black,
        2px -2px 0px black,
        -2px 2px 0px black;

    width: 150px;
    height: 50px;

    left: 50%;
    transform: translate(-50%) skewX(-3deg);
    z-index: 10;

    background-image: url("img/bolt.jpg");
    background-repeat:no-repeat;
    background-size:contain;
    background-position: center;
}

#button-menu {
    position: absolute;
    font-size: small;
    width: 50px;
    height: 50px;
    right: 5px;
    z-index: 99;
}

/* Dice */

.dice {
    background-repeat:no-repeat;
    background-size:contain;
    background-position: center;
    font-size: larger;
    font-weight: bold;
    flex:1;
    aspect-ratio: 1;
    max-height: 100%;
    max-width: 100%;

	border: none;
	cursor: pointer;
    background-color: transparent;
    color:black;
    
    display:block;
}

.container-result .dice {
    max-width: 20%;
}

.D6 {
    background-image: url("img/d6_small.png");   
}
.D8 {
    background-image: url("img/d8.png");   
}
.D10 {
    background-image: url("img/d10.png");   
}
.D12 {
    background-image: url("img/d12.png"); 
}
.D20 {
    background-image: url("img/d20.png");
}

/* Menu */

#container-menu {
    position: absolute;
    top:0;
    width:100%;
    max-width: 960px;
    height:100vh;
    background-color: black;
    display:none;
    z-index: 20;
}

#menu {
    position: absolute;
    width: calc(100% - 10px);

    height:60%;
    left:50%;
    transform: translate(-50%);
    top: 20%;
    overflow: hidden;
    text-align: center;

    border-style:outset;
    
    display:grid;
    align-items: center;

    background-color: #bbb;
    background-image: url("/images/marble_texture.jpg");
    background-size:contain;
    background-repeat: repeat;

}
#menu-background {
    background-color: black;
}

#menuX {
    position: relative;
    right:0;

}

/* Responsive */

/* Small devices */
@media only screen and (min-width: 320px) {
    .dice { flex-basis: 17%; }
}

/* Bigger devices */
@media only screen and (min-width: 440px) {
    .dice { flex-basis: 10%; }

}

/* Landscape devices or bigger */
@media only screen and (min-width: 760px) {
    .dice { flex-basis: 8%; }

}

/* Laptops/desktops */
@media only screen and (min-width: 920px) {
    .dice { flex-basis: 5%; }
}