/* globalni nastaveni a resety */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a,
a:active,
a:visited {
    color: inherit;
    text-decoration: none;
}

html,
body {
    height: 100%;
    font-family: "Poppins", sans-serif !important;
    font-size: 14px;
    color: #fff;
    overflow: hidden;
}

/* strom */
html {
    background: url("../images/rom.jpg") no-repeat center center #222;
    background-size: cover;
    background-attachment: fixed;
}
body {
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

#bodywrap {
    min-height: 100%;
    min-width: 100vw;
}

h1 {
    text-align: center;
    padding-top: 20px;
    height: 80px;
    width: 100%;
}

main.tree {
}

main.tree:before {
    content: "";
    display: block;
    height: calc(50vh - (10 * 30px) - 40px);
}

.tree div {
    width: 1500px;
    position: relative;
    height: 60px;
    margin: 0 auto;
}

.tree .small-tank {
    position: absolute;
    display: block;
    margin-right: 50px;
}

.new img {
    filter: drop-shadow(0 0 5px black);
}

.tree .t2 {
    left: 150px;
}
.tree .t3 {
    left: 300px;
}
.tree .t4 {
    left: 450px;
}
.tree .t5 {
    left: 600px;
}
.tree .t6 {
    left: 750px;
}
.tree .t7 {
    left: 900px;
}
.tree .t8 {
    left: 1050px;
}
.tree .t9 {
    left: 1200px;
}
.tree .t10 {
    left: 1350px;
}

/*#spg-line:before {content:""; display: block; border: 2px solid white;  border-width: 2px 0 2px 2px; position: absolute; width: 1300px; top: 20px; left: 135px; height: 120px;}
#premlight-line:before {content:""; display: block; border: 2px solid white; position: absolute; width: 455px; top: 20px; left: 285px; height: 60px;}
#light-line:before {content:""; display: block; border: 2px solid white; border-width: 0 0 2px 2px; position: absolute; width: 14px; top: -100px; left: 285px; height: 48px;}
#light-line:after {content:""; display: block; border: 1px solid white; position: absolute; width: 20px; top: 22px; left: 120px; height: 0px;}
/*#premlight-line:after {content:""; display: block; border: 1px solid white; position: absolute; width: 0px; top: -20px; left: 650px; height: 18px;}
#spg-line:after {content:""; display: block; border: 1px solid white; position: absolute; width: 28px; top: 18px; left: 1320px; height: 0px;}
#med-line:before {content:""; display: block; border: 0px solid white; border-width: 0 0 2px 2px; position: absolute; width: 13px; top: -102px; left: 1335px; height: 60px;}
#med-line:after {content:""; display: block; border: 0px solid white; border-width: 0 0 2px 2px; position: absolute; width: 94px; top: -20px; left: 1255px; height: 38px;}
#td-line:before {content:""; display: block; border: 0px solid white; border-width: 2px 2px 0 0; position: absolute;  height: 60px; width: 450px; top: 20px;  left: 585px;}
#td-line:after {content:""; display: block; border: 0px solid white; border-width: 0 0 2px 2px; position: absolute;  height: 180px; width: 1250px; top: 20px;  left: 135px;}
#prem-td-line:before {content:""; display: block; border: 0px solid white; border-width: 2px 0 0 2px; height: 0; position: absolute; width: 950px; top: 20px; left: 435px; height: 60px;}
#prem-td-line:after {content:""; display: block; border: 0px solid white; border-width: 0 0 2px 2px; height: 0; position: absolute; width: 800px; top: 80px; left: 585px; height: 60px;}*/

/* small tank ikona */
.small-tank {
    display: block;
    width: 120px;
    height: 40px;
    border: 1px solid #aaa;
    border-radius: 2px;
    padding: 2px;
    box-shadow: inset 0 0 25px 0 #000;
    background: #665;
}
.small-tank img {
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
/*    object-fit: cover;*/
}
.small-tank t-name {
    font-size: 14px;
    padding-right: 5px;
    display: block;
    position: absolute;
    top: -16;
    width: 100%;
    text-align: right;
}
.small-tank.premium {
    background-color: #983;
    border-color: #983;
}

