.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.9); 
    border: 1px solid #ccc;
    padding: 40px; 
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); 
    z-index: 999;
    width: 60%; 
    height: 40%; 
    max-width: 800px; 
    animation: fadeIn 0.5s ease-out; 
    border-radius: 15px;
}

.popup-content {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    height: 100%;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

/* Popup animacija */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#homeButton {
    position: fixed;
    top: 10px;
    left: 10px;
    padding: 15px; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    z-index: 1000; 
    background-image: url('images/home.png'); 
    background-size: contain; /* Adjust the background size as needed */
    background-repeat: no-repeat; 
    background-position: center; 
}

.nustatymai_title{
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 100px;
}

/*button*/

#settingsButton {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 15px; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    z-index: 1000; 
    background-image: url('images/settings.png'); 
    background-size: contain; /* Adjust the background size as needed */
    background-repeat: no-repeat; 
    background-position: center; 
    transition: transform 0.3s ease; 
}

#settingsButton:hover {
    animation: rotateAnimation 0.5s ease infinite; 
}

@keyframes rotateAnimation {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(10deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.container {
    width: 100%; 
    max-width: none; 
    padding: 0; 
    margin: 0;
}

.row {
    margin-right: 0px;
    }


.container-fluid {
    padding: 0 !important;
    }

html{
    overflow-x: hidden;
}

body {
    font-family: 'Judson', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

.pavadinimas{   
    color: black;
    font-size: 150px;
    font-family: Island Moments;
    font-weight: 400;
    line-height: 150px;
    display: flex;
    justify-content: center;
    height: 100vh;
    text-align: center;
    padding-top: 3%;
}

@media (max-width: 768px) {
    .pavadinimas{
    font-size: 100px;  
    }
}

@media (max-width: 480px) {
    .pavadinimas{
        font-size: 50px;  
    }
}

.background1{
    background-image: url('images2/background1.png');
    background-size: cover;
    width: 100%;
    height: 120vh;
    position: relative;
}

.background10{
    display: flex;
    background-image: url('images2/background1.png');
    background-size: cover;
    background-position: center;
    width: 100vw;
    height: 120vh;
}

.perejimas1{
    background-color: #09233C;
}

.tekstas1{
    width: 100%;
    height: 100%;
    text-align: justify; 
    color: white;
    font-size: 2vw; 
    font-family: Judson; 
    font-style: italic; 
    font-weight: 400; 
    line-height: 48px; 
    word-wrap: break-word;
    justify-content: center;
    display: flex;
    padding-top: 5%;
    padding-bottom: 5%;
}

.perejimas2{
    background: linear-gradient(180deg, rgba(9,35,60,1) 0%, rgba(18,75,128,1) 44%, rgba(217,239,252,1) 100%);
}

.tekstas2{
    width: 100%;
    text-align: justify; 
    color: white;
    font-size: 2vw; 
    font-family: Judson; 
    font-style: italic; 
    font-weight: 400; 
    line-height: 48px; 
    word-wrap: break-word;
    justify-content: center;
    display: flex;
    padding: 10% 25% 0% 25%;
    
}

#tevasIrDukraImage{
    width: auto;
    height: 50%;
    padding-top: 50px;
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

@media (max-width: 768px) {
    #tevasIrDukraImage{
        height: auto;
        width: 50vw;; 
    }
}

@media (max-width: 480px) {
    #tevasIrDukraImage{
        height: auto;
        width: 10vw;; 
    }
}

#kapasImage{
    width: auto;
    padding-top: 60px;
    height: 50%;
    padding-bottom: 10%;
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

@media (max-width: 980px) {
    #kapasImage{
        height: 80vh; 
    }
}


@media (max-width: 768px) {
    #kapasImage{
        height: 70vh; 
    }
}

@media (max-width: 480px) {
    #kapasImage{
        height: 60vh; 
    }
}

.background2{
    display: flex;
    background-image: url('images2/background2.png');
    background-size: cover;
    width: 100vw;
    height: 120vh;
    position: relative;
}

.tekstas3{
    width: auto;
    text-align: justify; 
    color: black;
    font-size: 2vw; 
    font-family: Judson; 
    font-style: italic; 
    font-weight: 400; 
    line-height: 48px; 
    word-wrap: break-word;
    justify-content: center;
    display: flex;
    top: 10%;
    padding: 2% 2% 2% 2%;
}

.tekstoBlokas1{
    width: 100%;
    height: auto; 
    background-color: #ffffff;
    margin-top: 10%;
    margin-left: 10%;
    padding: 2% 2% 2% 2%;
}

