@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: 130em; 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); */ } .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); } /* 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: 180px; position: relative; } #text1{ font-size: 2rem; color: var(--black-color); width: 50%; font-family: "Inter", sans-serif; word-spacing: 2px; margin-left: 450px; 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; } .img-container{ display: flex; } .img-background{ margin-left:60px; margin-top:45px; margin-right:35px; width:25%; height: 300px; background-color: rgb(196, 147, 231); border-radius: 20px; } .imgs{ width:100%; height:200px; margin-top: 55px; } .box-container{ display:flex; } .boxs{ width:25%; margin-left:60px; margin-top:25px; margin-right:35px; font-family: serif; font-size: 20px; } #quiz-btn{ 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); } .quiz-container{ margin-top: 100px; text-align: center; font-family: sans-serif; margin-top: 25px; 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; } #quiz-exprsn{ margin-bottom: 30px; font-size: 40px ; font-family: serif; color:rgb(116, 172, 210); } #gif{ width:100px; height:150px; position: absolute; top:1100px; left:280px; } #pre-game{ text-align: center; margin: 30px; margin-top: 100px; font-size: 50px; font-family: sans-serif; } /* game css */ .body-game{ display: flex; justify-content: center; align-items: center; min-height: 100vh; background-color:rgb(74, 93, 199); flex-direction: column; box-sizing: border-box; } .game-container{ position:relative; display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 30px; background-color: rgb(107, 183, 242); padding: 40px 60px ; } #game-title{ font-size: 3em; color:white; text-transform: uppercase; letter-spacing: 0.1em; } .reset{ padding:15px 20px; background-color:white; border:none; font-size: 1.5em; letter-spacing: 0.1em; text-transform: uppercase; cursor:pointer; font-weight: 600; position: absolute; top:490px; left: 150px; } .reset:focus{ color:#fff; background:rgb(74, 93, 199); } .game{ width: 440px; height:500px; display: flex; flex-wrap:wrap; gap:10px; transform-style: preserve-3d; perspective: 500px; } .item{ position: relative; width: 100px; height: 100px; display: flex; justify-content: center; align-items: center; font-size: 3em; background-color: white; transition: 0.25s; transform: rotateY(180deg); } .item.boxOpen{ transform: rotateY(0deg); } .item::after{ content: " "; position: absolute; inset:0; background:rgb(138, 193, 234) ; /* opacity: 0.85; */ transition: 0.25s; transform: rotateY(0deg); backface-visibility: hidden; } .boxOpen:after, .boxMatch:after{ transform: rotateY(180deg); } #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: 570px; font-size: x-large; margin-top: 50px; } #nxt-btn:hover{ transform: scale(1.025); } #section1{ margin-left: 70px; margin-top: 50px; } #section2{ margin: 50px; margin-top: 100px; }