@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap'); *{ margin: 0; padding: 0; box-sizing: border-box; font-family: "Poppins", sans-serif; } header{ z-index: 999; position: absolute; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 15px 200px; transition: 0.5s ease; } header .brand{ color: #ffffff; font-size: 1.5rem; font-weight: 700; text-transform: uppercase; text-decoration: none; } header .brand:hover{ color: #09a6d4; } header .navigation{ position: relative; } header .navigation .navigation-items a{ position: relative; color: #ffffff; font-size: 1em; font-weight: 500; text-decoration: none; margin-left: 30px; transition: 0.3s ease; } header .navigation .navigation-items a:before{ content: ''; position: absolute; background: #ffffff; width: 3px; height: 3px; bottom: 0; left: 0; transition: 0.3s ease; } header .navigation .navigation-items a:hover:before{ width: 100%; background: #000000; } body{ height: 100vh; font-family: "Raleway", sans-serif; background: rgb(41,37,96); background: radial-gradient(circle, rgba(41,37,96,1) 0%, rgba(74,51,103,1) 98%); } h4 { font-size: 40px; text-align:center; font-family:Georgia ,serif; color: white; } .welcome { display: flex; flex-direction: column; align-items: center; margin-top: 50px; } .header-image{ width: 25%; } .start-test{ top: 55%; left: 50%; background: #6f517c; color: white; font-size: 32px; padding: 10px 20px 10px 20px; overflow: hidden; background: #6f517c; padding: 10px 20px; font-size: 24px; text-decoration: none; text-transform: uppercase; font-weight: bold; border-radius: 20px; cursor: pointer; margin-top: 45px; box-shadow: 0 10px 20px rgba(100, 78, 135, 0.641); } .start-test:hover{ background-color: #9c83a7; } .container{ display: none; flex-direction: row; } .question-container{ margin: 40px; width: 50% } #question-count{ font-weight: bold; } #question{ margin-top: 20px; font-size: 24px; } .ans{ margin-top: 20px; background-color: #9c83a7; padding: 10px 0px 10px 0px; cursor: pointer; } .my-alpha{ font-weight: bold; padding: 10px; background-color: aliceblue; margin-right: 10px; } .your-answers{ margin: 40px; width: 50%; background-color: aliceblue; padding: 20px; border-radius: 20px; } .btn{ display: flex; justify-content: space-evenly; margin-top: 40px; } #previous, #next{ background-color: rgb(220, 220, 220); padding: 10px 20px 10px 20px; border-radius: 10px; cursor: pointer; } #restart{ background-color: #6c4f78; color: white; font-size: 28px; cursor: pointer; padding: 10px 20px 10px 20px; border-radius: 10px; } .title{ font-size: 24px; margin-bottom: 40px; background-color: rgb(179, 178, 178); padding: 10px; border-radius: 10px; } #test-result{ display: flex; flex-direction: column; align-items: center; margin-top: 80px; background-color: aliceblue; padding: 20px; border-radius: 20px; } #image{ width: 40%; border-radius: 20px; } #trait{ margin-top: 40px; } #trait-title{ font-size: 30px; } #trait div{ margin-top: 20px; } #trait ul{ margin-top: 20px } #trait ul li{ margin-top: 10px; } /* Extra small devices (phones, 768px and down) */ @media only screen and (max-width: 868px) { .container{ flex-direction: column; align-items: center; margin: 5px; } .question-container{ margin: 20px; width: 80% } .welcome { margin-top: 10px; } .header-image{ width: 80%; } .your-answers{ width: 80%; } } .footer-bottom{ background:#6c4f78; width: 100vw; padding: 20px ; text-align: center; color: white; } .footer-bottom p{ font-size: 14px; word-spacing: 2px; text-transform: capitalize; } .footer-bottom span{ text-transform: uppercase; opacity: .4; font-weight: 200; } .footer-content { display: flex; justify-content: center; align-items: center; } .image-container img { width: 140x; height: 110px; margin: 10px; } .footer-content img:hover { filter: brightness(0.30);}