* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

:root {
    /*  colors  */
      --red: #a20e0e;
      --orange: #d15203;
      --black: #1f1f1f;
      --gray: #636363;
      --white: #f1f1f1;
      --cream: #ece2ca;
    /* font  */
      --base-font: 'Marcellus', serif;
}

body {
    width: 100%;
    text-align: center;
    min-height: 100vh;
    background-image: url(../images/dungeon-wall.jpg);
    background-repeat: no-repeat;
    font-family: var(--base-font);
}

header {
    height: 25%;
    background-image: url(../images/textured-background.jpg);
    color: var(--red);
    padding: 2px;
    font-size: x-large;
}

nav {
    padding: 10px;
    background-color: var(--red);
}

h2 {
    margin-top: 10px;
    color: var(--red);
 }

 section {
    width: 100%;
}

#health {
    background-image: url(../images/textured-background.jpg);
    color: var(--gray);
    font-size: 20px;  
    padding: 10px;
    border-radius: 2px;
    float: right;
    margin: 15px;
    visibility: hidden;
}

.begin {
    width: 8em;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    font-size: 13px;
    color: var(--gray); 
    background: var(--black);
    transition: .1s linear;
}

.howTo {
    margin-right: 2em;
    width: 8em;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    font-size: 13px;
    color: var(--gray); 
    background: var(--black);
    transition: .1s linear;
}

.text-box {
    width: 500px;
    height: 300px;
    background-color: var(--cream);
    border-radius: 4px; 
    border: 4px solid var(--red);
    position: relative
}

.boxes {
    text-align: center;
    height: 15vh;
    width: 15vh;
    padding: 20px;
    margin-right: 3%;
    display: inline-block;
    background-color: var(--white);
    opacity: .6;
    z-index: -1;
    position: relative;
}

.fadedBack {
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    position: absolute;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}

.instructions {
    text-align: left;
    margin: 30px;  
}

.close {
    position: absolute;
    top: 0;
    right: 14px;
    font-size: 42px;
    transform: rotate(45deg);
    cursor: pointer;
} 

.game-board {
    height: 70vh;
    margin: 5em;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    visibility: hidden;
} 

.prompt {
    margin-top: -10px;
    font-size: large;
    color: var(--white); 
}

.noDamage {
    padding: 20px;
}

.damage {
    padding-top: 5px;
    color: var(--red); 
    padding: 20px;
}

.dice_pic {
    width: 10%;
    height: auto;
    margin-right: 40px;
    border-radius: 80px;
}

.roll {
    width: 6em;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    background-color: var(--white);
    padding: 5px;
    transition: .01s linear;
}

.game-board__text {
    font-size: large;
    color: var(--white);
    width: 60%;
}

.end {
    font-size: 30px;
    color: var(--white);
    padding: 20px;
}

.continueButton {
    width: 6em;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    background-color: var(--white);
    padding: 5px;
    transition: .01s linear;
}

.restart {
    width: 6em;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    background-color: var(--white);
    padding: 5px;
    transition: .01s linear;
}

.begin:hover {
    transform: scale(1.2);
    background: var(--orange);
    color: var(--white);
}

.howTo:hover {
    transform: scale(1.2);
    background: var(--orange);
    color: var(--white);
} 

.roll:hover {
    background: var(--orange);
    color: var(--white);
}

.continueButton:hover {
    background: var(--orange);
    color: var(--white);
}

.restart:hover {
    background: var(--orange);
    color: var(--white);
}