﻿ 
/* Main Diagram */
.deployment-diagram {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 700px;
    margin: 20px auto;
    background: #ffffff;
    overflow: hidden;
}

/* =========================
           TITLE
        ========================= */

.saas-title {
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #3864ad;
    font-size: 24px;
    font-weight: 400;
    z-index: 10;
    text-shadow: 0 5px 4px rgba(0, 0, 0, 0.15);
}


/* =========================
           UNIVERSE
        ========================= */

.universe {
    position: absolute;
    width: 145px;
    height: 55px;
    border-radius: 50%;
    background: #5b9bd5;
    border: 1px solid #386b9e;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    z-index: 5;
}

.universe-left {
    top: 55px;
    left: 25px;
}

.universe-right {
    top: 55px;
    right: 25px;
}


/* =========================
           SUPER INTELLIGENCE DOME
        ========================= */

.super-dome {
    position: absolute;
    width: 155px;
    height: 100px;
    top: 48px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #f47c27;
    border: 1px solid #a95c24;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.45;
    z-index: 6;
}


/* =========================
           MACHINE LEARNING FEED
        ========================= */

.machine-feed {
    position: absolute;
    width: 150px;
    height: 120px;
    top: 165px;
    border-radius: 50%;
    background: #5b9bd5;
    border: 1px solid #386b9e;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.45;
    z-index: 5;
}

.machine-left {
    left: 40px;
}

.machine-right {
    right: 40px;
}


/* =========================
           ALGO TRADING BOX
        ========================= */

.algo-box {
    position: absolute;
    width: 80%;
    height: 60px;
    left: 10%;
    top: 300px;
    border-radius: 12px;
    background: #5b9bd5;
    border: 1px solid #386b9e;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    font-size: 12px;
    line-height: 2;
    z-index: 5;
}


/* =========================
           MOBILE APP BOX
        ========================= */

.mobile-app {
    position: absolute;
    width: 63%;
   /* height: 175px;*/
    left: 7%;
    top: 400px;
    border-radius: 20px;
    background: #f47c27;
    border: 1px solid #386b9e;
    color: #ffffff;
    padding: 14px 25px;
    z-index: 5;
}

.mobile-app-title {
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.mobile-app ul {
    margin: 0;
    padding-left: 20px;
    font-size: 11px;
    line-height: 1.45;
}


/* =========================
           EXCHANGE BOX
        ========================= */

.exchange {
    position: absolute;
    width: 40px;
    height: 190px;
    right: 3%;
    top: 365px;
    border-radius: 7px;
    background: #5b9bd5;
    border: 1px solid #386b9e;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    z-index: 5;
}

.exchange-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1.55;
}


/* =========================
           BOTTOM TITLE
        ========================= */

.bottom-title {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #263b5c;
    font-size: 13px;
    line-height: 2;
    z-index: 5;
}


/* =========================
           SVG CONNECTIONS
        ========================= */

.connection-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 2;
    pointer-events: none;
}

.connection {
    fill: none;
    stroke: #4f91d4;
    stroke-width: 1.2;
}

.arrow {
    fill: #5b9bd5;
    stroke: #386b9e;
    stroke-width: 1;
}


/* =========================
           RESPONSIVE
        ========================= */

@media (max-width: 768px) {

    .deployment-diagram {
        height: 650px;
        transform-origin: top center;
    }

    .saas-title {
        font-size: 20px;
    }

    .universe {
        width: 120px;
        height: 45px;
        font-size: 13px;
    }

    .universe-left {
        left: 10px;
    }

    .universe-right {
        right: 10px;
    }

    .super-dome {
        width: 135px;
        height: 90px;
        font-size: 11px;
    }

    .machine-feed {
        width: 125px;
        height: 105px;
        font-size: 12px;
    }

    .machine-left {
        left: 20px;
    }

    .machine-right {
        right: 20px;
    }

    .algo-box {
        width: 78%;
        left: 11%;
        font-size: 10px;
    }

    .mobile-app {
        width: 60%;
        left: 6%;
    }

    .exchange {
        right: 2%;
        width: 35px;
    }

    .bottom-title {
        font-size: 10px;
    }
} 
