.main { margin: 50px auto; display: flex; flex-direction: column; width: 90%; max-width: 1200px; background: rgba(255, 255, 255, 0.1); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); padding: 20px; } h1, h2, h3 { color: #ffd700; text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); margin-bottom: 20px; } p, li { font-size: 1rem; margin-bottom: 1em; } ul { list-style-type: square; padding-left: 1.5em; text-align: left; margin: auto; width: fit-content; } a { color: #00ffcc; text-decoration: none; transition: color 0.3s; } a:hover { color: #ff5733; } .step { margin-bottom: 2em; padding: 20px; background: rgba(255, 255, 255, 0.1); border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); display: flex; align-items: center; /* This will center the image vertically */ gap: 20px; justify-content: flex-start; /* Ensure the content is aligned at the start horizontally */ } .step img { width: 30%; min-height: 30%; height: auto; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); margin: auto; float: none; } .step-content { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: 20px; overflow: hidden; } .step pre { margin: auto; text-align: left; background: rgba(30, 30, 30, 1); color: #cfcfcf; font-family: 'Courier New', Courier, monospace; font-size: 0.9rem; padding: 15px; border: 1px solid #444; border-radius: 10px; overflow-x: auto; width: fit-content; max-width: 100%; box-sizing: border-box; height: auto; position: relative; /* Needed for positioning the button */ word-wrap: break-word; white-space: pre-wrap; } .copy-btn { position: absolute; top: 10px; right: 10px; background-color: #1f65d6; color: white; border: none; padding: 5px 10px; font-size: 0.8rem; cursor: pointer; border-radius: 5px; transition: background-color 0.3s; } .copy-btn:hover { background-color: #5a0fb8; } .copy-btn:focus { outline: none; } .button { display: inline-block; padding: 10px 20px; background: linear-gradient(to right, #5a0fb8, #1f65d6); color: white; border-radius: 5px; font-weight: bold; text-decoration: none; text-shadow: none; transition: background 0.3s; width: fit-content; margin: 0px auto; } .button:hover { background: linear-gradient(to right, #1f65d6, #5a0fb8); color: white; } @media (max-width: 768px) { img { float: none; min-width: 100%; margin: 0 auto 20px auto; display: block; } .step { flex-direction: column; text-align: center; max-width: 100%; width: 100%; } } article p{ text-align: justify; }