/* Poznámka */

/* Font - Alegreya */

@font-face {
    font-family: "Alegreya";
    src: url("../fonts/alegreya-v41-latin_latin-ext-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Alegreya";
    src: url("../fonts/alegreya-v41-latin_latin-ext-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: "Alegreya";
    src: url("../fonts/alegreya-v41-latin_latin-ext-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Alegreya";
    src: url("../fonts/alegreya-v41-latin_latin-ext-700italic.woff2") format("woff2");
    font-weight: 700;
    font-style: italic;
}

html, body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#viewport {
    position: fixed;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
    background: black;

    perspective: 1200px;
    perspective-origin: center center;
}

#world {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 1920px;
    height: 1080px;

    transform-origin: center center;
    transform: translate(-50%, -50%) scale(calc(100vw / 1920));
}

@media (max-aspect-ratio: 16/9) {
    #world {
        transform: translate(-50%, -50%) scale(calc(100vh / 1080));
    }
}

#hvozdar-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 108%;

    object-fit: cover;

    user-select: none;
    pointer-events: none;

    transition: transform 0.12s ease-out;
    will-change: transform;

    transform-origin: center 80%;
    
    transform-style: preserve-3d;
}

#version {
    position: fixed;

    top: 28px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: flex-end;
    gap: 14px;

    z-index: 20;

    user-select: none;
}

#title { /* Hvozdar */
    font-family: "Alegreya", serif;
    font-size: 42px;
    font-weight: 700;

    color: white;

    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

#verze-webu { /* v 0.1 */
    font-family: "Alegreya", serif;
    font-size: 16px;
    font-weight: 400;

    color: rgba(255, 255, 255, 0.55);

    margin-bottom: 3px;
}

#menu-button {
    position: fixed;
    top: 20px;
    left: 20px;

    width: 55px;
    height: 55px;

    font-size: 32px;
    cursor: pointer;

    z-index: 10;
}

#side-menu {
    position: fixed;
    top: 0;
    left: -260px;

    width: 260px;
    height: 100vh;

    background: white;
    box-shadow: -4px 0 12px rgba(0,0,0,0.3);

    display: flex;
    flex-direction: column;

    padding-top: 90px;

    transition: right 0.3s;
    z-index: 9;
}

#side-menu a {
    color: black;
    text-decoration: none;

    font-family: "Alegreya", serif;
    font-size: 22px;

    padding: 18px 30px;
}

#side-menu a:hover {
    background: #eeeeee;
}

#side-menu.open {
    left: 0;
}

#overlay {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.3);

    display: none;

    z-index: 8;
}

#overlay.show {
    display: block;
}

.building {
    position: absolute;

    width: 180px;
    height: 70px;

    background: white;
    color: black;
    text-decoration: none;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 10px;

    font-family: "Alegreya", serif;
    font-size: 24px;
    font-weight: bold;

    box-shadow: 0 4px 10px rgba(0,0,0,0.3);

    transform: translate(-50%, -50%);
    transition: 0.2s;
}

.building:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

#fireplace {
    position: absolute;

    left: 1000px;
    top: 720px;

    transform: translate(-50%, -50%);
}

#fireplace img {
    display: block;
    width: 180px;      /* zatím libovolná velikost */
    height: auto;
}

#fireplace:hover img {
    transform: scale(1.08);
    transition: transform 0.2s;
}

#novinky {
    left: 500px;
    top: 100px;
}

#telo {
    left: 550px;
    top: 200px;
}

#spanek {
    left: 570px;
    top: 280px;
}

#duse {
    left: 900px;
    top: 200px;
}

#strava {
    left: 570px;
    top: 360px;
}

.error-page {
    width: 100vw;
    height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    font-family: "Alegreya", serif;
    background: #111;
    color: white;
}

.error-page h1 {
    font-size: 96px;
    margin: 0;
}

.error-page p {
    font-size: 28px;
}

.error-page a {
    color: white;
    font-size: 22px;
}