@media (prefers-color-scheme:light) { :root { --primary-color: #438566; --secondary-color: #cfc797; --accent-color: #732d35; --text-color: #003136; --background-color: #ecf0f1; --link-color: #ab710e; --border-color: #908b69; --nav-color: var(--background-color); --alt-color: var(--background-color); --details-color: #ddd; --shadow: rgba(0, 0, 0, 0.1); --dark-shadow: rgba(0, 0, 0, 0.2); } } @media (prefers-color-scheme: dark) { :root { --primary-color: #003136; --secondary-color: #9a977c; --accent-color: #6e2b30; --text-color: #ffffff; --background-color: #011111; --link-color: #ab710e; --border-color: #6e6e6e; --nav-color: var(--link-color); --alt-color: var(--text-color); --details-color: #438566; --shadow: rgba(255, 255, 255, 0.1); --dark-shadow: rgba(255, 255, 255, 0.2); } } body, h1, h2, ul, li { margin: 0; padding: 0; } body { background: var(--background-color); color: var(--text-color); } main { margin: 1em 10vw; } main > article { max-width: 70em; } nav { background-color: var(--primary-color); padding: 10px; text-align: center; } menu { list-style-type: none; padding: 0; } .card { margin-top: 20px; margin-bottom: 15px; border: 3px solid var(--border-color); padding: 20px; border-radius: 8px; background-color: var(--background-color); box-shadow: 0 2px 4px var(--shadow); transition: background-color 0.3s; } .card .card-title { color: var(--link-color); margin: 0; text-decoration: var(--decoration, inherit); } .card .card-body { color: var(--text-color); width: 100%; } .card-content { display: flex; flex-direction: column; align-items: center; } .card:hover { color: var(--link-color); border-color: var(--secondary-color); --decoration: underline; } a { color: var(--link-color); /* display: block; */ } header > :not(nav) { margin-left: 2.5vw; } header > h1 { padding-top: 0.2em; } /* Style the site title */ h1 a { color: var(--primary-color); text-decoration: none; } nav li { display: inline-block; padding: 0.1em 0.3em; } nav a { color: var(--nav-color); text-decoration: none; } /* Hover effect for the links */ nav a:hover { text-decoration: underline; } menu a { text-decoration: none; } #landing-image { width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 4px 8px var(--shadow); } .landing-content { display: flex; justify-content: center; align-items: center; padding: 1em; } .featured-image-container { display: flex; flex-direction: column; justify-content: center; align-items: center; border-right: 2px solid var(--border-color); max-width: 55%; } .featured-image-container figure { max-width: 100%; max-height: 100%; } .featured-image-container figure figcaption { text-align: center; } .featured { display: flex; flex-direction: row; gap: 10px; } @media (width <= 850px) { .featured { flex-direction: column; } .featured-image-container { border-right: 0; border-bottom: 2px solid var(--border-color); max-width: 100%; } .landing-content { padding: 0; } } .recent-updates { display: flex; flex-wrap: wrap; flex-direction: row; justify-content: center; } .recent-projects, .recent-research, .recent-blog { list-style-position: inside; width: 33.3%; } @media (width <= 700px) { .recent-updates { flex-direction: column; align-items: center; } .recent-projects, .recent-research, .recent-blog { width: 100%; } } .links-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1em; margin: 0.25em; } footer { display: flex; flex-direction: column; align-items: center; } details summary { cursor: pointer; padding: 10px; background-color: var(--details-color); border: 2px solid var(--details-color); border-radius: 5px; } details > :not(summary) { padding: 0 15px 10px 15px; } details { background-color: var(--details-color); border-radius: 5px; box-shadow: 1px 1px 1px var(--dark-shadow); } details[open] summary, details summary:hover { background-color: var(--primary-color); border-color: var(--primary-color); color: var(--alt-color); } hr { color: var(--border-color); } nav > h1 { display: inline-block; font-size: 2.5em; } .hover-scale { transition: transform 0.3s ease-in-out; } .hover-scale:hover { transform: scale(1.5); } /* Container for the tags */ .card-meta { display: flex; /* Use flexbox to create a horizontal layout */ flex-wrap: wrap; /* Allow the tags to wrap to the next line if there's not enough space */ gap: 8px; /* Space between each tag */ margin-top: 0.5em; } .card-image { max-width: 100%; } .meta-tag { display: inline-block; padding: 8px 16px; background-color: var(--primary-color); color: var(--alt-color); border-radius: 16px; text-decoration: none; transition: background-color 0.3s ease; } .meta-tag:hover { background-color: var(--link-color); } .logo { width: 50px; height: 50px; } .logo path { fill: var(--primary-color); } .logo:hover path { /* filter: brightness(0.5); */ fill: var(--link-color); }