/* Pallette
Reds
#CA5346
#A05A52
#F4402D

Browns
#F4402D
#4B403F

Whites
#F5E9DA

Google Fonts:
.jacquard-12-regular
.pixelify-sans-<uniquifier>
*/

* {
    background-color: #332928;
    color: #F5E9DA;
}

header {
    font-family: "Jacquard 24", system-ui;
    font-weight: 400;
    font-style: normal;
}

main,
footer {
    font-family: "Pixelify Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

#main-sub-box {
    display: flex;
    flex-direction: row-reverse;
    gap: 1em;
    align-items: top;
    justify-content: center;
}

@keyframes colorAnimation {
    0% {
        color: #F5E9DA;
    }

    50% {
        color: #F4402D;
    }

    100% {
        color: #F5E9DA;
    }
}

h1 {
    font-size: 50px;
    font-weight: normal;
    text-align: center;
    padding: 5px;
    margin: 0;
    text-decoration: underline 3px;
    text-underline-offset: 10px;
    animation-name: colorAnimation;
    animation-delay: 3s;
    animation-duration: 120s;
}

.info-box {
    width: 350px;
    margin-top: 5px;
    font-size: 15px;
}

.character-maker {
    position: relative;
    display: flex;
    flex-direction: column;
    width: fit-content;
}

#already-copied-message {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    background-color: #F5E9DA;
    color: #F4402D;
    text-align: center;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 35px;
    padding: 5px;
    font-weight: 700;
    border: solid 3px #F4402D;
    border-radius: 5px;
    user-select: none;
    cursor: default;
    visibility: hidden;
}

.character-area,
.character-area2 {
    text-align: center;
    align-items: center;
    padding: 5px 10px 5px 10px;
    margin: 5px;
    border: solid 3px;
    border-radius: 5px;
}

.character-area {
    width: fit-content;
    height: fit-content;
    min-width: 235px;
    min-height: 160px;
}

.character-area2 {
    width: 300px;
    height: 135px;
}

.character-area2>h2 {
    font-family: "Jacquard 12", system-ui;
    font-size: 1.75em;
    font-style: normal;
    font-weight: 400;

}

.character-area-detail {
    display: flex;
    justify-content: space-between;
    gap: 5px;
}

.character-area-detail2 {
    display: flex;
    justify-content: space-between;
    gap: 0;
}

.trait {
    width: fit-content;
    mask-border-width: 125px;
}

.trait2 {
    width: 125px;
    mask-border-width: 125px;
}

h2,
h3 {
    padding: 0;
    margin: 0;
}

.traits-heading {
    margin-bottom: 10px;
}

ul {
    padding: 0 0 0 25px;
    margin: 0;
}

li::marker {
    color: #F5E9DA;
}

.button-area {
    display: flex;
    justify-content: space-evenly;
}

button {
    width: 100px;
    height: 30px;
    margin: 2px;
    border: solid 3px #F5E9DA;
    border-radius: 5px;
    box-shadow: 2px 2px #4B403F;
    font-family: "Pixelify Sans", sans-serif;
    font-size: 15px;
    cursor: pointer;
}

button:active {
    box-shadow: 2px 2px;
    transform: translate(1px);
}

#copy-button {
    opacity: .5;
    pointer-events: none;
}

#copied-characters {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}

.created-element {
    color: #F59584;
}

.x-out {
    position: absolute;
    top: 1.3%;
    left: 95%;
    display: flex;
    color: #F4402D;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
    border: solid 2px;
    border-radius: 3px;
    /* line-height: 1px; */
    cursor: pointer;
}

footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-bottom: .25em;
}

.copyright-symbol {
    font-family: sans-serif;
    font-size: 12px;
}

/*tablet query*/
@media only screen and (min-width: 768px) {

    h1 {
        font-size: 70px;
    }

    .info-box {
        font-size: 19px;
    }

    .character-area {
        width: 300px;
        height: 135px;
        min-width: 0;
        min-height: 0;
    }

    .character-area-detail {
        gap: 0;
    }

    .trait {
        width: 125px;
    }

    button {
        width: 110px;
        height: 40px;
        font-size: 19px;
        margin: 3px;
    }

    footer {
        margin-top: 1.25em;
        font-size: 15px;
    }

    .copyright-symbol {
        font-size: 15px;
    }

}

/*desktop query*/
@media only screen and (min-width: 1114px) {
    /* Usually, I would set this at 992x, but 1099px fits better with the re-sizing of the character-area div sections. */

    h1 {
        font-size: 90px;
    }

    .info-box {
        width: 500px;
        font-size: 22px;
    }

    .character-area,
    .character-area2 {
        width: 325px;
        height: 175px;
        font-size: 1.2em;
    }

    button {
        width: 125px;
        height: 45px;
        font-size: 22px;
        margin: 5px;
    }

    .x-out {
        top: 1.3%;
        left: 95.5%;
        width: 10px;
        height: 10px;
        border: solid 2px;
        border-radius: 3px;
        text-indent: -1px;
        line-height: 1.3;
        text-indent: -.1ch;
    }

    footer,
    .copyright-symbol {
        font-size: 18px;
    }

}