@font-face {
    font-family: GlaserBecker;
    src: url("../fonts/GlaserBeckerStencilRegular.ttf");
}

#characterName {
    background-image: url("../images/Character\ Name.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position-x: center;
    font-family: GlaserBecker;
    text-align: left;
    color: white;
    padding: 5% 20% 2% 2%;
    /* padding-right: 5%; */
    width: 90%;
    margin: auto;
    letter-spacing: .1rem;
    text-indent: 0.25em;
    display: block;
}

#characterNameContainer {
    grid-area: name;
    display: flex;
    align-items: center;
    justify-content: center;
}

#bbfContainer {
    padding: 0.5em;
    background-color: white;
    width: 100%;
    margin: auto;
    margin-top: 2vh;
    margin-bottom: 2vh;
    
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 0.5fr 0.5fr 1.5fr;
    grid-template-rows: auto auto;

    align-items: stretch;
    overflow-x: hidden;
    overflow-y: hidden;
    grid-template-areas: 
        "emblem name name name name"
        "detail sub-t radar-c radar-c main-t"
    ;
}

@media (max-width: 1100px) {
    #bbfContainer {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 10px 0px;
        grid-template-areas:
            "emblem    name    name"
            "sub-t   radar-c main-t"
            ".  detail  ."
        ;
    }
    
    #emblem {
        width: 90%;
    }
}

@media (max-width: 825px) {
    #bbfContainer {
        grid-template-columns: 1fr 0.25fr 1fr   ;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "name   name    name"
            "sub-t  emblem       main-t"
            "detail radar-c radar-c"
        ;
        gap: 5px;
    }

    #emblem {
        width: 90%;
    }
}

@media (max-width: 650px) {
    #bbfContainer {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto auto;
        grid-template-areas:
            "name"
            "emblem"
            "main-t"
            "sub-t"
            "radar-c"
            "detail"
        ;
        padding-left: 5%;
        padding-right: 5%;
    }

    #emblem {
        width: 20%;
    }
}

#emblem {
    grid-area: emblem;
    margin: auto;
    animation: fadeIn 1s normal forwards;
    width: 40%;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    75% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Chart */
#radarChart {
    background-image: url("../images/Chart\ Ring.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position-x: center;
}

.chart-container {
    position: relative;
    width: 360px;
    aspect-ratio: 1 / 1;
    margin: auto;
    grid-area: radar-c;
}

#total {
    color: black;
    text-align: start;
    margin-left: 20%;
    transform: translateY(-50px);
    font-weight: bold;
    width: fit-content;
    padding-left: 0.25em;
    padding-right: 1em;
    border-left: 2px solid #111;
    border-bottom: 2px solid #111;
    position: relative;
}

#total::after {
    content: '';
    width: 1.5px;
    height: 100%;
    background-color: #111;
    position: absolute;
    right: 0;
    bottom: 0;
    transform-origin: bottom left;
    transform: rotate(45deg);
}

#totalNumber {
    margin-left: 0.25em;
}

/* Triggers */
#subTriggerContainer {
    background-color: #111;
    width: 100%;
    height: 100%;
    grid-area: sub-t;

    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 2%;
    color: white;
    position: relative;
    animation: fadeRight 1s ease-out forwards;
}

#mainTriggerContainer {
    background-color: #111;
    width: 100%;
    height: 100%;
    grid-area: main-t;

    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 2%;
    color: white;
    position: relative;

    animation: fadeLeft 1s ease-out forwards;
}

@keyframes fadeLeft {
    0% {
        opacity: 0;
        transform: translateX(50%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRight {
    0% {
        opacity: 0;
        transform: translateX(-50%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

#mainTriggerContainer::before {
    content: '';
    position: absolute;
    bottom: 5%;
    left: -2em;
    width: 0;
    height: 0;
    z-index: 2;

    border-top: 2em solid transparent;
    border-bottom: 2em solid transparent;
    border-right: 2em solid #111;
}

#subTriggerContainer::before {
    content: '';
    position: absolute;
    top: 5%;
    right: -2em;
    width: 0;
    height: 0;
    z-index: 2;

    border-top: 2em solid transparent;
    border-bottom: 2em solid transparent;
    border-left: 2em solid #111;
}

#mainTriggerContainer>p, #subTriggerContainer>p {
    width: 100%;
}

#mainTriggerContainer p, #subTriggerContainer p {
    text-align: start;
}

.mainSubText {
    background-color: white;
    color: #111;
    padding: 1%;
    box-sizing: border-box;
}

.japanese {
    font-size: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-5px);
}

trigger-block {
    background-color: white;
    color: #111;
    font-weight: bold;
    width: 100%;
    margin-top: 1vh;
    z-index: 3;
    position: relative;

    display: grid;
    grid-template-columns: 1fr 3fr;
    grid-template-rows: 1fr 2fr;
    padding-left: 2%;
    padding-top: 2%;
}

trigger-block::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;

    border-width: 0.3em;
    border-top-color: transparent;
    border-left-color: transparent;
    border-right-color: #111;
    border-bottom-color: #111;
}

trigger-block .triggerImage {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 3;

    height: 90%;
    aspect-ratio: 1 / 1;
    margin-left: auto;
    padding: 10%;
    background-color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
}

trigger-block .triggerImage img {
    max-width: 90%;
    max-height: 90%;
    width: 100px;
    margin: auto;
    object-fit: contain;
}

trigger-block .triggerImage::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;

    border-width: 0.3em;
    border-top-color: #111;
    border-left-color: #111;
    border-right-color: white;
    border-bottom-color: white;
}

trigger-block .triggerType {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 2;

    text-indent: 0.5em;
    font-size: 75%;
    width: 80%;
    padding-bottom: 1vh;
    background-image: url("../images/TriggerLine.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position-x: center;
    background-position-y: bottom;
    white-space: nowrap;
}

trigger-block .triggerName {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;

    padding-left: 1em;
    width: 90%;
}

.freeTrigger {
    background-color: #636363;
}

.freeTrigger .triggerImage {
    opacity: 0;
    display: none;
    width: 0;
}

.freeTrigger .triggerType {
    opacity: 0;
}

/* Details */
#detailsContainer {
    color: black;
    text-align: start;
    width: 100%;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    grid-area: detail;
    display: flex;
    align-items: center;
    justify-content: center;
}

#detailsList {
    background-image: url("../images/Profile.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position-x: center;
    padding-top: 25%;
    padding-bottom: 3vh;
    padding-left: 1vw;
    padding-right: 1vw;
    width: 80%;
    margin: auto;
    list-style: none;
}