﻿@font-face {
    font-family: 'TovariSans';
    src: url('/Fonts/TovariSans.otf');
}

@font-face {
    font-family: "Charm";
    src: url('/Fonts/Charm-Regular.ttf');
    font-weight: normal;
}

@font-face {
    font-family: "Charm";
    src: url('/Fonts/Charm-Bold.ttf');
    font-weight: bold;
}

:root {
    --card-font: 'Charm';
}

body {
    padding: 1em;
    overflow: hidden;
}

[ng-click] {
    cursor: pointer;
}

.upload-box {
    border: 7px dashed #ccc;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

    .upload-box .upload-input {
        display: none;
    }

    .upload-box:hover {
        border-color: #aaa;
    }

    .upload-box.drag-over {
        border-color: #2196F3;
    }

    .upload-box .upload-text {
        font-size: 16px;
        margin-top: 10px;
    }

.without-error .md-errors-spacer {
    display: none;
}

md-autocomplete.without-error md-input-container {
    margin: 0;
    margin-top: 12px;
}

.small-input-container {
    margin: 0;
    width: 3em;
}

    .small-input-container input {
        text-align: center;
    }

.rot90 {
    transform: rotate(90deg);
}

#Card, #Card * {
    box-sizing: border-box;
}

#Card {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    height: 100%;
    background-size: 100% 100%;
    position: relative;
    border: black 8px solid;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    font-family: var(--card-font);
    /*font-size: 1.5em;*/
    font-size: 2.75vh;
    z-index: 0;
}

#Element {
    aspect-ratio: 1 / 1;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    height: 60px;
    border: black 2px;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
}

    #Element img {
        width: 100%;
        height: 100%;
    }

        #Element img.InverseColor,
        #Apercu.InverseColor {
            -moz-filter: invert(1);
            -webkit-filter: invert(1);
            filter: invert(1);
        }

#Banner {
    height: 100%;
    width: 40px;
    /*border: black 2px solid;
    border-bottom: 0;
    border-top: 0;*/
    left: 20px;
    position: absolute;
    display: block;
    /*align-items: flex-start;*/ /* aligne le texte vertical au bord supérieur */
    /*justify-content: flex-end;*/
    padding-top: 80px;
    z-index: 2;
    background-size: 100% 100%;
}

    #Banner.InverseColor,
    .ou .InverseColor {
        color: white;
    }

    #Banner .vertical-text {
        transform-origin: calc(100% - 20px) 50%;
        transform: rotate(270deg);
        width: max-content;
        position: absolute;
        right: 0;
    }

.custom-container {
    min-width: 500px !important;
}

#Body {
    height: 100%;
}

#Image {
    margin: 10px 10px 10px 80px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    #Image.no-image {
        border: #0008 6px dashed;
    }

    #Image.drag-over {
        border-color: #000B
    }

    #Image img {
        max-width: 100%;
        max-height: 100%;
        height: fit-content;
    }

#Titre {
    margin: 0 10px 0 80px;
    text-align: center;
}

    #Titre span {
        font-size: 2em;
        line-height: 1em;
    }

    #Titre md-input-container {
        margin: 0;
    }

    #Titre .md-input {
        font-family: var(--card-font);
        font-size: 2em;
        height: 1em;
        text-align: center;
    }

#Effects {
    justify-content: space-evenly;
}

.Effect {
    -ms-flex: 1;
    -webkit-flex: 1;
    flex: 1;
}

.Polarite {
    position: absolute;
    position: absolute;
    display: flex;
    width: 110px;
    justify-content: flex-end;
    z-index: 1;
    background-size: cover;
    height: 1em;
}

    .Polarite span {
        width: 1em;
        height: 1em;
        display: flex;
        color: white;
        font-weight: bold;
        align-items: center;
    }

    .Polarite.Plus {
        /*background-color: green;*/
        background-image: url("/Images/Signet_Positif.png");
        /*width: calc(100px - 1em);*/
        height: 1em;
    }

    /*.Polarite.Plus:before {
            position: absolute;
            left: calc(100px - 1em);
            display: inline-block;
            height: 0;
            width: 0;
            border-top: .5em solid transparent;
            border-bottom: .5em solid transparent;
            border-left: 1em solid green;
            content: "";
        }*/

    /*.Polarite.Plus span {
            position: absolute;
            left: calc(100px - 1em);
        }*/

    .Polarite.Moins {
        /*background-color: red;*/
        background-image: url("/Images/Signet_Negatif.png");
    }

/* .Polarite.Moins span {
            justify-content: center;
        }*/

.Type {
    position: absolute;
    aspect-ratio: 1 / 1;
    height: 90px;
    left: -3px;
    z-index: 3;
    /*background-size: 100% 100%;*/
    background-position-x: center;
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    background-size: 540px 180px;
}

    .Type.Attaque {
        background-image: url("/Images/Atk_tiles.png");
    }

    .Type.Defence {
        background-image: url("/Images/Def_tiles.png");
    }

    .Type.Soutien {
        background-image: url("/Images/Soutient_tiles.png");
    }

.Description {
    display: flex;
    width: 100%;
    margin-left: 120px;
    margin-right: 10px;
}

    .Description span {
        white-space: pre-line;
        line-height: 1em;
    }

    .Description .md-input {
        font-family: var(--card-font);
        font-size: 1.5rem;
    }

.ou {
    width: 100%;
}

    .ou > div {
        margin-left: 20px;
        width: 40px;
        text-align: center;
        z-index: 2;
    }

    .ou > hr {
        width: 50%;
        border-color: gray;
    }

.GradianBackground {
    background: #808080;
    background: radial-gradient(circle, #808080 0%, #80808000 75%);
}

.ColorButtons {
    display: grid;
    grid-template-columns: repeat(5, auto);
}

    .ColorButtons .md-button {
        aspect-ratio: 1;
        min-width: auto;
    }

#Ref {
    position: absolute;
    transform: rotate(-90deg);
    transform-origin: 10px 50%;
    top: 55%;
    font-size: .7em;
    width: fit-content;
    margin: 0;
    color: white;
}

#Illustrateur {
    position: absolute;
    transform: rotate(270deg);
    transform-origin: calc(100% - 10px) 50%;
    top: 8%;
    right: 96%;
    font-size: .7em;
    width: fit-content;
    white-space: nowrap;
    margin: 0;
    color: white;
}

.g-1 {
    gap: 1rem;
}

md-list.g-1 md-list-item:not(:last-child) {
    margin-bottom: 1rem;
}

md-option.pre .md-text {
    white-space: pre;
}
