@font-face {
    font-family: "bitcraft";
    src: url(Bitcraft.ttf);
}

@font-face {
    font-family: "monaco";
    src: url(monaco.ttf);
}

:root {
    --creme: #f6e8b1;
    --mint: #b0cc99;
    --choco: #89725b;
    --jungle: #88a481;
    --dark: #575757;
    --link: #65aeb7;
}

* {
    box-sizing: border-box;
}

body {
    padding: 0;
    color: var(--choco);
    background-color: var(--dark);
}

.container {
    position: relative;
    width: 1060px;
    height: 690px;
    margin: 50px auto 0;
    padding: 20px;
    background-color: var(--creme);
    border-radius: 10px;
    border: 3px solid var(--dark);
    outline: 2px solid var(--mint);
    display: grid;
    gap: 10px;
    grid-template:
        "profile right"
        "buttons right"
        / 1fr 330px;
}

#profile {
    grid-area: profile;
    height: 290px;
    display: flex;
    gap: 5px;
}

h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 2px 5px;
    color: var(--creme);
    background-color: var(--choco);
    font-family: "bitcraft";
}

h3 {
    padding-left: 10px;
    width: 200px;
    background-color: var(--mint);
    font-size: 30px;
}

.charaselect {
    position: relative;
}

.charaselect img {
    position: relative;
    margin: 10px;
    height: 260px;
    left: 10px;
    filter: sepia(0.1);
    transition: transform 0.2s;
    z-index: 2;
}

.charaselect img:hover {
    transform: scale(1.1);
}

.shadow {
    position: absolute;
    width: 140px;
    height: 20px;
    top: 18.2rem;
    left: 2.6rem;
    border-radius: 60%;
    background-color: var(--dark);
    opacity: 0.3;
    z-index: 1;
}

.stats {
    display: flex;
    flex-flow: column;
}

.dnd {
    margin: 20px 40px 10px;
    padding: 5px;
    width: 150px;
    display: flex;
    flex-flow: row wrap;
    gap: 5px;
}

h4 {
    display: inline-block;
    width: 50px;
    max-height: 25px;
    background-color: var(--jungle);
    font-size: 20px;
    letter-spacing: 2px;
}

.number {
    display: inline-block;
    margin: 0;
    padding: 2px;
    width: 80px;
    color: var(--jungle);
    background-color: none;
    font-family: "bitcraft";
    font-size: 20px;
}

.bars {
    width: 200px;
    margin: 5px 0;
    display: flex;
    flex-flow: wrap;
}

.lvl {
    display: inline-block;
    margin: 0 40px;
    color: var(--choco);
    font-family: "bitcraft";
    font-size: 20px;
}

.statbar {
    display: inline-block;
    width: 100px;
    height: 13px;
    margin: 5px 0;
    border-radius: 5px;
    border: 1px solid var(--choco);
    overflow: hidden;
}

.statbarfill {
    height: 13px;
    background-color: var(--mint);
}

.verticalwrap {
    padding: 10px;
    display: flex;
    flex-flow: column;
    gap: 10px;
}

.textbox {
    width: 200px;
    border-radius: 5px;
    border: 1.5px dotted var(--choco);
}

.boxtext,
.divider {
    margin: 10px;
    font-family: "monaco";
    font-size: 18.4px;
    line-height: 0.9;
}

.divider {
    text-align: center;
    font-weight: bold;
}

.verticalwrap h3 {
    text-align: right;
    font-size: 28px;
}

#buttons {
    grid-area: buttons;
    min-height: 250px;
    display: flex;
    gap: 10px;
}

.box {
    position: relative;
    width: 330px;
    height: 300px;
    top: 22px;
    padding: 30px 0;
    border: 1.5px dotted var(--choco);
}

h5 {
    position: absolute;
    top: -10px;
    left: 7px;
    padding: 3px 10px;
    max-width: 200px;
    font-size: 20px;
}

.buttonwrapper {
    display: flex;
    max-height: 230px;
    justify-content: center;
    flex-flow: wrap;
    gap: 5px;
    overflow: auto;
}

.buttonwrapper img {
    width: 88px;
    filter: sepia(0.4);
    transition: 0.09s;
}

