body { font-family: 'Courier New', Courier, monospace; background: url(./blackboard.jpg); background-size: cover; } small { color: red; display: block; margin-top: 10px; } .container{ display: grid; grid-template-columns: 1fr fit-content 1fr; grid-template-rows: repeat(1, 1fr); grid-auto-rows: minmax(fit-content, auto); grid-gap: 1em; align-items: center; grid-template-areas: "reader reader reader" "pound arrs kilo" "miles arrs kilometers" "inches arrs cmeters" ; } header { text-align: center; font-size: 2.5vh; padding: 10px; margin: 0 auto; margin-bottom: 10px; background-color: black; color: white; } .reader { grid-area: reader; } .reader__wrapper { display: flex; margin: 0 auto; justify-content: center; } .reader__wrapper article { width: 60%; font-size: 2vh; text-align: justify; padding: 0.2em 1em; color: white; background-color: black; } .reader__wrapper article > h2 { text-align: center; } .reader__wrapper div{ display: flex; font-size: 2em; padding: 0.5%; align-items: center; background-color: black; color: white; } #goleft { border-radius: 15px 0px 0px 15px; font-size: 4vh; transition: 0.3s; } #goleft:hover, #goright:hover { background-color: white; color: black; } #goleft:active, #goright:active { background-color: black; color: gold; text-shadow: 0px 0px 5px white; transition: 0.1s; } #goright { border-radius: 0px 15px 15px 0px; font-size: 4vh; transition: 0.6s; } .arrs { font-size: 4vh; text-align: center; color: white; } .pound { grid-area: pound; } .kilo { grid-area: kilo; } .miles { grid-area: miles; } .kilometers { grid-area: kilometers; } .inches { grid-area: inches; } .cmeters { grid-area: cmeters; } .pound, .kilo, .miles, .kilometers, .inches, .cmeters { text-align: center; font-size: 3vh; padding: 15px; color: white; text-shadow: 1px 1px 3px black; } .pound, .miles, .inches { border-radius: 15px 0px 0px 15px; background: linear-gradient(to right, black, rgba(0, 0, 0, 0.233)); } .kilo, .kilometers, .cmeters { border-radius: 0px 15px 15px 0px; background: linear-gradient(to left, black, rgba(0, 0, 0, 0.233)); } #pnd, #kg, #mil, #km, #inch, #cm { font-size: 3.2vh; } @media (max-width:550px) { .container { grid-gap: 0; } #pnd, #kg, #mil, #km, #inch, #cm { font-size: 1.7vh; } }