body { background-color: #e6e6e6; margin: 0; display: grid; } @media (min-width: 1025px) { body { grid-template-columns: 250px; grid-template-areas: 'menu title' 'menu content'; } #navbar { height: 100vh; position: fixed; padding: 1rem; margin-right: 1rem; } } @media (max-width: 1024px) { body { grid-template-areas: 'title' 'menu' 'content'; } #navbar { width: 100%; margin-bottom: 1rem; } } #title { grid-area: title; display: flex; flex-direction: column; align-items: center; margin-top: 1rem; } #title h1,h2 { margin: 0; } #navbar { display: flex; flex-direction: column; align-items: center; background-color: #eadecc; list-style: none; grid-area: menu; } #navbar li:not(:first-child) { margin-top: 1rem; } #navbar li:last-child { margin-bottom: 1rem; } #logo { width: 150px; } #content { grid-area: content; display: flex; flex-direction: column; align-items: center; } h1, h2, h3 { color: #8c877d; } #title { margin-bottom: 2rem; } #title h1 { font-size: xx-large; } #title h2 { font-size: x-large; } .galery { display: flex; justify-content: center; flex-wrap: wrap; } .galery a img { margin: 0.5rem; } #contact { background-color: #f6f1ea; width: 100% } #contact p { margin: 1rem; font-size: large; color: #8c877d }