:root {
    --green: #6e7a36;
    --light-green: #D1E08F;
    --white: #FFFCE8;
    --purple: #3E363F;
    --red: #DD403A;
    --black: #0b0013;
    --blue: #003783;
}

::selection {
    background-color: var(--light-green);
    color: var(--black);
}


@font-face {
    font-family: 'stamp';
    src: url('fonts/stamp.otf') format('truetype');
}

html, body {
    margin: 0;
    padding: 0;
    height: 100dvh;
    display: flex;
    background-color: var(--white);
    justify-content: center;
    align-items: center;
    font-family: monospace;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

img {
    display: block;
    margin: 0 auto;
    pointer-events: none;
}

main {
    width: 35dvw;
    padding: 1rem;
    background-color: var(--green);
    color: var(--black);
    box-shadow: -10px 10px 0px -5px var(--black);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.divide {
    display: flex;

}

.sidebar {
    width: 20%;
    border-right: 1px solid var(--black);
    padding-right: 1rem;
}

.content {
    width: 80%;
    padding-left: 1rem;
}

.tag {
    position: relative;
    bottom: 15px;
    left: 5px;
}

.highlight {
    background-color: var(--black);
    color: var(--green);
}

.highlight2 {
    background-color: var(--black);
    color: var(--white);
}

hr {
    color: var(--black);
    border: 1px solid var(--black);
}


h1, h2, h3, p{
    margin: 0;
}

h3 {
    margin-bottom: 5px;
}


ul {
    padding-left: 25px;
    margin: 0;
}

::marker {
    content: "-> ";
}

a {
    text-decoration: none;
    color: var(--blue);
}

a:hover {
    color: var(--purple);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;

  /* paper grain texture */
  background-image: url('/imgs/tex.jpg');
  opacity: 0.4;
  background-size: cover;
  mix-blend-mode: multiply;
}

.side {
    position: absolute;
    width: 150px;
    left: 69%;
    top: 350px;
}

canvas {
	display: block;
	cursor: crosshair;
}

#legend {
	margin-top: 12px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 18px;
	max-width: 700px;
	font-size: 10px;
	letter-spacing: 1px;
	color: #555;
	font-family: 'stamp';
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 5px;
}

.legend-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
}

#date-display {
	font-size: 10px;
	color: #2a2a2a;
	margin-top: 8px;
	letter-spacing: 2px;
}

.solar {
  position: absolute;
  bottom: 0;
  left: calc(-10dvw);
}

#legend {
  left: 10px;
}

.stamp {
  display: flex;
}

@media (max-width: 1200px) {
    main {
        width: 50dvw;
    }

    .sidebar {
        width: 20%;
    }
    
    .content {
        width: 80%;
        break-inside: avoid;
    }
    
    .side {
      left: 77%;
    }
    
    .solar {
      top: -170px;
      left: -300px;
    }
    
    #legend {
      left: initial;
    }
    
}

@media (max-width: 800px) {
    main {
        width: 90dvw;
    }
    .sidebar {
        width: 30%;
    }
    
    .content {
        width: 70%;
        break-inside: avoid;
    }

    .side {
        position: initial;
        width: 90dvw;
    }
    
    body, html {
      height: auto;
      margin-top: 20px;
      margin-bottom: 20px;
      overflow: scroll;
    }
    
    #legend {
      display: none;
    }
    
    canvas {
      display: none;
    }
    .hide {
      display: none;
    }
    
    .stamp {
      display : none;
    }

}