.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: 225px;
    display: flex;
    justify-content: center;
    height: 100vh;
}

@media (max-width: 768px) {
    .pavadinimas{
font-size: 100px;  
}
}

@media (max-width: 480px) {
    .pavadinimas{
        font-size: 50px;  
        }
}

.background9, .background10{
    display: flex;
    background-image: url('images1/background1.png');
    background-size: cover;
    width: 100vw;
    height: 120vh;
    z-index: 2;
    position: relative;
}

.background1{
    background-image: url('images1/background1.png');
    background-size: cover;
    width: 100%;
    height: 120vh;
    position: relative;
}

.background25{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: url('images1/background1.png');
    background-size: cover;
    width: 100%;
    height: 120vh;
}

.perejimas1{
    background-color: #110605;
}

.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: 150px;
    padding-bottom: 150px;
}

.perejimas2{
    background: linear-gradient(180deg, rgba(19,7,5,1) 0%, rgba(172,108,36,1) 100%);
}

#karaliusImage{
    width: auto;
    height: 50%;
    padding-top: 50px;
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

@media (max-width: 768px) {
    #karaliusImage{
        height: auto;
        width: 50vw;; 
    }
}

@media (max-width: 480px) {
    #karaliusImage{
        height: auto;
        width: 10vw;; 
    }
}

.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-top: 100px;
}

#sunusImage{
    width: auto;
    padding-top: 60px;
    height: 50%;
    padding-bottom: 10%;
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

@media (max-width: 980px) {
    #sunusImage{
        height: 80vh; 
    }
}


@media (max-width: 768px) {
    #sunusImage{
        height: 70vh; 
    }
}

@media (max-width: 480px) {
    #sunusImage{
        height: 60vh; 
    }
}

.perejimas3{
    background: linear-gradient(180deg, rgba(172,108,36,1) 0%, rgba(249,201,79,1) 100%);
}

.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: 0% 20% 0% 20%;
}

@media (max-width: 768px) {
    .tekstas3{
        line-height: 20px; 
    }
  }

  @media (max-width: 480px) {
    .tekstas3{
        line-height: 10px; 
    }
  }

#ginklasImage{
    width: 100%;
    height: auto;
    z-index: 1;
    padding: 10% 10% 0% 0%;
}

#zemelapisImage{
    width: 80%;
    height: auto;
    z-index: 1;
    justify-content: center;
    display: flex;
    margin: 0 auto;
    padding-top: 20%;
    padding-bottom: 5%;
}

.tekstas4{
    width: 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;
    justify-content: center;
    display: flex;
    padding: 40% 20% 0% 20%;
}

@media (max-width: 768px) {
    .tekstas4{
        line-height: 20px; 
    }
  }

  @media (max-width: 480px) {
    .tekstas4{
        line-height: 10px; 
    }
  }

.background2{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: url('images1/background5.png');
    background-size: cover;
    width: 100vw;
    height: 120vh;
    position: relative;
}

#kulkaMerginaImage{
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 30%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
}

#kulkaVaikinasImage{
    position: absolute;
    bottom: 0;
    /* left: 20%; */
    width: 38%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
}

.tekstoBlokas15{
    width: 100%;
    height: auto; 
    background-color: #ffffff;
    margin: 10% 10% 0% 10%;
    padding: 1% 1% 1% 1%;
}

.tekstas5, .tekstas9, .tekstas13, .tekstas14, .tekstas15, .tekstas17, .tekstas18, .tekstas19, .tekstas20, .tekstas21, .tekstas22, .tekstas25, .tekstas26, .tekstas27, .tekstas28, .tekstas30, .tekstas31, .tekstas32, .tekstas33{
    width: 100%;
    height: 100%;
    text-align: center; 
    color: black;
    font-size: 2vw; 
    font-family: Judson; 
    font-style: italic; 
    font-weight: 400; 
    line-height: 48px; 
    word-wrap: break-word;
    padding: 2% 2% 2% 2%;
}

