html{
    scroll-behavior: smooth;
    background-color: #1e2233;
}

body{
    background: linear-gradient(#5975a6,white);
    margin: 0;
    color: white;
    font-family: "Segoe UI", Arial, sans-serif;
    height:100%;
}

/*Overlay*/
.overlay-loader{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: black;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: preloader-overlay 3s 4s linear forwards;
}

.overlay-loader img{
    width: 150px;
}

.outer-loader{
    height: 5px;
    width: 200px;
    background-color: transparent;
    /* border: 1px solid white; */
}

.inner-loader{
    height: 100%;
    width: 100%;
    background-color: white;
    transform-origin: left;
    animation: preloader 4s forwards;
}

@keyframes preloader {

    0%{
        width: 0%;
    }

    100%{
        width: 100%;
    }

}

@keyframes preloader-overlay {

    0%{
        opacity: 100%;
    }

    100%{
        opacity: 0%;
        z-index: -200;
    }

}

/* Home */
.home-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding: 0;
    /* height: 100vh; */
    width: auto;
    /* background: linear-gradient(#2b1055,#7597de) */
    /* border: black 1px solid; */
}

.home-container img{
    /* position: absolute; */
    grid-row: 1/1;
    margin: 0;
}

.mountain{
    grid-column: 1/5;
    width: 100%;
    z-index: 3;
}

.stars{
    grid-column: 1/5;
    /* position: absolute; */
    width: 100%;
    /* height: 90vh; */
    z-index: 0;
}

.moon{
    grid-column: 1/5;
    /* position: absolute; */
    height: 15vh;
    width: 15vh;
    padding-left: 300px;
    padding-top: 100px;
    /* justify-content: center;   */
    /* align-self: center; */
    z-index: 0;
    mix-blend-mode: screen;
}

header a{
    color: white;
    text-decoration: none;
}

header button{
    background-color: transparent;
    padding: 0.5em;
    font-size: 18px;
    font-weight: 0;
    border: transparent;
    border-radius: 10px;
    color: white;
}

header button:hover{
    background-color: rgba(0, 0, 0, 0.5);
}




/* About Me */
.about-container{
    /* display: flex; */
    margin: 0;
    padding: 9em 0 9em 0;
    /* height: 100vh; */
    width: auto;
    background-color: #1e2233;
}

.content{
    display: flex;
}

.header{
    padding-left: 95px;
}
.left{
    padding-left: 95px;
    flex: 0.7;
}
.right{
    padding-right: 95px;
    display: flex;
    flex: 0.3;
    justify-content: right;
    align-items:flex-end;
}

.right img{
    height: 600px;
    width: 400px;
    border-radius: 5%;
}

h1{
    font-size: 4rem;
}

h2{
    font-size: 2rem;
}

h3{
    font-size: 18px;
}

p{
    font-size: 18px;
    line-height: 30px;
}

.skills-container{
    display: flex;
}

.left-skills{
    flex: 0.5;
}

.right-skills{
    flex: 0.5;
}

.skillname{
    padding: 0 1em 0 1em;
}

.outer-bar{
    display: flex;
    align-items: center;
    margin-right: 0;
    padding-left: 3px;
    height: 25px;
    width: 80%;
    background-color: white;
    /* border: black 1px solid; */
}

.inner-bar{
    /* padding: 0 1em 0 1em; */
    height: 19px;
    width: 80%;
    background-color: #B9C4F1;
}






/* Projects */

.project-container{
    /* display: flex; */
    margin: 0;
    padding: 12em 0 12em 0;
    /* height: 100vh; */
    width: auto;
    background-color: #1e2233;
}

.projects{
    margin: 0 auto;
    /* height: 550px; */
    height: fit-content;
    padding-bottom: 1em;
    /* width: 75%; */
    width: fit-content;
    max-width: 75%;
    background-color: #323954;
    border-radius: 25px;
}

.project-container h1{
    text-align: center;
    /* padding-left: 95px; */
}

.radio-container{
    padding-top: 2em;
    width: fit-content;
    margin: 0 auto;
}

.container {
    position: relative;
    padding-left: 15px;
    margin-bottom: 12px;
    /* margin: 0 auto; */
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

.container input{
    /* position: absolute; */
    opacity: 0;
    cursor: pointer;
  }

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #323954;
    border-radius: 50%;
  }

.container:hover input ~ .checkmark {
    background-color: #9098b9;
    /* background-color: rgb(187, 187, 187); */
  }

.container input:checked ~ .checkmark {
    background-color: #323954;
  }

.container input:checked ~ .checkmark:after {
    display: block;
  }

.checkmark::after{
    content: "";
    position: absolute;
    display: none;
  }

.container .checkmark:after {
    top: 2px;
   left: 2px;
   width: 16px;
   height: 16px;
   border-radius: 50%;
   background: #eee;/*center*/
}


