/*
@font-face {
  font-display: swap;
  font-family: 'DM Mono';
  font-style:  normal;
  font-weight: 400;
  src: url("/static/DM_Mono/DMMono-Regular.ttf") format("ttf");
  font-display: swap;
}

@font-face {
  font-display: swap;
  font-family: 'DM Mono';
  font-style:  normal;
  font-weight: 800;
  src: url("/static/DM_Mono/DMMono-Medium.ttf") format("ttf");
  font-display: swap;
}
*/
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap');

body {
  font-family: DM Mono, monospace;
}

pre.chroma code {  
  margin-top: -28px;
  padding-top: 40px;
  padding-bottom: 12px;
}

.code-name {
  display: inline-block;
  position: relative;
  padding: 4px 8px;
  background-color: #E7E9EB;
  color: #485A60;
  font-si>ze: 13px;
  font-weight: 400;
}

.inline-spoiler {
  position: relative;
  display: inline-block;
  cursor: help;
}

.inline-spoiler::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 1px;
  color: white;
  background: var(--accent);
  opacity: 1;
  transition: opacity 0.7s ease, transform 0.3s ease;
}

.inline-spoiler:hover::before {
  opacity: 0;
  transform: translateY(-50%)rotateX(80deg);
  transition: opacity 1.0s ease, transform 0.5s ease;
  transition-delay: 0.3s; // To not accidentally reveal the spoiler when hovering over the page
}