@media (max-width: 768px) {
    .tekstas5, .tekstas9, .tekstas13, .tekstas14, .tekstas15, .tekstas17, .tekstas18, .tekstas19, .tekstas20, .tekstas21, .tekstas22, .tekstas25, .tekstas26, .tekstas27, .tekstas28, .tekstas30, .tekstas31, .tekstas32, .tekstas33{
        line-height: 20px; 
    }
}

@media (max-width: 480px) {
    .tekstas5, .tekstas9, .tekstas13, .tekstas14, .tekstas15, .tekstas17, .tekstas18, .tekstas19, .tekstas20, .tekstas21, .tekstas22,.tekstas25, .tekstas26, .tekstas27, .tekstas28, .tekstas30, .tekstas31, .tekstas32, .tekstas33{
        line-height: 10px; 
    }
}

@media (orientation: portrait){
    .tekstas5, .tekstas9, .tekstas13, .tekstas14, .tekstas15, .tekstas17, .tekstas18, .tekstas19, .tekstas20, .tekstas21, .tekstas22, .tekstas25, .tekstas26, .tekstas27, .tekstas28, .tekstas30, .tekstas31, .tekstas32, .tekstas33{
        line-height: 10px; 
    }
}

.perejimas4{
    width: 100%;
    height: auto;
    background: linear-gradient(180deg, rgba(17,6,5,1) 0%, rgba(249,189,62,1) 100%);
}

.tekstas6, .tekstas11{
    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;
    padding: 3% 5% 2% 5%;
}

@media (max-width: 768px) {
    .tekstas6, .tekstas11{
        line-height: 20px; 
    }
  }

  @media (max-width: 480px) {
    .tekstas6, .tekstas11{
        line-height: 10px; 
    }
  }

@media (orientation: portrait){
    .tekstas6, .tekstas11{
        line-height: 10px; 
    }
  }


.background7{
    display: flex;
    background-image: url('images1/background1.png');
    background-size: cover;
    width: 100vw;
    height: 120vh;
}

.background3{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: url('images1/background1.png');
    background-size: cover;
    width: 100%;
    height: 120vh;
    position: relative;
}

.background4{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: url('images1/background6.png');
    background-size: cover;
    width: 100%;
    height: 120vh;
}

.tekstoBlokas1, .tekstoBlokas2, .tekstoBlokas3, .tekstoBlokas6, .tekstoBlokas10, .tekstoBlokas17, .tekstoBlokas22, .tekstoBlokas26{
    width: 100%;
    height: auto; 
    background-color: #ffffff;
    margin: 2% 5% 2% 5%;
}

.tekstas7, .tekstas8, .tekstas9, .tekstas10, .tekstas16, .tekstas24, .tekstas29{
    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%;
}

@media (max-width: 768px) {
    .tekstas7, .tekstas8, .tekstas9, .tekstas10, .tekstas16, .tekstas24, .tekstas29{
        line-height: 20px; 
    }
  }


  @media (max-width: 480px) {
    .tekstas7, .tekstas8, .tekstas9, .tekstas10, .tekstas16, .tekstas24, .tekstas29{
        line-height: 10px; 
    }
  }


  @media (max-width: 600px) {
    .tekstoBlokas2, .tekstoBlokas22, .tekstoBlokas26{
        margin-top:100px;
    }
  }

  

#seneKulkaImage{
    position: absolute;
    bottom: 0;
    width: 40%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    left: 10%;
}

#seneBicasKulkaImage{
position: absolute;
    bottom: 0;
    width: 30%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
}

.background5{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: url('images1/background5.png');
    background-size: cover;
    width: 100%;
    height: 120vh;
}

.background6{
    display: flex;
    background-image: url('images1/rumai.png');
    background-size: cover;
    background-position: center;
    width: 100vw;
    height: 120vh;
}

.tekstoBlokas4{
    width: 100%;
    height: auto; 
    background-color: #ffffff;
    margin-top: 10%;
    padding: 2% 2% 2% 2%;
}

#karaliusDvaras{
    position: absolute; 
    bottom: 0; 
    width: 60%;
    height: auto; 
    z-index: 1;
    display: flex;
    margin: 0 auto; 
    justify-content: center;
}

