@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-weight: 400;
  src: url(../font/SairaCondensed-Regular.woff2) format('woff2');
}

:root {
  --font: 'Saira';
  --font-color: lightgray;
  --font-color-menu: #f2f2f2;
  --font-color-txt: #abb2bf;
  --color-bg: #1d1f21;
  --color-nav: #505050;
  --color-txt: #282c34;
  --color-green: #188f32;
  --color-red: #680000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font);
}

body {
  min-height: 100vh;
  /*background: url("background.jpg") no-repeat;
  background-size: cover;
  background-position: center;*/
  background-color: var(--color-bg);
  color: var(--font-color);
}

h2 {
  margin-bottom: 2rem;
}

h3 {
  margin-bottom: 1rem;
}

h4 {
  margin-bottom: 0.5rem;
}

a {
  text-decoration: none;
  color: var(--color-green);
  outline: none;
}

iframe {
  margin-bottom: -7px;
}

details {
  border: 1px solid var(--color-green);
  border-radius: 4px;
  padding: 0.5em 0.5em 0;
  margin-top: 1rem;
}

summary {
  outline: none;
  cursor: pointer;
}

.writeups {
  position: absolute;
  width: 40%;
  left: 30%;
  height: 100%;
  border: none
}

.logo-nav {
  display: block;
  float: left;
  height: 3.4rem;
}

img.round {
  border-radius: 5%;
}

.wrapper {
  display: flex;
  justify-content: center;
}

.container {
  width: 800px;
  max-width: 90%;
}

.spacer {
  height: 80px;
  width: 800px;
  max-width: 100%;
}

.page-description {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.spacer-small {
  height: 40px;
  width: 800px;
  max-width: 100%;
}

.spacer-big {
  height: 150px;
  width: 800px;
  max-width: 100%;
}

.text-center {
  text-align: center;
}

div.music-frame-red {
  border: 3px solid var(--color-red);
  border-radius: 7px 7px 7px 0px;
}

div.music-frame-green {
  border: 3px solid var(--color-green);
  border-radius: 7px 7px 7px 0px;
}

img.cover {
  margin-bottom: -10px;
  width: 100%;
  border-radius: 7px 7px 0px 0px;
}

.gist-data {
  max-height: 30rem;
}

.two-collumn {
  display: flex;
  gap: 2rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
}

.column {
  flex: 50%;
  max-width: 50%;
  padding: 0 4px;
}

.column img {
  margin-top: 8px;
  vertical-align: middle;
  width: 100%;
}

/* BUTTONS */
/* https://getcssscan.com/css-buttons-examples*/

.button-top {
  appearance: none;
  backface-visibility: hidden;
  background-color: var(--color-nav);
  border-radius: 8px;
  border-style: none;
  box-shadow: rgba(39, 174, 96, .15) 0 4px 9px;
  box-sizing: border-box;
  color: var(--font-color-menu);
  cursor: pointer;
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  outline: none;
  overflow: hidden;
  padding: 13px 20px;
  position: fixed;
  margin-right: 0;
  text-align: center;
  text-decoration: none;
  transform: translate3d(0, 0, 0);
  transition: all .3s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  z-index: 99;
  bottom: 10px;
}

.button-top:hover {
  background-color: var(--color-txt);
  opacity: 1;
  transform: translateY(0);
  transition-duration: .35s;
}

.button-top:active {
  transform: translateY(2px);
  transition-duration: .35s;
}

.button-top:hover {
  box-shadow: rgba(2, 5, 5, 0.2) 0 6px 12px;
}

.button-green {
  --b: 3px;
  --s: .5em;
  
  padding: calc(.5em + var(--s)) calc(.9em + var(--s));
  color: var(--font-color-text);
  --_p: var(--s);
  background:
    conic-gradient(from 90deg at var(--b) var(--b),#0000 90deg,var(--color-green) 0)
    var(--_p) var(--_p)/calc(100% - var(--b) - 2*var(--_p)) calc(100% - var(--b) - 2*var(--_p));
  transition: .3s linear, color 0s, background-color 0s;
  outline: var(--b) solid #0000;
  outline-offset: .6em;
  font-size: 16px;

  border: 0;

  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-green:hover,
.button-green:focus-visible{
  --_p: 0px;
  outline-color: var(--color-green);
  outline-offset: .05em;
}

.button-green:active {
  background: var(--color-green);
  color: var(--font-color-menu);
}

/* NAVIGATION */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.3rem 10%;

  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  text-shadow: black 1px 0 10px;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .1);
  backdrop-filter: blur(50px);
  z-index: -1;
}
/*
.header::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent);
  transition: .5s;
}

.header:hover::after {
  left: 100%;
}
*/
.logo {
  font-size: 2rem;
  color: var(--color-green);
  text-decoration: none;
  font-weight: 700;
}

.navbar a {
  color: var(--font-color);
  font-size: 1.15rem;
  text-decoration: none;
  font-weight: 500;
  margin-left: 2.5rem;
}

#check {
  display: none;
}

#nav-active {
  color: var(--color-green)
}

.icons {
  position: absolute;
  right: 5%;
  font-size: 2.8rem;
  color: var(--color-green);
  cursor: pointer;
  display: none;
}

@media (max-width: 992px) {
  .header {
    padding: 1.3rem 5%; 
  }
}

@media (max-width: 768px) {
  .icons {
    display: inline-flex;
  }

  #check:checked~.icons #menu-icon {
    display: none;
  }

  .icons #close-icon {
    display: none;
  }

  #check:checked~.icons #close-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(0, 0, 0, .1);
    backdrop-filter: blur(50px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    overflow: hidden;
    transition: .3s ease;
  }

  #check:checked~.navbar {
    height: 17.7rem;
  }

  .navbar a {
    display: block;
    font-size: 1.1rem;
    margin: 1.5rem 0;
    text-align: center;
    transform: translateY(-50px);
    opacity: 0;
    transition: .3s ease;
  }

  #check:checked~.navbar a {
    transform: translateY(0);
    opacity: 1;
    transition-delay: calc(.15s * var(--i));
  }

  .column {
    flex: 100%;
    max-width: 100%;
  }
}