/* Les Variables */
:root {
    --borderWidth: 20px;
}

body {
    margin: 0;
    padding: 0;
}

header {
    background: #caa;
    border-radius: 5px;
    padding: 0px;
    margin: 0;
    text-align: center;
}

header>* {
    margin: 0;
    padding: 0;
}

article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 5px;
}

#cardArea {

    background: #acc;
    border-radius: 5px;
    padding: 5px;
    border-radius: 5px;
}

#cardArea>#wrapperCard {
    /*border: 1px solid #222;*/
    border-radius: 5px;
    /*5:7*/
    height: 440px;
    width: 315px;
    position: relative;
    margin: auto;
}

#options {

    background: #cac;
    border-radius: 5px;
    padding: 5px;
}

#options>* {
    display: block;
    margin: 10px 0;
}

#carteToPrint {
    height: 200px;
    background: #aac;
    border-radius: 5px;
    padding: 5px;
}

footer {
    background: #999;
    border-radius: 5px;
    padding: 5px;
}

footer>ul>li {
    display: inline-block;
    list-style-type: none;
}

.field {
    background: #f63;
    height: 50px;
    /*border: 1px solid black;*/
}

#card {
    height: 100%;
    border-image-source: url("../Ressources/border-image-3.png");
    border-image-width: var(--borderWidth);
    border-image-slice: 20;
    border-image-repeat: repeat;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}

#card>#inside {
    width: calc(100% - 2 * var(--borderWidth));
    margin: auto;
    height: calc(100% - (2 * var(--borderWidth)));
}

#cardValues {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: absolute;
    align-items: center;
    width: calc(100% - (2 * var(--borderWidth)));
    height: calc(100% - (2 * var(--borderWidth)));
    top: var(--borderWidth);
}

#cardValues>div.field {
    border-width: 8px;
    border-radius: 8px;
    display: grid;
    align-items: center;
    justify-content: center;
}

#cardValues>div:nth-of-type(even) {
    width: 50px;
    justify-self: end;
}

#cardValues>div:nth-of-type(odd) {
    width: 50px;
    justify-self: start;
}

#cardValues>div:nth-of-type(n+5) {
    align-self: end;
}

#cardValues>div:nth-of-type(6n+1),
#cardValues>div:nth-of-type(6n+2) {
    align-self: start;
}

#cardTitle>* {
    margin: 0;
    padding: 0;
    position: relative;
    top: 8px
}

#cardIllustration {
    width: 100%;
    height: 40%;
    background: brown;
    z-index: -10;
    margin-top: var(--borderWidth);
}

div#cardTitre.field {
    border: 2px solid red;
    width: 100%;
    height: 40px;
    border-radius: 1px;

}

div#cardTitre.field>h3 {
    margin: 0;
    padding: 0;
    font-size: 16px;
}

#cardInfo2 {

    border: 2px solid blue
}

#cardInfo3 {
    border: 2px solid darkmagenta
}

#cardInfo4 {
    border: 2px solid darkslateblue
}

#cardInfo5 {
    border: 2px solid lightcoral
}

#cardInfo6 {
    border: 2px solid lightskyblue
}

#cardText {
    width: 50%;
    margin: auto;
}

/*

Important - ID - Class - Pseudo:élém - Selecteur
 0 - 1 - 1 - 0 - 3