@font-face {
  font-family: "Roboto Mono";
  src: url("Roboto_Mono.ttf");
}

@font-face {
  font-family: "Material Icons Round";
  src: url("google_material_icons/Google_Material_Icons-Round.woff2") format("woff2");
}

:root {
  --font_family: "Roboto Mono";
  --font_size: 12px; /* Relative to the font-size of the element (2em means 2 times the size of the current font)	*/
  --font_boja: #CCCCCC; /* 484848 - svetla tema; CCCCCC - tamna tema */
  --pozadina_boja: #333333; /* EEEEEE - svetla tema; 333333 - tamna tema */
  --header_font_boja: #CCCCCC;
  --header_pozadina_boja: #242424;
  --header_aktivan_font_boja: #242424;
  --header_aktivan_pozadina_boja: #999999;
  --nav_font_boja: #CCCCCC; /* 282828 - svetla tema; CCCCCC - tamna tema */
  --nav_pozadina_boja: #282828; /* AAAAAA - svetla tema; 282828 - tamna tema */
  --main_font_boja: #CCCCCC; /* 282828 - svetla tema; CCCCCC - tamna tema */
  --main_pozadina_boja: ##333333; /* AAAAAA - svetla tema; 282828 - tamna tema */
  --footer_font_boja: #CCCCCC; /* 282828 - svetla tema; CCCCCC - tamna tema */
  --footer_pozadina_boja: #242424; /* AAAAAA - svetla tema; 282828 - tamna tema */
}

::selection {
  background-color: tomato;
  color: white;
}
::-moz-selection {
  background-color: gray;
  color: var(--pozadina_boja);
  text-shadow: 1px 1px 2px var(--font_boja);
}
::-webkit-selection {
  background-color: gray;
  color: var(--pozadina_boja);
  text-shadow: 1px 1px 2px var(--font_boja);
}

::-webkit-scrollbar {
  height: 4px;
  width: 4px;
  cursor: grab;
}
::-webkit-scrollbar:vertical {

}
::-webkit-scrollbar:horizontal {

}
::-webkit-resizer {

}
::-webkit-scrollbar-track {
  margin: 5px;
  border-radius: 3px;
  background: var(--nav_pozadina_boja);
}
::-webkit-scrollbar-track-piece {

}
::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: var(--nav_font_boja);
  transition: 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: #555555;
}
::-webkit-scrollbar-button {
  display: none;
}
::-webkit-scrollbar-corner {
  display: none;
}

.material_icons_round {
  font-family: 'Material Icons Round';
  font-weight: normal;
  font-style: normal;
  font-size: 2em;
  /*line-height: 0.6;*/
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
  font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 48;
}



  /* NOTE: POSITION */
  /* NOTE: DISPLAY */
  /* NOTE: BOXING */
  /* NOTE: STYLE */
  /* NOTE: FONT */

* {
  box-sizing: border-box;
}

body {
  /* NOTE: POSITION */
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  /* NOTE: DISPLAY */
  display: grid;
  grid-template-rows: 40px 1fr 40px;
  grid-template-columns: 250px 1fr;
  grid-template-areas:
    "header header"
    "nav main"
    "footer footer";
  /* NOTE: BOXING */
  margin: 0;
  margin-bottom: 40px;
  border: 0;
  padding: 0;
  /* NOTE: STYLE */
  color: var(--font_boja);
  background-color: var(--pozadina_boja);
  overflow: hidden;
  /* NOTE: FONT */
  font-family: var(--font_family);
  font-size: var(--font_size);
  font-weight: normal;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: -0.4px;
}


a {
  color: hotpink;
}

header {
  /* NOTE: POSITION */
  width: 100%;
  /* NOTE: DISPLAY */
  grid-area: header;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  /* NOTE: BOXING */
  /* NOTE: STYLE */
  color: var(--header_font_boja);
  background-color: var(--header_pozadina_boja);
  /* NOTE: FONT */
  font-size: 1.3em;
}
header a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: var(--nav_font_boja);
  text-decoration: none;
  white-space: wrap;
}
header a:hover {
  background-color: var(--nav_pozadina_boja);
  filter: brightness(0.8);
  cursor: pointer;
  font-weight: bold;
}
header a.aktivno {
  color: var(--header_aktivan_font_boja);
  background-color: var(--header_aktivan_pozadina_boja);
  /*filter: brightness(1.5);*/
  cursor: default;
  font-weight: bold;
  cursor: default;
}
#ikonica_podesavanja {
  font-size: 1.5em;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  margin-left: auto;
}

