:root{
    --secondaryColor:#fff;
    --mainColor: #eaeaea;

    --secondaryText:#4b5156;
    --maintext:black;

    --borderColor:#c1c1c1;

    --theme-border:#24292e;
    --previewbg: rgba(251, 249 ,243, 0.8);
    --previewshadow:wheat;

    --button-color: #323232;
}


html,body{
    padding: 0%;
    margin: 0;

}

body *{
        
    transition: all 0.5s;
}


h1,h2,h3,h4,h5,h6,strong{
    color: var(--maintext);
    font-family: 'Russo One', sans-serif;
    font-weight: 300;
    letter-spacing: 2px;
}
a{
    text-decoration: none;
    color: #17a2b8;
}
h1{
    font-size: 56px;
}

h2{
    font-size: 36px;
}

h3{
    font-size: 28px;
}

h4{
    font-size: 24px;
}

h5{
    font-size: 20px;
}

h6{
    font-size: 16px;
}

ul{
    list-style: none;
}

.align-center{
    text-align: center;
}

p,li,span,label,input,textarea{
    text-decoration: none;

    color: var(--secondaryText);
    font-family: 'Roboto Mono', monospace;
}

.s1{
    background-color: var(--mainColor);
    border-bottom:1px solid var(--borderColor);
    overflow: auto;
}

.s2{
    background-color: var(--secondaryColor);
    border-bottom:1px solid var(--borderColor);
    overflow: auto;
}

.main-container{
    width: 1200px;
    margin: 0 auto;
}

.greeting-wrapper{
    display: grid;
    min-height: 10em;

    align-content: center;
    text-align: center;
}

.intro-wrapper{
    background-color: var(--secondaryColor);
    border: 1px solid var(--borderColor);
    border-radius: 5px 5px 0 0;

    -webkit-box-shadow: -1px 1px 3px -1px rgba(0,0,0,0.75);
    -moz-box-shadow: -1px 1px 3px -1px rgba(0,0,0,0.75);
    box-shadow: -1px 1px 3px -1px rgba(0,0,0,0.75);
   
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 3em 30em;
    grid-template-areas:
    "nav nav"
    "left-col right-col"
     ;
}


.nav-wrapper{
    grid-area: nav;
    border-bottom: 1px solid var(--borderColor) ;
    border-radius: 5px 5px 0 0;

    display: flex;

    justify-content: space-between;
    align-items: center ;

    background-color: var(--mainColor);
    
}

#navigation{
    
    padding: 20px;
}

#navigation li{
    display: inline-block;
    color: #f2f2f2;
    margin: 0 5px 0 5px;
}

#navigation li:hover{
    display: inline-block;
    
    font-weight: bold;
    margin: 0 5px 0 5px;
}



.dots-wrapper{
    padding: 10px;
    display: flex;
}

.browser-dot{
    background-color: var(--secondaryText);
    height: 15px;
    width: 15px;
    margin: 5px;
    border-radius: 50%;
    -webkit-box-shadow: -1px 1px 3px -1px rgba(0,0,0,0.75);
    -moz-box-shadow: -1px 1px 3px -1px rgba(0,0,0,0.75);
    box-shadow: -1px 1px 3px -1px rgba(0,0,0,0.75);
}

.browser-dot-red{
    background-color: rgb(255, 30, 0);
}

.browser-dot-green{
    background-color: rgb(131, 197, 0);
}

.browser-dot-yellow{
    background-color:  rgb(255, 196, 0);
}


.left-col{
    grid-area: left-col;
    
    
}

.profile-pic{
    display: block;
    margin: 50px auto;


    height: 200px;
    width: 200px;
    object-fit: cover;

    border: 2px solid var(--borderColor);
}

.theme-option-wrapper{
    display: flex;
    margin-bottom: 10px;

    justify-content: center;

}

.theme-dot{
    margin: 5px;

    cursor: pointer;

    box-shadow: -1px 1px 3px -1px rgba(0,0,0,0.75);

    height: 30px;
    width: 30px;
    background-color: rgba(5, 5, 5, 0.5);
    border-radius: 50%;
    border: 2px solid var(--theme-border);
    transition: all 0.2s;
}

.theme-dot:hover{
    height: 35px;
    width: 35px;
    border-width:5px;
}

.light-mode{
    background-color: #fff;
}

.dark-mode{
    background-color: #3b3a3a;
}

.olive-mode{
    background-color: #78866b;
}

.purple-mode{
    background-color: #7e4c74;
}
.theme-text-wrapper{
    text-align: center;
}

.theme-text{
    font-style: italic;
    font-size: 12px;
}

.right-col{
    grid-area: right-col;

    display: grid;
    align-content: center;
    justify-content: center;

    
    
}

