body { margin: 0; background-image: url("/public/images/background/background-contact.jpg"); background-attachment: fixed; background-size: cover; background-position: center; } body #div-content { height: 48rem; position: relative; background-color: #1B4056; z-index: 2; padding-bottom: 7rem; } .grid { position: absolute; display: grid; gap: 5rem; grid-template-columns: repeat(1, 65rem); grid-template-rows: repeat(1, 8rem); justify-self: center; justify-content: center; margin-top: 25rem; } .grid-item { height: 45rem; align-self: center; } .grid-item img { border-radius: 2rem; } .grid .one { background-color: #235573; padding: 1rem; border-radius: .40rem; } .right-text { margin-left: 31rem; } .one img:hover { transform: scale(1.01); } .one img { float: left; box-shadow: 1rem 1rem 0rem #000000; } .contact { background-color:#307097; box-shadow: 1rem 1rem 0rem #000000; border-radius: 2rem; width: 30rem; label, input, textarea{ display: block; margin: 2rem; padding-top: 0.1rem; } input, textarea{ background-color: #1B4056; } textarea{ height: 10rem; width: 25rem; } } .contact:hover{ transform: scale(1.01); }