diff --git a/css/index.css b/css/index.css index 5a18b8e..1f66775 100644 --- a/css/index.css +++ b/css/index.css @@ -35,6 +35,7 @@ body { grid-column: 1 / 3; padding: .5em; align-self: center; + line-height: 2em; } .title nav a { border: 0px solid #484848de; @@ -71,4 +72,23 @@ footer>p { footer>.author { font-family: 'IBM Plex Serif'; font-weight: 300; +} + +@media screen and (max-width: 700px) { + .title { + width: auto; + height: 300px; + margin: calc((100vh - 300px) / 2) 1em; + grid-template-columns: 1fr; + grid-template-rows: 1fr 1fr 2fr; + } + .title h1, .title h2 { + text-align: center; + } + .title h1 { + align-self: start; + } + .title nav { + grid-column: 1; + } } \ No newline at end of file