.code-features {
    margin-left: 8px;
    padding: 12px;
    font-size: 1.1em;
    background-color: rgba(100,50,100,0.03);
}
@media only screen and (max-width: 700px) {
    .code-features {
        font-size: 0.9em;
    }
}

.code-table {
    display: table;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.code-table > span {
    display: table-row;
}
.code-table > span:first-child,
.code-table > span:last-child{
    border-bottom: 1px dashed black;
}
.code-table > span > span {
    display: table-cell;
    padding: 2px 0;
}
.code-table > span > span:first-child {
    padding-right: 10px;
}

.code-list > span {
    display: list-item;
    list-style-type: '- ';
    margin-left: 12px;
}

.code-commands {
    word-spacing: 15px;
}
.code-commands a {
    word-spacing: initial;
}

.code-season, #div-seasons p {
    font-size: 1.3em;
}

#div-seasons {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}
#div-seasons img {
    border-radius: 40px;
    max-width: 50%;
}

#div-seasons .code-table span {
    border: none;
    padding-top: 0;
    padding-bottom: 0;
}

@media only screen and (max-width: 700px) {
    #div-seasons {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px
    }
    #div-seasons img {
        max-width: 75%;
    }
}

@media only screen and (max-width: 400px) {
    #div-seasons {
        font-size: 0.75em;
    }
    #div-seasons img {
        max-width: 100%;
    }
}

.card-system-rate-table {
  width: 80%;
  margin: auto;
  border-spacing: 0;
  border: 1px solid rgba(0,0,0,0.4);
  border-radius: 12px;
  table-layout: fixed;
}
.card-system-rate-table th, .card-system-rate-table td {
    text-align: center;
    padding: 8px;
    white-space: pre-line;
    line-height: 1.5;
}
.card-system-rate-table tr:first-of-type {
    color: white;
    background-color: #555;
}
.card-system-rate-table td:first-child {
    font-weight: bold;
}
.card-system-rate-table tr:nth-child(odd):not(:first-of-type) {
    background-color: #f7f7f7;
}
.card-system-rate-table tr:nth-child(even) {
    background-color: #dee6eb;
}
.card-system-rate-table tr:first-of-type td:first-of-type {
    border-top-left-radius: 10px;
}
.card-system-rate-table tr:first-of-type td:last-of-type {
    border-top-right-radius: 10px;
}
.card-system-rate-table tr:last-of-type td:first-of-type {
    border-bottom-left-radius: 10px;
}
.card-system-rate-table tr:last-of-type td:last-of-type {
    border-bottom-right-radius: 10px;
}
.card-system-rate-table img {
    max-width: 100%;
    max-height: 100%;
}

@media only screen and (max-width: 1200px) {
    .card-system-rate-table {
        width: 100%;
    }
}

@media only screen and (max-width: 700px) {
    .card-system-rate-table {
        font-size: 0.8em;
    }
}
@media only screen and (max-width: 525px) {
    .card-system-rate-table td {
        padding: 2px;
    }
    .card-system-rate-table {
        font-size: 0.6em;
        word-spacing: -1px;
    }
}
@media only screen and (max-width: 350px) {
    .card-system-rate-table tr:first-child,
    .card-system-rate-table td:first-child {
        font-size: 0.55em;
    }
}

.image-album {
    width: 90%;
    margin: 0 auto;
}
.image-cards {
    width: 70%;
    margin: 0 auto;
}
@media only screen and (max-width: 700px) {
    .image-album,
    .image-cards {
        width: 100%;
    }
}

.outfits-set {
    text-align: center;
}
.outfits-set label {
    display: block;
    font-size: 0.7em;
    color: grey;
    cursor: pointer;
}

.outfits {
    text-align: center;
    width: 90%;
    margin: auto;
}
.outfits img{
	transition: transform .2s; /* Animation */
  	width: 118px;
  	height: 111px;
  	margin: 0 auto;
	padding: 7px 20px;
}

.outfits figure{
	display: inline-block;
	user-select: none;
    margin: 0;
}

.tooltip figcaption {
  margin-top: -5px;
  padding-bottom: 14px;
}

.tooltip {
  position: relative;
  border: 2px solid transparent;
}