#medisImage{
    position: absolute;
    bottom: 0;
    
    width: auto;
    height: 100%;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
}

.perejimas3{
    background-color: #041421;
}

.background3{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: url('images2/background5.png');
    background-size: cover;
    width: 100vw;
    height: 120vh;
    position: relative;
}

#kiaulesImage{
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 90%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
}

#kiaulesMerginaImage{
    /* position: absolute;
    bottom: 0; */
    /* left: 20%; */
    /* right: 0; */
    width: 50%;
    /* bottom: 0; */
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: right;
}

.perejimas4{
    background: linear-gradient(180deg, rgba(2,1,12,1) 0%, rgba(18,75,128,1) 100%);
    position: relative;
}

#vandensImage, #ranksluostisImage{
    padding: 5% 2% 5% 2%;
    padding-right: 10%;
    padding-top: 20%;
    width: 100%;
    height: auto;
}

#asotisImage, #duodaRanksluostiImage{
    padding: 5% 2% 5% 2%;
    width: 100%;
    height: auto;
}

#rekiaImage{
    padding: 5% 2% 5% 2%;
    padding-right: 10%;
    padding-bottom: 10%;
    width: 100%;
    height: auto;
}

.tekstas4, .tekstas6{
    width: 100%;
    text-align: justify;
    color: white; 
    font-size: 2vw; 
    font-family: Judson; 
    font-style: italic; 
    font-weight: 400; 
    line-height: 48px; 
    word-wrap: break-word;
    /* position: absolute; */
    
    /* top: 45%; */
    padding: 0% 10% 0% 10%;
    /* transform: translate(-50%, -50%); */
}

.tekstas5{
    width: 100%;
    text-align: justify;
    color: white; 
    font-size: 2vw; 
    font-family: Judson; 
    font-style: italic; 
    font-weight: 400;
    line-height: 48px; 
    word-wrap: break-word;
    position: absolute;
    top: 45%;
    /* right: 0%; */
    /* transform: translate(-50%, -50%); */
}

#medisArtiImage{
    position: absolute;
    bottom: 0;
    width: 100%;
    bottom: 0;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
}

.background4{
    background-image: url('images2/background_medis.png');
    background-position: center;
    background-size: cover;
    width: 100vw;
    height: 120vh;
    position: relative;
}

.tekstoBlokas2{
    width: 100%;
    height: auto; 
    background-color: #ffffff;
    margin-top: 75%;
    margin-left: 10%;
    padding: 2% 2% 2% 2%;
}

.background5{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: url('images2/background3.png');
    background-size: cover;
    width: 100%;
    height: 120vh;
    position: relative;
}

.tekstoBlokas3{
    width: 100%;
    height: auto; 
    background-color: #ffffff;
    margin: 2% 5% 2% 5%;
}

.tekstas7{
    width: 100%;
    height: 100%; 
    text-align: justify; 
    color: black;
    font-size: 2vw; 
    font-family: Judson; 
    font-style: italic; 
    font-weight: 400; 
    line-height: 48px; 
    word-wrap: break-word;
    padding: 1%;
}

#karietaImage{
    width: 80%;
    height: auto;
    padding: 0% 5% 0% 0%;
}

#karieta1Image{
    width: 80%;
    height: auto;
    padding: 0% 0% 0% 2%;
}

.background6_1{
    background-image: url('images2/background4.png');
    background-size: cover;
    width: 100%;
    height: 120vh;
    display: flex;
}

.background6{
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    background-image: url('images2/background4.png');
    background-size: cover;
    width: 100%;
    height: 120vh;
    display: flex;
}

#elenyteImage{
    height: 90vh;
    padding-left: 10%;
    /* height: 40%; */
    /* width: auto; */
}

#reveal1 {
    opacity: 0;
    -webkit-transform: scale(0.9);
         -moz-transform: scale(0.9);
            -ms-transform: scale(0.9);
             -o-transform: scale(0.9);
                    transform: scale(0.9);
    -webkit-transition: all 1s ease-in-out;
         -moz-transition: all 1s ease-in-out;
            -ms-transition: all 1s ease-in-out;
             -o-transition: all 1s ease-in-out;
                    transition: all 1s ease-in-out;
}
#reveal1.visible {
    opacity: 1;
    -webkit-transform: none;
         -moz-transform: none;
            -ms-transform: none;
             -o-transform: none;
                    transform: none;
}

.perejimas5{
    width: 100%;
    /* height: 100%; */
    background-color: #1E1A4A;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* position: relative; */
}

.perejimas6{
    background-color: #1E1A4A;
}

#princasImage{
    width: 50%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    padding-top: 10%;
}