.buttonwrapper img:hover {
    transform: rotate(4deg);
    filter: none;
}

.linkwrapper {
    margin: 10px;
    font-family: "monaco";
    font-size: 18px;
    text-align: center;
}

a {
    color: var(--link);
}

aside {
    height: 650px;
    grid-area: right;
    display: flex;
    flex-flow: column;
    gap: 10px;
}

.tabcontainer,
.widgetwrap {
    position: relative;
    width: 330px;
    border-radius: 5px;
    border: 1.5px dotted var(--jungle);
}

.tabcontainer {
    height: 200px;
}

article {
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

[type="radio"] {
    display: none;
}

#tabs:has(input:checked) article {
    display: none;
}

#tabs:has(#mybutton:checked) article[class~="mybutton"],
#tabs:has(#outlink:checked) article[class~="outlink"],
#tabs:has(#webresources:checked) article[class~="resources"],
#tabs:has(#misc:checked) article[class~="misc"] {
    display: block;
}

.invselect {
    display: flex;
    flex-flow: wrap;
    gap: 10px;
    justify-content: space-evenly;
}

label {
    display: block;
    width: 35px;
    height: 35px;
    background-color: var(--jungle);
}

label img {
    margin: 2px;
}

.widgetwrap {
    position: relative;
    flex-grow: 1;
    overflow-y: auto;
}

h6 {
    position: absolute;
    padding: 3px 10px;
    background-color: var(--jungle);
    bottom: 6px;
    right: 10px;
    font-size: 20px;
    z-index: 100;
}

footer {
    margin: 10px auto;
    color: var(--creme);
    font-family: "monaco";
    text-align: center;
}

textarea {
    width: 100px;
    height: 31px;
    font-size: 11px;
}

.sitebuttons {
    width: 70%;
    margin: auto;
    display: flex;
    flex-flow: wrap;
    gap: 8px;
    justify-content: center;
}

.webrings {
    margin: 10px;
    display: flex;
    flex-flow: column;
    gap: 8px;
    justify-content: center;
}

.center {
    margin: auto;
}

.cssring {
    margin: auto;
    font-family: "monaco";
    font-size: 18px;
    line-height: 1.2;
    text-align: center;
}

.altlinkcolor {
    color: var(--choco);
}

/*og code from css-shape.com*/
.rounded-tab {
    position: absolute;
    top: -30px;
    right: 0;

    --r: 20px; /* control the radius */

    line-height: 1.8; /* control the height */
    padding-inline: 0.5em;
    border-left: var(--r) solid #0000;
    border-radius: calc(2 * var(--r)) var(--r) 0 0 / var(--r) var(--r) 0 0;
    mask:
        radial-gradient(var(--r) at 0 0, #0000 98%, #000 101%) 0 100% / var(--r) var(--r) no-repeat,
        conic-gradient(#000 0 0) padding-box;
    background: var(--creme);
    width: fit-content;
}

.rounded-tab2 {
    position: absolute;
    top: -30px;
    right: 10rem;

    --r: 20px; /* control the radius */

    line-height: 1.8; /* control the height */
    padding-inline: 0.5em;
    border-inline: var(--r) solid #0000;
    border-radius: calc(2 * var(--r)) calc(2 * var(--r)) 0 0 / var(--r);
    mask:
        radial-gradient(var(--r) at var(--r) 0, #0000 98%, #000 101%) calc(-1 * var(--r)) 100%/100% var(--r) repeat-x,
        conic-gradient(#000 0 0) padding-box;
    background: var(--mint);
    width: fit-content;
}

.rounded-tab p,
.rounded-tab2 p {
    margin: 0;
    padding: 0 10px;
    font-family: "bitcraft";
    font-size: 22px;
    text-align: center;
}

.rounded-tab,
.rounded-tab2 {
    min-width: 200px;
}

.rounded-tab2 p a {
    color: var(--choco);
}

/* custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 10px 10px var(--creme);
    border: solid 2px transparent;
}

::-webkit-scrollbar-thumb {
    box-shadow: inset 0 0 10px 10px var(--mint);
    border: solid 2px transparent;
    border-radius: 10px;
}
