When i resize my border my image keeps going up to the top?

When i resize my border my image keeps going up to the top?

Why does my image approach the top of the browser when i resize it, im trying to make responsive for mobile but i cant get it work. Do someone have an idea of what im doing wrong to make this work?

Why does my image approach the top of the browser when i resize it, im trying to make responsive for mobile but i cant get it work. Do someone have an idea of what im doing wrong to make this work?

.background-1 {
  width:100%;
  height: 100%;
  overflow:hidden;
}
.title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #a57354;
  text-align: center;
}
<div class="background-1">
  <img src="Image-1.png" class="img" /> 
  <div class="title">
  <div class="info">
  <img class="wow rotateIn img-logo" src="logo.png">
    <h4 class="wow fadeinUp"> DIN PERSONLIGA BARBERARE I GÄVLE </H4>
  </div>
  </div>
  </div>


html css

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Know Everything About HTML With HTML Experts

HTML Assignment Help Australia @30% OFF from Sample Assignment, with Our Best HTML assignment help experts. Get HTML homework help online at affordable price. 100% Plag free assignment solution.

HTML And CSS Tutorial For Beginners | Complete HTML & CSS Course In One Tutorial

In this video you will learn basics of HTML and CSS from beginning. This HTML and CSS course is best for Beginners to start learning web design and web development. In this HTML and CSS Beginners tutorial we will discuss all the important HTML tags, CSS properties to design the website with some example and explanation. We will also learn about animation using CSS.

Stay at Home Animation in HTML CSS - Covid-19 | SVG to HTML CSS |

Stay at home Animation in html css - COVID-19 . Adobe illustrator SVG To HTML CSS Animation . corona-virus. Adobe illustrator to HTML & CSS Animation.

Hire CSS Developer

Want to develop a website or re-design using CSS Development? We build a website and we implemented CSS successfully if you are planning to **[Hire CSS Developer](https://hourlydeveloper.io/hire-dedicated-css-developer/ "Hire CSS Developer")**...

Transparent Login Form Using HTML and CSS | Login Page in HTML CSS

Transparent Login Form Using HTML and CSS | Login Page in HTML CSS