.portfolio-header{
    height: auto;
    width: 100%;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    font-family: raleway;
    transition: all .4s ease;
    color: #eaf9fd;
    padding:10px;
    padding-bottom: 30px;
    padding-top: 100px;
    font-weight: 900;
}

.header-caption{
    opacity:1;
    display: block;
    font-size: 20px;
    font-family: raleway;
    padding: 8px;
    padding-top: 15px;
    color: #eaf9fd;
    font-weight: 400;
}
.portfolio{
    height:auto;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 1.5%;
    padding-right: 2%;
padding-top: 50px;
padding-bottom: 40px;
}

.portfolio-text{
    width: 40%;
    padding-left: 1%;
    margin: 1%;
    margin-left: -40px;
    margin-top: 160px;
    z-index: 3;
    opacity: 1;
    background: #181a1b;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 10px;
}

.portfolio-text h2{
    font-size: 35px;
    font-family: poppins;
    font-weight: 200;
    padding: 20px;
    color: #40cff7;
    transition: all .4s ease;
}
.portfolio-text p{
    font-size: 16px;
    color: #eaf9fd;
    opacity: .8;
    font-family: poppins;
    font-weight: 200;
    padding: 20px;
}
.portfolio-text button{
    font-size: 16px;
    opacity: 1;
    font-family: poppins;
    font-weight: 200;
    padding: 10px 20px;
    background:transparent;
    color:#40cff7;
    transition: all .4s ease;
    outline: none;
    margin: 20px;
    border: 1.8px solid #40cff7;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: all .4s ease;
}
.portfolio-text button::before{
    content: "";
    position: absolute;
    width: 0%;
    height: 200%;
    transform: rotate(-15deg) translateY(-20px);
    top: 0;
    left: 0;
    z-index: 3;
    background: #40cff7;
    transition: all .7s ease;
}
.portfolio-text button:hover{
    opacity: 1;
    color:#022f3b;
}
 button:hover .index{
     position: relative;
    z-index: 4;
}
.portfolio-text button:hover::before{
    opacity: 1;
    width: 120%;
}
.button{
    text-align: center;
}
.portfolio-image img{
    height: 400px;
    width: 100%;
    position: relative;
    border-radius: 10px;
}
.portfolio-image{
    height: 400px;
    width: 40%;
}
#portfolio-content{
    width: 100%;
    display: flex;
    height: auto;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
#portfolio{
    height: auto;
    overflow-x: hidden;
    background-color: #010c0f;
    width: 100%;
    color:#eaf9fd;
}
.txt {
    display: flex;
    padding-left: 10%;
    padding-right: 10%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #eaf9fd;
    font-family: poppins;
    letter-spacing: 1.5px;
    font-size: 16px
}
/*

For devices with smaller width like mobile phone


*/
@media only screen and (max-width: 550px){
    .portfolio{
        height:auto;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1.5%;
        padding-right: 2%;
        padding-top: 50px;
        padding-bottom: 40px;
    }
    .portfolio-header{
        color: #eaf9fd;
        justify-content: center;
        font-size: 35px;
        font-family: raleway;
        padding:10px;
        padding-top: 100px;
        font-weight: 900;
    }
    .txt {
        display: flex;
        padding-left: 10%;
        padding-right: 10%;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        color: #eaf9fd;
        font-family: poppins;
        letter-spacing: 1.5px;
        font-size: 13px
    }
    .portfolio-text{
        width: 90%;
        padding-left: 0%;
        margin: 0%;
        margin-left: 0px;
        margin-top: 0px;
        z-index: 1;
        background: #181a1b;
        padding-top: 10px;
        padding-bottom: 10px;
    }
        .portfolio-image{
            position: relative;
        }
            .portfolio-text h2{
                font-size: 22px;
                font-family: poppins;
                font-weight: 200;
                padding: 10px;
            }
            .portfolio-text p{
                font-size: 15px;
                opacity: .8;
                font-family: poppins;
                font-weight: 200;
                padding: 15px;
            }
            .portfolio-image img{
                height: 300px;
                width: 100%;
            }
            .portfolio-image{
                height: 300px;
                width: 90%;
            }
}
/*

for tabs and large phones

*/
@media all and (max-width: 1025px) and (min-width: 551px){
    .portfolio{
        height:auto;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1.5%;
        padding-right: 2%;
        padding-top: 50px;
        padding-bottom: 40px;
    }
    .txt {
        display: flex;
        padding-left: 14%;
        padding-right: 14%;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        color: #eaf9fd;
        font-family: poppins;
        letter-spacing: 1.5px;
        font-size: 14px
    }
    .portfolio-text{
        width: 70%;
        padding-left: 0%;
        margin: 0%;
        margin-left: 0px;
        margin-top: 0px;
        z-index: 1;
        background: #181a1b;
        padding-top: 15px;
        padding-bottom: 15px;
    }
        .portfolio-image{
            position: relative;
        }
            .portfolio-text h2{
                font-size: 35px;
                font-family: poppins;
                font-weight: 200;
                padding: 15px;
            }
            .portfolio-text p{
                font-size: 20px;
                opacity: .8;
                font-family: poppins;
                font-weight: 200;
                padding: 15px;
            }
            .portfolio-image img{
                height: 380px;
                width: 100%;
                position: relative;
            }
            .portfolio-image{
                height: 380px;
                width: 70%;
            }
        }

/* This is for high resoloution display */

@media all and (max-width: 9000px) and (min-width: 1441px){
    .portfolio-image img{
        height: 500px;
        width: 100%;
        position: relative;
    }
    
    .portfolio-image{
        height: 500px;
        width: 40%;
    }
    
}