t-vehicle:target .small-tank {
    position: relative;
}
t-vehicle:target .small-tank.next-upgrade {
    width: 122px;
    height: 66px;
}

.previous-line {
    margin: 50px;
}

t-vehicle:target .small-tank.previous-upgrade {
    margin-left: 50px;
    margin-top: 50px;
    width: 122px;
    height: 66px;
}

.lt > t-name:before {
    content: "LT";
}
.mt > t-name:before {
    content: "MT";
}
.ht > t-name:before {
    content: "HT";
}
.td > t-name:before {
    content: "TD";
}
.rak > t-name:before {
    content: "RAK";
}
.spg > t-name:before {
    content: "SPG";
}
.w > t-name:before {
    content: "W";
}
.t1 > t-name:after {
    content: "I";
}
.t2 > t-name:after {
    content: "II";
}
.t3 > t-name:after {
    content: "III";
}
.t4 > t-name:after {
    content: "IV";
}
.t5 > t-name:after {
    content: "V";
}
.t6 > t-name:after {
    content: "VI";
}
.t7 > t-name:after {
    content: "VII";
}
.t8 > t-name:after {
    content: "VIII";
}
.t9 > t-name:after {
    content: "IX";
}
.t10 > t-name:after {
    content: "X";
}

t-name:before {
    text-align: left;
    font-size: 14px;
    position: absolute;
    left: 0;
}
t-name:after {
    text-align: left;
    font-size: 14px;
    position: absolute;
    left: 20px;
}

.spg.next-upgrade t-name:after {
    left: 30px;
}
.spg.small-tank t-name:after {
    left: 30px;
}

.rak.next-upgrade t-name:after {
    left: 30px;
}
.rak.small-tank t-name:after {
    left: 30px;
}

.tree .small-tank t-name:before {
    font-size: 10px;
}
.tree .small-tank t-name:after {
    font-size: 10px;
    left: 17px;
}

.tree .spg.small-tank t-name:after {
    left: 20px;
}

.tree .rak.small-tank t-name:after {
    left: 20px;
}
.tree .w.small-tank t-name:after {
    left: 10px;
}

/* detail tanku */
.tanks {
    position: absolute;
    top: 0;
    width: 100%;
}
.tanks t-vehicle {
    display: none;
}
.tanks t-vehicle:target {
    display: block;
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
}
t-vehicle:target {
    padding: 0px;
}

.tanks {
    background: url("assets/images/rom.jpg") no-repeat center center rgb(56, 56, 56);
    background-size: cover;
    background-attachment: fixed;
}
t-vehicle:target {
    background: rgba(0, 0, 0, 0.75);
}

t-vehicle:target > a.hide-link {
    position: absolute;
    top: 15px;
    left: 30px;
    width: 60px;
    height: 25px;
    z-index: 500;
    border: 1px solid #ccc;
    border-radius: 2px;
    box-shadow: inset 0 0 5px 0 #000;
    background: #664;
}
t-vehicle:target > a.hide-link:after {
    content: "BACK";
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 16px;
    position: relative;
    top: 2px;
    left: 11px;
}

t-vehicle:target > t-name {
    text-align: left;
    font-weight: bold;
    font-size: 20px;
    position: absolute;
    width: 100%;
    margin-top: 8px;
}

.tank-button {
    margin: 10px 50px 0px;
}

.tank-type-heading {
    margin: 55px 50px 20px 50px;
}

t-vehicle:target a:active {
    outline: none;
}
t-vehicle:target .image {
    width: 200px;
    height: auto;
    display: block;
    margin: 55px 50px 20px 50px;
}
t-vehicle:target .image img {
    width: 250px;
    height: auto;
    min-height: 100px;
    display: block;
    border: 1px solid #bbb;
    border-radius: 2px;
    box-shadow: inset 0 0 50px 0 #000;
    background: url("../images/rom.jpg") no-repeat center center #222;
    background-size: cover;
    padding: 20px 20px;
}
t-vehicle.premium:target > img {
    background-color: #983;
    border-color: #983;
}
t-vehicle:target > t-name:before {
    position: absolute;
    top: 55px;
    left: 55px;
    z-index: 100;
}
t-vehicle:target > t-name:after {
    position: absolute;
    top: 55px;
    left: 75px;
    z-index: 100;
}

