input { text-align: start; margin-left: 10px; font-family: 'Outfit', sans-serif; } :focus::placeholder { color: rgb(197, 197, 197); } textarea { text-align: start; margin-left: 10px; resize: none; font-family: 'Outfit', sans-serif; } .body{ align-items: center; justify-content: center; display: flex; width: 100vw; height: 100vh; position: fixed; z-index: 1; background-color: rgba(46, 46, 46, 0.582); } .pick_file { color: rgb(0, 0, 0); font-size: 35px; margin-left: 30px; margin-top: 5px; display: flex; justify-content: center; align-items: center; } .recipe { width: 300px; border: none; background-color: rgb(161, 161, 161); border-radius: 4px; color: rgb(255, 255, 255); margin: 10px; } .description { width: 300px; border: none; margin-top:54px; font-family: 'Outfit', sans-serif; color: rgb(0, 0, 0); } .image_container { width: 300px; /* set width of image container */ height: 300px; /* set height of image container */ border-radius: 20px; /* make image container circular */ overflow: hidden; display: flex; /* Add display flex to center image vertically */ align-items: center; /* Center image vertically */ justify-content: center; /* Center image horizontally */ } .image_container img { height: 100%; width: 100%; object-fit: cover; } .header{ height: 8vh; background-color:#71caf3; box-shadow: 0 1px 15px 0 rgba(0, 0, 0, 0.2); align-items: center; width: 100vw; color: white; display: grid; grid-template-columns: repeat(3, 1fr); } .header_photo{ display: flex; margin-top: auto; margin-bottom: auto; } .header_text{ margin: auto; } .header_button{ display: flex; justify-content: end; margin-right: 25px; } .container { background: rgb(255, 255, 255); border-radius: 15px; border: 0.5px solid rgb(185, 185, 185); box-shadow: 0 8px 13px 0 rgba(41, 41, 43, 0.705); width: 90%; margin: auto; padding: 20px; backdrop-filter: blur(10px); justify-content: center; text-align: center; display: flex; margin-top: 150px; } .searchbar { background-color: rgb(255, 255, 255); width: 500px; height: 50px; color: rgb(0, 0, 0); border: solid 1px black; outline: none; margin: 10px; border-radius: 5px; font-size: 18px; } .post_container { height: 65vh; margin-top: 200px; flex-direction: column; box-shadow: 0 1px 15px 0 rgba(0, 0, 0, 0.2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 10px; border: 1px solid rgba(147, 164, 165, 0.2); box-shadow: 0 8px 23px 0 rgba(85, 85, 85, 0.651); background: #6e979ca6; margin: auto; padding: 20px; } .post_header{ margin: 10px; display: flex; color: white; text-align: center; } .input_fields{ display: flex; flex-direction: column; text-align: center; } .post_input1 { background-color: rgba(235, 235, 235, 0.63); width: 500px; height: 30px; color: rgb(0, 0, 0); outline: none; border-radius: 4px; border: 1px solid rgba(172, 171, 171, 0.692); margin-top: 10px; } .post_input2 { border: none; background-color: rgba(235, 235, 235, 0.61); width: 500px; height: 100px; color: rgb(0, 0, 0); outline: none; border-radius: 4px; border: 1px solid rgba(172, 171, 171, 0.616); } .comment_input { background-color: rgba(235, 235, 235, 0.61); width: 770px; height: 27px; color: rgb(0, 0, 0); border:none; outline: none; padding: 0; margin: 0; box-sizing: border-box; } .comment_button { font-family: 'Outfit', sans-serif; appearance: none; background-color: #ffcd6f; border:none; outline: none; color: #ffffff; cursor: pointer; font-size: 18px; line-height: normal; height: 30px; width: 130px; outline: none; text-align: center; transition: all 300ms cubic-bezier(.23, 1, 0.32, 1); user-select: none; -webkit-user-select: none; touch-action: manipulation; will-change: transform; box-sizing: border-box; } .comment_button:hover { color: #ffffff; background-color: #5cbbd8; box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px; } .comment_button:active { box-shadow: none; } .comments{ width:900px; min-height: 50px; border: solid 1px rgba(128, 128, 128, 0.644); border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; } .delete { background: rgb(182, 55, 55); color: rgb(255, 255, 255); font-size: 18px; border: none; min-width: 100px; height: 50px; font-family: 'Outfit', sans-serif; border-radius: 5px; box-sizing: border-box; transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1); transition-duration: 400ms; margin-left: 50px; } .delete:hover { transform: scale(1.1); } .upvote { height: 40px; width: 110px; font-size: 18px; border-radius: 5px; border: none; background-color: #ffcd6f; color: rgb(255, 255, 255); margin-left: auto; margin-right: 20px; font-family: 'Outfit', sans-serif; } .posts_container { min-height: 300px; width: 900px; display: flex; background-color: white; border-bottom-right-radius: 5px; box-shadow: 0 1px 15px 0 rgba(0, 0, 0, 0.2); text-align: left; } .grid_container { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 300px; grid-gap: 10px; } .grid_container2 { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: 300px; grid-gap: 10px; } .post_img_container { width: 100%; /* set width of image container */ height: 100%; /* set height of image container */ overflow: hidden; display: flex; /* Add display flex to center image vertically */ align-items: center; /* Center image vertically */ justify-content: center; /* Center image horizontally */ margin-right: 10%; } .post_img_container img { height: 300px; width: 100%; object-fit: cover; } .addpicture { text-align: center; margin-right: 30px; margin-left: 31%; margin-bottom: 30px; height: 50px; width: 500px; display: flex; } ::placeholder { color: rgb(0, 0, 0); text-align: start; } .tag_container { display: flex; flex-direction: row; margin: 5px; } .tag_container ul { list-style: none; margin: 0; padding: 0; } .tag_container li { background-color: rgb(32, 32, 32); color: white; border-radius: 3px; padding: 5px; margin-right: 10px; margin-bottom: 10px; display: inline-block; flex-direction: column; } .wrapper { display: flex; justify-content: center; align-items: center; margin: 50px; } .posts_header { height: 55px; background-color:#71caf3; margin-top: 30px; border-top-left-radius: 5px; border-top-right-radius: 5px; box-shadow: 2px; box-shadow: 0 0.5px 2px 0 rgba(0, 0, 0, 0.808); color: white; display: flex; align-items: center; width: 900px; } .posts_header_img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: solid 1px white; margin-left: 10px; }