* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: "Poppins", sans-serif;
}

body {
    display: flex;
}

#slika {
    position: relative;
    width: 67%;
    height: 100vh;
    border-right: solid 0.125rem black;
    user-select: none
}

#slika img {
    width: 100%;
    height: 100%;
}

#tekst {
    width: 33%;
    height: 100vh;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

#tekst #naslov {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

#tekst #podnaslov {
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 600;
    font-size: 1.4em;
}

#tekst img {
    width: 50%;
    height: auto;
    margin-top: auto;
    margin-bottom: 1.5em;
    margin-left: 14em;
}

#tekst #poslovica {
    margin-top: 8rem;
    text-align: right;
}

.dot {
    position: absolute;
    width: 0.625rem;
    height: 0.625rem;
    background: red;
    border: 0.125rem solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 1;
}

.dot:hover {
    z-index: 10;
}

.dot-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, -0.875rem);
    background: #ffffff;
    color: #111111;
    padding: 0.75rem 1rem 0.75rem 0.75rem;
    border: 0.125rem solid #111111;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;

    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dot-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 0.75rem;
    height: 0.75rem;
    background: #ffffff;
    border-right: 0.125rem solid #111111;
    border-bottom: 0.125rem solid #111111;
    transform: translate(-50%, -60%) rotate(45deg);
}

.dot-tooltip-flag-box {
    height: 2.875rem;
    width: 2.875rem;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.125rem solid #111111;
    background: #f2f2f2;
}

.dot-tooltip-flag {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

.dot-tooltip-text {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.dot-tooltip-text h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #111111;
    order: 2;
}

.dot-tooltip-text p {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #dd0000;
    order: 1;
    margin-bottom: 0.0625rem;
}

.dot:hover .dot-tooltip {
    opacity: 1;
}

.dot-tooltip-text {
    text-align: left;
}

@media (max-width: 64em) {
    #tekst #naslov {
        font-size: 1.5rem;
    }

    #tekst #podnaslov {
        font-size: 1.15em;
    }

    #tekst #poslovica {
        margin-top: 5rem;
    }

    #tekst img {
        width: 60%;
        margin-left: 8em;
    }
}

@media (max-width: 53.125em) {
    html, body {
        overflow-y: auto;
    }

    body {
        flex-direction: column;
        height: auto;
    }

    #slika {
        width: 100%;
        height: 75vh;
        border-right: none;
        border-bottom: solid 0.125rem black;
    }

    #tekst {
        width: 100%;
        height: auto;
        overflow-y: visible;
        padding: 1.5rem;
    }

    #tekst img {
        width: 40%;
        margin: 2rem auto 0;
    }

    #tekst #poslovica {
        margin-top: 2rem;
        text-align: center;
    }
}

@media (max-width: 30em) {
    #slika {
        height: 45vh;
    }

    #tekst #naslov {
        font-size: 1.25rem;
    }

    #tekst #podnaslov {
        font-size: 1em;
        margin-bottom: 1rem;
    }

    #tekst img {
        width: 55%;
    }

    .dot {
        width: 0.5rem;
        height: 0.5rem;
    }

    .dot-tooltip {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem 0.5rem 0.5rem;
        white-space: normal;
        max-width: 55vw;
    }

    .dot-tooltip-flag-box {
        height: 2.125rem;
        width: 2.125rem;
    }
}