/**
 * Feuille de style pour la vue jeux
 *
 * @author Aurélien Monnat
 * @since 03.06.2024
 */

#types {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 25px;
    margin-top: 25px;
    justify-content: space-between;
}

#jeuxGauche {
    max-height: 513px;
    transition: 1s;
}

#jeuxGauche > ul {
    min-width: 211px;
    width: 211px;
    margin: 10px auto;
}

.selection {
    width: 250px;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 20px auto;
    transition: 1s;
}

#jeuxDroite {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 600px;
    margin: 10px auto;
    border: 3px solid black;
    border-radius: 25px;
    overflow: hidden;
    padding: 0;
    height: 100%;
}

#typesPreview {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}


th.jeux,
td.jeux {
    border-style: solid;
    border-color: black;
}

.imageTypeListe {
    max-height: 2vh;
    margin-left: 10px;
}

#types #jeuxGauche > ul {
    list-style: none;
    padding-left: 0;
}

#types #jeuxGauche ul > li {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    padding-left: 20px;
}

#types #jeuxGauche > ul > li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: black;
}


.select-box {
    width: 200px;
    position: relative;
}

.select-option input {
    width: 100%;
    background-color: #fff;
    color: #000;
    border-radius: 7px;
    cursor: pointer;
    font-size: 22px;
    padding: 15px 20px;
    border: 0 !important;
    outline: 0 !important;
}

.select-option:after {
    content: "";
    border-top: 12px solid #000;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    position: absolute;
    right: 15px;
    top: 50%;
    margin-top: -8px;
}

.content {
    background-color: #fff;
    position: absolute;
    color: #000;
    border-radius: 7px;
    margin-top: 15px;
    width: 100%;
    z-index: 999;
    padding: 20px;
    display: none;
}

.search input {
    width: 90%;
    font-size: 17px;
    padding: 15px;
    outline: 0;
    border: 1px solid #b3b3b3;
    border-radius: 7px;
}

.options {
    margin-top: 10px;
    max-height: 250px;
    overflow-y: auto;
    padding: 0;
    list-style-type: none;
}

.options li {
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 21px;
    cursor: pointer;
    border-bottom: 1px solid gray;
}

.options li:hover {
    background-color: #f2f2f2;
}

.select-box.active .content {
    display: block;
}

.select-box.active .select-option:after {
    transform: rotate(-180deg);
}

#preview {
    max-width: 100%;
}

.vulnTable td {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    max-width: 100px;
    border: none 0;
    border-radius: 25px;
}

.vulnTable {

    max-width: 100px;
    max-height: 127px;
    margin: 0;
    border: none 0;
}

.typeLogo {
    max-width: 16.6%;
    min-width: 94px;
}

.typeLogo img {
    width: 100%;
}

/*
Résistance au différents types
*/
.immune {
    background-color: #19a619;
}

.twice_resistant {
    background-color: #2ddf2d;
}

.resistant {
    background-color: #90ee90;
}

.neutral {
    background-color: #d3d3d3;
}

.vulnerable {
    background-color: #ff5f77;
}

.twice_vulnerable {
    background-color: #ff3352;
}
