/*
 *
 * CSS written based on SMACSS architecture.
 * To learn more, visit: http://smacss.com/
 * 
 * For simplicity, no reset or normalize is added. 
 * To learn more, visit: https://css-tricks.com/reboot-resets-reasoning/
 *
*/


/* ---- Base Rules ---- */
body {
    background: rgb(141, 152, 219);
    background: linear-gradient(0deg, rgb(43, 144, 190) 0%, rgb(1, 4, 17) 100%);
    margin: 0;
    font-family: 'Merriweather', serif;
    color: #fff;
}


/* Typeography General*/
h1 {
    font-family: 'Fira Sans', sans-serif;
    font-size: 3em;
    margin: 2em 1rem;
    color: #edff4a;
}

@media only screen and (min-width: 35em){
    h1 {
        font-size: 7em;
        margin: 2em 4rem 1em;
    }

}

h2 {
    border-bottom: 1px solid #cc1;
    font-family: 'Oxygen', Sans-Serif;
    font-size: 3em;
    color: #fff;
}

p {
    line-height: 1.6em;
    color: #eee;
    font-size: 1.5em;
}
@media only screen and (max-width:56em) {
    .page__header .hamburgerMenu{
        display: block;
        cursor: pointer;
        color :#000000;
        font-size:2em;
    }
    .navbar__menu{
        position: fixed;
        top :5rem;
        left : 100;
        height: 0;
        flex-direction: column;
        width: 100%;
        background: #a9c1f0;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgb(0,0,0,0.05);
    }
    .navbar__menu.activeNav{
        height:550px;
    }
    .navbar__menu.activeNav ul li{
        opacity: 1;
    }

    .navbar__menu ul li{
        display: block;
        width: fit-content;
        margin: 80px auto 0 auto;
        text-align: center;
        transition: 0.5s;
        opacity: 0;
        
    }
    .navbar__menu ul li a{
        margin-bottom: 12px;
    }
    .hamburgerMenu.activeNav .bar:nth-child(2) {
        opacity: 0;
    } 
    .hamburgerMenu.activeNav .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    } 
    .hamburgerMenu.activeNav .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

}
/* ---- Layout Rules ---- */
main {
    margin: 10vh 1em 10vh;
}

.main-hero {
    min-height: 40vh;
    padding-top: 3em;
}

section {
    position: relative;
    min-height: 80vh;
}


/* ---- Module Rules ---- */

/* Navigation Styles*/
.navbar__menu ul {
    padding-left: 0;
    margin: 0;
    text-align: right;
    
}

.navbar__menu li {
    display: inline-block;
}

.navbar__menu .menu__link {
    padding: 1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 20px;
    font-size: 1em;
    color: rgb(2, 2, 36);
    
}

.navbar__menu .menu__link:hover {
    background: #3677ee;
    color: #fff;
    transition: ease 0.3s all;
}
.logo {
    font-size: 2em;
    font-weight: bold;
    text-transform: uppercase;
    color:  rgb(1, 4, 17);
    padding: 0 50px;
}
header .hamburgerMenu{
    display: none;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #000000; 
}
/*active menu link */
.active{
    background:  rgb(6, 9, 48);
    color :rgb(255, 255, 255)!important;
}
/* Header Styles */
.page__header {
    background: #a9c1f0;
    position: fixed;
    top: 0;
    width: 100%;
    height: 10vh;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    
}

/* Footer Styles */
.page__footer {
    background: #010013;
    padding: 3em;
    color: #fff;
}

.page__footer p{
    color: #edff4a;
}


/* ---- Theme Rules ---- */
/* Landing Container Styles */
.landing__container {
    padding: 1em;
    text-align: left;
}

@media only screen and (min-width: 35em){
    .landing__container {
        max-width: 50em;
        padding: 4em;
    }
}

section:nth-of-type(even) .landing__container {
    margin-right: 0;
    margin-left: auto;
    text-align: right; 
}

/* Background Circles */
/* Note that background circles are created with psuedo elements before and after */
/* Circles appear to be random do to use of :nth-of-type psuedo class */
section:nth-of-type(odd) .landing__container::before {
    content: '';
    background: rgba(255, 255, 255, 0.187);
    position: absolute;
    z-index: -5;
    width: 20vh;
    height: 20vh;
    border-radius: 50%;
    opacity: 0;
    transition: ease 0.5s all;
}

section:nth-of-type(even) .landing__container::before {
    content: '';
    background: rgb(255,255,255);
    background: linear-gradient(0deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.2) 100%);
    position: absolute;
    top: 3em;
    right: 3em;
    z-index: -5;
    width: 10vh;
    height: 10vh;
    border-radius: 50%;
    opacity: 0;
    transition: ease 0.5s all;
}

section:nth-of-type(3n) .landing__container::after {
    content: '';
    background: rgb(255,255,255);
    background: linear-gradient(0deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.2) 100%);
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: -5;
    width: 10vh;
    height: 10vh;
    border-radius: 50%;
    opacity: 0;
    transition: ease 0.5s all;
}

section:nth-of-type(3n + 1) .landing__container::after {
    content: '';
    background: rgb(255,255,255);
    background: linear-gradient(0deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.2) 100%);
    position: absolute;
    right: 20vw;
    bottom: -5em;
    z-index: -5;
    width: 15vh;
    height: 15vh;
    border-radius: 50%;
    opacity: 0;
    transition: ease 0.5s all;
}


/* ---- Theme State Rules ---- */
/* Section Active Styles */
/* Note: your-active-class class is applied through javascript. You should update the class here and in the index.html to what you set in your javascript file.  */
section.your-active-class {
    background: rgb(0, 0, 0);
    background: linear-gradient(0deg, rgba(6, 90, 192, 0.411) 0%, rgba(0, 5, 24, 0.459) 100%);
    border-radius: 10px;
}

section.your-active-class .landing__container::before {
    opacity: 1;
    animation: rotate 4s linear 0s infinite forwards;
}

section.your-active-class .landing__container::after {
    opacity: 1;
    animation: rotate 5s linear 0s infinite forwards reverse;
}

/* Section Active Styles Keyframe Animations */
@keyframes rotate {
	from {
		transform: rotate(0deg)
		           translate(-1em)
		           rotate(0deg);
	}
	to {
		transform: rotate(360deg)
		           translate(-1em) 
		           rotate(-360deg);
	}
}

.btnUp{
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    padding: 15px;
    font-size :1em;
    font-weight: bold;
    background-color: #cc1;
    cursor: pointer;
    display: none;
}
.activeBtn{
    display: block;
}
.page__header.notActive{
    display: none;
}