.tekstoBlokas5, .tekstoBlokas7, .tekstoBlokas8, .tekstoBlokas13, .tekstoBlokas16, .tekstoBlokas18, .tekstoBlokas19, .tekstoBlokas20, .tekstoBlokas21, .tekstoBlokas23, .tekstoBlokas24{
    width: 100%;
    height: auto; 
    background-color: #ffffff;
    margin-top: 10%;
    margin-left: 10%;
    padding: 2% 2% 2% 2%;
}

.tekstoblokas9{
    width: 100%;
    height: auto; 
    background-color: #ffffff;
    margin-left: 10%;
    padding: 2% 2% 2% 2%;
}

.tekstoBlokas25{
    width: 100%;
    height: auto; 
    background-color: #ffffff;
    margin-top: 10%;
    margin-left: 10%;
    padding: 2% 2% 2% 2%;
}

#PykstaImages{
    position: absolute;
    bottom: 0;
    
    width: 110%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
}

.background8{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: url('images1/brickwall.png');
    background-size: cover;
    width: 100%;
    height: 120vh;
}

#juokiasiImage{
    width: 80%;
    height: auto;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    padding-top: 4.5%;
}

.perejimas5{
    width: 100%;
    height: auto;
    background-color: #C38831;
}

#miegaImage{
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 120vh;
}

.tekstas12{
    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: 10% 0% 0% 10%;
}

@media (max-width: 768px) {
    .tekstas12{
        line-height: 20px; 
    }
  }

  @media (max-width: 480px) {
.tekstas12{
            line-height: 10px; 
    }
  }

@media (orientation: portrait){
    .tekstas12{
        line-height: 10px; 
    }
  }

.miega2Image{
    background-image: url('images1/11.png');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 120vh;
    z-index: 1;
    position: relative;
}

#askingImage{
    width: 300%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    /* justify-content: center; */
    position: absolute;
    bottom: 0;
    /* right: 0; */
}

#seneleImage{
    position: absolute; 
    bottom: 0;
    width: 95%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    padding-left: 1%;
}

.ziedasImage{
    background-size: cover;
    background-image: url('images1/14.png');
    background-position: center;
    width: 100%;
    height: 120vh;
    z-index: 2;
    position: relative;
}

#arklysImage{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    /* padding-left: 1%;
    padding-top: 5%; */
}

@media (max-width: 768px) {
    .ziedasImage
        {
        height: 60vh;
    }
  }

#arklys1Image{
    position: relative;
    bottom: 0;
    left: 0;
    width: 70%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    /* padding-left: 1%;*/
    padding-top: 2%; 
}

.tekstoBlokas9{
    width: 30%;
    height: auto; 
    background-color: #ffffff;
    margin-left: 5%;
    position: relative;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    padding: 2% 2% 2% 2%;
}

.background11{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: url('images1/background4.png');
    background-size: cover;
    width: 100%;
    height: 100vh;
    z-index: 2;
    position: relative;
}

#metaZiedaImage{
    width: 15%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    bottom: 0;
}

.kambarysImage{
    background-image: url('images1/16.png');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 120vh;
}

.tekstoBlokas11{
    width: 100%;
    height: auto; 
    background-color: #ffffff;
    margin-top: 10%;
    margin-left: 10%;
    padding: 2% 2% 2% 2%;
}

.background12, .background15{
    width: 100%;
    height: 120vh;
    background-size: cover;
    background-image: url('images1/background2.png');
}

.tekstoBlokas12{
    width: 100%;
    height: auto; 
    background-color: #ffffff;
    margin-top: 10%;
    margin-left: 10%;
    padding: 2% 2% 2% 2%;
}

#atplaukiaValtisImages{
    width: 40%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    padding-top: 30%;
}

@media (max-width: 480px) {
    #atplaukiaValtisImages{
        padding: 50% 0% 0% 0%;
        width: 15%;
        height: auto;
   }
  }

