@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

* {
  margin: 0;
  padding: 0;
  font-family: "Nunito", serif;
}

:root{
  --text-size: 1.2;
  --main-bg: #121212;
  --overlay: #1e1e1e;
  --accent: #3768f8;
  --accent-low: #a4bbfd;
  --border: #424242;
  --text: #fff;
  --faint-text: #c5c5c5;
  --sidebar-width: 250px;
  --main-area-padding: 50px;
}

html{
  background: var(--main-bg);
}

body{
  display: flex;
  flex-direction: row;
}

#main-area{
  color: rgba(255, 255, 255, 0.914);
  width: calc(100vw - 250px - 2 * var(--main-area-padding));
  padding: var(--main-area-padding);
  padding-top: 40px;

  height: calc(100vh - 90px);
  overflow-y: scroll;
}

#main-area * {
  opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 0.3s;
}

#sidebar-holder{
  height: 100vh;
  overflow-y: hidden;
}

#sidebar{
  background: var(--overlay);
  width: var(--sidebar-width);
  height: 99vh;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 0 0;

  overflow-y: scroll;
  overflow-x: hidden;

  position: -webkit-sticky;
  position: sticky;
  top: 0;

}

.sidebar-el{
  width: calc(var(--sidebar-width) - 35px);
  background: var(--main-bg);
  margin: 10px 0 10px 0;
  border-radius: 0.5em;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 15px 0 15px 15px;
}

.sidebar-sub-main{
  display: flex;
  align-items: center;
}

.sidebar-sub-el{
  display: flex;
  align-items: center;
  color: #2e2e2e;
}

.sidebar-sub-el:hover{
  color: var(--border);
}

.active {
  color: var(--accent-low) !important;
}

.sidebar-el-name{
  display: flex;
  flex-direction: column;
  color: white;
  justify-content: space-around;
  margin: 0 0 0 15px;
}

.dash{
  width: 100%;
  height: 25px;
  border-left: 2px solid #575757;
  margin-left: 14px;
  margin-top: 5px;
  margin-bottom: 5px;
}

.mini-title{
  color: var(--faint-text);
  font-size: 0.9em;
}

.main-title{
  color: var(--text);
  font-size: 1.1em;
}

.code {
  font-family: monospace;
  font-size: calc(14px * var(--text-size));
  background: #252525;
  padding: 3px 5px 3px 5px;
  border-radius: 0.3em;
  margin: 0 4px 0 4px;
}

.genLink {
  color: var(--accent-low);
  text-decoration: underline;
  cursor: pointer;
  margin-bottom: 10px;
}

.genList {
  margin: 10px 0;
  padding-left: 20px;
  list-style-type: disc;
}

.genTable {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 15px;
}

.genTable th, .genTable td {
  border: 1px solid var(--border);
  padding: 8px;
  text-align: left;
}

.genTable th {
  background-color: var(--overlay);
  font-weight: bold;
  font-size: calc(17px * var(--text-size));
}

.genBlockquote {
  font-style: italic;
  font-size: calc(20px * var(--text-size));
  margin: 10px 0;
  border-left: 4px solid #ccc;
  padding-left: 10px;
  color: var(--faint-text);
}

/* Picture Styles */
.genPicture {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.genText {
  font-size: calc(16px * var(--text-size));
  margin-bottom: 10px;
}

.genTitle {
  font-size: calc(34px * var(--text-size));
  font-weight: bold;
  margin-bottom: 15px;
}

.genCode {
  font-family: monospace;
  font-size: calc(17px * var(--text-size));
  background-color: #1e1e1e;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  white-space: pre-wrap;
}

@keyframes fadeInOpacity {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}
