@import url('https://fonts.googleapis.com/css?family=Alata|Glass+Antiqua&display=swap&subset=latin-ext');
@import url('https://fonts.googleapis.com/css?family=Great+Vibes&display=swap&subset=latin-ext');
@import url('http://fonts.cdnfonts.com/css/bookman-old-style');
@import url('https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap');

/* STANDARTINIAI */

*, *:before, *:after {
    box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
	font-family: 'Alata', sans-serif;
    font-size: 1.1rem;
    overflow: hidden;
}

a {
	color: inherit;
	text-decoration: none;
}

h1, h2 {
    font-family: 'Bookman Old Style', sans-serif;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
}

h3 {
    color: #9c2845;
    margin: .5rem 0 0;
}

    h3.data {
        color: #663853;
        border-bottom: 6px solid #fdac4c;
        margin-top: 2rem;
        text-align: center;
    }

h4 {
    position: fixed;
    width: 100%;
    color: #fdac4c;
    text-shadow: 0.35rem 0.25rem 1rem rgb(0 0 0 / 30%);
    font-family: 'Bitter', serif;
    font-size: 5vmin;
    line-height: 8vh;
    /* font-weight: 200; */
    text-align: center;
    left: 0;
    margin: 1.5vh 0;
}

/* FORMA */

.krovimas {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    background-color: #ecc985;
    color: #9c2845;
    overflow: hidden;
    z-index: 999;
}

.krovimas h1 {
    font-family: 'Bitter', serif;
    text-shadow: .35rem .25rem 1rem rgba(0, 0, 0, 0.3);
    font-size: 6vmin;
    font-weight: 200;
    text-align: center;
}

.krovimas p {
    font-size: 4vmin;
    text-shadow: .35rem .25rem .5rem rgba(0, 0, 0, 0.3);
}

.fonas {
    width: 100vw;
    min-height: -webkit-fill-available;
    height: 100vh;
    position: relative;
    display: flex;
    background: black;
    overflow-x: auto;
    overflow-y: hidden;
    /*overflow-x: scroll;
    overflow-y: hidden;
	justify-content: flex-end;
	background-image: url('media/zemelapis.png');
	background-repeat: no-repeat;
	background-position: center;
	background-size: auto 100vh;
    z-index: -1;*/
    -webkit-overflow-scrolling: touch;
}

.zemelapis {
    height: 100vh;
    /*height: 100%; GALI NEVEIKTI */
    width: auto;
    z-index: -1;
}

.zemelapissulietas {
    position: absolute;
    height: 100%;
    width: auto;
    left: 0;
    display: none;
    z-index: 0;
}

.wrapperis {
    position: relative;
    height: 100%;
    margin: 0 auto;
}

    .wrapperis.info {
        position: fixed;
        display: flex;
        width: 100vw;
        overflow-y: scroll;        
        z-index: -1;
    }

/* ZEMELAPIO TURINYS */

.legenda-hamburgeris {
    display: none;
    position: fixed;
    width: 15vh;
    height: 15vh;
    align-items: center;
    margin: 3vh 4vh;
    bottom: 0;
    z-index: 1;
    cursor:pointer;
    user-select: none; /* Standard */    
}

.legenda-hamburgeris:hover div, .legenda-hamburgeris:hover div::before, .legenda-hamburgeris:hover div::after  {
    background: #d1b62b;
}

.legenda-hamburgeris div {
    width: 100%;
    height: 2vh;
    background: #f1e3c3;
    border-radius: 100rem;
    transition: background 200ms;
}

.legenda-hamburgeris div::before, .legenda-hamburgeris div::after {
    content: "";
    position: absolute;    
    width: 100%;
    height: 2vh;
    background: #f1e3c3;
    border-radius: 100rem;
    transition: background 200ms;     
}

.legenda-hamburgeris div::before {
    top: 2vh;
}

.legenda-hamburgeris div::after {
    bottom: 2vh;
}

