body,
html {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: url('background.jpg') no-repeat center center fixed;
    background-size: cover;
    height: auto;
    min-height: 100vh;
}

@media (orientation: portrait) {

    body,
    html {
        overflow-y: hidden;
        /* Takistab vertikaalset kerimist portreevaates */
    }
}

@media (orientation: landscape) {

    body,
    html {
        overflow-y: auto;
    }

    .buttons-container {
        grid-template-columns: repeat(3, minmax(100px, 1fr));
        width: 100%;
        max-width: 600px;
        margin: 10px auto;
    }
}

.container {
    max-width: 95%;
    margin: 30px auto;
}

.header-container {
    text-align: center;
    cursor: pointer;
}

.header-image {
    max-width: 80%;
    margin-bottom: 20px;
    height: auto;
}

.youtube-container {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    margin-bottom: 20px;
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.buttons-container {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    gap: 10px;
    justify-content: center;
    margin: 20px auto;
    padding: 0;
    box-sizing: border-box;
    width: fit-content;
}

.button,
a.button {
    background: linear-gradient(145deg, #4b6cb7, #182848);
    color: #00ffea;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 10px #00ffea;
    transition: box-shadow 0.5s, transform 0.5s;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
}

.button:hover {
    box-shadow: 0 0 20px #00ffea, 0 0 40px #00ffea inset;
    transform: scale(1.05);
    animation: none;
}

.footer-image {
    max-width: 80px;
    margin: 20px auto;
    display: block;
    animation: pulse 1.5s infinite alternate;
}

.audio-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #00ffea;
    font-size: 20px;
    display: none;
}

.popup-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.popup-content {
    background-color: #00000000;
    margin: auto;
    padding: 20px;
    max-width: 100vw;
    max-height: 100vh;
    overflow: auto;
    box-sizing: border-box;
    text-align: center;
}

.popup-content img {
    max-width: 90%;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
    margin: auto;
}

.popup-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.popup-close:hover,
.popup-close:focus {
    color: black;
}

.image-area {
    text-align: center;
}

.image-area img {
    max-width: 100%;
    max-height: 100%;
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }

    .header-container {
        margin-bottom: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.02);
    }
}

.png-container {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 500px;
    gap: 10px;
    padding: 10px;
    margin: auto;
    width: 80%;
}

.png-container::-webkit-scrollbar {
    width: 8px;
}

.png-container::-webkit-scrollbar-thumb {
    background-color: #888;
}

.png-container::-webkit-scrollbar-track {
    background-color: #f0f0f0;
}

.png-container {
    scrollbar-width: thin;
    scrollbar-color: #888 #f0f0f0;
}

.retro-button {
    background-color: rgb(6, 71, 6);
    color: #fff;
    border: none;
    padding: 10px 20px;
    text-align: center;
    display: inline-block;
    margin: 4px 2px;
    cursor: pointer;
}

#flyingBurger {
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 100px;
    z-index: 1;
}

#flyingBurger.active {
    animation: flyBehindPopup 5s infinite alternate;
}

@keyframes flyBehindPopup {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-50px);
    }

    100% {
        transform: translateX(0);
    }
}