html,body{ border-color: rgba(24, 160, 54, 0.067); display: grid; height: 100%; place-items: center; text-align: center; } .fontl{ margin-top: 90px; font-size: 30; color:rgb(40, 40, 94) ; } .container{ margin-top: 30px; background: rgb(148, 121, 39); width: 400px; height:300px; background: rgb(55, 53, 53); padding: 20px 30px; border: 1px solid rgb(16, 14, 14); border-radius: 5px; display:flex; align-items: center; justify-content: center; flex-direction: column; } .container .post{ display: none; } .container .text{ font-size: 25px; color: #666; font-weight: 500; } .container .edit{ position: absolute; right: 10px; top: 5px; font-size: 15px; color: #666; font-weight: 500; cursor: pointer; } .container .edit:hover{ text-decoration: underline; } .container .star-widget input{ display: none; } .star-widget label{ font-size: 40px; color: #444; padding: 10px; float: right; transition: all 0.2 ease; } input:not(:checked) ~ label:hover, input:not(:checked) ~ label:hover~label { color: #fd4; } input:checked ~ label{ color: #fd4; } input#rate5:checked ~ label{ color: #fe7; text-shadow: 0 0 20px #952; } #rate-1:checked ~ form header:before{ content: "I hate it"; } #rate-2:checked ~ form header:before{ content: "I don't like it"; } #rate-3:checked ~ form header:before{ content: "It is awesome"; } #rate-4:checked ~ form header:before{ content: "I like it"; } #rate-5:checked ~ form header:before{ content: "I love it"; } .container form{ display: none; } input:checked ~form{ display: block; } form .font{ width: 100%; font-size: 25px; color: #fe7; font-weight: 500; margin: 15px 0 25px 0; text-align: center; transition: all 0.2s ease; } form .textarea{ height: 100px; width: 100%; overflow: hidden; } form .textarea textarea{ height: 100%; width: 100%; outline: none; color: rgb(255, 255, 255); border: 1px solid #333; background: #222; padding: 10px; font-size: 15px; resize: none; } form .btn{ height: 45px; width: 100%; margin: 15px 0; } form .btn button{ height: 100%; width: 100%; border: 1px solid #444; outline: none; background: #222; color: #999; font-size:17px; font-weight:500; text-transform: uppercase; cursor: pointer; transition: all 0.3s ease; } form .btn button:hover{ background: #1b1b1b; } *{ margin: 0px; padding: 0px; font-family: poppins; box-sizing: border-box; } a{ text-decoration: none; } #test{ display: flex; justify-content: center; align-items: center; flex-direction: column; width: 100%; } .test-head{ letter-spacing: 1px; margin: 3px 0px ; padding: 10px 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; margin-top: 5px; } .test-head h1{ font-size: 2.2rem; font-weight: 500; background-color: #202020; color:#fff; padding: 10px 20px; } .test-head span{ font-size: 1.3rem; color: #252525; margin-bottom: 10px; letter-spacing: 2px; text-transform: uppercase; } .box-container{ display: flex; justify-items: center; align-items: center; flex-wrap: wrap; width: 100%; } .box{ width: 500px; box-shadow: 2px 2px 30px #0001; background-color: #fff; padding: 20px; margin: 15px; cursor: pointer; } .profile-img{ width: 50px; height: 50px; border-radius: 50%; overflow: hidden; margin-right: 10px; } .profile-img img{ width: 100%; height: 100%; object-fit: cover; object-position: center; } .profile{ display: flex; align-items: center; } .name{ display: flex; flex-direction: column; } .name strong{ cursor: #3d3d3d; font-size: 1.1rem; letter-spacing: 0.5px; } .name span{ color:#979797; font-size: 0.8rem; } .reviews{ color: #f9d71c; } .box-top{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; } .comment p{ font-size: 0.9rem; color: #4b4b4b; } .box:hover{ transform: translateY(-10px); transition: all ease 0.3s; } @media(max-width:1060px){ .box{ width: 45%; padding: 10px; } } @media (max-width:790px) { .box{ width:100% ; } .test-head h1{ font-size: 1.4rem; } } @media (max-width:340px) { .box-top{ flex-wrap: wrap; margin-left: 10px; } .reviews{ margin-top: 10px; } } ::selection{ color: #fff; background-color: #252525; }