/* 320, 375, 425, 768, 1024, 1440, 2560 */ html{ box-sizing: border-box; color: #1A1A1D; } body{ margin: 0; } *, *::before, *::after{ box-sizing: inherit; } img{ max-width: 100%; height: auto; } .layout-wrapper{ margin: 0 auto; width: 100%; max-width: 1024px; padding: 24px; } header{ background-color: #C2CAD0; } header .layout-wrapper{ display: flex; } .logo{ flex: 1 0 64px; } .logo, nav{ display: inline-block; } .home-servers{ display: grid; margin: 0 auto; gap: 20px; width: 100%; max-width: 1024px; } .home-server{ text-align: center; min-height: 200px; background-color: #6BA8D7; border-radius: 24px; padding: 24px; } .home-server .button{ margin-top: 16px; display: inline-block; } .home-server-uno{ text-align: center; display: flex; row-gap: 24px; column-gap: 12px; flex-wrap: wrap; } .home-server-uno img{ width: 100%; max-width: 224px; height: auto; } .home-server--minecraft{ background-color: lightgreen; color: green; } .home-server--discord{ background-color: mediumpurple; color: blueviolet; } .home-server .heading{ font-size: 1.875rem; margin: 0.5rem; font-weight: bold; } .home-server--minecraft .heading{ color: darkgreen; } .home-server--discord .heading{ color: purple; } .centre-image{ display: block; margin-left: auto; margin-right: auto; } .button{ padding: 12px; border-radius: 12px; color: black; background-color: lightblue; } .clipboard{ color: black; cursor: pointer; } .clipboard:hover{ cursor: pointer; } .tooltipped { position: relative; } .tooltipped .tooltiptext { visibility: hidden; width: 100%; max-width: 200px; background-color: #555; color: #fff; text-align: center; border-radius: 6px; padding: 12px; position: absolute; z-index: 1; bottom: 150%; left: 50%; margin-left: -75px; transition: opacity 0.3s; } .tooltipped .tooltiptext::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: #555 transparent transparent transparent; } .tooltipped:hover .tooltiptext { visibility: visible; } .moar{ background-color: #97CAEF; } footer{ background-color: #1A1A1D; color: white; } .inline-list{ margin: 0; padding: 0; } .inline-list li{ display: inline-block; list-style-type: none; } .inline-list li a{ text-decoration: none; } .content{ font-size: 16px; } @media (min-width: 375px){ .home-servers{ grid-template-columns: repeat(auto-fill, 1fr); } .home-server-uno div{ flex: 1 0 200px; } } @media (min-width: 768px){ .home-servers{ grid-template-columns: repeat(auto-fill, minmax(312px, 1fr)); } .home-server-uno{ /* Use two grid spaces on tablet+ */ grid-column-start: 1; grid-column-end: 3; } .home-server-uno div{ text-align: left; } }