@charset "utf-8";
/* 
    File name: about-styles.css
*/

/* About Us Styles */

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.about_ibed {
    padding-bottom: 3rem;
}

.about_ibed h3 {
    text-align: center;
    text-transform: uppercase;
    width: 100%;
    margin: 10px 0 16px;
    padding: 5px;
    color: #107D8F;
    font-size: 40px;
    letter-spacing: 5px;
    display: flex;
    flex-direction: row;
}

.about_ibed h3:before, .about_ibed h3:after {
    content: "";
    flex: 1 1;
    border-bottom: 2px solid #107D8F;
    margin: auto;
}

.about_ibed p {
    padding-bottom: 5px;
    text-align: center;
    font-size: 20px;
}

/* Top Section */

header {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../assets/about-us/header-waves.jpg') center center / cover no-repeat;
    height: 25vw;
    min-height: 25vh;
    max-height: 40vh;
}

header h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 25vw;
    min-height: 25vh;
    max-height: 40vh;
    font-size: 48px;
    color: #FFF;
    text-transform: uppercase;
}

/* Mission and Vision Styles */

#mission img, #values img {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #107D8F;
    padding: 20px;
    width: 300px;
    height: 300px;
}

#mission div, #values div {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* People */

#people_names p {
    color: #707070;
    margin: 0;
    font-size: 16px;
}

/* Founding Organisation */

#founding_org {
    text-align: center;
}

#founding_org img {
    height: auto;
    width: 300px;
}

#founding_org p {
    padding: 10px 0;
    font-weight: bold;
}

/* Our Beginnings */

#beginning_img {
    height: auto;
    width: 800px;
    padding: 15px 0;
}

/* Timeline */

.timeline {
    position: relative;
    min-height: 150px;
}

.line {
    position: absolute;
    width: 2px;
    left: calc(10% - 1px);
    top: -50px;
    bottom: -50px;
    background-image: linear-gradient(#107D8f, #0a4e5a, #07353d);
    display: none;
}

.line:before, .line:after {
    position: absolute;
    display: block;
    content: '';
    height: 3rem;
    width: 3rem;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%)
}

.line:before {
    background-color: #107D8f;
}

.line:after {
    bottom: 0;
    background-color: #07353d;
}

.section {
    display: flex;
    position: relative;
    opacity: 0;
    transform: translateX(-100%);
    transition: 800ms ease;
    z-index: 1;
    margin: 50px 0;
    padding: 1rem;
    border-radius: 1rem;
    align-items: center;
    min-height: 200px;
}

.section:nth-child(n) {
    flex-direction: row;
    transform: translateX(100%);
}

.bead {
    position: absolute;
    display: block;
    height: 2rem;
    width: 2rem;
    border-radius: 50%;
    background-color: #000;
    left: 10%;
    top: 45%;
    transform: translateX(-50%);
    z-index: 2;
}

.content {
    transform: translateX(30%);
    width: calc(70%);
    padding: 10px;
}

.content p {
    display: flex;
    align-items: center;
    margin: 0;
}

.content img {
    border-radius: 20%;
    max-height: 100%;
    max-width: 100%;
}

article.timeline div.container {
    display: flex;
    align-items: center;
}

.show-me:nth-child(n) {
    transform: none;
    opacity: 1;
}

/* Small Computers Screen */

@media (max-width: 992px) {
    #founding_org img {
        height: auto;
        width: 240px;
    }
    #beginning_img {
        height: auto;
        width: 650px;
    }
    #mission img, #values img {
        width: 200px;
        height: 200px;
    }
    .content img {
        height: auto;
        width: 450px;
        opacity: 0.4;
    }
    .content p {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 0 40px;
        z-index: 2;
        font-weight: bold;
        font-size: 18px;
    }
}

/* Mobile Screen */

@media (max-width: 600px) {
    .about_ibed h3:before, .about_ibed h3:after {
        content: "";
        flex: none;
        margin: auto;
    }
    #beginning_img {
        height: auto;
        width: 340px;
    }
    #mission img, #values img {
        width: 150px;
        height: 150px;
    }
    .section {
        min-height: 600px;
    }
    /* Carousel Styles */
    .carousel-indicators {
        position: absolute;
        top: 50vw;
        margin: 30px 16px;
    }
    .carousel-indicators li {
        background-color: #000;
        height: 8px;
        width: 45px;
        z-index: 99;
    }
    .card-body {
        display: flex;
        align-items: center;
        min-height: 250px;
    }
    .card {
        border-radius: 0%;
    }
    .card-img-top {
        opacity: 0.9;
    }
    .content p {
        position: absolute;
        top: 160%;
        left: 60%;
        padding: 0 10px;
        z-index: 2;
    }
}

@media (max-width: 320px) {
    .about_ibed h3 {
        font-size: 32px;
    }
    #beginning_img {
        height: auto;
        width: 300px;
    }
}
