@import url('https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900&display=swap'); body { margin: 0; /* width: 100%; height: 100%; */ color: #222222; box-sizing: border-box; font-size: x-large; background-color: white ; } .image{ max-width: 8%; } a { color: #111 ; } /* Navbar section */ .nav { /* font-family: "Quicksand", sans-serif; */ width: 100%; height: 65px; position: fixed; line-height: 65px; text-align: center; } .nav div.logo { float: left; width: auto; height: auto; padding-left: 0rem; margin-left: 3rem; } .nav div.logo a { text-decoration: none; font-size: 2.2rem; } .nav div.logo a:hover { color: #6495ED; } .nav div.main_list { height: 40px; float: right; } .nav div.main_list ul { width: 100%; height: 65px; display: flex; list-style: none; margin: 0; padding: 0; } .nav div.main_list ul li { width: auto; height: 65px; padding: 0px; padding-right: 1rem; } .nav div.main_list ul li a { text-decoration: none; line-height: 30px; font-size: 1.3rem; } .btn-outline-success:hover{ background-color: #6495ED ; border-color: #6495ED !important; color: #FFF !important; } .btn-outline-success{ border-color: #6495ED !important; color: #111; } .btn-outline-success:visited{ background-color:#6495ED !important; border-color: #6495ED !important ; box-shadow: none !important; } .btn-outline-success:active{ border-color: #6495ED !important; box-shadow: none !important; } .nav div.main_list ul li a:hover { color: #6495ED; } .navTrigger { display: none; } .nav { padding-top: 20px; padding-bottom: 20px; -webkit-transition: all 0.4s ease; transition: all 0.4s ease; } div.stroke ul li a{ position: relative; padding-bottom: 3px; } div.stroke ul li a:after { position: absolute; bottom: 0; left: 0; right: 0; margin: auto; width: 0%; content: '.'; color: transparent; background: white; height: 2px; } div.stroke ul li a:hover:after { width: 100%; } nav ul li a, nav ul li a:after, nav ul li a:before { transition: all .5s; } /* Media qurey section */ @media screen and (min-width: 768px) and (max-width: 1024px) { .container { margin: 0; } } @media screen and (max-width:768px) { .navTrigger { display: block; } .nav div.logo { margin-left: 0px; } .nav div.main_list { width: 100%; height: 0; overflow: hidden; } .nav div.show_list { height: auto; display: none; } .nav div.main_list ul { flex-direction: column; width: 100%; height: 100vh; right: 0; left: 0; bottom: 0; background-color: #111; /*same background color of navbar*/ background-position: center top; } .nav div.main_list ul li { width: 100%; text-align: right; } .nav div.main_list ul li a { text-align: center; width: 100%; font-size: 3rem; padding: 20px; padding-left: 0%; } .nav div.media_button { display: block; } } /* Animation */ /* Inspiration taken from Dicson https://codemyui.com/simple-hamburger-menu-x-mark-animation/ */ .navTrigger { cursor: pointer; width: 30px; height: 25px; margin: auto; position: absolute; right: 30px; top: 0; bottom: 0; } .navTrigger i { background-color: #0000ff; border-radius: 2px; content: ''; display: block; z-index: 1; width: 100%; height: 4px; } .navTrigger i:nth-child(1) { -webkit-animation: outT 0.8s backwards; animation: outT 0.8s backwards; -webkit-animation-direction: reverse; animation-direction: reverse; } .navTrigger i:nth-child(2) { margin: 5px 0; -webkit-animation: outM 0.8s backwards; animation: outM 0.8s backwards; -webkit-animation-direction: reverse; animation-direction: reverse; } .navTrigger i:nth-child(3) { -webkit-animation: outBtm 0.8s backwards; animation: outBtm 0.8s backwards; -webkit-animation-direction: reverse; animation-direction: reverse; } .navTrigger.active i:nth-child(1) { -webkit-animation: inT 0.8s forwards; animation: inT 0.8s forwards; } .navTrigger.active i:nth-child(2) { -webkit-animation: inM 0.8s forwards; animation: inM 0.8s forwards; } .navTrigger.active i:nth-child(3) { -webkit-animation: inBtm 0.8s forwards; animation: inBtm 0.8s forwards; } @-webkit-keyframes inM { 50% { -webkit-transform: rotate(0deg); } 100% { -webkit-transform: rotate(45deg); } } @keyframes inM { 50% { transform: rotate(0deg); } 100% { transform: rotate(45deg); } } @-webkit-keyframes outM { 50% { -webkit-transform: rotate(0deg); } 100% { -webkit-transform: rotate(45deg); } } @keyframes outM { 50% { transform: rotate(0deg); } 100% { transform: rotate(45deg); } } @-webkit-keyframes inT { 0% { -webkit-transform: translateY(0px) rotate(0deg); } 50% { -webkit-transform: translateY(9px) rotate(0deg); } 100% { -webkit-transform: translateY(9px) rotate(135deg); } } @keyframes inT { 0% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(9px) rotate(0deg); } 100% { transform: translateY(9px) rotate(135deg); } } @-webkit-keyframes outT { 0% { -webkit-transform: translateY(0px) rotate(0deg); } 50% { -webkit-transform: translateY(9px) rotate(0deg); } 100% { -webkit-transform: translateY(9px) rotate(135deg); } } @keyframes outT { 0% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(9px) rotate(0deg); } 100% { transform: translateY(9px) rotate(135deg); } } @-webkit-keyframes inBtm { 0% { -webkit-transform: translateY(0px) rotate(0deg); } 50% { -webkit-transform: translateY(-9px) rotate(0deg); } 100% { -webkit-transform: translateY(-9px) rotate(135deg); } } @keyframes inBtm { 0% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-9px) rotate(0deg); } 100% { transform: translateY(-9px) rotate(135deg); } } @-webkit-keyframes outBtm { 0% { -webkit-transform: translateY(0px) rotate(0deg); } 50% { -webkit-transform: translateY(-9px) rotate(0deg); } 100% { -webkit-transform: translateY(-9px) rotate(135deg); } } @keyframes outBtm { 0% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-9px) rotate(0deg); } 100% { transform: translateY(-9px) rotate(135deg); } } .affix { padding: 0; background-color:#212329; z-index:1; /*Add this*/ } .affix2 { color: #FFF; } section { min-height: 100vh; display: flex; justify-content: center; align-items: center; padding: 20px; } section .container { position: relative; width: 800px; height: 500px; background: #fff; box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1); overflow: hidden; } section .container .user { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; } section .container .user .imgBx { position: relative; width: 50%; height: 100%; background: #ff0; transition: 0.5s; } section .container .user .imgBx img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; } section .container .user .formBx { position: relative; width: 50%; height: 100%; background: #fff; display: flex; justify-content: center; align-items: center; padding: 40px; transition: 0.5s; } section .container .user .formBx form h2 { font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; text-align: center; width: 100%; margin-bottom: 10px; color: #555; } section .container .user .formBx form input { position: relative; width: 100%; padding: 10px; background: #f5f5f5; color: #333; border: none; outline: none; box-shadow: none; margin: 8px 0; font-size: 14px; letter-spacing: 1px; font-weight: 300; } section .container .user .formBx form input[type='submit'] { max-width: 100px; background: #677eff; color: #fff; cursor: pointer; font-size: 14px; font-weight: 500; letter-spacing: 1px; transition: 0.5s; } section .container .user .formBx form .signup { position: relative; margin-top: 20px; font-size: 12px; letter-spacing: 1px; color: #555; text-transform: uppercase; font-weight: 300; } section .container .user .formBx form .signup a { font-weight: 600; text-decoration: none; color: #677eff; } section .container .signupBx { pointer-events: none; } section .container.active .signupBx { pointer-events: initial; } section .container .signupBx .formBx { left: 100%; } section .container.active .signupBx .formBx { left: 0; } section .container .signupBx .imgBx { left: -100%; } section .container.active .signupBx .imgBx { left: 0%; } section .container .signinBx .formBx { left: 0%; } section .container.active .signinBx .formBx { left: 100%; } section .container .signinBx .imgBx { left: 0%; } section .container.active .signinBx .imgBx { left: -100%; } @media (max-width: 991px) { section .container { max-width: 400px; } section .container .imgBx { display: none; } section .container .user .formBx { width: 100%; } }