t-vehicle.spg:target > t-name:after {
    left: 85px;
}
t-vehicle.rak:target > t-name:after {
    left: 85px;
}

t-vehicle:target > p.short-description {
    width: 300px;
    margin-bottom: 20px;
    padding-left: 15px;
}

t-vehicle:target > t-properties {
    display: block;
    width: 250px;
    font-family: "Poppins", sans-serif !important;
    font-size: 12px;
    border: 2px solid #fff;
    margin-left: 50px;
}
t-vehicle:target > t-properties li {
    display: block;
    position: relative;
    left: 120px;
    width: 200px;
}
t-vehicle:target > t-properties li:before {
    position: absolute;
    width: 100px;
    left: -105px;
    text-align: right;
    display: block;
    content: attr(property) ": ";
    color: #ddd;
}

.researched-from {
    display: block;
    width: 300px;
}
.researched-from .small-tank {
    margin: 5px auto 20px auto;
    width: 122px;
    height: 50px;
}
.researched-from:before {
    content: "Predecesors:";
    padding-bottom: 5px;
    display: block;
    margin-top: 30px;
    padding-left: calc(25% - 15px);
}

.modules {
    position: absolute;
    top: 122px;
    left: 375px;
    z-index: 5;
}
.modules ol {
    display: block;
    width: 100%;
}

.modules t-module {
    width: 66px;
    height: 66px;
    border-radius: 2px;
    border: 1px solid #aaa;
    box-shadow: inset 0 0 25px 0 #000;
    background: url("gun.png") no-repeat center center #665;
}
.modules t-module {
    display: inline-block;
    margin: 20px;
    position: relative;
}

.modules ol.guns t-module {
    background-image: url("../img/wot/tech-tree/tech-tree-img/gun.png");
}
.modules ol.turrets t-module {
    background-image: url("../img/wot/tech-tree/tech-tree-img/turret.png");
}
.modules ol.radios t-module {
    background-image: url("../img/wot/tech-tree/tech-tree-img/radio.png");
}
.modules ol.engines t-module {
    background-image: url("../img/wot/tech-tree/tech-tree-img/engine.png");
}
.modules ol.tracks t-module {
    background-image: url("../img/wot/tech-tree/tech-tree-img/tracks.png");
}
.modules ol.wheels t-module {
    background-image: url("../img/wot/tech-tree/tech-tree-img/wheel.png");
}
/*.modules ol.wheels t-module {background-image: url("img/icons/wheels.html");}*/

t-module t-name {
    display: block;
    margin-top: 68px;
    text-align: center;
    width: 102px;
    height: 40px;
    position: absolute;
    left: -20px;
}

t-module li {
    display: none;
}

t-module:hover t-properties {
    z-index: 100;
    display: block;
    position: absolute;
    top: 50px;
    left: 50px;
    min-width: 350px;
    border: 1px solid #666;
    background-color: #333;
    padding: 15px 10px;
    font-family: "Poppins", sans-serif !important;
    font-family: Verdana, sans-serif;
}
t-module:hover t-properties li {
    display: block;
    position: relative;
    left: 140px;
}
t-module:hover t-properties li:before {
    position: absolute;
    width: 135px;
    left: -140px;
    text-align: right;
    display: block;
    content: attr(property) ": ";
    color: #aaa;
}

.modules t-module:before {
    content: "";
    border: 1px solid #ddd;
    display: block;
    height: 0;
    width: 42px;
    position: absolute;
    top: 32px;
    right: 100%;
}
.modules:before {
    content: "";
    border: 1px solid #ddd;
    display: block;
    height: calc(100% - 112px);
    width: 0;
    position: absolute;
    top: 55px;
    left: -23px;
}

