* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.img-responsive {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
}

body {
    font-family: montserrat, sans-serif;
    margin: 0px;
}

.hamburger {
    display: none;
}

#toggle {
    display: none;
}

.container {
    max-width: 1920px;
    width: 100%;
    background: url(../img/background2.jpg);
    background-position: top center;
    background-size: cover;
    overflow-x: hidden;
}

header {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-top: 40px;
    width: 100%;
    z-index: 1;
}

.logo, .logo2 {
    width: 60px;
    height: auto;
}

nav {
    width: 110px;
    margin-top: 20px;
    width: 60%;
}

.navlink {
    text-decoration: none;
    font-weight: 700;
    font-size: 10pt;
    color: white;
    border: 1px solid white;
    border-radius: 20px;
    padding: 5px 15px;
    transition: all 0.3s ease;
}

.navlink:hover {
    color: #6CA3C9;
    background-color: white;
}

.navlink.sticky {
    background-color: white;
    border: 1px solid white;
    color: #6CA3C9;
}

.navlink.active {
    background-color: #FFF3AF;
    border: 1px solid #FFF3AF;
    color: #6CA3C9;
}

.navi {
    margin-bottom: 20px;
    margin-top: 20px;
    text-align: right;
}

.myname {
    position: absolute;
    margin-left: 17.5%;
    margin-top: 18%;
    width: 40%;
}

.myillus {
    position: relative;
    margin-left: 57%;
    margin-top: 10%;
    width: 25%;
    margin-bottom: 200px;
}

.myposition {
    font-weight: 700;
    color: white;
    width: 22%;
    position: relative;
    left: 32.6%;
    margin-bottom: 25%;
    margin-top: -22.5%;
}

.mytagline {
    position: relative;
    left: 32.6%;
    margin-bottom: 25%;
    margin-top: -24.7%;
    color: #FFF3AF;
    font-size: 10pt;
}

#about {
    padding-top: 50px;
    margin-top: 100px;
    display: flex;
    justify-content: center;

}

.aboutsec {
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    margin-left: 5%;
    height: auto;
    padding: 20px 160px 20px 160px;
}

.myabout {
    color: white;
    line-height: 30px;
    width: 40%;
    margin-right: 15%;
}

.myabout p {
    margin-top: 25px;
}

.myskill {
    color: white;
    width: 40%;
}

.myskill img {
    margin-top: 12px;
    width: 85%;
}

.btnResume {
    width: 200px;
    height: 40px;
    border: white solid 2px;
    border-radius: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    margin-top: 8%;
    cursor: pointer;
    transition: all 0.5s;
}

.forline {
    display: flex;
    justify-content: center;
    width: 100%;
}

.line {
    border-left: 2px solid white;
    opacity: .5;
    height: 200px;
    width: 10px;
}

#projects {
    width: 100%;
    height: auto;
    margin-top: 100px;
}

#projects h2 {
    color: white;
    font-size: 18pt;
    font-weight: 700;
    text-align: center;
    margin-top: 8%;
    padding-top: 50px;
}

.card {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 5%;
    margin-left: -1%;
}

.cards {
    width: 65%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.projcard {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s;
    margin-bottom: 30px;
    width: 32%;
    height: 240px;
    background-color: white;
    background-size: cover;
    background-position: center;
    transition: all 0.5s;
}

.card1 {
    background-image: url(../img/card4.jpg);
}

.card2 {
    background-image: url(../img/card2gif.gif);
    background-position: top;
}

.card3 {
    background-image: url(../img/card3a.jpg);
}

.card4 {
    background-image: url(../img/card_wordgame.jpg);
}

.card5 {
    background-image: url(../img/othercard.jpg);
}

.card6 {
    background-image: url(../img/card6.jpg);
}

.card7 {
    background-image: url(../img/bexcard.jpg);
}

.card8 {
    background-image: url(../img/card5.jpg);
}

.card9 {
    background-image: url(../img/card8.jpg);
}

.projfooter {
    display: flex;
    z-index: 1;
    height: 80px;
    width: 100%;
    bottom: 0;
}

.cardtitle {
    font-weight: 700;
    padding-top: 5px;
}

.info {
    background-color: white;
    font-weight: 500;
    width: 100%;
    height: 92%;
    color: #0c1f2f;
    font-size: 11.5pt;
    padding: 10px 20px 10px 20px;
    transform: translateY(240px);
    transition: transform .5s cubic-bezier(.31,1.21,.64,1.02);
}

.card-blur {
    border-radius: 16px;
    position: absolute;
    width: 20.8%;
    height: 240px;
    background-color: black;
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.projlinks {
    width: 20.8%;
    height: 240px;
    position: absolute;
    z-index: 100;
}

#contact {
    width: 100%;
    height: auto;
    margin-top: 0px;
}

#contact h2 {
    color: white;
    font-size: 18pt;
    font-weight: 700;
    text-align: center;
    margin-top: 8%;
    padding-top: 50px;
}

