/*   Copyright (c) 2025 Franz Steinkress
     Licensed under the MIT License - see LICENSE for details */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Segoe UI", sans-serif;
    background: #2D74B2;
    background: #C0C0C0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    background: #2D74B2;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    cursor: default;
    z-index: 2;
}

.container img {
    width: 32px;
    height: 32px;
}

.container h1 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
}

.outer-box {
    width: 1080px;
    height: 1080px;
    background: transparent;
    background: #C0C0C0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay-box {
    width: 900px;
    height: 900px;
    background-color: turquoise;
    border: 2px solid white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;  /* Bild oben, Caption unten */
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    color: white;
    text-align: center;
}

.overlay-box img {
    width: 700px;
    height: auto;
    object-fit: contain;
    margin-top: 100px; /* optional Abstand nach oben */
}

.caption {
    width: 100%;
    width: 860px;
    background: #fff;
    color: #333;
    padding: 16px 20px;
    border-top: 3px solid #000;
    border-top: 2px solid #C0C0C0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: Georgia, serif;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.4;
}

.safe-area-frame-1080x1080 {
    position: absolute;
    top: 90px;
    left: 90px;
    width: 900px;  /* 1080 - 2×90px */
    height: 900px; /* 1080 - 2×90px */
    border: 2px dashed red;
    pointer-events: none;
    box-sizing: border-box;
    z-index: 9999;  /* Sicher ganz oben */
}

.nav-arrows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.arrow {
    margin-top: 40px;
    pointer-events: auto;
    background: none;
    color: white;
    border: 2px solid white;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 2vh;
    font-weight: bold;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, background 0.3s ease;
    outline: 1px solid lime;
}

.arrow.left  { left: -3.0rem;  margin-left: -3.5rem; top: 50%; transform: translateY(-50%) scale(1); }
.arrow.right { right: -3.0rem; margin-right: -3.5rem; top: 50%; transform: translateY(-50%) scale(1); }
.arrow:hover { transform: translateY(-50%) scale(1.2); }