.modules t-module[data-reposition-vertical="-1"] {
    top: -109px;
}
.modules t-module[data-reposition-vertical="1"] {
    top: 109px;
}
.modules t-module[data-reposition-horizontal="-1"] {
    left: -109px;
}
.modules t-module[data-reposition-horizontal="-2"] {
    left: -218px;
}
.modules t-module[data-reposition-horizontal="1"] {
    left: 109px;
}
.modules t-module[data-reposition-horizontal="2"] {
    left: 218px;
}

.modules t-module[data-upgrade-multi="b"]:before {
    content: "";
    border: 2px solid #ddd;
    border-width: 0 0 2px 2px;
    display: block;
    height: 109px;
    width: 20px;
    position: absolute;
    top: -77px;
    right: 100%;
}
.modules t-module[data-upgrade-multi="a"]:before {
    content: "";
    border: 2px solid #ddd;
    border-width: 2px 0 0 2px;
    display: block;
    height: 109px;
    width: 20px;
    position: absolute;
    top: 32px;
    right: 100%;
}

a.small-tank.next-upgrade {
    position: absolute;
    left: 950px;
    top: 0;
    overflow: initial;
}
.next-upgrade:before {
    content: "";
    border: 1px solid #ddd;
    display: block;
    height: 0;
    width: 400px;
    position: absolute;
    top: 32px;
    right: 100%;
}
a.small-tank.next-upgrade[data-upgrade-multi="b"]:before {
    content: "";
    border: 2px solid #ddd;
    border-width: 0 0 2px 2px;
    display: block;
    height: 109px;
    width: 50px;
    position: absolute;
    top: -77px;
    right: 100%;
}
a.small-tank.next-upgrade[data-upgrade-multi="c"]:before {
    content: "";
    border: 2px solid #ddd;
    border-width: 0 0 2px 2px;
    display: block;
    height: 109px;
    width: 50px;
    position: absolute;
    top: -77px;
    right: 100%;
}
a.small-tank.next-upgrade[data-upgrade-longer="1"]:before {
    width: 500px;
}

a.small-tank.next-upgrade[data-upgrade-line="1"] {
    top: 142px;
}
a.small-tank.next-upgrade[data-upgrade-line="1"][data-upgrade-multi="b"] {
    top: 179px;
}
a.small-tank.next-upgrade[data-upgrade-line="1"][data-upgrade-multi="c"] {
    top: 288px;
}
a.small-tank.next-upgrade[data-upgrade-line="2"] {
    top: 179px;
}
a.small-tank.next-upgrade[data-upgrade-line="2"][data-upgrade-multi="b"] {
    top: 288px;
}
a.small-tank.next-upgrade[data-upgrade-line="4"] {
    top: 397px;
}
a.small-tank.next-upgrade[data-upgrade-line="5"] {
    top: 506px;
}

a.t10.small-tank.next-upgrade[data-upgrade-line="2"]:before {
    width: 300px;
}
a.t10.small-tank.next-upgrade[data-upgrade-line="2"][data-upgrade-multi="b"]:before {
    width: 100px;
}

t-module.heavy {
    background-color: #755;
}
t-module.new {
    border-color: #45a;
    box-shadow: 0 0 15px 0 #45a, inset 0 0 25px 0 #000;
}
.small-tank.new {
    box-shadow: 0 0 15px 0 #33d, inset 0 0 25px 0 #000;
}

t-vehicle:target section.description {
    display: block;
    position: absolute;
    top: -100%;
    right: 0;
    width: 30%;
    height: 100%;
    background: #333;
    overflow: auto;
    background: #333;
    padding: 15px;
    box-shadow: 0 2px 5px 0 #000;
}
t-vehicle:target section.description:after {
    content: "DETAILS";
    font-size: 16px;
    display: block;
    text-align: center;
    height: 36px;
    padding: 10px 0;
    width: 400px;
    position: fixed;
    bottom: 0px;
    right: 0;
    background: #333;
    border-radius: 10px 0 0 0px;
    box-shadow: 0 2px 5px 0 #000;
}
t-vehicle:target section.description:hover {
    top: 0;
}
t-vehicle:target section.description:hover:after {
    display: none;
}

