body {
    font-family: Arial, sans-serif;
}

.tabs {
    overflow: hidden;
    border-bottom: 2px solid #2D69B9;
    padding-top: 1rem;
}

.tab-link {
    background-color: #f1f1f1;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 16px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.tab-link:hover {
    background-color:#417fd0;
    color: white;
}

.tab-link.active {
    background-color: #2D69B9;
    color: white;
}

.tab-content {
    display: none;
    padding: 20px;
    border-top: none;
}

.tab-content.active {
    display: block;
}

/* Blueprint Container */
.blueprint-container {
    position: relative;
    width: 100%;
}

.blueprint-container img {
    width: 70%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hotspot {
position: absolute;
width: 40px;
height: 40px;
background-color: rgb(251, 72, 13);
color: white;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
font-size: 16px;
transform: translate(-50%, -50%);
box-shadow: rgba(0, 0, 0, 0.3) 0px 4px 6px;
z-index: 10;
border-radius: 50%;
border-width: initial;
border-style: none;
border-color: initial;
border-image: initial;
transition: 0.3s;
}

.hotspot i {
    font-size: 24px;
    pointer-events: none;
}

/* The Animation (The Ripple) */
.hotspot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background-color: rgba(255, 72, 13, 0.6); 
    z-index: -1; 
    animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

/* Keyframes for the expanding pulse ring */
@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.2); 
        opacity: 0; 
    }
}

/* Hover effect */
.hotspot:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: #fb480d;
}

.hotspot:hover::before {
    animation: none; /* Stops the pulsing on hover */
}
/* --- MODAL STYLES --- */
        
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 100; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto;
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    backdrop-filter: blur(5px); /* Nice visual effect */

}

.modal-content {
    background-color: #fff;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border-radius: 12px;
    width: 80%; /* Could be more or less, depending on screen size */
    /* max-width: 500px; */
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    animation-name: animatetop;
    animation-duration: 0.4s;
    text-align: justify;
}

/* Add Animation */
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.2s;
}

.close:hover,
.close:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.modal-header h2 {
    margin-top: 0;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    color: #007bff;
    font-size: 1.5rem;
    text-align: center;
}

.modal-body p {
    line-height: 1.6;
    color: #444;
    padding-top: 1rem;
}

.modal-body ul {
    list-style: disc;
    margin-left: 20px;
    padding: 10px 0;
    line-height: 1.6;
}

/* Custom button style for the modal */
.modal-body button {
    background-color: #28a745; /* Green */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.modal-body button:hover {
    background-color: #218838;
}

/* =========================
   MEDIA QUERIES: <= 760px
   ========================= */
@media (max-width: 760px) {
    .blueprint-container img {
        width: 85%;
    }
    .hotspot {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    .modal-content {
        width: 90%;
        margin: 30% auto;
        padding: 15px;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .modal-body p,
    .modal-body ul {
        font-size: 0.9rem;
    }
}