/* about me */
.main-content {
    padding: 30px;
}

.profile {
    width: 70%;
    max-height: 240px;
    font: 1.1em/1.4 Roboto,sans-serif;
    background: rgba(0,0,0,0.05);
    padding: 10px;
    border: 10px solid #eee;
    -webkit-animation: upndown 1500ms alternate infinite;
    animation: upndown 1500ms alternate infinite;
}

@-webkit-keyframes upndown {
    0% {
        -webkit-transform: translateY(-30px);
        transform: translateY(-30px);
    }

    100% {
        -webkit-transform: translateY(30px);
        transform: translateY(30px);
    }
}

@keyframes upndown {
    0% {
        -webkit-transform: translateY(-30px);
        transform: translateY(-30px);
    }

    100% {
        -webkit-transform: translateY(30px);
        transform: translateY(30px);
    }
}

.profile .my_intro {
    width: 40%;
}

.profile .my_intro p {
    position: relative;
    text-align: center;
    background: #fff;
    padding: 12px;
    border: 1px solid grey;
}

/* creating an arrow in the right side of the box */
.profile .my_intro p:after {
    display: block;
    position: absolute;
    content: "";
    width: 20px;
    height: 20px;
    top: 50%;
    left: 100%;
    background: #fff;
    border-right: 1px solid grey;
    border-bottom: 1px solid grey;
    -webkit-transform: translate(-50%,-50%) rotate(-45deg);
    transform: translate(-50%,-50%) rotate(-45deg);
}

.profile .my_pic {
    width: 30%;
}

.profile .my_pic img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 10px solid rgba(0,0,0,0.2);
    box-shadow: 0 0 2px 0 #333;
}

.social10 {
    width: 30%;
    font: 2em/1.6 Georgia,sans-serif;
}

.social10 a:first-child {
    color: #00ACED;
    border-color: #00ACED;
}

.social10 a:nth-child(2) {
    color: #3A5795;
    border-color: #3A5795;
}

.social10 a:nth-child(3) {
    color: #777;
    border-color: #444;
}

.social10 a:hover:first-child:before {
    background: #00ACED;
}

.social10 a:hover:nth-child(2):before {
    background: #3A5795;
}

.social10 a:hover:nth-child(3):before {
    background: #E62117;
}

.social10 a {
    display: block;
    position: relative;
    z-index: 0;
    width: 1.6em;
    height: 1.6em;
    text-align: center;
    background: #fff;
    border: 1px solid currentColor;
    border-radius: 50%;
    margin-right: 7px;
    -webkit-transition: all 150ms ease-in-out 200ms;
    transition: all 150ms ease-in-out 200ms;
}

.social10 a:before {
    display: block;
    position: absolute;
    z-index: -1;
    content: "";
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    top: 1px;
    left: 1px;
    border-radius: 50%;
    -webkit-transform: scale(0);
    transform: scale(0);
    -webkit-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    -webkit-transition: all 300ms ease-in-out;
    transition: all 300ms ease-in-out;
}

.social10 a:after {
    display: block;
    position: absolute;
    z-index: 1;
    content: "";
    top: -2px;
    right: -2px;
    bottom: -2px;
    left: -2px;
    border: 2px solid transparent;
    border-color: inherit;
    border-radius: 50%;
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    -webkit-transition: all 0s;
    transition: all 0s;
}

.social10 a:hover {
    color: #fff;
}

.social10 a:hover:before {
    -webkit-transform: scale(1);
    transform: scale(1);
}

.social10 a:hover:after {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
    opacity: 0;
    -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
    -webkit-transition: all 600ms ease-in-out 300ms;
    transition: all 600ms ease-in-out 300ms;
}

