@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@500;600;700;800&family=Roboto:wght@100;300;400;500;700&display=swap');

:root{
    --light-grey: #ebf0f5;
    /*
    --accent-1: #ffc46b;
    --accent-2: #80c242;
    --accent-3: #c24242;
    --accent-4: #6bd0ff;
    */
}

*{
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    color: #111111;
    text-decoration: none;
    list-style-type: none;
    margin:0;
    padding:0;
    height: auto;
    width: auto;
}

body{
    margin: 5vh 30vw;
}

main{
    white-space: pre-line;
    height: auto;
}

nav{
    min-height: 100vh;
    width:15vw;
    position:fixed;
    top:0;
    left:0;
    background-color: var(--light-grey);
}

h1, h2, h3, h4, h5, h6{
  font-family:"Roboto Slab", serif;
  font-weight: 700;
}

h1, h2{
  color: var(--accent-1);
}

h1{
    margin: 12px 0;
}

textarea{
    width:100%;
    height:60vh;
}

button{
    border: 0;
    padding: 6px;
    margin: 10px 10px 10px 0;
    border-radius: 6px;
    background-color: var(--accent-1)
}

i{
    display: block;
    color:#4e4e4e;
    padding-left: 12px;
}

main a{
    text-decoration: underline;
}

button:hover{
    cursor: pointer;
}

.paragraph-link{
    text-decoration: underline;
}

.create-button{
    margin: 12px;
}

.search-link{
    font-family: "Roboto Slab", serif;
    font-weight: 500;
}

.search-result{
    padding: 24px 0;
    border-bottom-style: solid;
    border-bottom-width: 1px;
}

.search-bar{
    font-size: 1.2rem;
}

.enemy{
    background-color: var(--light-grey);
    padding: 6px;
    margin: 6px;
    border-radius: 6px;
}

.enemy *{
    display: inline-block;
}

.enemy-name{
    width: 200px;
}

.health-counter{
    padding: 6px 0;
}

.enemy-hp{
    width: 64px;
}

.hp-calc{
    margin: 0 6px;
}

.menu-button{
    display:none;
    height:50px;
    width:50px;
    background-color: var(--light-grey);
    border-bottom-right-radius: 6px;
    font-size: 1.2rem;
    color:white;
    position: absolute;
    left: 100%;
    top: 0;
}

.menu-button-transparent{
    display:none;
    height: 90vh;
    width: 100%;
    position: absolute;
    left: 100%;
    top: 50px;
}

.menu-button img{
    width:95%;
    padding: 20% 15%;
}

.menu-button:hover{
    cursor:pointer;
}

.navlink:hover{
    cursor:pointer;
}

.submenu{
    display: none;
}

.navlink{
    font-family: "Roboto Slab", serif;
    font-weight: 500;
}

.subnavlink, .navlink{
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-color: #111111;
}

.navlink:hover{
    background-color: #f6fafd;
}

.subnavlink:hover{
    padding-left:24px;;
}

.subnavlink a{
    color:#111111;
}

.navlink.navlink-active{
    padding-right:0;
    background-color: #f6fafd;
}

.navlink-active .submenu{
    display: block;
    padding: 12px 0;
}

.navlink, .subnavlink{
    padding: 12px;
}

#dicetray{
    position: fixed;
    right: 12px;
    top: 20vh;
    width: 15vw;
    height: 60vh;
    box-shadow:  4px 6px #4e4e4e;
}

@media screen and (max-width: 1400px) {
    body{
        margin: 5vh 15vw;
    }

    nav{
        width:50vw;
    }
    
    nav.active-nav{
        left:0;        
    }

    nav.inactive-nav{
        left:-50vw;
    }

    .menu-button{
        display:block;
    }

    nav.active-nav .menu-button-transparent{
        display:block;
        width:50vw;
    }
}

@media screen and (max-width: 800px) {
    body{
        margin: 5vh 5vw;
    }

    nav{
        width:80vw;
    }
    
    nav.active-nav{
        left:0;        
    }

    nav.inactive-nav{
        left:-80vw;
    }

    nav.active-nav .menu-button-transparent{
        display:block;
        width:20vw;
    }
}