@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap"); :root { /* ====== HEADER-HEIGHT ====== */ --header-height: 7rem; /* ====== COLORS ====== */ --primary-colors: hsl(174, 26%, 28%); --secondary-color: hsl(195, 31%, 49%); --neutral-color: hsl(0, 0%, 48%); --white-color: hsl(0, 0%, 100%); --black-color: hsl(0, 0%, 0%); --featured_wrapper_bg: hsl(137, 16%, 31%, 0.08); --fade_bg_1: hsl(192, 72%, 72%); --fade_bg_2: hsl(137, 52%, 76%); /* ====== FONT-WEIGHT ====== */ --fw-300: 300; --fw-400: 400; --fw-500: 500; --fw-600: 600; /* ====== FONT-SIZE ====== */ --heading-font-size: 3rem; --logo-font-size: 2rem; --subtext-md: 1.55rem; --subtext-sm: 1.35rem; } @media screen and (min-width: 991px) { :root { --heading-font-size: 4.5rem; --logo-font-size: 2.5rem; --subtext-md: 1.88rem; --subtext-sm: 1.65rem; --badge-font-size: 1.25rem; --nav_links_font-size: 1.75rem; } } *, *::before, *::after { box-sizing: border-box; } * { margin: 0; padding: 0; box-sizing: border-box; font-family: "Inter", sans-serif; } /* ===== 1rem = 10px (RESPONSIVE FONT SIZE) ===== */ html { font-size: 62.5%; } button { outline: none; border: none; cursor: pointer; } ul li { list-style-type: none; padding: 0; margin: 0; } a { text-decoration: none; } h1, h2, h3, h4 { margin: 0; padding: 0; } button { background-color: transparent; outline: none; border: none; } /* ===== WIDTH OF SCROLLBAR ===== */ ::-webkit-scrollbar { width: 7px; } /* ===== BACKGROUND-TRACK ===== */ ::-webkit-scrollbar-track { background-color: var(--black-color); } /* ===== HANDLE ===== */ ::-webkit-scrollbar-thumb { background-color: var(--primary-colors); } /* ===== HANDLE-ON-HOVER ===== */ ::-webkit-scrollbar-thumb:hover { background-color: var(--secondary-color); } /* ===== 'stop_scroll' class ADDED ON BODY TO PREVENT SCROLLING OF THE PAGE WHEN THE NAV MENU IS ACTIVE. ===== */ .stop_scroll { overflow-y: hidden; } /* ===== CONTAINER ===== */ .container { max-width: 120em; margin: 0 auto; padding: 0 2rem; } /* ===== HEADER ===== */ .header { height: var(--header-height); } .header .navbar { height: inherit; display: flex; align-items: center; justify-content: space-between; } .header .navbar .logo a { text-transform: uppercase; font-size: var(--logo-font-size); font-weight: var(--fw-600); color: var(--black-color); letter-spacing: 1px; } .header .navbar .logo a span { color: var(--primary-colors); } /* ===== NAV-MENU-LIST ===== */ .nav__menu_list { display: flex; align-items: center; column-gap: 3.3333rem; /* ===== NAV-MENU-LIST-ITEM ===== */ /* ===== LOGIN-BTN ===== */ } .nav__menu_list .nav_menu_list_item { display: inline-block; /* ===== NAV-LINK ===== */ } .nav__menu_list .nav_menu_list_item .nav__link { text-transform: capitalize; letter-spacing: 0.35px; font-size: var(--nav_links_font-size); font-weight: var(--fw-400); color: var(--neutral-color); position: relative; padding-bottom: 0.45rem; } .nav__menu_list .nav_menu_list_item .nav__link::before { content: ""; position: absolute; bottom: 0; left: 0; height: 2px; width: 0; background-color: var(--primary-colors); transition: width 0.5s ease; } .nav__menu_list .nav_menu_list_item .nav__link:hover, .nav__menu_list .nav_menu_list_item .nav__link:hover::before { width: 100%; color: var(--primary-colors); } .nav__menu_list .nav_menu_list_item .nav__link.active { color: var(--primary-colors); font-weight: var(--fw-600); } .nav__menu_list .login__btn { background-color: var(--secondary-color); opacity: 0.9; padding: 0.65rem 3rem; font-size: 1.75rem; text-transform: capitalize; color: var(--white-color); font-weight: var(--fw-400); transition: transform 0.25s ease; border-radius: 2rem; } .nav__menu_list .login__btn:hover { transform: translateY(-0.25rem); } /* ===== MOBILE FIRST NAV MENU ===== */ @media screen and (max-width: 991px) { .nav__menu { position: fixed; top: var(--header-height); right: -100%; width: 80%; height: 100%; z-index: 999; background-color: var(--black-color); padding: 0 5rem; opacity: 0; transition: all 0.5s ease; } .nav__menu .nav__menu_list { flex-direction: column; align-items: start; row-gap: 5rem; margin-top: 7rem; } .nav__menu .nav__menu_list .nav__link { font-size: 1.9rem; font-weight: var(--fw-500); color: #eee; } .nav__menu .nav__menu_list .nav__link.active { color: var(--secondary-color); } .nav__menu .nav__menu_list .nav__link:hover { color: var(--secondary-color); } } /* ===== SHOW-the-NAV-MENU ===== */ .show { right: 0; opacity: 1; } .polygon_element { position: absolute; z-index: -1; max-width: 60%; /* ===== POLYGON-ELEMENT-1 ===== */ } .polygon_element.element--1 { left: 0; /* transform: translate(-10rem, -10rem); */ } /* title */ #lsn-nb{ text-transform: uppercase; font-size: 30px; font-weight: var(--fw-600); color: var(--secondary-color); letter-spacing: 1px; margin-top: 10px; margin-left: 450px; position: absolute; top: 100px; } #lsn-title{ font-size: 3.5rem; color: var(--black-color); margin-left: 450px; position: absolute; top: 160px; } #rbt-img1{ margin-top: 50px; height:250px; margin-left: 120px; position: relative; } #text1{ font-size: 2rem; color: var(--black-color); width: 50%; font-family: "Inter", sans-serif; word-spacing: 2px; margin-left: 380px; position: absolute; top: 230px; } #btn-text{ position: absolute; top:550px; left:600px; background-color:rgb(160, 147, 231); color: white; padding: 20px; margin-top: 100px; border-radius: 20px; font-size: 25px; width: 50%; font-family: sans-serif; } #linking{ margin-top: 70px; margin-bottom: 70px; margin-left: 200px; background-color: white; border-radius: 10px; width:70%; box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); padding: 20px; text-align: center; font-family: sans-serif; font-size: 20px; } .container-components { display: flex; flex-direction: column; align-items: center; } .compo { display: flex; flex-direction: row; align-items: center; margin-bottom: 20px; } .title{ text-decoration: underline rgb(196, 147, 231); font-size: 40px; margin-left:50px; margin-top:50px; } .image-container{ margin-left:30px; margin-top:35px; float:left; width:30%; height: 300px; background-color: rgb(196, 147, 231); border-radius: 20px; font-family: serif; } .image-container2{ margin-left:30px; margin-top:35px; float:left; width:40%; height: 300px; background-color: rgb(196, 147, 231); border-radius: 20px; font-family: serif; } .image-container3{ margin-left:30px; margin-top:35px; float:left; width:27%; height: 300px; background-color: rgb(196, 147, 231); border-radius: 20px; font-family: serif; } .images{ width:100%; height:200px; margin-top: 55px; } .expln{ padding: 20px; float:left; width:40%; font-size: 25px; font-family: serif; margin-top: 55px; margin-left:30px; color: black; } /* drag and drop */ .game-text{ margin-top: 100px; margin-bottom: 50px; font-family: "Inter", sans-serif; color: var(--secondary-color); font-size:xx-large; text-align: center; } * { margin: 0; padding: 0; box-sizing: border-box; } .draggable-elements { margin-top: 100px; display: flex; justify-content: center; margin: 2rem; } .draggable { height: 9rem; width: 8rem; display: flex; align-items: center; justify-content: center; font-size: 4rem; margin: 0rem 0.5rem; cursor: move; transition: opacity 0.2s; } .draggable:hover { opacity: 0.5; } .droppable { height: 9.5rem; width: 8.5rem; margin: 1rem auto; display: flex; justify-content: center; align-items: center; /* flex-direction: column; */ text-align: center; font-size: 4rem; font-weight: bold; background-color: #fff; border: 3px dashed #111; transition: border-width 0.2s, transform 0.2s, background-color 0.4s; } .droppable-elements { margin-top: 100px; display: flex; justify-content: center; margin: 2rem; } .droppable span { font-size: 1.25rem; pointer-events: none; /* The element is never the target of pointer events */ } /* Drag and Drop Related Styling */ .droppable.droppable-hover { /* background-color: #bee3f0; */ border-width: 5px; transform: scale(1.1); } .droppable.dropped { border-style: solid; color: #fff; } .droppable.dropped span { font-size: 0.75rem; margin-top: 0.5rem; } .droppable.dropped i { pointer-events: none; } .draggable.dragged { user-select: none; opacity: 0.1; cursor: default; } .draggable.dragged:hover { opacity: 0.1; } @media (max-width: 600px) { html { font-size: 14px; } .draggable-elements { margin: 1.5rem; } } #nxt-btn{ background-color: hsla(0, 0%, 100%, 0.829); align-items: center; justify-content: center; column-gap: 1rem; padding: 0.88rem 1rem; width: fit-content; font-weight: var(--fw-500); text-transform: capitalize; border-radius: 2.2rem; box-shadow: 4px 4px 14px 1px rgba(0, 0, 0, 0.2); transition: transform 0.4s ease; color: var(--neutral-color); display: center; margin-left: 550px; font-size: x-large; margin-top: 50px; } #nxt-btn:hover{ transform: scale(1.025); } .gif{ height: 130px; width:180px; margin-left: 300px; } .quiz-btn{ position: absolute; top:1750px; margin-top: 100px; left:550px; border: none; padding: 15px 32px; text-align: center; text-decoration: none; display: inline-block; font-size: 22px; border-radius: 40px; font-family: sans-serif; background-color: hsla(0, 0%, 100%, 0.829); color: var(--neutral-color); box-shadow: 4px 4px 14px 1px rgba(0, 0, 0, 0.2); }.quiz-btn:hover{ transform: scale(1.025); } .sidebar { list-style-type:none; left:0; top:0; text-align:left; position: absolute; padding: 0; list-style: none; transition:1s ease; margin-top: 60px; cursor: pointer; font-family: "Inter", sans-serif; font-weight: bold; margin-left: 30px; background-color: white; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); padding: 10px; width:147px; } .sidebar a { text-decoration:none; color:black; transition:1s ease; font-size: 17px; } .sidebar li { text-indent: 20px; line-height: 40px; transition:0.5s ease; margin-top: 20px; font-size: var(--nav_links_font-size); font-weight: var(--fw-400); color: var(--neutral-color); } .sidebar li:hover { background-color:#777; cursor:pointer; text-indent: 30px; } .sidebar > .sidebar-brand { height: 65px; font-size: 18px; line-height: 60px; color:var(--secondary-color); } #section1{ margin-left: 70px; }