.tekstas8{
    width: 100%;
    text-align: justify; 
    color: white;
    font-size: 2vw; 
    font-family: Judson; 
    font-style: italic; 
    font-weight: 400; 
    line-height: 48px; 
    word-wrap: break-word;
    justify-content: center;
    display: flex;
    position: relative;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    padding: 0% 10% 0% 10%;
}

#butlerImageRight{
    width: auto;
    height: 70%;
    /* height: 100%; */
    /* padding: 10% 0% 0% 30%; */
    position: absolute;
    bottom: 0;
    right: 0;
    padding-bottom: 2%;
}

#butlerImageLeft{
    width: auto;
    height: 70%;
    /* height: 100%; */
    /* padding: 10% 0% 0% 30%; */
    position: absolute;
    bottom: 0;
    left: 0;
    padding-bottom: 2%;
    padding-left: 15%;
}

#begaImage, #bega2Image, #suknele1Image, #bateliaiImage{
    width: 80%;
    height: auto;
    z-index: 1;
    justify-content: center;
    display: flex;
    margin: 0 auto;
    padding-top: 10%;
    padding-bottom: 10%;
}

#princas1Image{
    width: 50%;
    height: auto;
    margin: 10%;
}

#arklysImage{
    position: absolute; 
    bottom: 0;
    width: 70%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    padding-left: 10%;
}

.background7{
    background-image: url('images2/34.png');
    background-position: center; 

    background-size: cover;
    width: 100%;
    height: 120vh;
    display: flex;
}

.tekstoBlokas4{
    width: 100%;
    height: 15%; 
    background-color: #ffffff;
    margin: 2% 5% 2% 5%;
}

#batasImage{
    width: 70%;
    height: auto;
    margin: 10%;
    padding-left: 20%;
}

#inagisImage{
    position: absolute; 
    bottom: 0; 
    width: 60%;
    height: auto; 
    z-index: 1;
    display: flex;
    margin: 0 auto; 
    justify-content: center;
}

#askImage{
    position: absolute; 
    bottom: 0;
    width: 90%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    padding-left: 10%;
}

.background8{
    background-image: url('images2/background1.png');
    display: flex;
    /* flex-direction: column; */
    justify-content: space-between;
    background-size: cover;
    position: relative;
    width: 100vw;
    height: 120vh;
}

.background9{
    /* display: flex; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: url('images2/background2.png');
    background-size: cover;
    width: 100vw;
    height: 120vh;
    position: relative;
}

#klupiImage{
    width: 37%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
}

.tekstoBlokas5{
    width: 100%;
    height: auto; 
    justify-content: center;
    background-color: #ffffff;
    margin: 2% 5% 2% 5%;
}

#hugImage{
    width: 32%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    bottom: 0;
}

.pabaiga{
    width: 100%; 
    height: 20%; 
    background: #041421;
    z-index: 10;
}

.pabaiga_tekstas{
    text-align: center; 
    color: white; 
    font-size: 128px; 
    font-family: Judson;
    font-style: italic; 
    font-weight: 400; 
    line-height: 192px; 
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .pabaiga_tekstas{
        font-size: 74px; 
    }
  }

  
@media (max-width: 480px) {
    .pabaiga_tekstas{
        font-size: 32px; 
    }
  }


@media (max-width: 768px) {
    .background1, .background2, .background3, .background4, .background4_1, .background5, .background6, .background6_1, .background7, .background8, .background9, .background10{
        height: 60vh;
    }
  }

@media (max-width: 480px) {
    .tekstas1, .tekstas2, .tekstas3, .tekstas4, .tekstas5, .tekstas6, .tekstas7, .tekstas8{
        font-size: 4vw; 
        line-height: normal; 
        padding: 5%; 
    }

    #tevasIrDukraImage, #kapasImage, #medisImage, #kiaulesImage, #vandensImage, #asotisImage, #rekiaImage, #elenyteImage, 
    #princas1Image, #begaImage, #butlerImageRight, #butlerImageLeft, #princasImage, #suknele1Image {
        width: 90%;
        height: auto;
    }

    .background1, .background2, .background3, .background4, .background4_1, .background5, .background6, .background6_1, .background7, .background8, .background9, .background10{
        height: auto; 
        min-height: 50vh; 
    }

    .tekstoBlokas1, .tekstoBlokas2, .tekstoBlokas3{
        margin: 5%; 
    }
    
    .tekstoBlokas4{
        margin: 5%; 
        height: 25%;
    }

    /* .garsotekstas5, .garsotekstas6, .garsotekstas6{
        height: 80vh;
    } */
}