html {
    font-family: monospace;
}

p {
    font-style: italic;
    font-size: 1.1rem;  
}

.heroAttr {
    font-size: 1.5rem; 
    margin: 0; 
    text-align: center; 
    margin-block-start: .2rem;
}

section {
    outline: solid black 2px;
    border-radius: 2px;
    padding: 5px; 
    padding-block-end: 20px; 
    position: relative; 
    background-color: white;
}

body {
    margin: 0 auto 0 auto; 
    max-width: 1100px;
}

section > h2 {
    position: absolute;
    bottom: -.5em;  
    right: 0%; 
    left: 0%;  
    text-align: center;
    font-size: 1em; 
    z-index: 1;
}

section > h2 > span {
    background-color: white; 
    padding-inline: 5px;
}

footer {
    block-size: 60px;
    text-align: center;
}

.title-page {
    position: sticky; 
    z-index: -10; 
    top: 0; 
    text-align: center; 
}

.title-page h1 {
    font-size: 4rem; 
    padding-block-start: 40px;
}

.wave-text span {
    display: inline-block;
    font-size: 4rem;
    animation: wave 2s ease-in-out infinite;
}

.wave-text span:nth-child(1) {
    animation-delay: 0s;
}
.wave-text span:nth-child(2) {
    animation-delay: .2s;
}
.wave-text span:nth-child(3) {
    animation-delay: .4s;
}
.wave-text span:nth-child(4) {
    animation-delay: .6s;
}
.wave-text span:nth-child(5) {
    animation-delay: .8s;
}
.wave-text span:nth-child(6) {
    animation-delay: 1s;
}
.wave-text span:nth-child(7) {
    animation-delay: 1.2s;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

#c {
    aspect-ratio: 3/3.3;
    width: 80%; 
    display: inline;
}

.hero-page {
    max-block-size: 75vh;
}

.characterSheet {
    display: flex; 
    gap: 1em; 
    flex-direction: row;
    min-height: 80vh; 
    padding: 10px; 
    @media (width < 770px) {
        flex-direction: column;
    }
}

.character-sheet-title-and-header {
    padding: 10px 10px 0px 10px; 
}

main {
    background-image: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 1), rgba(255, 255, 255, 1));
}

.character-sheet-title {
    text-align: center; 
    letter-spacing: 0.2ch;
    text-decoration: underline dashed rgb(97, 80, 80);
    background-color: white; 
    border: 2px solid black; 
    border-radius: 5px;
}

.character-sheet-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    padding: 10px; 
    background-color: white;
    border: 2px solid black;
    border-radius: 5px;
}

.character-sheet-header dt {
    color: rgb(66, 66, 66); 
    font-style: italic;
    border-top: grey solid 1px; 
}

.character-sheet-header dd {
    margin: 0; 
    font-size: 1.5rem; 
    text-wrap-mode: nowrap;
}

.flexContainer {
    display: flex; 
    flex-direction: column; 
    flex-grow: 1;
    flex-basis: 0; 
    gap: 1em; 
}

.item {
    flex-grow: 1; 
}

.flexContainer.middle {
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
}

.AttributesAndSkills {
    display: grid; 
    grid-gap: 0.9em; 
    grid-template-columns: auto auto;
    grid-template-rows: auto auto auto; 
}

/* Attributes Section */

.Attributes {
    grid-row: span 3; 
    display: flex; 
    justify-content: center;
    background-color: rgb(236, 236, 236);
}

.Attributes > dl {
    display: flex; 
    flex-direction: column;
    gap: 1em; 
}

.Attributes > dl > div {   /* Attribute Container */ 
    outline: rgb(53, 52, 52) 1px solid; 
    background-color: white;
    border-radius: 4px;
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
}

.Attributes > dl dt {  /* Attribute Title */
    font-weight: bold;
    text-align: center; 
}

.Attributes dd {
    margin-left: 0;
    text-align: center;
    outline: solid black; 
    border-radius: 2px; 
}


