/* colour definitions for secondary metabolite types */

@mixin secmet($fg: black, $bg: white, $highlight: orangered){
    background-color: $bg;
    a, a:link, a:visited {
        color: $fg;
    }
    rect& {
        fill: $bg;
        stroke: $highlight;
    }
    &.active {
        border-color: $highlight;
        border-width: 2px;
        border-style: solid;
    }
    &:hover {
        background-color: lighten($bg, 9%);
    }
}

.hybrid {
    @include secmet(midnightblue, lightsteelblue, midnightblue);
}

@mixin PKS {
    @include secmet(purple, sandybrown, purple);
}

@mixin pigment {
    @include secmet(white, peru);
}

@mixin hydrocarbon {
    @include secmet(white, purple);
}

@mixin RiPP {
    @include secmet(white, royalblue);
}

@mixin osmolyte {
    @include secmet(firebrick, yellowgreen, firebrick);
}

.T1PKS {
    @include PKS;
}

.transAT-PKS {
    @include PKS;
}

.transAT-PKS-like {
    @extend .transAT-PKS;
}

.T2PKS {
    @include PKS;
}

.T3PKS {
    @include PKS;
}

.hglE-KS {
    @include PKS;
}

.PpyS-KS {
    @include PKS;
}

.PKS-like {
    @include PKS;
}

.prodigiosin {
    @include PKS;
}

.arylpolyene {
    @include pigment;
}

.resorcinol {
    @include hydrocarbon;
}

.ladderane {
    @include hydrocarbon;
}

.PUFA {
    @include hydrocarbon;
}

.NRPS {
    @include secmet(white, seagreen);
}

.NRPS-like {
    @extend .NRPS;
}

.CDPS {
    @extend .NRPS;
}

.thioamide-NRP {
    @extend .NRPS;
}

.NAPAA {
    @extend .NRPS;
}

.terpene {
    @include hydrocarbon;
}

@mixin lantibiotic {
    @include secmet(blue, #ffff77, blue);
}

.lanthipeptide-class-i {
    @include lantibiotic;
}

.lanthipeptide-class-ii {
    @include lantibiotic;
}

.lanthipeptide-class-iii {
    @include lantibiotic;
}

.lanthipeptide-class-iv {
    @include lantibiotic;
}

.lanthipeptide-class-v {
    @include lantibiotic;
}

.lipolanthine {
    @include lantibiotic;
}

.RiPP-like {
    @include RiPP;
}

.RRE-containing {
    @include RiPP;
}

.RaS-RiPP {
    @include RiPP;
}

.fungal-RiPP {
    @include RiPP;
}

.ranthipeptide {
    @include RiPP;
}

.redox-cofactor {
    @include RiPP;
}

@mixin thiolated_ripp {
    @include secmet(black, gold, black);
}

.thiopeptide {
    @include thiolated_ripp;
}

.LAP {
    @include thiolated_ripp;
}

.thioamitides {
    @include thiolated_ripp;
}

.linaridin {
    @include RiPP;
}

.cyanobactin {
    @include RiPP;
}

.glycocin {
    @include RiPP;
}

.lassopeptide {
    @include RiPP;
}

.sactipeptide {
    @include RiPP;
}

.bottromycin {
    @include RiPP;
}

.microviridin {
    @include RiPP;
}

.proteusin {
    @include RiPP;
}

.epipeptide {
    @include RiPP;
}

.cyclic-lactone-autoinducer {
    @include RiPP;
}

.spliceotide {
    @include RiPP;
}

.blactam {
    @include secmet(black, aliceblue, black);
}

.amglyccycl {
    @include secmet(black, yellowgreen, black);
}

.aminocoumarin {
    @include secmet(black, yellowgreen, black);
}

.siderophore {
    @include secmet(white, crimson, blue);
}

.ectoine {
    @include osmolyte;
}

.NAGGN {
    @include osmolyte;
}

.butyrolactone {
    @include secmet(white, mediumpurple);
}

.indole {
    @include secmet(black, peachpuff, black);
}

.nucleoside {
    @include secmet(black, antiquewhite, black);
}

.phosphoglycolipid {
    @include secmet(black, yellowgreen, black);
}

.melanin {
    @include pigment;
}

.oligosaccharide {
    @include secmet(black, burlywood, black);
}

.furan {
    @include hydrocarbon;
}

.hserlactone {
    @include secmet(black, tan, black);
}

.acyl_amino_acids {
    @include secmet(black, tan, black);
}

.tropodithietic-acid {
    @include secmet(black, tan, black);
}

.phenazine {
    @include secmet(black, plum, black);
}

.phosphonate {
    @include secmet(black, mediumaquamarine, black);
}

.guanidinotides {
    @include RiPP;
}

.PBDE {
    @include hydrocarbon;
}

.other {
    @include secmet(lightsteelblue, midnightblue);
}

.betalactone {
    @include hydrocarbon;
}

.pyrrolidine {
    @include hydrocarbon;
}

.unknown {
    @include secmet(black, #f2f2f2, black);
}

.saccharide {
    @extend .unknown;
}

.fatty_acid {
    @extend .unknown;
}

.halogenated {
    @extend .unknown;
}