/* tooltip */
.social10 a span {
    display: block;
    position: absolute;
    height: 30px;
    top: 50%;
    left: 100%;
    font: .5em/1.2 Georgia;
    white-space: nowrap;
    color: #fff;
    padding: 4px;
    padding-left: 20px;
    background: -webkit-radial-gradient(12px 15px circle,#fff 4px,transparent 0) no-repeat,-webkit-linear-gradient(left,transparent 15px,#666 0),-webkit-linear-gradient(315deg,transparent 50%,#666 0) 0 0 / 15px 15px no-repeat,-webkit-linear-gradient(45deg,transparent 50%,#666 0) 0 100% / 15px 15px no-repeat;
    background: radial-gradient(circle at 12px 15px,#fff 4px,transparent 0) no-repeat,linear-gradient(to right,transparent 15px,#666 0),linear-gradient(135deg,transparent 50%,#666 0) 0 0 / 15px 15px no-repeat,linear-gradient(45deg,transparent 50%,#666 0) 0 100% / 15px 15px no-repeat;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    -webkit-backface-visibility: none;
    backface-visibility: none;
    opacity: 0;
    -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
    -webkit-transition: all 500ms linear;
    transition: all 500ms linear;
}

.social10 a > span {
    pointer-events: none;
}

.social10 a:hover span {
    left: 120%;
    opacity: 1;
    -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

/* about the site */
.site {
    width: 90%;
    font: 1.1em/1.4 Roboto,sans-serif;
    color: #282828;
    margin-bottom: 30px;
}

.site h1 {
    position: relative;
    font: 600 1.3em/1 "Modern Antiqua",Georgia;
    padding-left: 40px;
}

.site h1:before {
    display: block;
    position: absolute;
    content: "\f121";
    top: -2px;
    left: 4px;
    font-family: fontAwesome;
    color: #D04235;
}

.site h1:nth-of-type(2):before {
    content: "\f085";
}

.site h1:nth-of-type(3):before {
    content: "\f1c5";
}

.site h1:nth-of-type(4):before {
    content: "\f031";
}

.site h1:nth-of-type(5):before {
    content: "\f10b";
    top: -6px;
    left: 9px;
    font-size: 1.3em;
}

.site h1:nth-of-type(6):before {
    content: "\f201";
}

hr {
    box-shadow: 0 0 1px #777;
}

.site p {
    text-indent: 40px;
}

.site a {
    color: #D04235;
    text-decoration: none;
}

.site a:hover {
    color: red;
}

code {
    background: #f5f9cf;
    color: #444;
    font: 1.3em/1 monospace;
    white-space: nowrap;
}

ol {
    padding-left: 22px;
}

ol li {
    list-style-type: upper-roman;
}

/* contact form */
#form {
	font: 1.1em/1.1 Roboto,sans-serif;
    min-width: 460px;
    width: 50%;
    padding: 20px;
    background: #f2f2f2;
    box-shadow: 0 0 4px 2px grey;
}

#form > div {
    margin-bottom: 7px;
}

/* ---------- Contact Me ------------*/
/* contact form */
#form {
    font: 1.1em/1.1 Roboto,sans-serif;
    min-width: 460px;
    width: 50%;
    padding: 20px;
    background: #f2f2f2;
    box-shadow: 0 0 4px 2px grey;
}

.message_form{
    font: 1.3em/2 Roboto;
	color: #FF6347;
    text-align: center;
    background: #282C2D;
    padding: 20px;
    border: 1px dashed #fff;
	box-shadow: 0 0 3px 3px #999;
}

#fail_message{  
	width: 50%;  
	font: 1.3em/2 Georgia;   
	color: red;
	text-align: center;
    background: #fff;
    border: 1px dashed black;
    margin-bottom: 10px;
}

#form > div {
    margin-bottom: 7px;
}

#form div:first-child {
    position: relative;
    z-index: 0;
    font: 1.1em/1.1 "Modern Antiqua",sans-serif;
    color: #222;
    text-align: center;
    text-transform: uppercase;
    padding: 5px;
    border: none;
}

#form div:first-child span {
    background: #f2f2f2;
    padding: 0 15px;
}

#form div:first-child:before {
    position: absolute;
    display: block;
    z-index: -1;
    content: "";
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
    background: grey;
}

#form .req_mes {
    font: bold italic .9em/1 Helvetica;
    color: grey;
    text-align: center;
    border: none;
}

#form .req_mes span {
    background: #fff;
    padding: 0 5px;
}

#form .req_mes span:before {
    content: "* ";
    color: #ff6347;
}

#form label i {
    color: #D04235;
    margin-right: 8px;
}

