html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    font-size: 100%;
    vertical-align: baseline;
    box-sizing: border-box;
}



body {
    background-image: url('../img/BG_alap.png');
    aspect-ratio: 16 / 9;
    backdrop-filter: blur(20px);
    position: relative;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    height: 100vh;
    overflow: hidden;

}

.map-container {
    aspect-ratio: 1920/1080;
    position: relative;
    background-image: url('../img/1.png');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
    padding: 0 !important;
}
#road-map, #rail-map, #city-pointer {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transform: translate(-50%, -50%);
}

.language-container {
    position: absolute;
    top: 3%;
    right: 1%;
    width: 8%;
    height: 10%;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.lang-hu {
    width: 50px;
    height: 50px;
    background: url("../img/SVG/hun-flag.svg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 50% 0 0 50%;
    cursor: pointer;

}
.lang-en {
    width: 50px;
    height: 50px;
    background: url("../img/SVG/eng-flag.svg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 0 50% 50% 0;
    cursor: pointer;
}

.main-title-hu {
    position: absolute;
    background: url("../img/4.png");
    background-size: contain;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    top: -2%;
    opacity: 1;
    transform: translateY(0rem);
    transition: all 1s;
    z-index: 1;
}

.main-title-en {
    position: absolute;
    background: url("../img/5.png");
    background-size: contain;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    top: -2%;
    opacity: 0;
    transform: translateY(-10rem);
    transition: all 1s;
    z-index: 1;
}

.legend-container {
    position: absolute;
    bottom: 5%;
    right: 5%;
    z-index: 2;
}
.legend-container img {
    width: 200px;
    position: absolute;
    bottom: 0%;
    right: 0%;
}

#legend-en {
    opacity: 0;
}
#legend-hu {
    opacity: 1;
}


.backdrop {
    position: fixed;
    top:0;
    left:0;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.8);
    z-index: -1;
    opacity: 0;
    transition: all 500ms;
}
.move-forward {
    z-index: 101;
    opacity: 1;
}
.move-back {
    z-index: -1;
    opacity: 0;
}

.add {
    display: block !important;
}
.remove {
    display: none !important;
}

.disappear {
    opacity: 0 !important;
}
.appear {
    pointer-events: initial !important;
    opacity: 1 !important;
}

.border {
    border: 1px solid black;
}

@media screen and (max-width: 1480px) {
    .legend-container {
        right: 3%;
    }
    .legend-container img{
        width: 160px;
    }
}

@media screen and (max-width: 1200px) {
    .language-container {
        width: 15%;
        top:2%;
    }

    .lang-en {
        height: 40px;
    }
    .lang-hu {
        height: 40px;
    }

    .legend-container img{
        width: 140px;
    }
}

@media screen and (max-width: 1050px) {
    .legend-container img{
        width: 120px;
    }
}
@media screen and (max-width: 900px) {
    .legend-container img{
        width: 110px;
    }
}

@media screen and (max-width: 850px){

    .lang-en {
        height: 50px;
    }
    .lang-hu {
        height: 50px;
    }

    .language-container {
        flex-direction: column;
        align-items: flex-end;
        width: 15%;
        height: 25%;
        right: 0;
        top: 65%;
    }
    .lang-en {
        border-radius: 50% 0 0 50%;
        margin-top: .5rem;
    }

    .legend-container {
        display: none;
    }
}

@media screen and (max-width: 600px){
    .language-container {
        height: 35%;
    }

}