.contactleft {
    width: 500px;
    height: auto;
}

.contactsec {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 100px;
}

.contactsec2 {
    display: flex;
    justify-content: space-around;
    width: 70%;
    margin-top: 60px;
}

.contactleft {
    width: 40%;
}

.formright {
    width: 40%;
    padding: 50px;
    padding-left: 10px;
    font-family: montserrat, sans-serif;
}

.formright label {
    font-family: montserrat, sans-serif;
    color: #1d3354;
    font-size: 12pt;
    font-weight: 300;
}

.formcont input,
.formcont textarea {
    font-family: montserrat, sans-serif;
    background-color: white;
    border: .5px solid white;
    padding: 10px;
    width: 350px;
    border-radius: 6px;
    margin-top: 5px ;
}

.formcont textarea {
    padding-top: 10px;
}

    ::placeholder {
    font-weight: 200;
    color: #1d3354;
}

/* .submitbtn input {
    font-size: 11pt;
    width: 200px;
    height: 40px;
    border: white solid 2px;
    border-radius: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    margin-top: 8%;
    cursor: pointer;
    transition: all 0.5s;
    background-color: transparent;
} */

button {
    font-size: 11pt;
    width: 200px;
    height: 40px;
    border: white solid 2px;
    border-radius: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    margin-top: 8%;
    cursor: pointer;
    transition: all 0.5s;
    background-color: transparent;
}

.copyright {
    padding: 20px;
    text-align: center;
    color: white;
    font-size: 10pt;
}

/* Form msg */
form button.disabled{
	opacity: 0.2;
}

.error{
	color: #a71f1f;
	margin-top: 20px;
	background: #fde3e8;
    border-radius: 8px;
	padding: 10px;
	display: none;
    width: 80%;
    text-align: center;
}

.success{
	color: #086508;
	margin-top: 20px;
	background: #c9fdc9;
	padding: 10px;
    border-radius: 8px;
    width: 80%;
    text-align: center;
	display: none;
}

.please-wait{
	text-align: left;
	margin-top: 30px;
    color: white;
	font-weight: 600;
}

/****** For Desktop: ******/

@media only screen and (min-width: 768px) {
    

    .btnResume:hover {
        background-color: white;
        color: #6CA3C9;
        transition: all 0.5s;
    }

    .projcard:hover .info {
        transform: translateY(170px);
    }

    .projcard:hover {
        cursor: pointer;
        box-shadow: 0 8px 16px 0 rgba(10, 27, 36, 0.5);
        transition: all 0.5s;
    }

    .projcard:hover .card-blur {
        opacity: 0.6;
    }

    button:hover {
        background-color: white;
        color: #6CA3C9;
        transition: all 0.5s;
    }
}



/****** For Tablet: ******/

@media only screen and (min-width: 601px) and (max-width:768px) {
    .container {
        max-width: 767px;
        width: 100%;
        overflow-x: hidden;
        background: url(../img/background2.jpg);
        background-position: top center;
        background-size: cover;
    }

    .myname {
        position: absolute;
        margin-left: 20%;
        margin-top: 35%;
        width: 50%;
        z-index: 20;
    }

    .myillus {
        position: relative;
        margin-left: 40%;
        margin-top: 10%;
        width: 38%;
        margin-bottom: 200px;
    }
    
    .myposition {
        font-weight: 700;
        color: white;
        width: 19%;
        position: relative;
        left: 55%;
        margin-bottom: 25%;
        margin-top: -34%;
        font-size: 11pt
    }
    
    .mytagline {
        position: relative;
        left: 55%;
        margin-bottom: 25%;
        margin-top: -24.7%;
        color: #FFF3AF;
        font-size: 10pt;
    }

    .aboutsec {
        width: 100%;
        padding: 20px 160px 20px 180px;
    }
    
    .myabout {
        width: 100%;
    }
    
    .myskill {
        width: 100%;
        margin-top: 100px;
    }
    
    .cards {
        /* margin-left: -5%; */
        width: 58%;
    }
    
    .projcard {
        margin-bottom: 15px;
        width: 200px;
        height: 150px;
        background-color: white;
        background-size: 100%;
    }
    
    .cardtitle {
        font-size: 9pt;
        padding-top: 0;
        font-weight: 700;
    }

    .cardtext {
        font-size: 8pt;
    }
    
    .info {
        padding: 8px 20px 10px 20px;
        transform: translateY(108px);
    }
    
    .projlinks {
        width: 200px;
        height: 150px;
    }
    
    .contactleft {
        display: none;
    }

    button:active {
        background-color: white;
        color: #6CA3C9;
        transition: all 0.5s;
    }
    
    .formright {
        width: 65%;
    }
}



