:root {
  --primary-color:#E2ADF2;
  --text-color:#f8f7f9;
  --bg-color2:#4B2E39;
  --bg-color:#1f1219;
  --border-color:#C09891;
  --padding:16px;
}

@font-face{
  font-family:'Leorio';
  src:url('assets/fonts/Leorio.ttf');
  font-optical-sizing:auto;
  font-display:swap;
}

html, body { margin:0; padding:0; font-family:Leorio, sans-serif;}

a { color:#C5B0CD;}

ul { list-style-type:'⭑ ';}

em { color:var(--primary-color);}

body {
  color:var(--text-color); line-height:1.6; font-size:1.15rem;
  background:var(--bg-color);
  display:flex; flex-direction:column; align-items:center;
}

.container {
  width:100%;
  min-height: 100vh;
  display:grid;
  grid-template-areas:
    "header header"
    "sidebar content"
    "sidebar footer";
  grid-template-columns:1fr 3fr;
  grid-template-rows: 180px auto auto;
  box-sizing:border-box;
}

header, .content, nav, aside, footer {
  padding:var(--padding);
  box-sizing:border-box;
}

header {
  grid-area:header;
  background:var(--bg-color2);
}
.sidebar { grid-area:sidebar; background:#2f2229;}
.content { grid-area:content;text-align:justify;}
footer { grid-area:footer;text-align:center;color:var(--bg-color2);}

.red-text { color:#F95454;}
.green-text { color:#8FD14F;}
.center { text-align:center;}
.relative { position:relative;}

.sketchbook {
  display:flex; flex-direction:row; justify-content:center; flex-flow:wrap; gap:var(--padding);

  img {
    height:200px; width:auto;
    border:solid 2px var(--primary-color); border-radius:5px;
    pointer-events:none; user-select:none;
  }
}

code, .code {
  font-size:0.92rem;
  font-family:ui-monospace, monospace;
  background-color:#27233A;
  color:#d8cfa8;
  border:1px solid var(--border-color);
  border-radius:8px;
}
code { padding:0.15em 0.4em; }
.code { padding:12px; }

.meteor {
  position:absolute; top:-50px;
  width:100px; height:2px;
  background:linear-gradient(-90deg, rgba(255, 255, 255, 0) 0%, rgba(216, 100, 0, 0.4) 50%, #ffffff 100%);
  filter:drop-shadow(0 0 6px #ffffff);
  opacity:0;
  animation:shoot 4s linear infinite;
}

.meteor-1 { left:30%; animation-delay:0s;}
.meteor-2 { left:55%; animation-delay:1.2s; transform: rotate(-45deg) scale(0.8);}
.meteor-3 { left:75%; animation-delay:2.5s; transform: rotate(-45deg) scale(1.2);}
.meteor-4 { left:68%; animation-delay:4.1s;}

.star {
  width:2px; height:2px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 0 2px 1px #55c;
  position:absolute;
  animation:blink 0.6s linear infinite;
}

.star-1 { top:20px; left:13%; animation-delay:0s;}
.star-2 { top:100px; left:33%;  animation-delay:0.2s;}
.star-3 { top:50px; left:53%; animation-delay:.3s;}
.star-4 { top:120px; right:40%; animation-delay:0.7s;}
.star-5 { top:70px; right:21%; animation-delay:0.5;}
.star-6 { top:89px; right:20%; animation-delay:0.8s;}
.star-7 { top:45px; right:53%; animation-delay:0.1s;}
.star-8 { top:95px; right:17%; animation-delay:0.9s;}

@keyframes shoot {
  0% { opacity:0; transform:rotate(-45deg) translateX(0);}
  5% { opacity:1; }
  50% { opacity:0; transform:rotate(-45deg) translateX(-400px);}
  100% { opacity:0; transform:rotate(-45deg) translateX(-400px);}
}

@keyframes blink {
  0% { opacity:100%;}
  50% { opacity:20%;}
  100% { opacity:100%; }
}

@media (max-width:600px) {
  .container {
    width:100%;
    grid-template-areas:
      "header "
      "sidebar"
      "content"
      "footer";
    grid-template-columns:1fr;
  }

  .sketchbook img { width:46%; height:auto;}
}
