@import url(https://fonts.bunny.net/css?family=azeret-mono:300);
@import url(https://fonts.bunny.net/css?family=fira-code:400);

@import url(https://fonts.bunny.net/css?family=chilanka:400);


html {

  --s: 124px;
  /* tile size */
  --c1: #98971a;
  --c2: #79740e;
  --c3: #282828;


  background:
    repeating-conic-gradient(var(--c1) 0% 25%, var(--c2) 0% 50%) 0 / var(--s) var(--s);

  /* animate both layers together */
  animation: move-bg 3s linear infinite;
}

/* move the background by exactly one tile each cycle */
@keyframes move-bg {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    /* shift by one full tile (var(--s)) on both axes */
    background-position: calc(var(--s)) calc(var(--s)), calc(var(--s)) calc(var(--s));
  }
}

/* color selection */
p::selection {
  color: #ebdbb2;
  background-color: #458588;
}

body {
  /* font-family: 'Azeret Mono', monospace; */
  font-family: 'Chilanka', handwriting;
  font-size: large;
  color: #3c3836;
}

html {
  cursor: url('images/cursor.png'), auto;
}

footer {
  color: #ebdbb2;
  opacity: 0.5;
  text-align: center;
  font-size: 1em;
  width: 100%;
  height: auto;
  overflow: hidden;
  width: 50%;
  margin: auto;
}

.container {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.navbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  font-size: 1.5rem;
  margin: 0.5em;
}

.navbar>a {
  color: blue;
}

.side-navbar {
  position: absolute;
  top: 5em;
  left: 1em;

  display: flex;
  flex-direction: column;
  gap: 1em;
  align-items: center;
  justify-content: space-evenly;

  background-color: #d5c4a1;
  padding: 0.5em;
  border: 10px solid #ebdbb2;
  border-radius: 5px;
}

.side-navbar>a {
  padding: 5px;
  border-radius: 10px;
}

a {
  color: #458588;
  font-weight: bolder;
}

a:visited {
  color: #cc2412;
}

a:hover {
  color: #fbf1c7;
  border-bottom: 1px solid;
  background: #458588;
  cursor: url('images/cursor_hand.png'), auto;
}

hr {
  margin: 0 40px 20px 40px;
  color: #cc2412;
}

img {
  outline-style: dashed;
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  padding: 3px;
}

.center {
  margin: auto;
  width: 70%;
  height: 80%;
  border: 3px solid #fb4934;
  border-radius: 25px;
  padding: 10px;
  background-color: #fbf1c7;
}

.div-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

pre {
  background-color: #282828;
  color: #ebdbb2;
  font-family: 'Fira Code', monospace;
  border-radius: 2em;
}

@media screen and (min-width: 1300px) {
  #side-navbar {
    display: flex;
  }

  #top-navbar {
    display: none;
  }

  #bar-under-navbar {
    opacity: 0;
  }
}

@media only screen and (max-width: 1300px) {
  #side-navbar {
    display: none;
  }

  .container {
    flex-direction: column;
    /* stack image below text on smaller screens */
  }

  .center {
    margin: auto;
    width: 95%;
    height: 80%;
    border: 3px solid #cc241d;
    border-radius: 25px;
    padding: 10px;
    background-color: #fbf1c7;
  }

  footer {
    width: 90%;
  }
}