*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; } html { color-scheme: dark; } body, input, button, select, textarea { font-family: "Outfit", sans-serif; } body { background-color: hsl(219, 69%, 10%); color: #fff; display: flex; flex-direction: column; min-height: 100vh; } .container { width: 95%; max-width: 1200px; margin-left: auto; margin-right: auto; } header { position: fixed; top: 0; left: 0; width: 100%; background-color: hsla(219, 69%, 6%, 0.9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 0.5rem 0; z-index: 3; } header .container { display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 1rem; } header .logo img { width: 100%; height: auto; display: block; } header .logo { width: 2rem; user-select: none; } .hero { background-color: hsl(219, 69%, 10%); background-image: url("img/hero.jpg"); background-position: 50% 80%; background-repeat: no-repeat; background-size: cover; } .hero .overlay { padding: 12rem 1rem 8rem 1rem; background-color: hsla(219, 69%, 5%, 0.6); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); text-align: center; } img { width: 100% } .page { flex-grow: 1; } section { margin-top: 4rem; margin-bottom: 4rem; text-align: center; } section h2 { margin-bottom: 2rem; user-select: none; } section form { display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 1.5rem; background-color: hsl(219, 69%, 20%); width: 95%; max-width: 900px; margin: 1rem auto; margin-bottom: 0; padding: 1rem; border-radius: 1rem; box-shadow: 0px 0px 20px hsla(219, 69%, 10%, 0.4); } section form fieldset { border: none; display: flex; flex-direction: row; align-items: center; flex-wrap: nowrap; gap: 1rem; text-align: left; width: 100%; max-width: 100%; } section form fieldset.buttons { max-width: max-content; } section form fieldset label { font-size: 1.2rem; } section form fieldset input[type="text"] { font-size: 98%; padding: 0.4rem 0.6rem; border-radius: 0.5rem; border: 1px solid hsla(219, 69%, 75%, 0.5); width: 100%; max-width: 100%; background-color: hsla(219, 69%, 5%, 0.8); } section form fieldset input[type="text"]:hover, section form fieldset input[type="text"]:focus { border: 1px solid hsla(219, 69%, 75%, 1); outline: none; } section form fieldset input[type="submit"], section form fieldset input[type="button"], .button { font-size: 95%; padding: 0.4rem 0.6rem; border-radius: 0.5rem; background-color: hsl(219, 69%, 75%); color: hsl(219, 69%, 10%); font-weight: bold; text-transform: uppercase; border: none; cursor: pointer; text-decoration: none; user-select: none; } section form fieldset input[type="submit"]:hover, section form fieldset input[type="button"]:hover, .button:hover { background-color: hsl(219, 69%, 70%); } section .boxes { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; display: flex; flex-direction: column; gap: 2rem; } section .boxes .box { display: flex; flex-direction: row; flex-wrap: nowrap; width: 99%; max-width: 1100px; margin: 0 auto; background-color: hsl(219, 69%, 20%); border-radius: 1rem; overflow: hidden; box-shadow: 0px 0px 20px hsla(219, 69%, 10%, 0.4); } section .boxes .box .image { flex-grow: 1; max-width: 25rem; min-width: 25rem; } section .boxes .box .image img { width: 100%; object-fit: cover; height: 100%; display: block; aspect-ratio: 4/3; user-select: none; } section .boxes .box .data { flex-grow: 2; text-align: left; display: flex; flex-direction: column; padding: 1rem; } section .boxes .box .data h3 { font-size: 1.8rem; } @media only screen and (max-width: 767px) { section .boxes .box .image { max-width: 12rem; min-width: 12rem; } section .boxes .box .data h3 { font-size: 1.5rem; } } @media only screen and (max-width: 600px) { section form { flex-direction: column; } section .boxes .box .image { max-width: 100%; min-width: 12rem; } section .boxes .box { flex-direction: column; } } section .boxes .box .data .meta { display: flex; flex-direction: row; flex-wrap: wrap; margin: 1rem 0; justify-content: flex-start; align-items: center; gap: 0.5rem; user-select: none; } section .boxes .box .data .meta p { display: flex; flex-direction: row; align-items: center; gap: 0.5rem; width: max-content; padding: 0.2rem 0.4rem; border-radius: 0.5rem; background-color: hsl(219, 69%, 30%); } section .boxes .box .data .grow { flex-grow: 1; } section .buttons { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: center; } section .boxes .box .data .buttons { justify-content: flex-end; margin-top: 1rem; } code { background-color: hsl(221, 14%, 14%); color: #ff6685; padding: 0.2rem 0.3rem; border-radius: 0.5rem; } .count { transition: all 150ms cubic-bezier(0.165, 0.84, 0.44, 1); transform: scale(1); } .animated { color: yellow; transform: scale(1.2) rotate(3deg); } footer { text-align: center; background-color: hsla(219, 69%, 6%, 0.8); padding: 1rem 0; }