@font-face {
    font-family: 'Dumbledor';
    src: url('./ws/font/dum1.ttf');
    font-weight: normal;
    font-style: normal;

}
:root {
    --font-color:#5C1F22;
}
body {
    margin: 0;
    padding: 0;
}
*,*::before,*::after {
    box-sizing: border-box;
}
.container {
    width: max(80%,500px);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
    background-image: url("./ws/imgs/content-background.webp");
    background-size: cover;
    padding:30px 20px;
    font-family: 'Helvetica Neue', Roboto, Arial, sans-serif;
    text-align: center;
    color:var(--font-color);
    overflow-x: hidden;

}

.container.full {
    width: 100%;
}

h2,.slabel {
    font-family: 'Dumbledor';
    color:var(--font-color);
}

html {
    height: 100vh;
    width: 100vw;
    background-image: url("./ws/imgs/background.jpg");
    background-size: cover;
    overflow-x: hidden;
}
body {
    min-height: 100%;
    width: 100%;
    margin:0;
    padding: 0;
    display: flex;
    place-items: center;
    overflow: hidden;
    justify-content: center;
}
.rolename{
    font-family: 'Dumbledor';
    font-weight: bold;
    color:#5C1F22;
    font-size: 1.7em;
}
.roleability{
    max-width: 90%;
    line-height: 1.4em;
    min-height: 80px;
    margin:10px auto 10px auto;

    
}
.rolecheck {
    margin:3px 0;
    display: flex;
    align-items: center;
    width: 100%;
    line-height: 20pt;
}
h1 {
    text-align: center;
    font-family: 'Dumbledor';
    font-size: 3em;
}
.inputs {
    text-align: center;
    vertical-align: center;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap:10px;
    row-gap: 20px;
    margin:10px 0;

}
p {
    font-size: 1.3em;
}

#roles,.roles {
    text-align: left;
}

#townsquare_container {
    overflow-x: auto;
    width: 100vw;
    box-sizing: border-box;
}

#bluffs {
    overflow-x: auto;
    width: 100vw;

}

#townsquare,#bluffs {
    display: grid;
    box-sizing: border-box;

    margin:20px;
    gap:10px;
    grid-template-rows: 1fr;
    grid-auto-columns: 300px;
    grid-auto-flow: column;
    width: 100%;
}


#bluffs {
    justify-content: space-evenly;
}
.card {
    display: grid;
    grid-column: 1fr;
    position:relative;
    padding:5px;
    grid-template-rows: min-content min-content 100px 30px 100px min-content;
}

.card.min {
    grid-template-rows: 100px 30px 150px;

}

.card img {
    height: 100%;
}

input {
    font-family: 'Dumbledor';
    border-width: 1px;
    border-color:  #5C1F22;
    border-style:groove;
    border-radius: 4px;
    background-color: #3d21230c;
    font-size: 1.5em;
    text-align: center;

}

button {
    border-style:groove;
    border-radius: 4px;
    background-color: #5C1F22;
    font-size: 1.3em;
    padding: 0 5px;
    height: 100%;
    color:#fceada;
    font-family: 'Dumbledor';
    white-space: nowrap;

}

button:hover {
    cursor: pointer;
}

.card input{
    width: 100%;

}

.card a:hover {
    cursor: pointer;
}

.rolenotes {
    font-family: 'Dumbledor';
    font-size: 1.5em;
    width: 100%;
    height: 200px;
    min-height: 200px;
    padding: 5px;
    margin-top: 5px;
    border-width: 1px;
    border-color:  #5C1F22;
    border-style:groove;
    border-radius: 4px;
    background-color: #3d21230c;
    resize: vertical;
}

.modal {
    background-image:url("./ws/imgs/content-background.webp");
    border-radius: 10px;
    box-shadow: 0 0 5px black;
    background-color: red;
    background-size: cover;
    font-family: inherit;
    position: fixed;
    top:50%;
    left:50%;
    overflow: auto;
    max-height: 80vh;
    transform:translate(-50%,-50%)
}

.modal.full{
    width:100vw;
    max-height: none;
    height: 100vh;
    transform: none !important;
    top:0 !important;
    left:0 !important;
    border-radius: 0;
    z-index: 10;
    position: fixed;
}

.modal-content{
    margin:20px 0;
}

dialog {
    border: none;
}

hr {
    border: 1px solid currentColor;
    width: 100%;
}


.dead {
    background-color: rgba(29, 26, 4, 0.226);
}
.alive {
    opacity: 1;
}
button:disabled{
    opacity: 0.2;
}

.shroud {
    position: absolute;
    right:0;
    top:0;
    height: 50px;
}

.shroud >img {
    height: 100%;
}


#rolepicker {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    width: 80vw;
    column-gap: 10px;
    row-gap: 10px;
    text-align: center;
}

@media only screen and (max-width:600px) {
    #rolepicker{
        grid-template-columns: repeat(4,1fr) !important;
    }
    .pickerheader {
        grid-column: span 4 !important;
    }
}

.pickerheader {
    grid-column: span 6;
    hyphens: auto;
}

.rolepick {
    font-size: max(1.2vw,8pt);
}

.rolepick:hover{
    background-color: rgba(0, 0, 0, 0.062);
    cursor: pointer;
}

footer {
    position: fixed;
    font-family: 'Helvetica Neue', Roboto, Arial, sans-serif;
    bottom: 0;
    font-weight: bold;
    width: 100vw;
    padding: 10px 0;
    text-align: center;
    background:url("./ws/imgs/content-background.webp") ;
    box-shadow: 0 0 5px black;
    color:#5C1F22;
    margin: 0;
    overflow: hidden;
}

#simplesquare {
    margin:0 20px;
    white-space: nowrap;
    overflow-x: auto;
}

.simplecard{
    display: inline-block;
    font-family: 'Dumbledor';
}

#charcountscontainer{
    margin:15px 0;
}