.jumbotron {
    background: url("img/water.jpg") no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    padding: 2rem;
    color: #888888;
    min-height: 100vh;
    margin-bottom: 1rem;
    position: relative;
}

.hero-container {
    background-color: rgba(255, 255, 255, 0.6);
    color: inherit;
    border-radius: 8px;
    margin: 0 auto;
}

.hero-sub-container {
    min-width: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    color: #666666;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-style: italic;
    font-size: 16px;
    position: absolute;
    bottom: 0;
}

.hero-sub-container p {
    margin-bottom: 0;
}

.display-4 {
    margin: 0;
    line-height: 0.8;
}

.my-4-p {
    padding-bottom: 8px;
}

hr.my-4 {
    width: 25%;
}

.container h3 {
    text-align: center;
}

.badge-container {
    text-align: center;
    margin-top: 16px;
    margin-bottom: -8px;
}

.text-container {
    text-align: justify;
}

#project img {
    width: 32%;
    height: auto;
}

.img-container img {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
}

#joonas, #teemu, #leevi {
    display: block;
    border-radius: 1rem;
    margin: 1rem auto;
    text-align: center;
}

.card-img-top {
    width: 168px;
    height: 168px;
}

a {
    text-decoration: none;
    color: black;
}

a:active {
    text-decoration: none;
    color: #cccccc;
}

a:hover {
    text-decoration: none;
    color: #cccccc;
}

a:visited {
    text-decoration: none;
    color: black;
}

@media only screen and (min-width: 667px) {
    .my-jumbo {
        text-size-adjust: 50%;
    }

    .hero-container {
        position: relative;
        top: 20vh;
        width: 50vw;
    }

    .hero-sub-container {
        min-width: inherit;
        background-color: rgba(255, 255, 255, 0.6);
        color: #666666;
        border-radius: 8px;
        font-family: 'Courier New', Courier, monospace;
        font-style: italic;
        font-size: 16px;
        position: relative;
        top: 20vh;
    }

    .img-container {
        text-align: center;
    }

    .img-container img {
        display: inline-block;
        width: 40%;
        height: auto;
    }    

    .card-container {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    #joonas, #teemu, #leevi {
        display: inline-block;
        text-align: center;
    }
}
   
