/* GENERAL */

body {
    font-family: 'Roboto', sans-serif;
}

h1,h2,h3,h4,h5,h6 {
    font-weight: bold;
}

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

section {
    padding: 45px 0 80px 0;
}

section .heading {
    text-align: center;
    padding-bottom: 40px;
}

.heading h2 {
    text-transform: uppercase;
}

.red-divider {
    width: 100px;
    height: 2px;
    background: #d82c2e;
    margin: 0 auto;
    margin-bottom: 20px;
}

.white-divider {
    width: 100px;
    height: 2px;
    background: #fff;
    margin: 0 auto;
    margin-bottom: 20px;
}

ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
}

/* NAVBAR */

.navbar {
    background-color: #d82c2e;
    font-size: 12px;
    border-bottom: 1px solid #fff;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: bold;
}

.nav-pills .nav-link{
    color: #fff !important;
    text-align: center;
}

.nav-pills .nav-link.active,  .nav-pills .nav-link:hover{
    color: #d82c2e !important;
    background-color: #fff !important;
}

.navbar-toggler{
    color: #fff !important;
    border-style: none;
}

/* ABOUT */

#about {
    padding-top: 100px;
    background: #d82c2e;
}

.profile-picture {
    text-align: center;
    margin: 0 auto; 
    float: none;
}

#about .heading h1 {
    color: #fff;
    text-transform: uppercase;
}

#about .heading h3 {
    color: #000000;
}

.button1 {
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid #fff;
    display: inline-block;
    margin-top: 20px;
    padding: 18px 50px;
    border-radius: 3px;
    transition: all 0.3s ease-in 0s;
}

.button1:hover {
    background: #fff;
    color: #d82c2e;
    text-decoration: none;
}

/* SKILLS */

#skills {
    background: #fff;
}

#skills .heading h2 {
    color: #d82c2e;
}

#skills .progress {
    height: 15%;
    margin: 30px 20px;
    background: #dddddd;
}

#skills .progress-bar {
    background: #d82c2e;
}

#skills .progress h5 {
    text-shadow: 1px 1px 1px #000000;
}

@media screen and (max-width:410px) {
    #skills .progress h5 {
        font-size: 1.2em;
    }
}

/* EXPERIENCE */

#experience {
    background: #d82c2e;
}

#experience .heading h2 {
    color: #fff;
}

.timeline {
    padding: 30px 10px;
    position: relative;
}

.timeline::before {
    top: 0; 
    bottom: 0; 
    position: absolute;
    content: "";
    width: 5px; 
    background-color: #333333; 
    left: 50%; 
    margin-left: -2.5px; 
}

.timeline li {
    margin-bottom: 20px;
    position: relative;
}

.timeline li::after {
    clear: both;
}

.timeline li::before, .timeline li::after {
    content: "";
    display: table;
}

.timeline li .timeline-badge {
    color: #d82c2e;
    width: 50px;
    line-height: 50px;
    font-size: 20px;
    text-align: center;
    position: absolute;
    top: 16px;
    left: 50%;
    margin-left: -25px;
    background-color: #dddddd;
    border-radius: 50%;
}

.timeline-panel-container {
    width: 50%;
    float: left;
}

.timeline-panel-container-inverted {
    width: 50%;
    float: right;
}

.timeline-panel {
    width: 90%;
    float: right;
    margin-right: 40px;
    border: 1px solid #d4d4d4;
    border-radius: 7px;
    padding: 20px 25px;
    position: relative;
    box-shadow: 0 1px 6px rgba(0,0,0, 0.175);
    background: #fff;
}

.timeline-panel-container-inverted .timeline-panel {
    float: left;
    margin-left: 40px;
}

.timeline-panel::after {
    position: absolute;
    top: 27px;
    right: -14px;
    display: inline-block;
    border-top: 14px solid transparent;
    border-left: 14px solid #fff;
    border-right: 0 solid #fff;
    border-bottom: 14px solid transparent;
    content: "";
}

.timeline-panel-container-inverted .timeline-panel::after {
    border-left-width: 0;
    border-right-width: 14px;
    left: -14px;
    right: auto;
}

.timeline-heading h3 {
    margin-top: 5px;
    font-size: 20px;
}

.timeline-heading h4 {
    color: #d82c2e;
}

@media screen and (max-width:350px){
    .timeline-heading h4 {
        font-size: 1.3rem;
    }
}

/* EDUCATION */

#education {
    background: #fff;
}

#education .heading h2 {
    color: #d82c2e;
}

.education-block {
    width: 80%;
    margin: 0 auto;
    text-align: center;
    padding: 30px;
    background: #dddddd;
    border-radius: 10px;
    border: 2px solid #cccccc;
    margin-bottom: 20px;
}

.education-block h5 {
    color: #888888;
    font-size: 15px;
    margin-bottom: 15px;
}

.education-block i {
    font-size: 40px;
}

.education-block h3 {
    color: #d82c2e;
}

.education-block h4 {
    margin-bottom: 20px;
}

.education-block p {
    font-weight: bold;
}

.education-block .red-divider {
    margin-bottom: 20px;
}

/* PORTFOLIO */

#portfolio {
    background: #d82c2e;
}

#portfolio .container .heading h2 {
    color: #fff;
}

#portfolio img{
    width: 100%;
    height: 100%;
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%); 
}

#portfolio img:hover{
     filter: none;
    -webkit-filter: none; 
}

#portfolio .card:nth-child(1) {
    margin-bottom: 1em;
}

/* FOOTER */

footer {
    background: #333333;
    padding: 20px 0 40px;
}

footer i {
    font-size: 25px;
    margin: 20px;
    color: #d82c2e;
    height: 30px;
    opacity: 0.5;
}

footer i:hover {
    font-size: 30px;
    opacity: 1;
}

footer h5 {
    color: #fff;
    font-weight: normal;
}