#two{
    display: none;
} 

#three{
    display: none;
}

#four{
    display: none;
} 

.header-name{
    text-align: center;
    padding-top: 10px;
}

.project-flex{
    display: flex;
}

.project-left{
    padding-left: 85px;
    flex: 0.7;
}

.project-left p{
    font-size: 25px;
    font-weight: 100;
}

.project-right{
    display: flex;
    justify-content: center;
    flex: 0.3;
}

#calc-left{
    flex: 0.5;
}

#calc-right{
    display: flex;
    justify-content: right;
    flex: 0.5;
    padding-right: 40px;
}

.project-container img{
    height: 400px;
    width: auto;
    border-radius: 20px;
}





/* Contact */

.contact-container{
    padding-bottom: 10em;
    /* display: flex; */
    width: auto;
    background-color: #1e2233;
}

.inner-contact-container{
    display: flex;
    padding: 0 95px 0 95px;
}

.contact-left{
    flex: 0.5;
}

.contact-right{
    flex: 0.5;
}

.contact-left p{
    padding-left: 10px;
    font-size: 25px;
    font-weight: 100;
}

.contact-left h2{
    padding-left: 50px;
    padding-top: 10px;
}

.information{
    padding-left: 50px;
    display: flex;
    /* justify-content: center; */
}

/* .phone-container, .personal-email-container h2{
    text-align: center;
} */

.contact-container h1{
    margin: 0;
    padding-left: 95px;
}


.phone-container, .personal-email-container, .other-contacts-container{
    height: fit-content;
    width: 80%;
    background-color: #323954;
}

/* .other-contacts-container>.information{
    display: block;
    padding-bottom: 5px;
} */

.information a{
    padding-left: 10px;
    font-size: 25px;
    color: white;
    text-decoration: none;
    font-weight: 100;
}


.round{
    border-radius: 25px;
}

.contact-right input{
    background-color: #323954;
    border-radius: 25px;
    border-style: none;
    color: white;
}

.name-container{
    display: flex;
    justify-content: space-between;
}

.contact-right input{
    text-align: left;
    font-size: 25px;
    font-weight: 100;
    margin: 0.5em 0 0.5em 0;
    height: 60px;
    width: 100%;
    /* padding-left: 25px; */
    text-indent: 25px;

}

.first-name-text{
    /* margin: 0; */
    margin-left: 0;
    margin-right: 0;
    flex: 0.49;
}

.last-name-text{
    /* margin: 0; */
    margin-left: 0;
    margin-right: 0;
    flex: 0.49;
}

::placeholder{
    color: #D6D7DD;
    /* padding-left: 20px; */
}

.message-text{
    height: fit-content;
    background-color: #323954;
    min-height: 300px;
    border-radius: 25px;
    /* margin-top: 0.5em;
    padding-top: 30px;
    padding-left: 25px;
    font-size: 25px;
    font-weight: 100;
    font-family: "Segoe UI", Arial, sans-serif; */
}

.message-container{
    vertical-align:top;
    margin-top: 0px;
}

textarea{
    color: white;
    /* padding-left: 25px; */
    text-indent: 25px;
    margin-top: 0.5em;
    padding-top: 10px;
    background-color: #323954;
    border-style: none;
    border-radius: 25px;
    width: 100%;
    font-size: 25px;
    font-weight: 100;
    font-family: "Segoe UI", Arial, sans-serif;
}

.submit-container input{
    display: flex;
    /* text-align: center; */
    justify-content: center;
    cursor: pointer;
    font-weight: 100;
}


/*Success Screen*/

