/* Layout */
.globe-row {
    position: relative;
    display: flex;
    /* width: 100%; */
    height: 600px;
}

.col-left,
.col-right {
    width: 50%;
    position: relative;
}

#globe-container {
    width: 100%;
    height: 100%;
}

/* Background */
.bg-image {
    position: absolute;
    inset: 0;
    background-image: url(../../img/background.jpg);
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0.8;
    border-radius: 10px;
    transition: 0.6s ease;
}

/* Info panel */
#info-panel {
    width: 500px;
    padding: 40px;
    margin: 60px;
    color: white;
    background-color: #00000091;
    border-radius: 10px;
}
#info-panel #info-desc {
    text-align: justify;
    max-height: 210px;
    scrollbar-width: thin; /* Can be 'auto' or 'thin' */
    /* The first color is for the thumb, the second for the track */
    scrollbar-color: rgba(128, 128, 128, 0.5) rgba(128, 128, 128, 0.1);
    overflow: auto; /* Ensures the element is scrollable */
}

#info-panel img {
    height: 120px;
    margin-bottom: 20px;
    border-radius: 10px;
}

#info-title {
    color: aliceblue;
}

/* Hide back wires using depth */
.front-only {
    depthtest: true;
}

/* ==============================
   RESPONSIVE DESIGN
   ============================== */

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .globe-row {
        height: auto;
        flex-direction: column;
    }

    .col-left,
    .col-right {
        width: 100%;
        min-height: 280px;
    }

    #globe-container {
        width: 100%;
        height: 280px;
    }

    #info-panel {
        width: 100%;
        padding: 25px;
        margin: 20px;
        box-sizing: border-box;
    }

    #info-panel img {
        height: 80px;
    }
}

/* Small devices (576px and below) */
@media (max-width: 576px) {
    .globe-row {
        height: auto;
        min-height: 300px;
    }

    .col-left {
        min-height: 200px;
    }

    .col-right {
        min-height: 250px;
    }

    #globe-container {
        width: 100%;
        height: 250px;
    }

    #info-panel {
        width: 90%;
        padding: 20px;
        margin: 10px auto;
        box-sizing: border-box;
    }

    #info-panel img {
        height: 60px;
        margin-bottom: 15px;
    }

    #info-title {
        font-size: 18px;
        margin: 10px 0;
    }

    #info-panel p {
        font-size: 14px;
        line-height: 1.4;
    }
}

/* Extra small devices (360px and below) */
@media (max-width: 360px) {
    .globe-row {
        min-height: 250px;
    }

    .col-right {
        min-height: 220px;
    }

    #globe-container {
        width: 100%;
        height: 220px;
    }

    #info-panel {
        width: 85%;
        padding: 15px;
        margin: 5px auto;
    }

    #info-panel img {
        height: 50px;
    }

    #info-title {
        font-size: 16px;
    }

    #info-panel p {
        font-size: 12px;
    }
}
