@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

body {
    /* background: black; */
    background-color: #140806;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: Arial, sans-serif;
    margin: 0;
    overflow: auto;
}

.rotate-message {
    display: none;
    position: fixed;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 20px;
    border-radius: 5px;
    font-size: 18px;
    z-index: 9999;
}

@media screen and (max-width: 768px) and (orientation: portrait) {
    .rotate-message {
        display: block;
    }
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 6px 10px; 
    /* padding: 10px; */
    /* max-width: 810px; */
    max-width: 974px;
}

@media screen and (max-height: 500px) and (min-width: 750px) {
    .gallery {
        max-width: 750px;
    }
}

.gallery img {
    cursor: pointer;
    max-width: 154px;
    border-radius: 5px;
    transition: transform 0.2s;
}

.gallery img:hover {
    transform: scale(1.1);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #140806;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.overlay img {
    max-width: 100vw;
    max-height: 100vh;
    /*transition: opacity 0.5s ease;             mano */
    object-fit: contain;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

#homeButton,
#fullscreenBtn {
    width: 40px;
    height: 40px;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 5px;
    z-index: 1001;
    padding-top: 0px;
    /* Pakelia tekstą aukštyn */
    padding-left: 0px;
    /* Pastumia tekstą į dešinę */
    padding-bottom: 0px;
    padding-right: 0px;
}

#homeButton {
    top: 10px;
}

#fullscreenBtn {
    left: 60px;
    top: 10px;
}

#playButton,
#closeButton {
    width: 40px;
    height: 40px;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 5px;
    z-index: 1001;
    display: none;
    padding-top: 0px;
    /* Pakelia tekstą aukštyn */
    padding-left: 1px;
    /* Pastumia tekstą į dešinę */
    padding-bottom: 3px;
    padding-right: 0px;
}

#closeButton {
    top: 10px;
}

#playButton {
    right: 60px;
    top: 10px;
}

#credits {
    position: absolute;
    bottom: 0px;
    width: 100%;
    text-align: center;
    font-size: 16px;
    font-family: Courier, monospace;
    padding: 5px 5px;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.3);
    /* color: #999999; */
    z-index: 1100;
    line-height: 1.1;
}

.info {
    font-family: Courier, monospace;
    font-size: 14px;
    font-weight: normal;
    margin-top: 15px;
    margin-bottom: 15px;
    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 */
}
