body, html {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), #95abc4), url("./images/tile.jpg");
  color: white;
  font-family: serif;
  height: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
}

a {
  transition: 0.1s;
}

a:hover,
.buttons a:active {
  opacity: 50%;
  transition: 0.1s;
}

h1 {
  text-align: center;
}

h2, h3 {
  text-align: center;
}

hr {
  color: white;
}

iframe {
  border: none;
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

p {
  padding: 10px;
  text-align: center;
}

.box {
  background-color: rgba(92, 102, 114, 0.25);
  border: solid 2px white;
  border-radius: 5px;
  justify-content: center;
  margin: auto;
  padding: 5px;
  width: fit-content;
}

.buttons .fab,
.buttons .fas {
  color: white;
  font-size: 30px;
  padding: 5px;
  transition: .1s;
}

.buttons a.magnetic {
  border-radius: 8px;
  display: inline-block;
  overflow: hidden;
  padding: 6px;
  transform: translateZ(0);
}

.buttons a.magnetic i {
  display: inline-block;
  pointer-events: none;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  width: 100%;
}

.card {
  align-items: flex-start;
  background-color: rgba(34, 34, 34, 0.85);
  border-bottom-color: rgba(0, 0, 0, 0.85);
  border-left-color: rgba(85, 85, 85, 0.85);
  border-right-color: rgba(0, 0, 0, 0.85);
  border-style: solid;
  border-top-color: rgba(85, 85, 85, 0.85);
  border-width: 2px;
  color: #CCCCCC;
  display: flex;
  gap: 12px;
  padding: 10px;
}

.card .desc {
  color: #9aa4b2;
  font-size: 14px;
  margin-top: 6px;
}

.card .footer {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.card .meta {
  flex: 1 1 auto;
}

.card .title {
  font-size: 16px;
  margin: 0;
}

.card .title a {
  color: #95abc4;
  font-weight: 600;
  text-decoration: none;
}

.card .title a[href^="https://"]:after {
  content: " \2197";
}

.card img.thumb {
  background: rgba(255,255,255,0.02);
  flex-shrink: 0;
  height: 88px;
  object-fit: contain;
  object-position: center;
  width: 88px;
}

.center {
  text-align: center;
}

.dark-raised-border {
  background-color: rgba(34, 34, 34, 0.85);
  border-bottom-color: rgba(0, 0, 0, 0.85);
  border-left-color: rgba(85, 85, 85, 0.85);
  border-right-color: rgba(0, 0, 0, 0.85);
  border-style: solid;
  border-top-color: rgba(85, 85, 85, 0.85);
  border-width: 2px;
  color: #CCCCCC;
  justify-content: center;
  margin: auto;
  padding: 10px;
  width: fit-content;
}

.dark-sunken-border {
  background-color: #222222;
  border-bottom-color: #555555;
  border-left-color: #000000;
  border-right-color: #555555;
  border-style: solid;
  border-top-color: #000000;
  border-width: 2px;
  color: #CCCCCC;
  padding: 2px;
}

details {
  border: none;
  margin: 10px 0;
  transition: 0.1s;
}

summary:hover {
  opacity: 50%;
  transition: 0.1s;
}

.flex {
  display: flex;
  gap: 25px;
}

#footer {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

#footer p {
  font-size: 10px;
}

.fas, .fab {
  color: white;
  font-size: 40px;
  padding: 3px;
}

.lang {
  align-items: center;
  color: #8b949e;
  display: inline-flex;
  font-size: 13px;
  gap: 8px;
}

.page-loader {
  align-items: center;
  background: rgba(0,0,0,0.78);
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  transition: opacity 300ms ease;
  z-index: 9999;
}

.page-loader.loaded {
  opacity: 0;
  pointer-events: none;
}

.page-loader .loader {
  animation: spin 1s linear infinite;
  border: 6px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  border-top-color: #95abc4;
  height: 48px;
  width: 48px;
}

.project {
  background: none transparent;
  border-color: '#f8f8f8';
  border-style: solid;
  height: 10em;
  justify-content: center;
  margin: 0;
  width: 400px;
}

.project h2,
.project p {
  text-align: left;
}

.project img {
  padding-left: 15px;
  padding-top: 5px;
}

.project .si {
  color: white;
  font-size: 40px;
  padding: 3px;
}

.thumb-icon {
  align-items: center;
  background: rgba(255,255,255,0.02);
  color: #c9d1d9;
  display: flex;
  flex-shrink: 0;
  height: 88px;
  justify-content: center;
  width: 88px;
}

.thumb-icon i {
  font-size: 36px;
}

#title {
  font-family: sans-serif;
  font-size: 45px;
  font-style: italic;
  -webkit-text-fill-color: white;
  -webkit-text-stroke-color: black;
  -webkit-text-stroke-width: .75px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .dark-raised-border, 
  .box {
    width: 90%;
    box-sizing: border-box;
  }

  .flex {
    flex-direction: column;
    align-items: center;
  }

  .project {
    width: 100%;
    height: auto;
    padding: 10px;
  }
  
  .project img {
    padding-left: 0;
    display: block;
    margin: 0 auto;
  }

  .project h2,
  .project p {
    text-align: center;
  }

  #title {
    font-size: 32px;
  }
}