body {
  /* padding: 3rem; */

  --margin: 2rem;
}
html {
  scroll-behavior: smooth;
}
form {
  display: flex;
  flex-direction: column;
  max-width: 300px;
}

h3 {
  font-weight: 300;
}

label {
  margin-top: 0.8rem;
  margin-bottom: 0.2rem;
}
button {
  margin-top: 0.8rem;
}

@media screen and (max-width: 768px) {
  pre {
    width: auto;
    /* animation-name: slideinout;
        animation-duration: 14s;
        animation-iteration-count: infinite;
        animation-timing-function: ease-in-out; */
    user-select: none;
  }

  html {
    font-size: 12px;
  }
}

header {
  margin-top: 6rem;
}

header .email-display {
  background: #e0e0e0;
  width: 14ch;
  height: 1em;
  border-radius: 2px;
}
header p {
  font-size: 1.2rem;
  margin-left: var(--margin);
  max-width: 30em;
}

header a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

a,
a:visited {
  transition: 0.1s all ease-in-out;
  color: #c0392b;
}

a:hover {
  text-decoration-thickness: 3px;
}

.branding {
  text-decoration: none;
  color: black;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  padding: 0rem 2rem;
  border-radius: 0 0 5px 5px;
  box-shadow: 2px 3px 2px #c0392b;
  z-index: 10;
  transition: 0.15s ease-in-out all;
}

.branding:hover {
  box-shadow: 2px 3px 5px #c0392b;
}
.branding pre {
  font-size: 0.45em;
  margin: 0;
}
article {
  margin: 2rem 0;
  padding-top: 1rem;
  background-color: azure;
}

.article-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 1rem;
  margin-left: var(--margin);
}
.article-content {
  margin-left: var(--margin);
  margin-right: var(--margin);
  padding: 1em 0;

  gap: var(--margin);
}

@media screen and (min-width: 1080px) {
  body {
    --margin: 4rem;
  }
  .article-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    margin-right: var(--margin);
  }
}

.article-header h2 {
  font-size: 2rem;
  margin: 0;
}
.article-content ul {
  padding-left: 0.5em;
  margin-top: 0.5em;
}
.article-content ul li {
  list-style-type: disc;
}

.video-carousel {
  display: flex;
  gap: 10px;
  width: 100vw;

  overflow-x: auto;
  padding-right: 4em;

  height: 960px;
  min-height: 400px;
  max-height: 75vh;
}

@media screen and (min-width: 960px) {
  .video-carousel {
    gap: 20px;
  }
}

.video-carousel video,
.video-carousel img {
  height: 100%;
  width: auto;
  display: block;
  margin: 0;
  padding: 0;
}

.video-item {
  position: relative;
  /* flex-shrink: 0; */
  /* height: 100%; */
  width: auto;
  height: 100%;
}
.video-item div {
  z-index: 2;
  /* aspect-ratio: 16/9; */
  height: 100%;
  position: relative;
}

.video-item iframe {
  /* position: relative; */
  height: 100%;
  width: auto;
  background-color: #f0f0f0;
}

.video-label {
  opacity: 0;
  position: absolute;
  left: 0.6rem;
  top: 0.6rem;
  background-color: white;
  padding: 0.2rem 0.7rem;
  border-radius: 3px;
  box-shadow: 2px 3px 0 #c0392b;
  z-index: 10;
  font-size: 0.875rem;
}
.video-item:hover .video-label {
  opacity: 1;
}

/* 
@media screen and (min-width: 960px) {
  .video-carousel {
    height: 900px;
  }
} */

.desktop-video {
  aspect-ratio: 1.868;
  display: none;
}

@media screen and (min-width: 960px) {
  .desktop-video {
    display: block;
  }
}

.mobile-video {
  aspect-ratio: 0.46;
}

.mobile-android-video {
  aspect-ratio: 0.45;
}

.portrait-video {
  aspect-ratio: 9/16;
}

.video-carousel .video-item:last-of-type {
  margin-right: 20px;
}

/* @keyframes slideinout {
      from {
        transform: translateX(0%);
      }

      50% {
        transform: translateX(calc(50vw - 768px));
      }

      to {
        transform: translateX(0%);
      }
    } */

.project-details {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.details p {
  font-weight: 600;
  margin-bottom: 0;
}

footer {
  margin: 4rem 2rem;
}
