/*Enable smooth scroll for the page*/
html {
    scroll-behavior: smooth;
}


/* Animations */
body {
    animation-name: fade;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    animation-duration: 150ms;
}

@keyframes fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.link_active {
    animation-name: linkAn;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-duration: 3s;
}

@keyframes linkAn {
    0% {
        color: orange;
    }

    50% {
        color: yellow;
    }

    100% {
        color: orange;
    }
}

/*Site heading*/
h1 {
    animation-name: titleAn;
    animation-iteration-count: 1;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(.69, -0.01, .33, .99);
    animation-fill-mode: forwards;
}

@keyframes titleAn {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}



/* Body stylings */
body {
    background: #303030;
    color: #fff;
    padding: 1em;
    text-align: center;
}

/* Navigation bar */
.navbar {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar li {
    list-style: none;
    margin: 10px;
}

.navbar .link_active {
    color: #fff;
    border-bottom: 3px solid;
    text-shadow: 5px 15px 1em currentColor;
    text-decoration: none;
}

.navbar .nav-link {
    padding: 0.4em;
    margin: 5px;
    display: block;
    text-decoration: none;
    color: #fff;
    transition: 200ms;
}

.navbar .nav-link::after {
    content: "";
    width: 0;
    height: 2px;
    margin: 3px auto;
    background: orange;
    display: block;
    transition: 200ms;
}

.nav-link:hover {
    color: orange;
    text-shadow: 2px 2px 4px orange;
}

.nav-link:hover::after {
    width: 100%;
}

/* Site heading */

h1 {
    font-size: 2.7em;
    text-transform: uppercase;
    text-align: center;
}

h1 b {
    color: orange;
}

h2 {
    text-align: center;
}

h2 strong {
    color: orange;
    font-family: Ubuntu Mono;
    text-align: center;
}

.para {
    text-align: center;
}

.img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.img img {
    opacity: 0.2;
    width: 100%;
    max-width: 1500px;
    height: 550px;
    background: orange;
}

/* Section 2 */

.section-2 b {
    color: orange;
}


.section-2 h2 b {
    text-shadow: 1px 1px 0.6em orange;
    padding: 0.5em;
    font-weight: bolder;
    font-size: 1.5em;
}

/* Section 3 */
.button-div {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn {
    text-decoration: none;
    color: white;
    font-weight: bolder;
    padding: 0.5em 3em;
    background: orange;
    box-shadow: 5px 5px 1em transparent;
    transition: 150ms;
}

.btn:hover {
    color: black;
    box-shadow: 2px 3px 1em yellow;
    background: yellow;
}

.courses {
    display: flex;
    justify-content: center;
    align-content: center;
}

.course {
    height: 90px;
    width: 300px;
    text-decoration: none;
    margin: 5px;
    border-radius: 1em;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    background: orange;
    transition: 0.5s background;
}

.course:hover {
    background: yellow;
    box-shadow: 3px 3px 1em yellow;   
}

.course:hover p {
    color: black;
}

.course p {
    transition: 0.5s ease;
    font-weight: bolder;
    text-decoration: none;
    color: #fff;
}

/* Section 4 */
.section-4 a i {
    color: #fff;
    font-size: 1.5em;
    text-decoration: none;
    margin: 10px;
    transition: 300ms;
    padding: 10px;
    width: 1em;
    height: 1em;
    border-radius: 50%;
}

#fb:hover {
    color: #4267B2;
    background: white;
}

#in:hover {
    color: #4c68d7;
    background: white;   
}

#tw:hover {
    color: #1DA1F2;
    background: white;   
}
#git:hover {
    color: black;
    background: white;   
}

/* Footer */
footer {
    text-transform: uppercase;
    font-family: JetBrains Mono;
    margin-top: 1.5em;
    color: lightgrey;
}