.background13{
    width: 100%;
    height: 120vh;
    background-size: cover;
    background-image: url('images1/background3.png');
}

#salaImage{
    position:absolute;
    width: 80%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    padding-top: 2%;
    padding-left: 2%;
}

.salojeImage{
    width: 100%;
    height: 120vh;
    background-size: cover;
    background-position: center;
    background-image: url('images1/20.png');
}

.tekstoBlokas14{
    width: 30%;
    height: auto; 
    background-color: #ffffff;
    margin-top: 5%;
    margin-left: 65%;
    padding: 2% 2% 2% 2%;
}

.background14{
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-image: url('images1/background3.png');
}

#plaukiaValtimImage{
    padding-left: 20%;
}

@media (max-width: 768px) {
    #plaukiaValtimImage
        {
        height: auto;
        width: 50%;
        padding-left: 0%;
        margin-left: 20%;
        margin-top:10%
    }
  }

@media (max-width: 480px) {
    #plaukiaValtimImage{
        height: auto;
        width: 30%;
        margin-left: 0%;
        margin-top:0%;
        padding-left: 0%;
        padding: 10%;
    }
  }

#einaVandeniuImage{
    width: 40%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    padding-top: 2%;
}

.perejimas6{
    width: 100%;
    background-color: #1E1A4A;
    overflow: hidden;
}

.tekstas23{
    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%;
}

@media (max-width: 768px) {
    .tekstas5, .tekstas9, .tekstas13, .tekstas14, .tekstas15, .tekstas17, .tekstas18, .tekstas19, .tekstas20, .tekstas21, .tekstas22{
        line-height: 20px; 
    }
  }

  @media (max-width: 480px) {
    .tekstas5, .tekstas9, .tekstas13, .tekstas14, .tekstas15, .tekstas17, .tekstas18, .tekstas19, .tekstas20, .tekstas21, .tekstas22{
        line-height: 10px; 
    }
  }

@media (orientation: portrait){
    .tekstas5, .tekstas9, .tekstas13, .tekstas14, .tekstas15, .tekstas17, .tekstas18, .tekstas19, .tekstas20, .tekstas21, .tekstas22{
        line-height: 10px; 
    }
  }

#zuvisImage{
    width: 100%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    padding: 2% 2% 2% 0%;
}

@media (max-width: 768px) {
    #zuvisImage{
        width: 70%;
        height: auto;
        padding: 2% 0% 2% 0%;
    }
  }

.background16{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: url('images1/background4_1.png');
    background-size: cover;
    width: 100vw;
    height: 120vh;
}

.background18{
    width: 100%;
    height: 100vh;
    display: flex;
    background-position: center;
    background-size: cover;
    background-image: url('images1/brickwall.png');
}

@media (max-width: 768px) {
    .background18{
        height: 60vh;
    }
  }

#mezgaImage{
    width: 40%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    padding-top: 25%;
}

#gaminaImage{
    position: absolute;
    bottom: 0;
    padding-bottom: 5%;
    width: 50%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    padding-bottom: 5%;
}

#katilasImage{
    position: absolute; 
    bottom: 5%; 
    left: 10%;
    width: 80%;
    height: auto; 
    z-index: 1;
    display: flex;
    margin: 0 auto; 
    justify-content: center;
}

#langasImage{
    position: absolute; 
    bottom: 35%; 
    right: 0;
    width: 90%;
    height: auto; 
    z-index: 1;
    display: flex;
    margin: 0 auto; 
    justify-content: center;
}

@media (max-width: 768px) {
    #mezgaImage{
        width: 70%;
        padding-top: 50%;
        height: auto;
    }
  }

@media (max-width: 480px) {
    #mezgaImage{
        width: 70%;
        height: auto;
        padding-top: 80%;
   }
  }

  #grazinaZiedaImage{
    width: 30%;
    height: auto;
    z-index: 1;
    display: flex;
    margin-left: 60%;
}

@media (max-width: 768px) {
    #grazinaZiedaImage{
        width: 20%;
        margin-left: 50%;
        margin-top: 0%;
    }
  }

