body:has(.dialog-container) {
    overflow: hidden;
}

.dialog-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: rgb(0 0 0 / 50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog-window {
    width: 65%;
    border-radius: 5px;
    background-color: #141b2a;
    max-height: 80%;
    min-height: 50%;
    overflow: auto;
    border: 2px solid rgb(54 75 121);
    animation: fade_in 0.25s ease;
}

.dialog-window > h2 {
    color: lightgray;
}

.discret-scroll::-webkit-scrollbar {
    width: 4px;
}
  
.discret-scroll::-webkit-scrollbar-track {
    background-color: transparent;
}

.discret-scroll::-webkit-scrollbar-thumb {
    background: rgb(210 210 210 / 40%);
    border-radius: 5px;
}

.dialog-content {
    overflow: auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dialog-container-buttons {
    display: flex;
    justify-content: center;
    height: 2em;
    width: 100%;
    background: rgb(54 75 121);
    border-top: 2px solid rgb(54 75 121);
    display: none;
}

.dialog-container-buttons > button {
    color: lightgray;
    background: transparent;
    border: none;
    border-radius: 50px;
    margin: 5px;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
}

/******************************************************/
.team-presentation-wrapper {
    position: relative;
    border-bottom: 2px solid rgb(54 75 121 / 50%);
}

.team-presentation-wrapper > img {
    position: absolute;
    width: 60%;
    filter: brightness(.5);
    z-index: 0;
    height: 100%;
    object-fit: cover;
    right: 0;
    top: 0;
}

.team-last-update {
    position: absolute;
    font-size: 0.8em;
    color: darkgray;
    bottom: 5px;
    z-index: 3;
    right: 9%;
    text-shadow: 1px 1px 0 black;
}

.team-presentation {
    z-index: 1;
    position: relative;
    background: linear-gradient(45deg, #000a1f 0%, rgb(28, 38, 60) 45%, transparent);
    padding: 10px 20px;

    display: flex;
    justify-content: space-between;
}

.team-member-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 20px;
}

span.team-member-discret-role {
    color: #a0adbb;
    font-weight: bold;
    margin-bottom: 0.5em;
    white-space: nowrap;
}

.team-member-slot > img {
    height: 6em;
    border-radius: 15px;
    border: 1px solid gray;

    background: radial-gradient(#252728 0%, #101415 100%);
}

span.team-member-name {
    color: white;
    font-weight: bold;
    margin-top: 0.3em;
    font-size: 0.9em;
}

.team-info-section {
    width: 100%;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
}

.team-info-section-title {
    border-bottom: 1px solid rgb(54 75 121);
    color: white;
    letter-spacing: 1.2;
}

.team-info-section-title > h3 {
    border-left: 5px solid #bda77a;
    padding: 0 22px;
    margin: 0.5em 0;
    font-size: 1.2em;
}

.team-info-section-content {
    color: lightgray;
    height: 100%;
    text-align: justify;
}

.team-info-pattern-desc {
    display: flex;
    height: 175px;
}

.team-info-pattern-desc > .team-info-section {
    width: 50%;
}

.team-info-pattern {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr;
}

.team-pattern-row {
    display: flex;
    align-items: center;
}

.team-pattern-wave {
    padding: 0 20px;
    font-weight: bold;
    color: gray;
    white-space: nowrap;
}

.team-info-wrapper {
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.team-info-section-content > img {
    width: 100%;
}

.team-main-info-slot {
    width: 34%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    /* border-left: 1px solid rgb(54 75 121);
    border-right: 1px solid rgb(54 75 121); */
    color: lightgray;
    position: relative;
}

.team-main-info-slot:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 15%;
    right: 0;
    height: 70%;
    width: 3px;
    background: rgb(54 75 121);
    border-radius: 50px;
}

.team-main-info-slot > h3 {
    color: rgb(120 148 210);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px #000;
    margin-top: 12px;
    font-weight: normal;
}

.team-main-info-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

.team-main-info-content > img {
    border: 2px solid lightgray;
    border-radius: 10px;
    height: 5em;
}

.team-mugetsu-link {
    height: 5em;
    position: relative;
}

.team-mugetsu-link > .team-mugetsu-thumb {
    border: 2px solid lightgray;
    border-radius: 10px;
    height: 100%;
}

.team-mugetsu-cross {
    position: absolute;
    height: 80%;
    top: 10%;
    left: 10%;
    display: none;
    z-index: 2;
}

.no-mug-link > .team-mugetsu-thumb {
    filter: grayscale(1);
}

.no-mug-link > .team-mugetsu-cross {
    display: initial;
}

.team-main-info-content > h3 {
    margin: 0.5em 0;
}

.team-score {
    display: flex;
    width: 33%;
    color: white;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    flex-direction: column;
}

.team-score > span {
    font-size: 1rem;
    margin: 0 0.5em;
}

.team-score > h2 {
    margin: 0 0.5em;
}

.team-members-section {
    display: flex;
}

.team-main-info-section {
    display: flex;
    padding: 20px 0;
    background: linear-gradient(180deg, black, transparent);
}

.team-timer-bar {
    height: 5px;
    background: #4c4c4c;
    width: 50%;
    position: relative;
}

.team-timer-bar > div {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 55.5%;
    background: white;
    box-shadow: 0px 0px 10px #427ed1,0px 0px 10px #427ed1;
}

.team-varitation-list > .team-line .team-ytb-link {
    top: 1em;
}

.team-varitation-list > .team-line {
    padding: 20px 0;
    border-bottom: 1px solid rgb(52 68 103);
}

.team-info-description {
    overflow-y: auto;
    padding: 10px;
}

.team-info-description strong {
    color: burlywood;
}

.team-info-video {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.team-dialog-rotation-name {
    text-transform: capitalize;
}

.team-rotation-monster {
    background: radial-gradient(circle, rgba(74,74,74,1) 0%, rgba(23,23,23,1) 89%);
}

.team-empty-pattern {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    color: gray;
    font-style: italic;
}

@media screen and (max-width: 768px) {

    .dialog-window {
        width: 100%;
        align-self: end;
        max-height: 85%;
    }

    .dialog-container-buttons {
        display: flex;
    }

    .team-member-slot > img {
        height: 4.5em;
    }

    .team-presentation-wrapper > img {
        width: 90%;
    }

    .team-presentation {
        flex-direction: column;
        align-items: center;
    }

    .team-score {
        width: 100%;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .team-last-update {
        position: absolute;
        font-size: 0.8em;
        color: darkgray;
        bottom: 5px;
        z-index: 3;
        right: unset;
        width: 100%;
        text-align: center;
    }
    

    .team-info-pattern-desc {
        height: auto;
        flex-direction: column;
    }

    .team-info-pattern-desc > .team-info-section {
        width: 100%;
    }

    .team-info-pattern {
        display: grid;
        grid-auto-flow: initial;
        grid-template-rows: repeat(5, 1fr);
        grid-template-columns: 1fr;
    }

    .team-pattern-row {
        margin: 5px 0;
    }

    .team-main-info-section {
        overflow-x: auto;
    }

    .team-main-info-slot {
        width: 50%;
        min-width: 50%;
    }
}