/* @brief   3d dice roller app stylesheet
   @author  Sarah Rosanna Busch
   @date    10 Aug 2023
   @version 0.1
   */

* {
    box-sizing: border-box; /* padding and border are included in total width/height of all elements */
    margin: 0px;
    font-size: 14pt;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: #202020;
    background-image: url("assets/background.svg");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: cover;
    height: 100vh;
    width: 100vw;
}

header {
    text-align: center;
    color: white;
    padding: 5px;
}

#helpBtn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 1.2rem;
    height: 1.2rem;
    border: none;
    border-radius: 0.6rem;
}

/* ******* DICE ROLLER *********** */

#diceRoller {
    position: absolute;
    top: 0;
    height: calc(100% - 4.5rem);
    width: 100%;
    margin-top: 1.5rem;
    z-index:-1;
    overflow: hidden;
}

#canvas {
    width: 100%;
    height: 100%;
}

/* ************* UI ************* */

#diceRollerUI {
    width: 100vw;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#diceLimit {
    text-align: center;
    color: red;
    background-color: #050505;
    padding: 0.5rem;
    font-size: 10pt;
    font-weight: bold;
}

.top_field {
    text-align: center;
    width: 100%;
    background-color: rgba(150,150,150,0.1);
}

#textInput { 
    text-align: center;
    border: none;
    color: rgba(0, 0, 0, 0.8);
    background-color: rgba(199, 199, 199, 0.7);
    width: 100%;
    text-overflow: ellipsis;
    padding: 0.2em;
    text-decoration: none;
}

#textInput:focus {
    background-color: rgba(255, 255, 255, 0.7);
    outline: none;
}

.center_field {
    position: relative;
    flex: 1;
    text-align: center;
    height: 80%;
    width: 100%;
    z-index: 100;
}

.center_field * {
    position: relative;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 5px 15px;
    user-select: none;
}

#instructions {
    background: none;
    height: 100%;
    width: 100%;
}

#instructions p {
    color: rgb(255, 255, 255);
    background: none;
    margin: auto;
    top: 35%;
    padding: 1em;
}

#numPad { /* container */
    position: absolute;
    width: 200px;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.numPad { /* table */
    width: 200px;
    margin: auto;
    padding-top: 15px;
    padding-bottom: 15px;
}

.numPad td {
    cursor: pointer;
}

#numPad button {
    padding: 0.5em;
    margin-top: 5px;
    width: 97px;
    border: none;
    background-color: rgba(255, 255, 255, 0.8);
    color: black;
}

.bottom_field {
    position: absolute;
    bottom: 0;
    text-align: center;
    min-height: 3rem;
    background: rgba(0, 0, 0, 0.4);
    width: inherit;
    padding: 0px;
}

#result {
    position: relative;
    display: block;
    min-height: 1.5em;
    bottom: 5px;
    word-spacing: 0.5em;
    color: rgba(255,255,255,0.9);
    padding: 0.5em;
    margin-left: 5px;
    margin-right: 5px;
}
