#main_content { position: fixed; top: 100px; } #profile_picture { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--primary-accent); object-fit: cover; display: block; } .profile-container { display: flex; flex-direction: column; align-items: center; padding: 50px; background-color: var(--bg-main); min-height: 100vh; } #user-card { width: 100%; max-width: 500px; text-align: center; gap: 0px !important; position: fixed; left: 50%; top: 50%; transform: translateX(-50%) translateY(-50%); } .profile-pic { width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--primary-accent); object-fit: cover; } .data-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 4px; display: block; } .data-value { font-size: 1.1rem; font-weight: 600; color: var(--text-main); margin-bottom: 20px; } #edit_picture_button { position: absolute; aspect-ratio: 1 / 1; top: 50%; left: 50%; /* move to circle edge at 45° */ transform: translate(-50%, -50%) translate(42px, 42px); display: flex; align-items: center; justify-content: center; background-color: rgba(); background-color: var(--primary-accent); border-radius: 50%; border: none; padding: 6px; width: fit-content !important; } #edit_picture_button:hover { background-color: var(--primary-hover); } #edit_picture_image { width: 20px !important; height: 20px !important; } #picture_holder { position: relative; display: inline-block; line-height: 0; } .bottom_button:hover { text-decoration: underline !important; background: none !important; } .bottom_button { background: none; border-style: none; color: var(--primary-accent); text-decoration: none; font-weight: bold; font-size: 20px; } #change_password_dialogue { z-index: 10000; position: fixed; } #resize_photo_dialouge { z-index: 10000; } #change_password_dialogue input { width: 350px; } #close_password_dialogue { display: inline-block; aspect-ratio: 1 / 1; position: absolute; right: 2.5rem; padding: 0px; margin: 0px; width: 30px; } #password_errors { background-color: var(--error-red); border-radius: 8px; padding: 20px; border-color: var(--error-border-red); border-width: 2px; border-style: solid; color: var(--text-main); } #password_warnings { background-color: var(--warning-yellow); border-radius: 8px; padding: 20px; border-color: var(--warning-border-yellow); border-width: 2px; border-style: solid; color: var(--text-main); } #image_container { position: absolute; display: inline-block; } #darken_part { /*background-color: black;*/ z-index: 3; width: 100vw; height: 100vh; } #confirm_change { z-index: 2; } #new_profile_image { z-index: 1; transform: translateX(calc(-50% + var(--x-offset) + 5px)) translateY(calc(-50% + var(--y-offset) + 5px)); position: absolute; left: calc(350px / 2); top: calc(350px / 2); width: var(--x-size); height: var(--y-size); image-rendering: pixelated; } #grab-area { display: grid; } #grab-area > * { grid-column-start: 1; grid-row-start: 1; } #resize_photo_box { background-color: rgba(0, 0, 0, 0); width: var(--size); aspect-ratio: 1 / 1; border-style: dashed; border-color: black; border-width: 5px; z-index: 4; transform: translateX(var(--box-x-offset)) translateY(var(--box-y-offset)); } .resize_anchor { background-color: red; width: 20px; height: 20px; position: absolute; z-index: 5; } #top_left_resize { transform: translateX(calc(-50% + var(--x-offset) + 10px)) translateY(calc(-50% + var(--y-offset) + 10px)); } #top_left_resize:hover { cursor: nw-resize !important; } #top_right_resize { transform: translateX(calc(350px - var(--x-offset) - 10px)) translateY(calc(-50% + var(--y-offset) + 10px)); } #top_right_resize:hover { cursor: ne-resize !important; } #bottom_left_resize { transform: translateX(calc(-50% + var(--x-offset) + 10px)) translateY(calc(340px - var(--x-offset))); } #bottom_left_resize:hover { cursor: sw-resize !important; } #bottom_right_resize { transform: translateX(calc(340px - var(--x-offset))) translateY(calc(340px - var(--y-offset))); } #bottom_right_resize:hover { cursor: se-resize !important; } #box-scale-holder { position: relative; width: 360px; height: 360px; } #circle-display { position: absolute; width: calc(100% + 10px); height: calc(100% + 10px); transform: translateX(-5px) translateY(-5px); transform: scale(10px); background: radial-gradient( circle closest-side, transparent 99%, rgba(0, 0, 0, 0.5) 100% ); /*dispalt*/ } #image_dark_overlay { background-color: rgba(0, 0, 0, 0.5); pointer-events: none; z-index: 2; transform: translateX(calc(-50% + var(--x-offset) + 5px)) translateY(calc(-50% + var(--y-offset) + 5px)); position: absolute; left: calc(350px / 2); top: calc(350px / 2); width: var(--x-size); height: var(--y-size); clip-path: polygon( 0% 0%, 0% 100%, var(--left-edge) 100%, var(--left-edge) var(--top-edge), var(--right-edge) var(--top-edge), var(--right-edge) var(--bottom-edge), var(--left-edge) var(--bottom-edge), var(--left-edge) 100%, 100% 100%, 100% 0% ); }