.preview{
    padding: 15px;

    position: relative;

    width: 300px;
    border: 2px solid #17a2b8;
    background-color: var(--previewbg);

    box-shadow: -33px -33px 0px 0px var(--previewshadow)
}

.preview>p{
    font-weight: 500;
}

.corner{
    position: absolute;

    height: 7px;
    width: 7px;
    border-radius: 50%;
    border: 2px solid #17a2b8;
    background-color: #fff;
}

.corner-tl{
    top: -6px;
    left: -6px;
}

.corner-tr{
    top: -6px;
    right: -6px;
}

.corner-bl{
    bottom: -6px;
    left: -6px;
}

.corner-br{
    bottom: -6px;
    right: -6px;
}

.abt-wrapper{
    
    padding: 2em;


    display:grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto ;
    grid-column-gap: 100px;

    grid-template-areas: 
    "left-col right-col";
    
}

.abt-left-col{
    color: var(--secondaryText);
    font-weight: 1000;
}

.abt-skills{
    display: flex;
    background-color:  var(--previewshadow);
    
    justify-content: space-evenly;
}


.about-section{
    
    height: max-content;
}

.portfolio{
    padding-bottom: 40px;

    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 50px;
    grid-template-areas: 
    "portfolio-heading portfolio-heading portfolio-heading"
    "portfolio-card-1 portfolio-card-2 portfolio-card-3";
}

.portfolio > h3{
    grid-area: portfolio-heading;

    text-align: center;
}

.card{
    position: relative;


    --webkit-perspective:150rem;
    perspective:150rem;
}

.card-front{
    box-shadow: -9px 10px 7px -9px rgba(5, 5, 5, 0.5);
    border: 1px solid var(--borderColor);
    backface-visibility: hidden;
    transition: all 0.7s;
}

.card:hover .card-front{
    transform: rotateY(-180deg);
    z-index: 1;
    opacity: 0;

}

.card-back{
    display: flex;
    justify-content: center;
    align-items: center;


    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: -9px 10px 7px -9px rgba(5, 5, 5, 0.5);
    border: 1px solid var(--borderColor);
    transform: rotateY(180deg);
    opacity: 0;
    backface-visibility: hidden;
    transition: all 0.7s;
}

.card:hover .card-back{
    transform: rotateY(0deg);
    z-index: 1;
    opacity: 1;

}


.card-text{
    padding: 15px;
}

.card_1{
    grid-area: portfolio-card-1;
    
}

.card_2{
    grid-area: portfolio-card-2;
    
}

.card_3{
    grid-area: portfolio-card-3;
    
}

.form{
    border: 1px solid var(--borderColor);
    border-radius: 5px ;
    margin: 0 auto 20px auto;
    padding: 20px;
    max-width: 600px;
    background-color: var(--mainColor);
}

.form > label{
    display: inline-block;
    margin-bottom: 10px;
    text-transform: capitalize;
    font-weight: 700;
    font-size: 1.5em;
}

.inputfield{
    outline-style: auto;
    width: 95%;
    border-radius: 5px;
    margin-bottom: 10px;
    border: 1px solid var(--borderColor);
    padding: 10px;
    transition: all 0.5s;
}

.inputfield:focus{
    outline: 1px auto blue;
    
}

.inputfield:invalid{
    border: 3px solid #ff0000;
    
}

.message-input{
    width: 95%;
    height: 20%;
    border-radius: 3px;
    margin-bottom: 10px;
    border: 1px solid var(--borderColor);
    padding: 10px;

}

.button-form{
    color: white;
    display: inline-block;
    text-align: center;
    background-color: var(--button-color);
    width: 100%;
    padding: 10px;
    border: none;
}


@media screen and (max-width: 1200px){
    .main-container{
    width: 95%;
}
}


@media screen and (max-width: 800px){
    .portfolio{
    padding-bottom: 40px;

    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 1fr;
    grid-gap: 50px;
    grid-template-areas: 
    "portfolio-heading"
    "portfolio-card-1"
    "portfolio-card-2" 
    "portfolio-card-3";
}

    .intro-wrapper{
    
    grid-template-columns: 1fr;
    grid-template-rows: 3em 30em 30em;
    grid-template-areas:
    "nav"
    "left-col"
    "right-col"
     ;

     
}

    .abt-wrapper{
    
    grid-template-columns: 1fr;
    grid-template-rows: auto ;

    grid-template-areas: 
    "left-col" 
    "right-col";
    
}

.abt-skills{
    justify-content: space-around;
}

.preview{
    box-shadow: -20px -20px 0px 0px var(--previewshadow)
}
}


@media screen and (max-width: 400px){
.preview{
    box-shadow: -8px -8px 0px 0px var(--previewshadow)
}
}
