/* General Styling */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Open Sans', sans-serif;
}

:root {
    --text-color: #fff;
    --bg-color: #000;
    --main-color: #008753;
    --footer-color: #404040;

    --h1-fs: 6rem;
    --h2-fs: 3rem;
    --h3-fs: 1.8rem;
    --p-fs: 1rem;
    --menu-btn-fs: 22px;
}

body {
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: -20px 0 50px;
}

.btn {
    display: inline-block;
    padding: 13px 40px;
    background-color: var(--main-color);
    color: var(--bg-color);
    font-size: 15px;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: all 0.5s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateX(10px);
    border: 2px solid var(--text-color);
    background: transparent;
    color: var(--text-color);
}

/* General Styling Ends */


/****************************************************/
/****************************************************/
/****************************************************/


/* Header */
header {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    background: var(--footer-color);
    padding: 27px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.5s ease;
    z-index: 1000;
}

.logo {
    font-size: 20px;
    color: var(--text-color);
    font-weight: 700;
    line-height: 20px;
}

.logo span {
    color: var(--main-color);
}


.navbar {
    display: flex;
}

.navbar a {
    color: var(--text-color);
    font-size: var(--p-fs);
    font-weight: 500;
    margin: 15px 18px;
    transition: all 0.5s ease;
}

.navbar a:hover {
    color: var(--main-color);
}

.navbar li {
    transition: all 0.5s ease;
}

.navbar li:hover {
    transform: translateY(-3px);
}

.h-right {
    display: flex;
    align-items: center;
}

.h-right a:first-child {
    color: var(--text-color);
    font-size: var(--p-fs);
    font-weight: 500;
    margin-right: 12px;
}

.h-right a {
    vertical-align: middle;
    font-size: var(--p-fs);
    color: var(--text-color);
    margin-right: 12px;
    margin-left: 5px;
    transition: all 0.5s ease;
}

.h-right a:hover {
    color: var(--main-color);
    transform: translateY(-3px);
}

#menu-btn {
    display: none;
}

header.sticky {
    padding: 8px 7%;
    background: transparent;
    backdrop-filter: blur(35px);
}


/* Section One */
section {
    padding: 70px 7% 60px;
}

.home {
    position: relative;
    height: 100vh;
    width: 100%;
    background-image: linear-gradient(to left, rgba(0,0,0,0.5), rgba(0,0,0,0.3)), url('./images/Lagos\ to\ Dubia.jpg');
    background-size: cover;
    background-position: bottom center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.home::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 20;
}

h1{ 
    font-weight: bold;
    margin: 0;
}

p{
    font-size: 14px;
    font-weight: 100;
    line-height: 20px;
    letter-spacing: 0.5px;
    margin: 20px 0 30px;
}

span{
    font-size: 12px;
}

a{
    color: #333;
    font-size: 14px;
    text-decoration: none;
    margin: 15px 0;
}

.container{
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.25),0 10px 10px rgba(0,0,0,0.22);
    position: relative;
    overflow: hidden;
    width: 768px;
    max-width: 100%;
    min-height: 480px;
}

.form-container form{ 
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 0 50px;
    height: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #008753;
}

.social-container{
    margin: 20px 0;
}

.social-container a{
     border: 1px solid #008753;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    height: 40px;
    width: 40px;
}

.form-container input{
    background: #eee;
    border: none;
    padding: 12px 15px;
    margin: 8px;
    width: 100%;
}

button{
    border-radius: 20px;
    border: 1px solid #008753;
    background-color: #008753;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
}

button:active{
    transform: scale(0.95);
}

button:focus{
    outline: none;
}

button.ghost{
    background: transparent;
    border-color: #fff;
}

.form-container{
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6sec ease-in-out;
}

.sign-in-container{
    left: 0;
    width: 50%;
    z-index: 2;
}

.sign-up-container{
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.overlay-container{
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.overlay{
    background: #008753;
    background: linear-gradient(to right, #008753, #008753) no-repeat 0 0/ cover;
    color: #fff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.overlay-panel{
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
    height: 100%;
    width: 50%;
}

.overlay-right{
    right: 0;
    transform: translateX(0);
}


.overlay-left{
    transform: translateX(-20%);
}

/* Animination */

/* Move signin to the right */
.container.right-panel-active .sign-in-container{
    transform: translateX(100%);
}

.container.right-panel-active .overlay-container{
    transform: translateX(-100%);
}

/* Bring sign u over sign in */
.container.right-panel-active .sign-up-container{
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
}

/* Move overlay back to right */
.container.right-panel-active .overlay{
    transform: translateX(50%);
}

.container.right-panel-active .overlay-left{
    transform: translateX(0);
}

.container.right-panel-active .overlay-right{
    transform: translateX(20%);
}

@media (max-width: 600px) {
    .social-container a{
       margin: 0 2px;
       height: 25px;
       width: 25px;
   }
}