#form label {
    flex-basis: 35%;
    color: #282C2D;
    text-transform: capitalize;
    padding: 10px;
    background: #fff;
    border: 1px solid #000;
    border-right-color: grey;
}

#form div:not(:nth-of-type(5)):not(:nth-of-type(7)) label:after {
    content: "*";
    color: #ff6347;
}

#form input {
    font-size: 1em;
    color: #555;
    border: 1px solid #000;
    border-left: none;
    padding-left: 10px;
    padding-right: 25px;
}

#form input:focus,#form textarea:focus {
    box-shadow: 0 0 2px 1px #777 inset;
    outline: none;
}

/*remove the placeholder when I click on the input */
input:focus::-webkit-input-placeholder {
    color: transparent;
}

input:focus:-moz-placeholder {
    color: transparent;
}

/* FF 4-18 */
input:focus::-moz-placeholder {
    color: transparent;
}

/* FF 19+ */
input:focus:-ms-input-placeholder {
    color: transparent;
}

/* IE 10+ */
textarea:focus::-webkit-input-placeholder {
    color: transparent;
}

textarea:focus:-moz-placeholder {
    color: transparent;
}

/* FF 4-18 */
textarea:focus::-moz-placeholder {
    color: transparent;
}

/* FF 19+ */
textarea:focus:-ms-input-placeholder {
    color: transparent;
}

/* IE 10+ */
#form input:required:valid,#form textarea:required:valid {
    background: #fff url(../images/valid.png) no-repeat 98% center;
}

/*
#form input:focus:invalid, #form textarea:focus:invalid {
    background: #fff url("../images/invalid.png") no-repeat 98% center;
}
*/

/* when I write something in an (obviously focused) invalid input */
#form input:invalid:focus:not(:placeholder-shown) {
    background: #fff;
}

/* something invalid written in an input that is not focused */
#form input:invalid:not(:focus):not(:placeholder-shown) {
    background: #fff url(../images/invalid.png) no-repeat 98% center;
    box-shadow: 0 0 1px 1px red inset;
}

#form input + span {
    max-height: 0;
    overflow: hidden;
    flex-basis: 100%;
    font: italic .8em/1.2 Hevletica;
    text-align: center;
    transition: all 300ms linear;
}

/* red for invalid message and green for the valid one */
#form input:invalid:focus + span,
#form input:valid:focus + span{
    max-height: 40px;
    color: red;
    padding-top: 5px;
}

#form input:valid:focus + span {
    color: green;
}

#form textarea {
    font: 1em/1 Roboto,sans-serif;
    padding: 5px;
    padding-right: 20px;
    border: 1px solid #000;
    border-left: none;
}

#form input[type="submit"].button14 {
    position: relative;
    display: block;
    width: 100%;
    font: 500 1em/2 Helvetica,Georgia,"Times New Roman",serif;
    text-align: center;
    text-transform: capitalize;
    letter-spacing: .065em;
    border-radius: .5em;
    color: #FF6347 !important;
    background: #282C2D;
    border: 2px solid #fff !important;
    border-radius: .7em;
    outline: 2px solid #282C2D;
    cursor: pointer;
    margin-top: 15px;
}

#form input[type="submit"].button14:hover {
    color: #fff !important;
}

#form input[type="submit"].button14:active {
    opacity: .7;
}

#form input[type="checkbox"] {
    display: none;
}

#form .update {
    position: relative;
    padding-right: 40px;
    border: 1px solid grey;
    text-transform: none;
}

#form .update:before {
    content: "\f0a1";
    font: 1.1em/1.2 fontAwesome;
    color: #ff6347;
    margin-right: 5px;
}

#form .update:hover {
    cursor: pointer;
}

#form .update div {
    width: 30px;
    height: 30px;
    background: #fefefe url("../images/valid.png") center center no-repeat;
    border: 1px solid grey;
    position: absolute;
    top: 6px;
    left: calc(100% - 40px);
    overflow: hidden;
}

#form .update div:before {
    display: block;
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1;
    -webkit-transition: all 0s;
    transition: all 0s;
}

#form .update input:checked + div:before {
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    -webkit-transition: all 300ms linear;
    transition: all 300ms linear;
}