@media (max-width: 480px) {
    #grazinaZiedaImage{
        width: 80%;
        height: auto;
        margin-left: 6%;
        margin-top: 0%;
   }
  }

.background17{
    display: flex;
    background-image: url('images1/throne.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 120vh;
}

.background22{
    display: flex;
    background-image: url('images1/throne.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 120vh;
}

@media (max-width: 768px) {
    .background22{
        background-image: url('images1/throne.jpg');
        height: 60vh;
    }
  }

@media (max-width: 768px) {
    .background22{
        background-image: url('images1/throne.jpg');
        height: 60vh;
    }
  }

.tekstoBlokas18{
    width: 100%;
    height: auto; 
    background-color: #ffffff;
    margin-top: 10%;
    padding: 2% 2% 2% 2%;
}

.tekstoBlokas23{
    width: 100%;
    height: auto; 
    background-color: #ffffff;
    margin-top: 10%;
    padding: 2% 2% 2% 2%;
}

#karaliusPirstinesImage{
        position: absolute; 
        bottom: 0; 
        width: auto;
        height: 80%; 
        z-index: 1;
        display: flex;
        margin: 0 auto;
        justify-content: center;
    }
    
#skuduraiImage{
    width: 80%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    padding-top: 15%;
    left: 10%;
    bottom: 5%;
    position: absolute;
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}

#skudurai1Image{
    width: 80%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    padding-top: 15%;
    bottom: 5%;
    position: absolute;
    left: 10%;

}

.background19, .background23{
    display: flex;
    background-image: url('images1/background4_1.png');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100vh;
}

.background20{
    display: flex;
    background-image: url('images1/background4rytas.png');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100vh;
}

.background24{
    display: flex;
    background-image: url('images1/window.png');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100vh;
}

#pirstineImage{
    position: absolute; 
    bottom: 0; 
    width: 70%;
    height: auto; 
    z-index: 1;
    display: flex;
    margin: 0 auto; 
    justify-content: center;
    padding-left: 20%;
}

#staltieseImage{
    position: absolute; 
    bottom: 0; 
    width: 70%;
    height: auto; 
    z-index: 1;
    display: flex;
    margin: 0 auto; 
    justify-content: center;
    padding-left: 20%;
}

.background21{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: url('images1/background7.png');
    background-size: cover;
}

#visosPirstinesImage{
    width: 80%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
}

#visosStaltiesesImage{
    width: 80%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    padding-top: 5%;
    padding-bottom: 5%;
}

#visiPyragaiImage{
    width: 80%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    padding-top: 5%;
    padding-bottom: 5%;
}

#karaliusStaltieseImage{
    position: absolute; 
    bottom: 0; 
    width: auto;
    height: 80%; 
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
}

#karaliusRagaisisImage{
    position: absolute;
    bottom: 0;
    width: auto;
    height: 80%; 
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    padding-left: 10%;
}

#naujasKaraliusImage{
    bottom: 0; 
    width: 40%;
    height: auto;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    justify-content: center;
}

.pabaiga{
    width: 100%; 
    height: 20%; 
    background: #C38831;
    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, .background9, .background10, .background3, .background7{
        background-image: url('images1/background1.png');
        height: 60vh;
    }
  }

  @media (max-width: 768px) {
    .background2{
        background-image: url('images1/background5.png');
        height: 60vh;
    }
  }

  @media (max-width: 768px) {
    .background4{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background-image: url('images1/background6.png');
        height: 60vh;
    }
  }

  @media (max-width: 768px) {
    .background5{
        background-image: url('images1/background5.png');
        height: 60vh;
    }
  }

  @media (max-width: 768px) {
    .background6{
        background-image: url('images1/rumai.png');
        height: 60vh;
    }
  }

  @media (max-width: 768px) {
    .background8{
        background-image: url('images1/brickwall.png');
        height: 60vh;
    }
  }

  @media (max-width: 768px) {
    .background11{
        background-image: url('images1/background4.png');
        height: 60vh;
    }
  }

  @media (max-width: 768px) {
    .background12, .background15{
        background-image: url('images1/background2.png');
        height: 60vh;
    }
  }

  @media (max-width: 768px) {
    .background13{
        background-image: url('images1/background3.png');
        height: 60vh;
    }
  }

  @media (max-width: 768px) {
    .background14{
        background-image: url('images1/background3.png');
        height: 60vh;
    }
  }

  @media (max-width: 768px) {
    .background16{
        background-image: url('images1/background4_1.png');
        height: 60vh;
    }
  }

  @media (max-width: 768px) {
    #miegaImage{
        height: 50vh;
    }
}

