@font-face {
    font-family: 'TF2 Build';
    src: url('/fonts/tf2build.ttf');
}

html {
    min-height: 100%;
}

body {
    font-family: 'Helvetica', sans-serif;
    margin: 0;
    background: linear-gradient(#b6b6b6, #5f5f5f);
}

table {
    border-spacing: 1em 0;
}

.header {
    position: sticky;
    top: 0px;
    z-index: 100;
    height: 4em;
    padding: 1em;
    display: flex;
    gap: 2em;
    align-items: center;
    font-family: 'Century Schoolbook', serif;
    background: linear-gradient(#353535, #1a1a1a);
    color: #d1d1d1;
    border-bottom: solid black 2px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
}

.header__link {
    font-size: large;
    display: flex;
    align-items: center;
    gap: 0.5em;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.header__link-icon {
    height: 1.7em;
}

.content {
    width: 70%;
    min-height: 78.9vh;
    box-sizing: border-box;
    padding: 2em;
    background-color: #c0c0c0;
    border: 2px solid black;
    border-radius: 30px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin: auto;
    margin-top: -2px;
    margin-bottom: 2em;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
}

.footer {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    height: 3em;
    padding: 0.5em;
    padding-left: 2em;
    padding-right: 2em;
    background: #1a1a1a;
    border-top: solid black 2px;
}

.footer__item {
    font-family: 'Century Schoolbook', serif;
    color: #d1d1d1;
    vertical-align: middle;
}

.dropdown {
    position: relative;
    display: inline-block;
    background-color: inherit;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    padding: 12px 16px;
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.info-box {
    height: auto;
    padding: 1em;
    background-color: white;
    border-bottom-left-radius: 2em;
    border-bottom-right-radius: 2em;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
}

.info-box > * {
    margin: 0;
}

.page__content {
    display: none;
}

.page__content--visible {
    display: block;
}

.page__back-button {
  border: solid #0000005c 1px;
  background-color: #ffffff63;
  padding: 0.5em;
  border-radius: 5em;
  cursor: pointer;
}

.card {
    display: flex;
    flex-direction: column;
    flex-basis: min-content;
}

.card__link {
    aspect-ratio: 16 / 9;
    width: 30em;
    display: flex;
    justify-content: center;
    overflow: hidden;
    background: black;
    opacity: 1;
    border-style: ridge;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
}

.card__link:hover {
    transform: scale(1.01);
}

.card__image {
    width: 100%;
    object-fit: cover;
    pointer-events: none;
}

.card__image + p {
    all: unset;
    display: none;
    font-size: large;
    font-style: italic;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}

.card__image + p::after {
    content: 'More info';
}

.card__link:hover > img {
    opacity: 0.35;
    transition: 0.2s;
}

.card__link:hover > img + p {
    display: block;
}

.card-grid {
    display: flex;
    flex-flow: row wrap;
    gap: 2em;
    justify-content: space-evenly;
}

.project-page__figure {
    float: right;
    height: 20em;
    margin: 2em;
    margin-top: 0;
}

.project-page__figure img {
    position: relative;
    height: 100%;
}

.project-page__figure figcaption {
    margin-top: 1em;
    font-family: 'Century Schoolbook', serif;
    font-style: italic;
    opacity: 50%;
}

.project-page__content {
    min-height: 50%;
}

.project-page__content p {
    text-align: justify;
}

.tf2 {
    font-family: 'TF2 Build', sans-serif;
}

.about-me__content p {
    font-size: larger;
}

#site-title {
    font-size: medium;
    border-right: solid #d1d1d1 1px;
    padding-right: 1em;
}

#site-title * {
    pointer-events: none;
}

#about-me-links {
    font-size: larger;
}

#about-me-links h3 {
    margin-bottom: 0.2em;
}
