:root { --main-bg-color: whitesmoke; --alt-bg-color: #162844; } body { font-family: helvetica neue, helvetica, inter, arial, sans-serif; margin: auto; max-width: 800px; background-color: var(--main-bg-color); } /*nav { backdrop-filter: blur(15px); background-color: #00000040; }*/ nav { padding: 10px 15px; /*padding: 0;*/ margin:0; } nav ul { list-style-type: none; text-align: left; margin: 0; padding: 0; } nav li { border-bottom: 4px solid var(--main-bg-color); font-size: 24px; } nav a { color: inherit; text-decoration: none; display: block; width: 100%; margin-left: 2px; } nav a::after { content: '›'; margin-left: -2px; opacity: 0; transition: margin-left .25s ease-out; } nav a:hover::after { opacity: 1; margin-left: 5px; } section { padding: 20px 50px; } h3 { font-size: 3em; margin: 0.5em 0; } main a:link { color: #114291; } .hidden-link:link { text-decoration: none; color: inherit; position: relative; top: 0; transition: top 0.1s ease; transform-origin: bottom; } .hidden-link:hover { color: #114291; top: -2px; /*transform: skewX(-10deg);*/ } .hidden-text { color: transparent; margin: 0; user-select: none; -webkit-user-select: none; font-size: 1px; } section:first-of-type { padding-top: 85px; } section:nth-of-type(odd) { background-color: var(--main-bg-color); color: black; } section:first-of-type > p { text-align: right; } section > p, li { font-size: 1.6em; text-align: left; line-height: 1.3; } footer { text-align: center; display: block; line-height: 2em; background-color: #00000080; } .cards { columns: 3 300px; column-gap: 1.5em; orphans: 1; widows: 1; } .card { display: inline-block; background: var(--main-bg-color); color: black; text-align: left; font-size: 1.2em; /* Add shadows to create the "card" effect */ box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); transition: 0.3s; border-radius: 5px; margin: 0.75em 0; padding: 20px; box-sizing: border-box; width: 100%; } .card:hover { box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.5); transform: scale(1.03); z-index: 1; } .card h3 { font-size: 1.6em; margin: 0 auto; } .project-link { display: block; text-align: right; /*color: #23c;*/ /* Or should the whole card be a link? */ } .project-link::after { content: "View project ›"; } .button { font-size: 2em; font-family: inherit; color: var(--main-bg-color) !important; margin: auto; padding: 10px; display: block; box-sizing: border-box; width: 100%; max-width: 15em; border: 2px solid #222a; border-radius: 5px; font-weight: 300; text-align: center; text-decoration: none; background-color: #00000040; box-shadow: 0 3px 15px 2px #fff6; transition: 0.1s; } .button:hover { background-color: #00000080; box-shadow: 0 3px 15px 4px #fff6; } input { box-sizing: border-box; font-size: 1.5em; font-family: inherit; margin: auto; padding: 0.4em 0.6em; width: 100%; max-width: 20em; display: block; background-color: #222c; border: 1px solid #aaa; border-radius: 4px; color: #eee; box-shadow: inset 0 0.0625em 0.125em rgba(10, 10, 10, .05); } input:hover { border-color: #ccc; } input:focus { border-color: #3273dc; box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25); outline: 0; }