.Attributes > dl dt + dd {  /* Attribute */
    flex-grow: 1; 
    display: flex; 
    justify-content: center;
    align-items: center;
    font-size: 1.9rem;
    min-inline-size: 4rem; 
    margin-block-start: 8px;
}



.Attributes > dl dt + dd + dd {  /* Attr Modifier */
    background-color: white; 
    min-inline-size: 2rem; 
    position: relative; 
    bottom: 8%; 
    border-radius: 40%; 
}

/* Skills and Saving Throws */

.Skills li, .SavingThrows li {
    list-style: none; /* remove default bullet */
    position: relative; /* for precise alignment if needed */
}

.Skills li::before,
.SavingThrows li::before {
    content: '';
    display: inline-block;
    width: 12px;       /* desired width */
    height: 12px;      /* desired height */
    margin-right: 0.5rem; /* space between icon and text */
    background: url(images/radiobutton.svg) no-repeat center;
    background-size: contain; /* scale SVG to fit container */
}

.Skills li.checked::before,
.SavingThrows li.checked::before {
    content: '';
    display: inline-block;
    width: 12px;      /* desired width */
    height: 12px;      /* desired height */
    margin-right: 0.5rem; /* space between icon and text */
    background: url(images/radiobutton_filled.svg) no-repeat center;
    background-size: contain; /* scale SVG to fit container */
}

.Skills li > span,
.SavingThrows li > span {
    display: inline-block; 
    width: 3ch; 
    border-bottom: solid 1px grey; 
    text-align: end;
    margin-right: 0.5em; 
}

.Skills ul,
.SavingThrows ul {
    padding-inline-start: 1em; 
    line-height: 2.7ch;
}

.SingleAttribute {
    background-color: unset;
    outline: unset; 
    display: flex; 
    align-items: center; 
    padding-block-end: unset;
}

.SingleAttribute div {
    border: black solid 2px; 
    background-color: white; 
}

.SingleAttribute .Description {
    flex-grow: 1;
    flex-shrink: 1; 
    white-space: nowrap;
    padding: 0 2rem 0 1rem;
    min-height: 2.4rem;
    border-radius: 2px; 

    display: flex; 
    align-items: center;
}

.SingleAttribute .Description p {
    margin: 0; 
}

.SingleAttribute .Value {
    width: 3.5rem; 
    height: 3.5rem; 
    margin-left: -1.5rem;
    
    border-radius: 50%; 
    background-color: white;
    flex-grow: 0;
    flex-shrink: 0;

    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.SingleAttribute .Value p {
    margin: 0; 
}

.SingleAttribute.PassiveWisdom .Description {
    padding-left: 2.5rem; 
}

.parentContainer.HealthACMisc {
    display: grid; 
    gap: .5rem; 
    grid-template-columns: repeat(3, 1fr);
}

.weapons {
    display: grid; 
    grid-template-columns: auto auto auto;
    gap: 10px; 
}

.weapons > p {
    margin-block: 0;
    padding: 4px;
    background-color: rgb(221, 221, 221); 
    border-radius: 10px 2px; 
}

.CurrentHitPoints {
    grid-column: span 3;
}

.TempHitPoints {
    grid-column: span 3; 
}

.HitDiceAndDeathSaves {
    grid-column: span 3; 
    display: grid; 
    grid-template-columns: 1fr 1fr;
    gap: .5rem; 
}

.HitDiceAndDeathSaves > section {
    flex-grow: 1;
    flex-shrink: 1;
}

.TraitsEtc {
    display: flex; 
    flex-direction: column;
    gap: .5rem; 
}

.TraitsEtc > section {
    flex-grow: 1; 
    padding-top: 10px;
    padding-left: 10px;  
}

.TraitsEtc > section p {
    margin-block: 0;
}

.Equipment {
    padding-block-start: 20px;
}

.Equipment > ul {
    list-style-type: "- ";
    padding-left: 2rem; 
}

.Equipment > ul > li {
    margin-block: 9px;
}

.Treasure {
    padding-block-start: 2ch; 
    padding-inline-start: 3ch; 
}

.Treasure p {
    margin-block: 0.2rem;
}

.AttacksAndSpellcasting {
    padding: 13px;
}
