:root {
  --theme: #e19740;
  --background: #fff;
  --gap: 24px;
  --content-gap: 20px;
  --nav-width: 720px;
  --main-width: 720px;
  --header-height: 60px;
  --footer-height: 60px;
}

[data-bs-theme=dark] {
  --theme: rgb(29, 30, 32);
  --background: rgb(29, 30, 32);
}

body {
  background-color: var(--theme);
}

.container {
  margin-top: 20px;
  margin-bottom: 3em;
  padding: 3em;
  text-align: center;
  background: var(--background);
  position: relative;
  box-shadow: 0 0 5px 2px rgba(100, 100, 100, 0.7);
}


#profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 100px;
  display: inline-block;
  position: relative;
  top: -15px;
  background-image: url(../template/img/Domen_Vaupotic.jpg);
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 5px 2px #666;
  background-size: 150px;
}

#profile-photo-small {
  width: 80px;
  height: 80px;
  display: inline-block;
  position: absolute;
  top: 15px;
  left: 3em;
  background-image: url(../template/img/Domen_Vaupotic.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 80px;
  transition: top 0.1s ease-in-out;
}

#profile-photo-small:hover {
  top: 12px
}


@media (min-width: 992px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 768px;
  }
}

ul {
  list-style-type: none;
  padding: 0;
}

img {
  max-width: 100%;
}

blockquote {
  font-style: italic;
}

a {
  text-decoration: none;
}


/* Light and dark mode switcher */
[data-bs-theme=dark] #profile-photo,
[data-bs-theme=dark] #profile-photo-small {
  background-image: url(../template/img/Domen_Vaupotic_dark.jpg);
}

[data-bs-theme=dark] img {
  filter: invert(1) hue-rotate(180deg);
}

.logo-switches {
  display: inline-flex;
  margin: auto 4px;
}

button#theme-toggle {
  font-size: 26px;
  margin: auto 4px;
  padding: 0;
  background: 0 0;
  border: 0;
}

#theme-toggle {
  position: relative;
  top: 45px;
  transition: top .1s ease-in-out;
}

[data-bs-theme=dark] #moon {
  vertical-align: middle;
  display: none;
}

[data-bs-theme=light] #sun {
  display: none;
}


.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: calc(var(--nav-width) + var(--gap) * 2);
  margin-inline-start: auto;
  margin-inline-end: auto;
  line-height: var(--header-height);
  font-size: 18px;
}

nav.nav {
  justify-content: right;
}

.logo {
  display: flex;
  margin: auto var(--gap);
  margin-right: 0;
}

#theme-toggle {
  position: relative;
  top: 45px;
  transition: top 0.1s ease-in-out;
}

#theme-toggle:hover {
  top: 30px
}