#mapContainer { display: grid; } div.mapItem { width: 350px; margin: 10px auto; } div.mapItem.new { display: flex; justify-content: center; align-items: center; } div.mapItem>div.title { background-color: #28a745; color: white; border-top-left-radius: 3px; border-top-right-radius: 3px; padding: 0 8px; height: 35px; line-height: 35px; } div.mapItem>div.title>p { line-height: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } div.mapItem>div.title>p.title { font-weight: 500; font-size: 18px; } div.mapItem>div.imgContainer { width: 100%; padding-top: 50%; background-color: #cccccc; background-position: center; background-repeat: no-repeat; background-size: cover; } div.mapItem>div.inner { background-color: #eeeeee; padding: 10px 8px; box-sizing: border-box; } div.mapItem>div.inner>div.info { display: grid; grid-template-columns: auto auto; } div.mapItem>div.inner>div.description { display: flex; justify-content: center; align-items: center; } div.mapItem>div.inner>div.info>p:nth-child(1) { text-align: left; } div.mapItem>div.inner>div.info>p:nth-child(2) { text-align: right; } div.mapItem>div.buttonContainer { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; } #restrictions { margin-top: 1em; margin-bottom: 1em; font-family: 'Roboto', sans-serif; } #restrictions h3 { font-weight: 500; } #restrictions input { height: auto; margin: 0.5em; } #restrictions input[type=range] { height: 1.5em; margin-left: 2em; } #timeLimitType { margin-left: 2em; } @media screen and (min-width: 1504px) { #mapContainer { grid-template-columns: auto auto auto auto; } } @media screen and (min-width: 1134px) and (max-width: 1503px) { #mapContainer { grid-template-columns: auto auto auto; } } @media screen and (min-width: 764px) and (max-width: 1133px) { #mapContainer { grid-template-columns: auto auto; } } @media screen and (max-width: 763px) { #mapContainer { grid-template-columns: auto; } } @media screen and (max-width: 374px) { div.mapItem { width: 100%; } }