@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

body {
    margin: 0;
    padding: 0;
    background-color: #140806;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    overflow: auto;
}

.container {
    position: relative;
    text-align: center;
    width: 100%;
    max-width: 600px;
    margin: 10px;
}

.image-wrapper {
    position: relative;
    display: inline-block;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 5px;
}

.overlay-text {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    /* Užtikrina, kad fonas tęstųsi per visą tėvinio elemento plotį */
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.2);
    padding: 5px 0px 7px 0px;
    /* Tik vertikalus padding, kad neišplėstų teksto plotis */
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
}

#credits {
    position: fixed;
    /* absolute */
    bottom: 0px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-family: Courier, monospace;
    padding: 5px 5px;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.5);
    /* color: #999999; */
    z-index: 1100;
    line-height: 1.1;
}


.link {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: normal;
    /* color: #000; */
    color: rgba(255, 255, 255, 0.2);
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 7px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    border: 1px solid #999999;
    cursor: pointer;
    /* transition: background 0.3s ease, color 0.3s ease; */
    width: 100%;
    /* Plotis nustatomas pagal tėvinį elementą */
    max-width: 600px;
    /* Tas pats plotis kaip nuotraukos */
    box-sizing: border-box;
    /* Užtikriname, kad padding nebūtų viršytas */
}


.dirbu {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: normal;
    /* color: #000; */
    color: rgba(255, 255, 255, 0.3);
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 7px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    border: 0px solid #999999;
    cursor: default;
    /* transition: background 0.3s ease, color 0.3s ease; */
    width: 100%;
    /* Plotis nustatomas pagal tėvinį elementą */
    max-width: 600px;
    /* Tas pats plotis kaip nuotraukos */
    box-sizing: border-box;
    /* Užtikriname, kad padding nebūtų viršytas */
}

.info {
    font-family: Courier, monospace;
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 10px;
    padding: 0px;
    color: rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    /* border: 1px solid #999999; */
    cursor: default;
    /* transition: background 0.3s ease, color 0.3s ease; */
    width: 100%;
    /* Plotis nustatomas pagal tėvinį elementą */
    max-width: 600px;
    /* Tas pats plotis kaip nuotraukos */
    box-sizing: border-box;
    /* Užtikriname, kad padding nebūtų viršytas */
}

.skaitiklis {
    justify-content: center;
    align-items: center;
    margin-bottom: 0px;
    padding: 0px;
    cursor: default;
    max-width: 88px;
}

img {
    width: 100%;
    height: auto;
    max-width: 600px;
    object-fit: contain;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

.slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* background-color: rgba(59, 28, 23, 1.0); */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.slideshow img {
    max-width: 100vw;
    /* Užtikrina, kad nebus platesnis už ekraną */
    max-height: 100vh;
    /* Užtikrina, kad nebus aukštesnis už ekraną */
    width: auto;
    height: auto;
    object-fit: contain;
    /* transition: transform 0.9s ease, width 0.3s ease, height 0.3s ease; */
}

/* Portreto režime pasukame ir užtikriname, kad viskas tilptų */
@media (orientation: portrait) {
    .slideshow img {
        transform: rotate(90deg);
        width: 100vh;
        /* Kad vaizdas užimtų visą aukštį */
        height: 100vw;
        /* Užtikrina, kad jis neišsiplėstų per daug */
        max-width: 100vh;
        max-height: 100vw;
    }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: gray;
    background: rgba(0, 0, 0, 0);
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
}


/* Slėpti rodykles mobiliuose įrenginiuose */
@media (max-width: 768px) {

    .nav-left,
    .nav-right {
        display: none;
    }
}

/* Rodyklės fiksuotos šonuose */
.nav-left,
.nav-right {
    font-size: 50px;
    color: #888;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
    user-select: none;
}

.nav-left {
    left: 20px;
    /* Atstumas nuo kairio ekrano krašto */
}

.nav-right {
    right: 20px;
    /* Atstumas nuo dešinio ekrano krašto */
}

.nav-left:hover,
.nav-right:hover {
    color: white;
}

a {
    color: white;
    text-decoration: none;
}

a:hover {
    color: white;
}
