@import url("https://fonts.googleapis.com/css?family=Open+Sans");

* {
    box-sizing: border-box;
}

.notes {
    margin: auto;
    padding: 2rem 1.2rem 0;
    max-width: 35rem;
    font-family: Open Sans, sans serif;
    text-align: center;
}

.container {
    width: 100%;
    padding: 1em;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: center;
}

.lg-container {
    max-width: 100%;
    overflow: hidden;
    position: relative;
    margin: 1rem;
    padding: 0;
}

.lg-image {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: scale-down;
}

.lg-hotspot {
    position: absolute;
    margin: 0;
    padding: 0;
    /* transform: translate(-50%, -50%); */
    z-index: 0;
}

    .lg-hotspot:hover .lg-hotspot__button, .lg-hotspot:active .lg-hotspot__button {
        border-color: #999;
    }

        .lg-hotspot:hover .lg-hotspot__button:after, .lg-hotspot:active .lg-hotspot__button:after {
            background-color: #999;
        }

.lg-hotspot--selected {
    z-index: 999;
}

    .lg-hotspot--selected .lg-hotspot__label {
        opacity: 1;
    }

.lg-hotspot__button {
    height: 18px;
    width: 18px;
    padding: 0px;
    border-radius: 100%;
    border: 1px solid white;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 999;
    position: absolute;
}

    .lg-hotspot__button:after {
        position: absolute;
        /* position: absolute;*/
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1, 1);
        pointer-events: none;
        content: "";
        display: block;
        height: 26.4px;
        width: 26.4px;
        border-radius: 100%;
        border: 1px solid #fff;
        opacity: 0;
        transition: border-color 1s linear;
        animation: button-pulse 4s linear infinite;
    }

.lg-hotspot__label {
    padding: 0 0 1.1em 0;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-family: "Open Sans", sans-serif;
    font-size: 14.5px;
    line-height: 1.45em;
    z-index: 9999;
    pointer-events: none;
    border-radius: 2px;
    user-select: none;
    opacity: 0;
    transition: all 0.1s linear;
    margin-top: 30px;
    margin-left: -93px;
    text-align: right;
}

    .lg-hotspot__label h4 {
        margin: 0;
        padding: 0.65em 24px;
        font-size: 1.1em;
        letter-spacing: 0.02em;
        border-radius: 2px 2px 0 0;
        font-weight: bold;
        text-decoration: none;
        text-transform: uppercase;
        color: black;
    }

    .lg-hotspot__label p {
        margin: 0;
        padding: 0.1em 24px 0 24px;
        color: #333;
    }

.lg-hotspot--top-left .lg-hotspot__label {
    bottom: 55px;
    left: -94px;
}

.lg-hotspot--top-right .lg-hotspot__label {
    bottom: 55px;
    left: -94px;
}

.lg-hotspot--bottom-right .lg-hotspot__label {
    bottom: 55px;
    left: -94px;
}

.lg-hotspot--bottom-left .lg-hotspot__label {
    bottom: 25px;
    left: -94px;
}

@keyframes button-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1, 1);
        opacity: 0;
    }

    20% {
        transform: translate(-50%, -50%) scale(1.5, 1.5);
        opacity: 0.9;
    }

    50% {
        transform: translate(-50%, -50%) scale(2, 2);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(2, 2);
        opacity: 0;
    }
}

.lg-hotspot__button:hover {
    border-color: #999;
    padding: 10px;
    border: 2px solid #fff;
}

.lg-hotspot__button:after:hover {
    height: 8px;
    width: 8px;
}
