@import url('https://fonts.cdnfonts.com/css/akrobat'); * { margin: 0; padding: 0; box-sizing: border-box; border: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; -webkit-user-drag: none; -khtml-user-drag: none; -moz-user-drag: none; -o-user-drag: none; } body{ display: flex; min-height: 79dvh; align-items: flex-end; justify-content: center; bottom: 100px; } .box{ background-color: rgb(0, 0, 0); border:1px solid black; padding: 10px; text-align: center; background-size: cover; background-position: center; background-repeat: no-repeat; cursor: pointer; transition: 0.35s; /* Neon glow effect */ box-shadow: 0 0 5px #000000, 0 0 5px #000000, 0 0 5px #000000; } #logo { position: absolute; top: 20px; /* Distance from top */ left: 50%; transform: translateX(-50%); width: 150px; height: 150px; background-image: url('img/ffa1.png'); background-size: cover; background-position: center; background-repeat: no-repeat; } #container { display: grid; grid-auto-columns: 200px; grid-auto-rows: 200px; gap: 10px; margin-bottom: 60px; grid-template-areas: "box-5 box-2 box-2 box-3 box-6" "box-5 box-1 box-4 box-4 box-7"; } @media(max-width: 56em){ #logo{ visibility: hidden; } #container{ margin-top: 10px; margin-bottom: 30px; display: grid; grid-auto-columns: 200px; grid-auto-rows: 200px; gap: 10px; grid-template-areas: "box-5 box-2 box-2" "box-5 box-4 box-7" "box-1 box-3 box-6"; }} #ffa1:hover { opacity: 1.0; transform: scale(1.02); transition: .35s; } #ffa2:hover { opacity: 1.0; transform: scale(1.02); transition: .35s; } #ffa3:hover { opacity: 1.0; transform: scale(1.02); transition: .35s; } #ffa4:hover { opacity: 1.0; transform: scale(1.02); transition: .35s; } #ffa5:hover { opacity: 1.0; transform: scale(1.02); transition: .35s; } #ffa6:hover { opacity: 1.0; transform: scale(1.02); transition: .35s; } #ffa9:hover { opacity: 1.0; transform: scale(1.02); transition: .35s; } .box img { width: 100%; height: 100%; object-fit: cover; display: block; margin-bottom: 40px; }