.tooltip .tooltiptext {
    text-align: left;
    font-size: 0.9em;
    line-height: 1.4;
    visibility: hidden;
    width: 320px;
    background-color: #555;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    position: absolute;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    top: 110%;
    opacity: 0;
    transition: opacity 1s;
    white-space: pre-line;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.tooltip:hover {
    border: 2px solid #555;
    border-radius: 10px;
}

/* under for mobile */
.tooltip .tooltiptext::after {
    content: " ";
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #555 transparent;
}

@media only screen and (min-width: 1125px) {
    .tooltip:nth-child(6n+1):not(:nth-last-child(-n+5)) .tooltiptext {
        transform: translateX(-30%);
    }
    .tooltip:nth-child(6n+1):not(:nth-last-child(-n+5)) .tooltiptext::after {
        transform: translateX(-700%);
    }
    .tooltip:nth-child(6n+6) .tooltiptext {
        transform: translateX(-70%);
    }
    .tooltip:nth-child(6n+6) .tooltiptext::after {
        transform: translateX(700%);
    }
}
@media only screen and (max-width: 1124px) and (min-width: 940px) {
    .tooltip:nth-child(5n+1):not(:nth-last-child(-n+4)) .tooltiptext {
        transform: translateX(-30%);
    }
    .tooltip:nth-child(5n+1):not(:nth-last-child(-n+4)) .tooltiptext::after {
        transform: translateX(-700%);
    }
    .tooltip:nth-child(5n+5) .tooltiptext {
        transform: translateX(-70%);
    }
    .tooltip:nth-child(5n+5) .tooltiptext::after {
        transform: translateX(700%);
    }
}
@media only screen and (max-width: 939px) and (min-width: 755px) {
    .tooltip:nth-child(4n+1):not(:nth-last-child(-n+3)) .tooltiptext {
        transform: translateX(-30%);
    }
    .tooltip:nth-child(4n+1):not(:nth-last-child(-n+3)) .tooltiptext::after {
        transform: translateX(-700%);
    }
    .tooltip:nth-child(4n+4) .tooltiptext {
        transform: translateX(-70%);
    }
    .tooltip:nth-child(4n+4) .tooltiptext::after {
        transform: translateX(700%);
    }
}
@media only screen and (max-width: 754px) and (min-width: 570px) {
    .tooltip:nth-child(3n+1):not(:nth-last-child(-n+2)) .tooltiptext {
        transform: translateX(-30%);
    }
    .tooltip:nth-child(3n+1):not(:nth-last-child(-n+2)) .tooltiptext::after {
        transform: translateX(-700%);
    }
    .tooltip:nth-child(3n+3) .tooltiptext {
        transform: translateX(-70%);
    }
    .tooltip:nth-child(3n+3) .tooltiptext::after {
        transform: translateX(700%);
    }
}
@media only screen and (max-width: 569px) and (min-width: 385px) {
    .tooltip:nth-child(2n+1):not(:nth-last-child(-n+1)) .tooltiptext {
        transform: translateX(-30%);
    }
    .tooltip:nth-child(2n+1):not(:nth-last-child(-n+1)) .tooltiptext::after {
        transform: translateX(-700%);
    }
    .tooltip:nth-child(2n+2) .tooltiptext {
        transform: translateX(-70%);
    }
    .tooltip:nth-child(2n+2) .tooltiptext::after {
        transform: translateX(700%);
    }
}
@media only screen and (max-width: 384px) {
    .tooltip .tooltiptext {
        width: 280px;
        top: 50%;
    }
}

input:checked + .outfits .tooltip {
    display: inline-flex;
    flex-direction: column;
}

input:checked + .outfits .tooltiptext.tooltiptext.tooltiptext {
    visibility: visible;
    opacity: 1;
    position: initial;
    transform: none;
    width: 146px;
    font-size: 0.7em;
}
input:checked + .outfits .tooltiptext::after {
    content: none;
}

#outfits-alpha-show-all, #outfits-beta-show-all {
    position: absolute;
    left: -20000px;
    display: none;
}

#tb-commands {
    width: 95%;
    margin: auto;
    border-spacing: 0;
    border-color: transparent;
}
#tb-commands tr, #tb-commands td {
    text-align: left;
    vertical-align: baseline;
    padding: 2px;
    line-height: 1.4;
    background-color: transparent;
    color: black;
    font-weight: 100;
    padding: 10px;
}
@media only screen and (max-width: 500px) {
    #tb-commands td:first-child {
        font-size: 12px;
    }
}
