When resizing the browsers window. Or when I use the responsive view in the dev tools, after about 600px the body gets smaller. Here is an image of my problem:
Somehow the problem only exists in the chrome browser, in the Safari Browser it works.
I created a JS Fiddle to show you the problem: https://jsfiddle.net/fpq6nyco/2/
I am pretty sure that the error sits in these lines:
@media (max-width: 726px) {
.toggle-button {
display: inline;
}
.navbar-links {
display: none;
width: 100%;
z-index: 10;
background-color: var(--primary-color);
}
.navbar {
flex-direction: column;
align-items: flex-start;
}
.navbar-links ul {
width: 100%;
flex-direction: column;
}
.navbar-links.active {
display: flex;
}
.logo {
display: inline;
}
.navbar-controls {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
height: 100%;
}
.container{
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
width: 100%;
}
.item{
width: 100%;
}
.info-section{
margin-top: 200px;
}
.community-cont{
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
margin-top: 50px;
margin-bottom: 50px;
}
footer {
width: 100%;
height: auto;
background-color: var(--dark-color);
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
padding-top: 20px;
padding-bottom: 20px;
}
.item-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
height: 40vh;
}
.text-cont-footer {
color: var(--primary-color);
width: 100%;
}
.footer-item {
display: flex;
flex-direction: column;
justify-content: space-around;
color: var(--primary-color);
font-family: var(--primary-font);
}
}
First the footer doesn't work on the width 1000px too, I changed that by removing the margin.