/* Extra small devices (phones, less than 768px) */
body {
    margin: 0;
    padding: 0;
    font-family: 'Domine';
}
h1 {
    text-align: center;
    font-size: 40px;
    font-weight: normal;
}
p {
    text-align: left;
    font-size: 20px;
    line-height: 1.6;
}
li {
    text-align: left;
    font-size: 20px;
    line-height: 1.6;
}

/* Buttons */
.button_container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}
.button {
    width: 200px;
    border: none;
    color: white;
    margin: 10px 20px;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    border-radius: 10px;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}
.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 5px;
    border-radius: 6px;
    font-size: 16px;
    position: absolute;
    z-index: 1;
    top: 100%;
    left: 50%;
    margin-left: -100px;
}
.tooltip:hover .tooltiptext {
    visibility: visible;
}

/* Video */
video {
    display: block;
    margin: 5% auto;
    width: 320px;
    height: 180px;
}

/* Text */
#heading {
    color: #003F83;
    margin-top: 10%;
}
.textbox {
    padding: 0 10% 0 10%;
}

/* Diagram */
#notification {
    display: block;
    margin: 5% auto;
    width: 300px;
}

/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) {
    video {
        width: 640px;
        height: 360px;
    }
    #notification {
        width: 600px;
    }
}

/* Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    #heading {
        margin-top: 5%;
    }
    video {
        width: 1024px;
        height: 576px;
    }
    .textbox {
        padding-left: 15%;
        padding-right: 15%;
    }
    #notification {
        width: 800px;
    }
}

/* Largest devices (standard desktops, 1920px and up) */
@media (min-width: 1920px) {
    #notification {
        width: 1200px;
    }
}

.image-container {
    position: relative;
    width: 80%;
    margin: auto;
}

.interactive-image {
    width: 100%;
    height: auto;
}

/* Tooltip section */
.tooltip-section {
    position: absolute;
    top: 27.5%;
    height: 66.5%;
    background-color: rgba(0, 0, 0, 0.1); /* Default semi-transparent background */
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

/* Highlight effect on hover */
.tooltip-section:hover {
    background-color: rgba(77, 125, 225, 0.2); /* Highlighted blue color */
    opacity: 1; /* Fully visible when hovered */
}

/* Tooltip text styling */
.tooltip-section .tooltip-text {
    visibility: hidden;
    position: absolute;
    left: 50%;
    bottom: 110%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px; /* Rounded corners */
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional shadow */
}

/* Show tooltip text when hovering */
.tooltip-section:hover .tooltip-text {
    opacity: 1;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2); /* Slightly enlarges the icon */
    }
}

.info-icon-container {
    position: absolute;
    top: 130px;
    font-size: 15px;
    color: #4D7DE1;
    cursor: pointer;
    z-index: 10;
    animation: pulse 2s infinite; /* Adds the pulsing effect */
}

.info-icon-container:hover {
    transform: scale(1.1);
    color: #2E56A3;
}