nav {
  /* NOTE: POSITION */
  /* NOTE: DISPLAY */
  /* NOTE: BOXING */
  /* NOTE: STYLE */
  color: var(--nav_font_boja);
  background-color: var(--nav_pozadina_boja);
  overflow-y: auto;
  /* NOTE: FONT */
}

nav a {
  /* NOTE: POSITION */
  /* NOTE: DISPLAY */
  /* NOTE: BOXING */
  padding: 5px 10px;
  /* NOTE: STYLE */
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  /* NOTE: FONT */
}

nav a:hover {
  /* NOTE: POSITION */
  /* NOTE: DISPLAY */
  /* NOTE: BOXING */
  /* NOTE: STYLE */
  background-color: var(--nav_pozadina_boja);
  filter: brightness(0.8);
  font-weight: bold;
  /* NOTE: FONT */
}

nav a:link:active, nav a:visited:active {
  /* NOTE: POSITION */
  /* NOTE: DISPLAY */
  /* NOTE: BOXING */
  /* NOTE: STYLE */
  color: inherit;
  /* NOTE: FONT */
}

main {
  /* NOTE: POSITION */
  /*width: 100%;*/
  /* NOTE: DISPLAY */
  grid-area: main;
  display: block;
  overflow-y: auto;
  /* NOTE: BOXING */
  padding: 10px;
  /* NOTE: STYLE */
  color: var(--main_font_boja);
  background-color: var(--main_pozadina_boja);
  /* NOTE: FONT */
}

footer {
  /* NOTE: POSITION */
  width: 100%;
  height: 40px;
  /* NOTE: DISPLAY */
  grid-area: footer;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  /* NOTE: BOXING */
  /* NOTE: STYLE */
  color: var(--footer_font_boja);
  background-color: var(--footer_pozadina_boja);
  /* NOTE: FONT */
}

.modal_podloga {
  /* NOTE: POSITION */
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  /* NOTE: DISPLAY */
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  /* NOTE: BOXING */
  /* NOTE: STYLE */
  background-color: rgba(0, 0, 0, 0.6);
  /* NOTE: FONT */
}
.modal {
  /* NOTE: POSITION */
  min-height: 50vh;
  min-width: 50vw;
  max-height: calc(100vh - 100px);
  max-width: calc(100vw - 100px);
  /* NOTE: DISPLAY */
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  /* NOTE: BOXING */
  border: 1px solid #888;
  border-radius: 10px;
  padding: 20px;
  /* NOTE: STYLE */
  background-color: var(--pozadina_boja);
  /* NOTE: FONT */
}
.modal_header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid gray;
  padding: 10px 0;
  margin-bottom: 10px;
}
.modal_header h1 {
  font-size: 1.5em;
  margin: 0;
}
.modal_zatvori {
  color: dimgray;
  cursor: pointer;
  margin-left: 30px;
}
.modal_zatvori:hover {
  color: gray;
}
.modal_footer {
  display: flex;
  border-top: 1px solid gray;
  padding: 10px 0;
  margin-top: auto;
  justify-content: space-evenly;
  align-items: center;
}

section {
  /* NOTE: POSITION */
  width: 100%;
  /* NOTE: DISPLAY */
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: flex-start;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  /* NOTE: BOXING */
  border-bottom: 1px solid var(--main_font_boja);
  padding-bottom: 5px;
  /* NOTE: STYLE */
  /* NOTE: FONT */
}

article {
  /* NOTE: POSITION */
  /* NOTE: DISPLAY */
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: flex-start;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1px;
  /* NOTE: BOXING */
  /* NOTE: STYLE */
  /* NOTE: FONT */
}