/*
#56618E;
#323954;
*/
.success{
    position: fixed;
    background: #323954;
    border: black 1px solid;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    height: 400px;
    width: 900px;
    padding-top: 35px;
    border-radius: 25px;
    z-index: 5;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* .success img{
    padding-top: 35px;
    height: 75px;
    width: auto;
    display: block;
    margin: auto 0;
} */

.success-img{
    height: 75px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.success-img img{
    height: 75px;
    width: auto;
}

.success h1{
    margin-top: 0;
}
.success h1,
.success p{
    margin-top: 0;
    text-align: center;
}

.btn-container{
    margin-top: 45px;
    display: flex;
}

.okay-btn{
    color: white;
    height: 50px;
    width: 220px;
    border: none;
    background-color: #56618E;
    border-radius: 25px;
    margin: 0 auto;
    font-size: 20px;
    cursor: pointer;
}

.okay-btn:hover{
    background-color: rgba(86, 97, 142,0.5);  
}

.overlay{
    position: fixed;
    background-color: rgba(0, 0, 0, 0.5);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: none;
}


/* Mobile/Smaller Devices */


/* contact */
@media screen and (max-width: 1300px) {

    .inner-contact-container{
        display: block;
    }

    .phone-container{
        width: 100%;
    }

    .project-left{
        padding-left: 0;
    }

    .personal-email-container{
        width: 100%;
    }

    .other-contacts-container{
        width: 100%;
    }
}


/* about */
@media screen and (max-width: 1100px) {
    .content{
        display: block;
        /* justify-content: center; */
    }

    .right{
        /* width: 100%; */
        padding-top: 9em;
        display: flex;
        justify-content: center;
    }

    .success{
        position: fixed;
        background: #323954;
        border: black 1px solid;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        height: 400px;
        width: 600px;
        border-radius: 25px;
        z-index: 5;
        /* display: none; */
    }
    
    .success img{
        padding-top: 35px;
        height: 75px;
        width: auto;
        display: block;
        margin: 0 auto;
    }
    
    .success h1{
        margin-top: 0;
    }
    .success h1,
    .success p{
        margin-top: 0;
        text-align: center;
    }
    
    .btn-container{
        margin-top: 45px;
        display: flex;
    }

    .right{
        padding-right: 0;
    }

    .left{
        padding-left: 30px;
        padding-right: 30px;
    }

    .header{
        padding-left: 30px;
    }


}

/* project */
@media screen and (max-width: 1300px) {
    .project-flex{
        display: block;
    }

    .projects{
        padding-left: 15px;
        padding-right: 15px;
    }

    .projects p{
        text-align: center;
    }

    #calc-right{
        display: flex;
        justify-content: center;
        padding-right: 0;
    }

    #calc-right img{
        max-width: 90%;
        height: auto;
    }

}


@media screen and (max-width: 700px) {
    .header-btn a{
        display: none;
    }


    .left{
        padding-left: 0;
        text-align: center;
    }

    .right img{
        justify-content: center;
        width: 90%;
        max-width: 450px;
        height: auto;
    }

    .right{
        padding-right: 0;
    }

    .header{
        text-align: center;
        padding-left: 0;
    }

}


/* 500px */

@media screen and (max-width: 590px) {
    .contact-left p{
        padding-left: 0;
        font-size: 18px;
    }
    .contact-left img{
        display: none;
    }

    .information{
        padding-left: 0;
        display: flex;
        justify-content: center;
    }

    h1{
        font-size: 25px;
    }
    h2{
        font-size: 20px;
    }
    p{
        font-size: 18px;
    }


    /*about*/

    .header{
        padding-left: 0;
        text-align: center;
    }

    .left{
        padding-left: 0;
        text-align: center;
    }

    .right img{
        justify-content: center;
        width: 90%;
        height: auto;
    }

    .right{
        padding-right: 0;
    }

    /*projects*/

    .projects p{
        font-size: 18px;
        text-align: center;
    }



    /*contact*/
    .contact-container input{
        font-size: 18px;
    }

    .contact-container h1{
        text-align: center;
        padding-left: 0;
    }

    .contact-container h2{
        padding-left: 0;
        text-align: center;
    }

    textarea{
        font-size: 18px;
    }
    .inner-contact-container{
        padding: 0 20px;
    }

    .moon{
        display: none;
    }

    /*Success pop up*/
    .success{
        position: fixed;
        background: #323954;
        border: black 1px solid;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        height: 350px;
        width: 400px;
        border-radius: 25px;
        z-index: 5;
        /* display: none; */
    }
    
    .success img{
        padding-top: 35px;
        height: 75px;
        width: auto;
        display: block;
        margin: 0 auto;
    }
    
    .success h1{
        margin-top: 0;
    }
    .success h1,
    .success p{
        margin-top: 0;
        text-align: center;
    }
    
    .btn-container{
        margin-top: 45px;
        display: flex;
    }


}

.mountain, .stars{
    width: 100%;
}

.home-container{
    width: 100%;
}

.outer-bar{
    width: 100%;
}

@media screen and (max-width: 800px) {

    .left{
        padding-left: 0;
        padding-right: 0;
        text-align: center;
    }
    .header{
        padding-left: 0;
        text-align: center;
    }

    .skills-container{
        display: block;
    }

    .contact-container h1{
        padding-left: 0;
        text-align: center;
    }

}


@media screen and (max-width: 400px) {

    /*Success pop up*/
    .success{
        position: fixed;
        background: #323954;
        border: black 1px solid;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        height: 350px;
        width: 300px;
        border-radius: 25px;
        z-index: 5;
        /* display: none; */
    }
        
    .success img{
        padding-top: 35px;
        height: 75px;
        width: auto;
        display: block;
        margin: 0 auto;
    }
        
    .success h1{
        margin-top: 0;
    }
    .success h1,
    .success p{
        margin-top: 0;
        text-align: center;
    }
        
    .btn-container{
        margin-top: 45px;
        display: flex;
    }


}