/****** For Mobile: ******/

@media only screen and (max-width: 600px) {
    .container {
        max-width: 600px;
    }

    body {
    font-family: montserrat, sans-serif;
    margin: 0px;
    }

    .hamitems {
        display: none;
        position: absolute;
        right: 48px;
        top: 80px;
    }

    .hamitems a {
        width: 100%;
        display: block;
        line-height: 10px;
        background-color: white;
        margin-bottom: -10px;
        text-align: right;
        font-size: 12px;
        color: #6CA3C9;
        text-decoration: none;
        font-family: montserrat, sans-serif;
        font-weight: 700;
        border: 1px solid white;
        border-radius: 20px;
        padding: 8px 10px;
        position: relative;
        z-index: 1000;
    }

    label {
        color: white;
        font-size: 35px;
        line-height: 50px;
        width: 26px;
        cursor: pointer;
        margin-right: 10%;
        margin-top: -3%;
        position: absolute;
    }
    .hamburger {
        display: block;
        margin-left: 53%;
        margin-top: -10%;
        position: absolute;
    }
    #toggle {
        display: none;
    }
    #toggle:checked+.hamitems {
        display: block;
    }
    
    header {
        position: fixed;
        display: flex;
        align-items: center;
        justify-content: space-around;
        padding-top: 40px;
        width: 100%;
        z-index: 100;
    }
    
    .logo {
        width: 45px;
        height: auto;
    }

    .myname {
        position: absolute;
        margin-left: 23%;
        margin-top: 35%;
        width: 60%;
        z-index: 20;
    }

    .myillus {
        position: relative;
        margin-left: 39%;
        margin-top: 10%;
        width: 55%;
        margin-bottom: 200px;
    }
    
    .myposition {
        font-weight: 700;
        color: white;
        width: 28%;
        position: relative;
        left: 15%;
        margin-bottom: 25%;
        margin-top: -74%;
        font-size: 11pt;
        text-align: right;
    }
    
    .mytagline {
        position: relative;
        left: 60%;
        margin-bottom: 25%;
        margin-top: -34%;
        color: #FFF3AF;
        font-size: 10pt;
        width: 100px;
    }

    #about {
        padding-top: 50px;
        margin-top: 100px;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .aboutsec {
        display: flex;
        flex-wrap: wrap;
        width: 60%;
        height: auto;
        padding: 0;
    }

    .myabout {
        line-height: 27px;
        width: 100%;
        margin-right: 0;
    }
    
    .aboutsec h2 {
        font-size: 14pt;
    }

    .aboutsec p {
        font-size: 11pt;
    }
    
    .myskill {
        color: white;
        width: 100%;
        margin-top: 100px;
        display: flex;
        justify-content: center;
        flex-direction: column;
    }

    .myskill h2 {
        text-align: left;
    }
    
    .myskill img {
        margin-top: 12px;
        /* width: 100%; */
    }
    
    .btnResume:active {
        background-color: white;
        color: #6CA3C9;
        transition: all 0.5s;
    }
    
    .line {
        display: none;
    }
    
    #projects {
        display: flex;
        justify-content: center;
        flex-direction: column;
        margin-top: 0;
    }
    
    #projects h2 {
        width: 100%;
        font-size: 14pt;
    }
    
    .card {
        margin-left: 0;
    }
    
    .cards {
        margin-left: 0;
        width: 70%;
    }
    
    .projcard {
        margin-left: 0;
        margin-bottom: 15px;
        width: 280px;
        height: 180px;
        background-size: 100%;
    }

    .cardtitle {
        font-size: 9pt;
        padding-top: 0;
    }

    .cardtext {
        font-size: 8pt;
    }
    
    .info {
        padding: 8px 20px 10px 20px;
        transform: translateY(135px);
    }
    
    .projlinks {
        width: 280px;
        height: 180px;
        z-index:0;
    }

    #contact {
        margin-top: 50px;
        margin-bottom: 0px;
        display: flex;
        justify-content: center;
        flex-direction: column;
    }

    #contact h2 {
        width: 100%;
        font-size: 14pt;
        margin-top: 0;
        padding-top: 0px;
    }
    
    .contactleft {
        display: none;
    }
    
    .contactsec {
        width: 100%;
        justify-content: center;
    }
    
    .contactsec2 {
        justify-content: center;
    }

    .formright {
        width: 100%;
        display: flex;
        justify-content: center;
        padding-left: 0;
        padding: 0;
    }

    .formcont input,
.formcont textarea {
    width: 300px;
}

    button:active {
        background-color: white;
        color: #6CA3C9;
        transition: all 0.5s;
    }
}