#actions:empty {
    display: none;
}

#actions{
	height: 100%;
	font-size: 0.8em;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}


#ui-bar.stowed ~ #story #actions{
    left: 4.5em;
}

#actions a{
	height: calc(100% - 0.8em - 4px);
}

#actions a,
#npcActions a,
.button a,
.buttonRadio span,
.linksAsDefaultButtons a{
	display: block;
	color: black;
	padding: 0.3em;
	border: 2px black solid;
	margin: 0.1em;
	border-radius: 0.4em;
	background: white;
	text-decoration: none;
}

#actions a:hover ,
#npcActions a:hover,
.button a:hover,
.buttonRadio>input:checked+span,
.linksAsDefaultButtons a:hover{
    background: #aaa;
}

#actions .mood a,
#npcActions .mood a {
	background: lightseagreen;
	color: black;
}

#actions .mood.disabled a,
#npcActions .mood.disabled a,
.linksAsDefaultButtons .mood.disabled a {
	background: orangered;
	color: black;
}

#actions .skill a,
#npcActions .skill a {
	background: lightskyblue;
	color: black;
}

#actions .skill.disabled a,
#npcActions .skill.disabled a {
	background: orangered;
	color: black;
}

#actions .willpower_danger a,
#npcActions .willpower_danger a,
.linksAsDefaultButtons .willpower_danger a {
	background: darkred;
	color: white;
}

#actions .disabled a,
#npcActions .disabled a,
.linksAsDefaultButtons .disabled a{
    background: red;
    color: black;
}

#actions .action{
	position: relative;
}
#actions .action img~a {
	padding-right: 3em;
}
#actions .action > img{
	position: absolute;
	right: 0.5em;
	bottom: 0.5em;
	top: 0.5em;
	height: calc(100% - 1em);
	max-width: 3em;
}


.buttonRadio > input{
    display: none;
}

.buttonRadio>input:checked+span {
    font-weight: bold;
}




/*
@media(max-width: 1699px){
    #actions .action{
        display: inline-block;
    }

    #passages{
        height: calc(100vh - 7.5em);
        overflow: auto;
    }
}

@media(max-width: 799px){
    #actions{
        position: static;
        height: unset;
    }

    #passages{
        height: unset;
    }
}

@media(min-width: 1700px) {
    #actions {
        right: unset;
        top: 0px;
        height: 100%;
        width: 14em;
    }
}*/
