body {
    background: rgb(223, 223, 223);
    margin: 0;
}
.whole {
}
.main {
    margin: 0 auto;
    width: 1130px;
    padding-left: 110px;
    color: #222222;

}
* {
    box-sizing: border-box;
}



.info-input {
    width: 200px;
    height: 486px;
    background: grey;
    float: left;
    margin: 20px;
    padding: 5px;
}
.info-input h2 {
    background: no
}
.info-input form {
    background: white;
    padding: 5px;
}
.info-input form input {
    display: block;
    margin: 5px 0px;
    border: 1px solid #b4b4b4;
    border-radius: 3px;
    background: #f3f3f3;
    font-family: serif;
}
.info-input button {
    font-family: serif;
    font-weight: bold;
}



.grid {
    background: grey;
    display: grid;
    grid-template-areas: 
    "basic savingthrows spells"
    "basic skills spells"
    "stats skills spells"
    "features skills spells"
    "features skills bots"
    ;
    grid-template-columns: 250px 150px 410px;
    grid-template-rows: 130px 40px 42px 80px 250px;
    gap: 10px;
    padding: 10px;
    margin: 20px 0;
    float: left;
}
.basic {grid-area: basic}
.stats {grid-area: stats}
.bots {grid-area: bots}
.savingthrows {grid-area: savingthrows}
.skills {grid-area: skills}
.spells {grid-area: spells}
.features {grid-area: features}

.grid > * {
    position: relative;
    background: white;
    padding: 5px;
    margin-top: 10px;
}

.tabs {
    position: absolute;
    top: -15px;
    left: 0;
}
h2 {
    margin: 0;
    font-size: 16px;
    display: inline-block;
    background: white;
    padding: 0 5px;

}
h2 a {
    color: #222222;
    text-decoration: none;
}
.edit {
    margin: 0;
    font-size: 16px;
    display: inline-block;
    background: white;
    padding: 0 5px;
    font-weight: bold;
    color: rgb(119, 119, 119);
    text-decoration: none;
}




/*basic*/

.basic {
    display: grid;
    grid-template-areas: 
    "info"
    "extra";
    grid-template-columns:auto;
    gap: 5px;
}
.basic img {
    grid-area: img;
    width: 100%;
    position: absolute;
    right:220px;
    top:0;
    z-index: 1;
    image-rendering: pixelated;
    pointer-events: none;
}
.basic .info {
    grid-area: info;
}
.basic .info span {
    display: block;
    background: #ebebeb;
    padding: 4px 5px;
    margin: 2px 0;
    font-size: 13px;
}
.basic .info #background {
    display: flex;
    float: left;
    margin-right: 4px;
    height: 35px;
    width: calc(50% - 2px);
    /* line-height: 27px; */
    padding-top: 10px;
}
.basic .info #race {
    float: left;
    height: 35px;
    width: calc(50% - 2px);
    /* line-height: 27px; */
    padding-top: 10px;
}
.basic .info #background::before {
    content: url(https://i.postimg.cc/FzVPgszK/space-ship-3.png);
    margin-right: 7px;
}
.basic .info #race::before {
    content: url(https://i.postimg.cc/8cSK6r13/alien-0075.gif);
    margin-right: 7px;
}

.basic .extra {
    grid-area: extra;
    display: flex;
    width: 100%;
    gap: 4px;
}
.basic .extra > div > div {
    width: 45px;
    height: 33px;
    background: white;
    border-radius: 2px;
    border: 2px solid #ebebeb;
    background: #f3f3f3;
    text-align: center;
    line-height: 30px;
}
.basic .extra b {
    display: block;
    font-size: 10px;
    text-align: center;
    line-height: 16px;
}
/* .basic .info #name::before {content: 'Name: '}
.basic .info #class::before {content: 'Class: '}
.basic .info #background::before {content: 'Background: '}
.basic .info #race::before {content: 'Race: '} */





/*stats*/
.stats {
    margin-top: -5px;
    padding: 2px;
    font-size: 13px;
    line-height: 12px;
}
.stats table, .stats tbody, .stats tr {
    width: 100%;
}
.stats td {
    text-align: center;;
}
.stats * {
    padding: 0;
}




/*bots*/
.bots iframe {
    width: 100%;
    height: 100%;
    border: 0;
}



/*savingthrows*/

.savingthrows > div {
    display: flex;
    gap: 8px;
}
.savingthrows > div input {
    margin: 0;
}





/*skills*/

.skills > div {
    display: flex;
    gap: 8px;
}
.skills > div input {
    margin: 0;
}






/*spells*/

.spells iframe {
    width: 100%;
    height: 100%;
    border: 0;
}









/*features*/

.features iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.features .container {
    width: 100%;
    height: 100%;
    overflow: auto;
    overflow-wrap: break-word;
}
.features .container > div {
    margin: 2px 0;
    padding: 8px 0;
    border-top: 1px solid grey;
}
.features .container > div h3 {
    font-size: 14px;
    margin: 0;
}
.features .trait b {
    font-weight: normal;
}
.features .trait b::before {
    content: "▸ ";
}
.features .trait b:hover::before {
    content: "▾ ";
}
.features .trait b:hover ~ span {
    display: block;
}
.features .trait span {
    display: none;
}



::-webkit-scrollbar {
    width: 0;
}