/* HOTSPOT  ------------------------------------------------------------------ */

@font-face{
    font-family: 'Raleway-Regular';
    src: url('../fonts/Raleway-Regular.ttf') format('truetype');
}
@font-face{
    font-family: 'Raleway-Medium';
    src: url('../fonts/Raleway-Medium.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
}

body {
    background: #4d4d4d;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    height: 100%;
}

.nav-button {
    font-family: 'Raleway-SemiBold';
    font-size: 12px;
    letter-spacing: 0.05em;
    text-decoration: none;
    position: absolute;
    top: 100px;
    left: 20px;
    padding: 10px 16px;
    background-color: #333;
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: background 0.3s ease;
}

.nav-button:hover{
    background-color: #555;
}

.hotspot-container { 
    position: relative; 
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.hotspot-container img {  
    display: block; 
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.hotspot { 
    position: absolute; 
    width: 18px; 
    height: 18px; 
    background: #ffffff; 
    border: 1px solid rgb(0, 0, 0); 
    border-radius: 50%; 
    cursor: pointer;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.7);
        opacity: 0.8
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hotspot::after {
    content: attr(data-tooltip); 
    position: absolute; 
    top: 30px; 
    left: 50%; 
    transform: translatex(-50%);
    background-color: white; 
    color: black; 
    padding: 6px 20px; 
    border-radius: 20px; 
    font-family: 'Raleway-SemiBold';
    font-size: 16px; 
    transition: opacity 0.3s ease-in-out; 
    z-index: 10; 
    white-space: nowrap; 
    width: auto; 
    opacity: 0;
} 
    
.hotspot:hover::after { 
    
    opacity: 1;
}

.hotspot:hover {
    animation: none !important;
    transition: none !important;
}


@media (max-width: 768px) {
    html {
        height: 100%;
    }
    body {
        height: 100%;
    }
    .hotspot-container {
        position: relative;
        display: inline-block;
        width: auto;
        height: calc(100vh - 80px);
        min-width: max-content;
        vertical-align: top;
    }
    .hotspot-container img {
        padding: 0;
        margin: 0 auto;
        display: block;
        height: 100%;
        width: auto;
        max-width: none;
    }
    body {
        overflow-y: hidden;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-top: 0px;
    }
    .hotspot {
        position: absolute;
        width: 16px;
        height: 16px;
    }
    .hotspot::after {
        font-size: 14px;
        padding: 5px 16px;
        top: 25px
    } 
}