.legenda {
    position: absolute;
    margin: 0px 3rem .5rem 3rem;
    bottom: 0;
    user-select: none;
}

    .legenda h1 {
        font-family: 'Bitter', serif;
        font-size: 3rem;
        color: #f1e3c3;
        text-shadow: 0px 0px 1rem #cae0db, 0px 0px .25rem #cae0db;
        padding-left: 0.5rem;
    }

    .legenda p {
        color: white;
        width: fit-content;
        margin: .25rem;
        padding: 0 .5rem 0 0;
        cursor: pointer;
    }

    .legenda p::before {
        content: attr(data-legenda);
        position: relative;
        display: inline-block;
        width: 1.75rem;
        height: 1.75rem;
        background: #f1e3c3;
        color: #ecc985;
        font-size: 1.2rem;
        margin-right: .5rem;
        border-radius: 100%;
        text-align: center;    
    }

    .legenda .arkliai::before, .legenda .miestelis::before, .legenda .avis::before, .legenda .batas::before {
        color: rgba(0,0,0,0.0);
        background-size: 70%;
        background-repeat: no-repeat;
        background-position: center;
    }

    .legenda .batas::before {
        background-image: URL("media/batas.svg");
    }

    .legenda .avis::before {
        background-image: URL("media/avis.svg");
    }

    .legenda .miestelis::before {
        background-image: URL("media/miestelis.svg");
    }

    .legenda .arkliai::before {
        background-image: URL("media/arkliai.svg");
    }

    .paryskintas {
        animation: mirksejimas 1.5s infinite;
    }

    .paryskintas::after {
        animation: mirksejimas 1.5s infinite;
    }

    @keyframes mirksejimas {
        0% {background: #d1b62b;}
        50% {background: #f7d530;}
        100% {background: #d1b62b;}
    }

    .paryskintas-tekstas {
        animation: mirksejimas-tekstas 1.5s infinite;
        border-radius: 100rem;
    }

    @keyframes mirksejimas-tekstas {
        0% {background: #d1b62b;}
        50% {background: #f7d530;}
        100% {background: #d1b62b;}
    }

    .legenda-cols {
        display: inline-flex;
        flex-wrap: wrap;
    }

/* MYGTUKAI */

.btn {
	position: absolute;
	display: flex;
    justify-content: center;
    align-items: center;
    width: 8vh;
    height: 8vh;
    background: #9c2845;
    border-radius: 100%;
    color: #ecc985;
    z-index: 1;
    cursor:pointer;
    transition: background 200ms;
    user-select: none; /* Standard */
}

    .btn:hover, .btn:hover::after {
        background: #d8646a;
        color: #ecc985;
    }

    .btm::after, .top::after, .btm-rht::after, .top-rht::after, .btm-lft::after, .top-lft::after {
        content: "";
        position: absolute;
        width: 4vh;
        height: 4vh;
        background: #9c2845;
        align-self: baseline;    
    }

    .btn span {
        /*position: absolute;*/
        font-size: 2rem;
        z-index: 1;
    }

    .arkliai::after, .avis::after {
        content: none;
    }

    .btm::after {
        transform: rotate(45deg);
        left: 2vh;
        top: 4.8vh;    
        transition: background 200ms;
    }

    .btm-lft::after {
        left: 0vh;
        top: 4vh;
        transition: background 200ms;
    }    

    .btm-rht::after {
        left: 4vh;
        top: 4vh;
        transition: background 200ms;
    }      

    .top-rht::after {
        left: 4vh;
        transition: background 200ms;
    }

    .top-lft::after {
        left: 0vh;
        transition: background 200ms;
    }

    .lft::after {
        transform: rotate(45deg);
        left: -0.8vh;
        top: 2vh;
        transition: background 200ms;   
    }

    .rht::after {
        transform: rotate(45deg);
        left: 4.8vh;
        top: 2vh;
        transition: background 200ms;
    }

    .top::after {
        transform: rotate(45deg);
        left: 2vh;
        top: -0.8vh;
        transition: background 200ms;
    }

    .arkliai img, .miestelis img, .avis img, .batas img, .sa img {
        width: auto;
        height: 70%;
        z-index: 2;
    }

        .arkliai span, .miestelis span, .avis span, .batas span, .sa span {
            display: none;
        }

/* PROGRAMOS TURINYS */

.informacijoslentele {
	display: none;
    width: 40rem;
    color: #9c2845;
    background-color: #ebc885;
    background-repeat:repeat;
    z-index: 1;
    margin: auto;
    padding: 1rem;
	border-radius: .4rem;
	box-shadow: 0rem 2rem 6rem rgba(0,0,0,0.6);
}

.tekstocontaineris {
    height: 100%;
}

    .tekstocontaineris h2 {
        align-self: center;
    }

.atgal-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.atgal {
    background: #9c2845;
    border-radius: 8rem;
    color: #ffffff;
    margin: 1rem 0 .5rem;
    padding: .75rem 6rem;
    text-align: center;
    cursor:pointer;
    transition: background 200ms;
    user-select: none; /* Standard */
}

.atgal:hover {
    background: #d8646a;
    color: #ffffff;
}

.tekstai {
    display: none;
}

.tekstai-isjungtas, .btn-inactive {
    display: none !important;
}

    .tekstai p {
        margin-bottom: 0.5rem;
    }

    .tekstai ul {
        text-align: center;
        list-style-type: none;
        color: #4c4c4c;
    }

    .tekstai h1 {
        text-align: center;
        font-size: 3rem;
        background: #fdac4c;
        border-radius: 1rem;
    }

    .tekstai h2::before {
        content: attr(data-legenda);
        position: relative;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        font-size: 1.75rem;
        width: 3rem;
        height: 3rem;
        border: solid .2rem #9c2845; 
        background: #ecc985;
        color: #9c2845;
        margin-right: 1rem;
        border-radius: 100%;
        text-align: center;
    }

    .tekstai .miestelis::after, .tekstai .arkliai::after, .tekstai .avis::after, .tekstai .batas::after, .tekstai .sa::after {
        color: rgba(0,0,0,0.0);
        background-size: 70%;
        background-repeat: no-repeat;
        background-position: center;
    }

    .tekstai .batas::after {
        background-image: URL("media/batas.svg");
    }

    .tekstai .avis::after {
        background-image: URL("media/avis.svg");
    }

    .tekstai .miestelis::after {
        background-image: URL("media/miestelis.svg");
    }

    .tekstai .arkliai::after {
        background-image: URL("media/arkliai.svg");
    }

    .tekstai .sa::after {
        background-image: URL("media/sa.svg");
    }

    .centravimas p, .centravimas h3 {
        text-align: left;
    }

    p.papildomas-tekstas:first-of-type {
        margin-top: 1rem;
    }

    p.papildomas-tekstas {
        color: #b9b9b9;
        text-align: center;
    }

    a.isorine-nuoroda {
        padding: .2rem .3rem;
        background: #ffe9c6;
        border-radius: .25rem;
        transition: background 200ms;
    }

    a:hover.isorine-nuoroda {
        background: #f1e3c3;
        color: #d9c5a4;
    }

.pilnastekstas {
    margin-bottom: 1rem;
    padding: 1rem;
}

.pilnastekstas h3 {
    margin-top: .5rem;
}

.cols {
    display: flex;
    justify-content: space-between;
    width: 100%;    
}

.col1, .col2 {
    width: 49%;
}

.hamb-atidaryta div {
    width: 0px;
}

.hamb-atidaryta div::before {
    top: initial;
    transform: rotate(45deg);
}

.hamb-atidaryta div::after {
    bottom: initial;
    transform: rotate(-45deg);
}

.dienupasirinkimas {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    left: 0;
    right: 0;
    bottom: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.dienupasirinkimas button, .dienupasirinkimas div {
    padding: 0.5rem 1rem;
    font-size: 2rem;
}

.dienupasirinkimas .inactive {
    background-color: #737373;
    pointer-events: none;
}

.dienupasirinkimas h5 {
    font-size: 1.5rem;
    color: #ecc985;
    margin-bottom: .5rem;
}

.dienupasirinkimasMygtukai {
    display: flex;
}

.dienupasirinkimasMygtukai button:hover {
    background-color:#ffe7b8;
}

.dienupasirinkimasMygtukai .pazymetas {
    background-color: #ffe7b8;
    color: #663853;
    border: none; 
    cursor: auto;
    font-weight:600;
    text-decoration: underline;
}

.dienupasirinkimas button {
    background-color:#fdac4c;
    color: #663853;
    border: none;
    transition: background 200ms;
    cursor: pointer;
}

.dienupasirinkimasMygtukai .kalba {
    padding: 0.5rem 0.5rem;
}

.dienupasirinkimasMygtukai .kalba div {
    border-radius: .3rem;    
}

.kalbos-mygtukas {
    margin-left: 0.2rem;
}

.dienupasirinkimasMygtukai .kalba a {
    color: #663853;
    border-radius: .3rem;  
    transition: background 200ms;
}

.dienupasirinkimasMygtukai .kalba a:hover {
    background-color: #ffe7b8;
}

.dienupasirinkimas a {
    display: flex;
}

.dienupasirinkimas button.m1 {
    border-radius: .5rem 0rem 0rem .5rem;
    border-right: none;
}

.dienupasirinkimas button.m2 {
    border-radius: 0rem .5rem .5rem 0rem;
    border-left: 1px solid #ecc985;
}

.visaprograma {
    display: flex;
    align-items: center;
    position: relative;
    background-color: #ecc985;
    border: none;
    border-radius: 0.5rem;
    margin-left: 0.5rem;
    transition: background 200ms;
}

.visaprograma:hover {
    background-color:#ffe7b8;
    cursor: pointer;
}

.visaprograma span {
    color: #663853;
    margin-bottom: 0.2rem;
}

.visaprograma img {
    width: 4vh;
}

.kalba {
    display: flex;
    align-items: center;
    position: relative;
    background-color: #fdac4c;
    border: none;
    border-radius: 0.5rem;
    margin-left: 0.5rem;
    transition: background 200ms;
}

.kalba .pazymetas {
    background-color: #ebc885;
    color: #663853;
    border: none;
    cursor: auto;
    font-weight: 600;
}

/* MAX HEIGHT */

@media screen and (max-height: 820px) {
    .legenda-hamburgeris {
        display: flex;
    }

    .legenda {
        display: none;
        width: 90%;
        height: 100%;
        background-image: url(media/fonas_parch.jpg);
        margin: 0;
        padding: 2rem 0rem 10rem 0rem;
        box-shadow: 4rem 0rem 4rem rgba(0,0,0,0.4);
        z-index: 998; 
        overflow-y: scroll;        
    }

    .legenda h1 {
        text-shadow: none;
    }

    .legenda p {
        color: #000;
        font-size: 4.5vmin;
        width: fit-content;
        margin: .75rem .5rem;
        padding: 0 1rem 0 0;
        cursor: pointer;
    }

    .legenda p::before {
        font-size: 1.75rem;
        width: 2.5rem;
        height: 2.5rem;
        border: solid .2rem #ecc985;
        font-size: 1.5rem;
    }

    .legenda-hm-uzdarymas {
        background: #ecc985;
        border-radius: .25rem;
        box-shadow:.25rem .25rem .5rem rgba(0, 0, 0, 0.3);
    }

    .dienupasirinkimas h5 {
        display: none;
    }
}

@media screen and (max-height: 650px) {
	body {
		font-size: 1rem;
    }

    h1 {
        padding: 1rem;
        font-size: 3rem;
    }

        .btn {
            width: 10vh;
            height: 10vh;
        }
    
        .btn::after {
            width: 5vh;
            height: 5vh;
        }
    
        .btm::after {
            left: 2.5vh;
            top: 6vh;
        }
    
        .btm-lft::after {
            left: 0vh;
            top: 5vh;
        }
    
        .btm-rht::after {
            left: 5vh;
            top: 5vh;
        }
    
        .top-rht::after {
            left: 5vh;
        }
    
        .lft::after {
            left: -1vh;
            top: 2.5vh;
        }
    
        .top::after {
            left: 2.5vh;
            top: -1vh;
        }
    
        .rht::after {
            left: 6vh;
            top: 2.5vh;
        }

        .dienupasirinkimas {
            flex-direction: row;
            margin: 1rem;
        }

        .dienupasirinkimas h5 {
            margin-bottom: 0rem;
            margin-right: 1rem;
        }

        .dienupasirinkimas {
            bottom: 0.2rem;
            margin: 0.75rem;
            margin-bottom: 0.2rem;
        }

        .dienupasirinkimas button, .dienupasirinkimas div {
            padding: 1vh 3vh;
            font-size: 5vh;
        }
}

@media screen and (max-height: 470px) {
    h1 {
        padding: .5rem;
        font-size: 1.5rem;
    }

    .legenda p {
        margin: .25rem .2rem;
    }

    .legenda p::before {
        font-size: 1.25rem;
        width: 2rem;
        height: 2rem;
    }
}

@media screen and (max-height: 350px) {
    h1 {
        padding: .25rem;
        font-size: 2rem;
    }

    .legenda {
        width: 100%;
        height: 100%;
        overflow-y: auto;
    }

    .legenda p {
        font-size: 1rem;        
        margin: .25rem .2rem;
    }

    .legenda p::before {
        font-size: .75rem;
        width: 1.25rem;
        height: 1.25rem;
    }

    .btn span {
        font-size: 1rem;
    }
}

@media screen and (max-height: 280px) {
    .legenda-hamburgeris {
        right: 1rem;
    }

    .btn span {
        font-size: 1rem;
    }
}

/* MAX WIDTH */

@media screen and (max-width: 700px) {
    .informacijoslentele {
        width: auto;
    }

    .cols {
        flex-direction: column;
        justify-content: space-between;
        width: 100%;    
    }
    
        .col1, .col2 {
            width: 100%;
        }

    .visaprograma span {
        display: none;
    }

    .dienupasirinkimas button, .dienupasirinkimas div {
        font-size: 1.5rem;
    }
}

/* TABLETS */

@media only screen 
  and (min-device-width: 813px) 
  and (max-device-width: 1366px) 
  and (orientation: portrait) 
  and (-webkit-min-device-pixel-ratio: 2) {
    h1 {
        padding: .5rem;
        font-size: 2rem;
    }

    .legenda-hamburgeris.legenda-hm-uzdarymas {
        position: relative;
    }

    .legenda-hamburgeris {
        display: flex;
        position: fixed;
    }

        .legenda {
            display: none;
            position: fixed;
            width: 100vw;
            min-height: 100%;
            background: white;
            margin: 0;
            padding: 1rem;
            box-shadow: 4rem 0rem 4rem rgba(0,0,0,0.4);
            top: 0;
            left: 0;
            overflow-y: scroll;
            z-index: 998;          
        }

        .legenda h1 {
            font-size: 6rem;
            margin: 0 0 1.5rem 0;
            text-shadow: none;
            text-align: center;           
        }

        .legenda p {
            font-size: 2.5rem;
            width: fit-content;
            margin: 2rem 1rem;
            padding: .25rem;
        }

        .legenda p::before {
            font-size: 2.75rem;
            width: 4rem;
            height: 4rem;
        }   

    .informacijoslentele {
        font-size: 2rem;
        width: auto;
        max-width: 100%;
    }

        .tekstocontaineris h2 {
            font-size: 4rem;
        }

        .tekstai h2::after {
            width: 4rem;
            height: 4rem;
        }
}

@media only screen 
  and (min-device-width: 813px) 
  and (max-device-width: 1366px) 
  and (orientation: landscape) 
  and (-webkit-min-device-pixel-ratio: 2) {
    h1 {
        padding: .5rem;
        font-size: 2rem;
    }

    .legenda-hamburgeris.legenda-hm-uzdarymas {
        position: relative;
    }

    .legenda-hamburgeris {
        display: flex;
        position: fixed;
    }

        .legenda {
            display: none;
            position: fixed;
            width: 100vw;
            min-height: 100%;
            background: white;
            margin: 0;
            padding: 1rem;
            box-shadow: 4rem 0rem 4rem rgba(0,0,0,0.4);
            top: 0;
            left: 0;
            overflow-y: scroll;
            z-index: 998;          
        }

        .legenda h1 {
            font-size: 4rem;
            margin: 0 0 1rem 0;
            text-shadow: none;
            text-align: center;          
        }

        .legenda p {
            font-size: 2rem;
            width: fit-content;
            margin: 1rem .5rem;
            padding: .25rem;
        }

        .legenda p::before {
            font-size: 2.75rem;
            width: 4rem;
            height: 4rem;
        } 
        
    .informacijoslentele {
        font-size: 2rem;
        width: auto;
        max-width: 100%;
    }

        .tekstocontaineris h2 {
            font-size: 4rem;
        }

        .tekstai h2::after {
            width: 4rem;
            height: 4rem;
        }
}

/* MOBILE */

@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 812px) 
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: portrait) { 
    h1 {
        padding: .5rem;
        font-size: 2rem;
    }

    .legenda-hamburgeris.legenda-hm-uzdarymas {
        position: relative;
    }

    .legenda-hamburgeris {
        display: flex;
        position: fixed;
    }

        .legenda {
            display: none;
            position: fixed;
            width: 100vw;
            min-height: 100%;
            background: white;
            margin: 0;
            padding: 1rem;
            box-shadow: 4rem 0rem 4rem rgba(0,0,0,0.4);
            top: 0;
            left: 0;
            overflow-y: scroll;
            z-index: 998;          
        }

        .legenda h1 {
            text-shadow: none;
            text-align: center;            
        }

        .legenda p {
            font-size: 1.25rem;
            width: fit-content;
            margin: .75rem .5rem;
            padding: .25rem;
        }

        .legenda p::before {
            font-size: 1.25rem;
            width: 2rem;
            height: 2rem;
        }    

        .dienupasirinkimas button, .dienupasirinkimas div {
            padding: 1rem;
            font-size: 1rem;
        }

        .dienupasirinkimas {
            bottom: 0.2rem;
            margin: 0.75rem;
            margin-bottom: 0.2rem;
        }

        .visaprograma span {
            display: none;
        }
}

@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 812px) 
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: landscape) { 
    h1 {
        padding: .5rem;
        font-size: 2rem;
    }

    .legenda-hamburgeris.legenda-hm-uzdarymas {
        position: relative;
    }

    .legenda-hamburgeris {
        display: flex;
        position: fixed;
    }

        .legenda {
            display: none;
            position: fixed;
            width: 100vw;
            min-height: 100%;
            background: white;
            margin: 0;
            padding: 1rem;
            box-shadow: 4rem 0rem 4rem rgba(0,0,0,0.4);
            top: 0;
            left: 0;
            overflow-y: scroll;
            z-index: 998;          
        }

        .legenda h1 {
            text-shadow: none;
            text-align: center;            
        }

        .legenda p {
            font-size: 1.25rem;
            width: fit-content;
            margin: .75rem .5rem;
            padding: .25rem;
        }

        .legenda p::before {
            font-size: 1.25rem;
            width: 2rem;
            height: 2rem;
        }    
}