.cat {
    width: 31%;
}
.cat#b {
    border: 2px solid blue;
}
.cat#r {
    border: 2px solid red;
}
.cat#y {
    border: 2px solid yellow;
}
.skill.active img, .skill.set img {
    opacity: 0.3;
    transition: 0.25s;
}
.skill.active:hover img {
    opacity: 0.8;
}
.skill {
    display: inline-block;
    width: 15%;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}
.def_skills .skill {
    width: 31%;
}
.skill img {
    display: block;
    margin: auto;
}
.skill span {
    display: block;
    text-align: center;
    height: 2.5em;
    /* white-space: nowrap; */
    overflow: hidden;
    text-overflow: clip;
}
.pts,.ttl {
    display: inline !important;
}
@-webkit-keyframes fadeIn {
    from { opacity: 0; }
      to { opacity: 1; }
}
@keyframes fadeIn {
    from { opacity: 0; }
      to { opacity: 1; }
}
.skill .tip {
    background: #222;
    display: none;
    /* display: inline-block; */
    /* position: absolute; */
    z-index: -1;
    width: 25em;
    padding: 0.5em;
    padding-top: 0;
    border: 1px solid burlywood;
    /* opacity: 0;
    transition-delay: 0.5s;
    visibility: hidden;
    transition: visibility 0.1s, opacity 0.1s linear; */
}
/* .def_skills .skill .tip {
    min-width: 250%;
} */
.skill:hover {
    position: relative;
}
.skill:hover .tip {
    /* opacity: 1;
    visibility: visible; */
    display: inline-block;
    z-index: 999;
    left: 0px;
    margin: 30px 0 0 70px;
    position: absolute;
    top: 3.5em;
    animation: fadeIn 0.5s;
}
.skill:hover .tipleft {
    /* temporary fix for now.  */
    margin: 30px 0 0 -450px;
}
.virtue:hover .tip {
    margin: -150px 0 0 70px;
}
.skill:hover .tipup {
    margin: -250px 0 0 70px;
}
.tip h3 {
    color: #c3b585;
    text-align: left;
}
.tip h3 img {
    margin: 0;
    display: inline;
    vertical-align: middle;
    opacity: 1 !important;
}
.tip span {
    display: block;
    text-align: left;
    height: auto;
}
.tip span .range {
    float: right;
}
.tip .grey {
    color: grey;
}
.tip .text {
    color: #bbbb99;
}
.tip .green {
    color: #32cd32;
}
.tip .lgreen {
    color: greenyellow;
}
.tip .dgreen {
    color: green;
}
.tip .red {
    color: red;
}
.tip .qualifier {
    color: #e2e68c;
}
.tip .orange {
    color: orange;
}
.tip .pink {
    color: magenta;
}
.tip .cyan {
    color: cyan;
}
.skill.set {
    border-right: 2px solid grey;
    float: left;
    padding-left: 0.5em;
    padding-right: 0.5em;
}
hr {
    border: 0;
    height: 1px;
    background: #333;
    background-image: linear-gradient(to right, #333, #ccc, #333);
}
.cat#b .desc, .cat#b .def_skills {
    background: rgba(19,59,94,0.7);
}
.cat#r .desc, .cat#r .def_skills {
    background: rgba(94,18,18,0.7);
}
.cat#y .desc, .cat#y .def_skills {
    background: rgba(94,89,18,0.7);
}
.def_skills::before {
    content: "You will gain these skills by specialising in this tree:\A\A";
    white-space: pre-wrap;
}
.def_skills.textDE::before {
    content: "Diese F\00E4higkeiten erlangen Sie, indem Sie sich in diesem Baum spezialisieren:\A\A";
}
.lgreen img, .green img {
    display: inline;
    margin: 0;
    vertical-align: middle;
    opacity: 1 !important;
}
@media only screen and (max-width: 800px)  {
    .cat {
        width: 100%;
    }
    .skill:hover .tip {
        position: absolute;
        margin-left: 50%;
        top: auto;
    }
    .skill:hover .tipleft {
        margin-right: 50%;
    }
}
.desc {
    max-height: 4.2em;
    overflow-y: hidden;
    transition-property: all;
	transition-duration: 0.5s;
	transition-timing-function: cubic-bezier(0.5,0.5,0,1);
}
.def_skills {
    max-height: 0;
    visibility: hidden;
} 
.desc.open {
    max-height: 30em;
    height: 17em;
}
.desc.open + .def_skills {
    min-height: 7.5em;
    visibility: visible;
}
.desc.open + .def_skills.textDE {
    min-height: 9.5em;
}
.expand {
    background: linear-gradient(#111,#222);
    display: block;
}
.expand:hover {
    cursor: hand;
    cursor: pointer;
}
.desc h3 {
    font-size: 130%;
}
.virtue {
    display: inline-block;
    height: 5em;
    width: 5em;
    background: grey;
    position: relative;
}
.v-offdef {
    display: inline !important;
}
.v-name {
    text-overflow: clip;
    overflow: hidden;
    max-width: 64px;
    display: inline-block !important;
}
.virtue.empty {
    vertical-align: top;
}
.virtue span.remove_selection {
    display: inline;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
}
.skill.virtue.empty.slot .place {
    font-size: 350%;
    color: #ccc;
}
#floaty {
    position: fixed;
    z-index: 999;
    right: 10px;
    bottom: 20px;
    background-color: #333;
    border-radius: 5%;
    width: 60px;
    height: 60px;
    font-size: 80%;
    opacity: 0.5;
    /* transition: 0.25s; */
    /* border: 1px solid white; */
}
#floaty img {
    margin-bottom: -3px;
}
#floaty:hover, #floaty:active {
    opacity: 0.7;
    cursor: pointer;
}
#floaty.on {
    opacity: 0.9;
    box-shadow: 0 0 15px darkorange;
}
#animate-border {
    height: 62px;
    width: 62px;
}
#animate-border img {
    margin-top: 1px;
    margin-left: auto;
}
#activeText {
    text-align: center;
    margin: auto;
}
#floaty.on #activeText {
    text-shadow: 0 0 10px orange;
}
#floaty.on #animate-border {
    background: linear-gradient(90deg, #aaa 50%, transparent 50%), 
                linear-gradient(90deg, #aaa 50%, transparent 50%), 
                linear-gradient(0deg, #aaa 50%, transparent 50%), 
                linear-gradient(0deg, #aaa 50%, transparent 50%);
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
    background-size: 10px 1px, 10px 1px, 1px 10px, 1px 10px;
    background-position: 0% 0%, 100% 100%, 0% 100%, 100% 0px;
    animation: border-ants 2.5s infinite linear;
}
@keyframes border-ants {
    to {
        background-position: 100% 0%, 0% 100%, 0% 0%, 100% 100%;
    }
  }