.description t-name.full-name {
    font-size: 24px;
    display: block;
    font-weight: bold;
}
.description t-name.short-name {
    font-size: 18px;
    display: block;
    margin-bottom: 15px;
}
.description p {
    font-size: 14px;
    font-family: "Poppins", sans-serif !important;
    line-height: 1.3em;
    text-align: justify;
    margin-bottom: 10px;
}
.description section:before {
    content: attr(name);
    display: block;
    font-family: "Poppins", sans-serif !important;
    font-size: 20px;
    font-weight: bold;
    color: #eea;
    margin: 15px 0 5px 0;
}

a.tree-about {
    position: absolute;
    top: 15px;
    left: 30px;
    width: 60px;
    height: 25px;
    z-index: 10;
    border: 1px solid #ccc;
    border-radius: 2px;
    box-shadow: inset 0 0 5px 0 #000;
    padding-top: 4px;
    background: #664;
    font-weight: bold;
    text-align: center;
}

a.tree-about2 {
    position: absolute;
    top: 15px;
    left: 100px;
    width: 60px;
    height: 25px;
    z-index: 10;
    border: 1px solid #ccc;
    border-radius: 2px;
    box-shadow: inset 0 0 5px 0 #000;
    padding-top: 4px;
    background: #664;
    font-weight: bold;
    text-align: center;
}

a.tree-link {
    position: absolute;
    top: 90px;
    left: -5px;
    width: 190px;
    height: 25px;
    border: 1px solid #ccc;
    border-width: 1px 1px 1px 0;
    border-radius: 0 2px 2px 0;
    box-shadow: inset 0 0 5px 0 #000;
    padding-top: 3px;
    background: #664;
    font-weight: bold;
    text-align: left;
    padding-left: 15px;
}

#about {
    display: none;
}

#about:target {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    z-index: 100;
    background: #222;
    font-family: "Poppins", sans-serif !important;
    overflow: auto;
    display: block;
}

#about:target h1 {
    margin-top: 50px;
}
#about:target .hide-link {
    position: absolute;
    top: 15px;
    left: 30px;
    width: 60px;
    height: 25px;
    z-index: 10;
    border: 1px solid #ccc;
    border-radius: 2px;
    box-shadow: inset 0 0 5px 0 #000;
    padding-top: 4px;
    background: #664;
    font-family: "Poppins", sans-serif !important;
    font-weight: bold;
    text-align: center;
}

#about:target p {
    line-height: 1.35em;
    font-size: 16px;
}
#about:target > * {
    margin-bottom: 2em;
}
#about:target p a {
    text-decoration: underline;
}
#about:target p a:hover {
    color: #aaa;
}
#about:target li {
    margin-left: 30px;
    font-size: 16px;
}

.bad {
    background-color: #812;
    border-color: #601 !important;
}
t-module.bad.new {
    box-shadow: 0 0 0 0 #601, inset 0 0 25px 0 #000;
}
.bad:target > img,
.bad:target .image img {
    border-color: #812;
}

section.description a {
    text-decoration: underline;
}

/*sketchfab*/
.sketchfab-embed-wrapper {
    margin: 20px auto;
    width: 320px;
}

@media all and (min-width: 1570px) {
    t-vehicle:target section.description {
        top: 0;
        /*LAST UPDATE*/

/*        width: calc(100% - 1170px);*/

        /*END LAST UPDATE*/
    }
    t-vehicle:target section.description:after {
        display: none;
    }
}

.set-vertical-line::after {
    content: "";
    border: 1px solid #ddd;
    display: block;
    width: 0;
    height: 109px;
    position: absolute;
    top: 32px;
    left: -52px;
}
.set-horizontal-line::before {
    content: "";
    border: 1px solid #ddd;
    display: block;
    height: 0;
    width: 52px;
    position: absolute;
    top: 32px;
    right: 100%;
}

.back-button {
    position: absolute;
    top: 122px;
    left: 375px;
    z-index: 5;
}