.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;
    }
}

.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;
    text-align: center; 
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .pavadinimas{
font-size: 100px;  
}
}

@media (max-width: 480px) {
    .pavadinimas{
        font-size: 50px;  
        }
}

.background1{
    background-image: url('images3/background.png');
    background-size: cover;
    width: 100%;
    height: 120vh;
    position: relative;
}

.perejimas{
    width: 100%;
    background-color: #010208;
    overflow: hidden;
}

p{
    width: 100%;
    height: 100%;
    text-align: center; 
    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%;
}

.story-choice {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .story-choice img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block; 
    margin: auto; 
  }
  
  .story-choice img:hover {
    transform: scale(0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }
  
  .story-header {
    text-align: center;
    margin-bottom: 50px;
  }
  
  .story-image {
    width: 90%;
    height: auto;
  }
  
  .story-link {
    color: inherit; 
    text-decoration: none; 
  }
  
  .story-link:hover .story-image {
    transform: scale(0.95);
    box-shadow: 0 5px 15px rgba(107, 107, 107, 0.3);
  }
  
  .story-link:hover {
    text-decoration: none; 
  }

  .pasirinkimas{
    width: 100%;
    height: 100%;
    text-align: center; 
    color: white;
    font-size: 4vw; 
    font-family: Italiano; 
    font-style: italic; 
    font-weight: 400; 
    line-height: 48px; 
    word-wrap: break-word;
    justify-content: center;
    display: flex;
    padding-top: 5%;
    padding-bottom: 5%;
  }

  @media (max-width: 768px) {
    .background1{
        height: 60vh;
    }
  }

@media (max-width: 480px) {
   .background1{
        height: auto; 
        min-height: 50vh; 
    }

    p{
        font-size: 6vw; 
        line-height: 48px;
    }

    .pasirinkimas{
        font-size: 7vw; 
        line-height: 48px; 
      }
}


@media (max-width: 768px) {
    .pavadinimas{
    font-size: 100px;  
}
}

@media (max-width: 480px) {
    .pavadinimas{
        font-size: 50px;  
        }
}


.story-image {
    cursor: pointer; /* Indicates that the image is interactable */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin: auto;
}