@media (max-width: 768px) {
    .miega2Image{
        height: 60vh;
    }
}

/* @media (max-width: 480px) {
    .miega2Image{
        height: 25vh;
        width: 100%;
    }
} */

@media (max-width: 480px) {
    .tekstas1, .tekstas2, .tekstas3, .tekstas4, .tekstas5, .tekstas6, .tekstas7,
    .tekstas8, .tekstas9, .tekstas10, .tekstas11, .tekstas12, .tekstas13,
    .tekstas14, .tekstas15, .tekstas16, .tekstas17, .tekstas18, .tekstas19,
    .tekstas20, .tekstas21, .tekstas22, .tekstas23, .tekstas24, .tekstas25,.tekstas26, .tekstas27, .tekstas28, .tekstas29, .tekstas30, .tekstas31, .tekstas32, .tekstas33 {
        font-size: 4vw; 
        line-height: normal; /* Reset line-height to default */
        padding: 5%; 
    }

    #karaliusDvaras, #PykstaImages, #miegaImage,
    #seneleImage, #atplaukiaValtisImages,
    #salaImage, #plaukiaValtimImage, #zuvisImage,
    #karaliusPirstinesImage, #visosPirstinesImage, #karaliusStaltieseImage, #pirstineImage, #staltieseImage, #karaliusRagaisisImage,
    #gaminaImage, #arklysImage{
        width: 100%; 
        height: auto; 
    }

    #karaliusImage,#sunusImage, #seneKulkaImage, #juokiasiImage, #einaVandeniuImage, #visosPirstinesImage {
        width: 90%;
        height: auto;
    }

    #metaZiedaImage, #mezgaImage, #naujasKaraliusImage{
        width: 80%;
        height: auto;
    }

    #kulkaVaikinasImage{
        width: 75%;
        height: auto;
    }

    #kulkaMerginaImage, #seneKulkaImage {
        width: 65%;
        height: auto;
    }

    #seneBicasKulkaImage{
        width: 40%;
        height: auto;
    }

    #skuduraiImage, #skudurai1Image{
        width: 100%;
        height: auto;
        margin-top: 20%;
    }

    #katilasImage, #langasImage{
        width: 120%;
        height: auto;
    }

    #askingImage{
        width: 120%;
        height: auto;
        right: 0;
    }

    .background1, .background2, .background3, .background4, .background5,
    .background6, .background7, .background8, .background9, .background10,
    .background11, .background12, .background13, .background14, .background15,
    .background16, .background17, .background18, .background22, .ziedasImage, 
    .kambarysImage, .background19, .background20, .background21, .background23, .background24, .salojeImage, .miega2Image{
        height: auto; 
        min-height: 50vh; 
    }

    .tekstoBlokas1, .tekstoBlokas2, .tekstoBlokas3, .tekstoBlokas4,
    .tekstoBlokas5, .tekstoBlokas6, .tekstoBlokas7, .tekstoBlokas8,
    .tekstoBlokas9, .tekstoBlokas10, .tekstoBlokas11, .tekstoBlokas12,
    .tekstoBlokas13, .tekstoBlokas14, .tekstoBlokas15, .tekstoBlokas16,
    .tekstoBlokas17, .tekstoBlokas18, .tekstoBlokas22, .tekstoBlokas23, .tekstoBlokas26 {
        margin: 5%; 
    }

    #miegaImage{
        width: 100%;
        height: auto;
    }
    .miega2Image{
        width: 100%;
        height: auto;
    }
}   