h1 {
  margin-block-start: 40px;
  margin-block-end: 10px;
  font-size: 2em;
  font-weight: bold;
}
h2 {
  margin-block-start: 30px;
  margin-block-end: 10px;
  font-size: 1.7em;
  font-weight: bold;
}
h3 {
  margin-block-start: 20px;
  margin-block-end: 10px;
  font-size: 1.5em;
  font-weight: bold;
}
h4 {
  margin-block-start: 20px;
  margin-block-end: 10px;
  font-size: 1.3em;
  font-weight: bold;
}
h5 {
  margin-block-start: 10px;
  margin-block-end: 5px;
  font-size: 1.1em;
  font-weight: bold;
}
h6 {
  margin-block-start: 5px;
  margin-block-end: 5px;
  font-size: 1em;
  font-weight: bold;
}

hr {
  margin: 20px 0;
  border: none;
  border-top: 1px solid;
  border-bottom: 1px solid;
  border-color: var(--font_boja);
  border-style: solid;
}
hr.dashed {
  border-style: dashed;
}

table {
  margin: 5px 0;
  border-collapse: collapse;
}
table caption {
  font-weight: bold;
}
table, td, th {
  border: 1px solid;
}
table td, table th {
  padding: 4px 10px;
}
thead, thead th {
  color: var(--nav_font_boja);
  background-color: var(--nav_pozadina_boja);
}

svg {
  margin: 10px 0;
}
svg.formula {
  background-color: white;
  padding: 10px;
}

blockquote {
  margin: 0;
  padding: 5px 0;
  font-style: italic;
  font-weight: bold;
}

/* NOTE: code tag koristiti za formule i jednačine */
code {
  font-family: "Roboto Mono", monospace;;
  font-weight: bold;
  font-style: normal;
  font-size: 12px;
  display: inline-block;
}

details {
  margin: 5px 0;
}
details[open] {
  border-bottom: 2px solid var(--nav_pozadina_boja);
  padding-bottom: 20px;
}
details summary {
  border-radius: 5px;
  padding: 5px 20px;
  background-color: var(--nav_pozadina_boja);
  font-weight: bold;
  cursor: pointer;
  font-size: 1.0em;
}
details[open] summary {
  margin-bottom: 20px;
}

mark {
  padding: 0 5px;
  color: var(--pozadina_boja);
  background-color: gray;
  font-weight: bold;
}

p {
  margin: 0;
  padding: 5px 0;
  text-align: justify;
  text-indent: -20px;
  padding-left: 20px;
}

ul {
  margin: 2px 0;
  display: block;
  padding-left: 20px;
  list-style-type: circle;
}

button {
  margin: 5px 10px;
  border-width: 1px;
  border-style: solid;
  border-color: var(--nav_pozadina_boja);
  border-radius: 5px;
  padding: 5px 15px;
  color: var(--nav_font_boja);
  background-color: var(--nav_pozadina_boja);
  cursor: pointer;
}
button:hover {
  filter: brightness(1.2);
  border-color: var(--nav_font_boja);
}
button .material_icons_round {
  font-size: 14px;
  line-height: 1;
}

sup {
  margin-left: 3px;
}

sub {
  margin-left: 3px;
}

abbr {
  cursor: help;
}

menu#kontekst_meni {
  /* NOTE: POSITION */
  position: absolute;
  /* NOTE: DISPLAY */
  display: none;
  /* NOTE: BOXING */
  margin: 0;
  border: 0;
  padding: 0;
  /* NOTE: STYLE */
  color: var(--header_aktivan_font_boja);
  background-color: var(--font_boja);
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
  list-style-type: none;
  cursor: pointer;
  user-select: none;
  /* NOTE: FONT */
}
menu#kontekst_meni li {
  padding: 5px 10px;
}
menu#kontekst_meni li:hover {
  background-color: var(--header_aktivan_pozadina_boja);
}

math {
  padding: 15px 0;
  font-size: 24px;
}
mfrac > * {
  padding: 0.3em 0.9em;
  font-size: 1em !important;
}
msqrt > * {
  padding-top: 0.1em;
  font-size: 1em !important;
}
