* {
  margin: 0;
}

html {
  color-scheme: light dark;
  height: 100%;
}

body {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  font-family: sans-serif;
}

header {
  background-color: #2e1f5e;
  color: #ffffff;
  display: flex;
  flex-direction: row;
}

nav {
  margin-right: auto;
  margin-left: auto;
  display: flex;
  flex-direction: row;
}

nav a {
  min-width: 100px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #ffffff;
  padding-left: 8px;
  padding-right: 8px;
}

nav a:hover {
  text-shadow: 0 0 5px #ff00ff;
  background-color: #55215b44;
}

a.active {
  pointer-events: none;
  text-decoration: none;
  font-weight: 900;
  background-color: #55215b88;
}

main {
  overflow-y: auto;
  width: stretch;
  display: flex;
  flex: 1;
  flex-direction: column;
  height: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.index-page main {
  position: relative;
}

.index-page main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../public/coding.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
}

footer {
  background-color: #2e1f5e;
  min-height: 70px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

footer p {
  font-size: 14px;
  text-shadow: 0 0 1px #aa00aa;
}

section {
  margin-top: 16px;
  margin-bottom: 16px;
  display: grid;
}

section p {
  margin-top: 8px;
  margin-bottom: 8px;
  text-align: justify;
}

dt {
  font-weight: 600;
}

dd {
  margin-inline-start: 40px;
}

dd dt,
dl dd {
  margin-top: 8px;
  margin-bottom: 8px;
}

h1 {
  margin-bottom: 24px;
  color: light-dark(#2e1f5e, #542f8d);
}

h2 {
  margin-bottom: 18px;
  color: light-dark(#5215be, #532f8d);
}

h3 {
  margin-top: 12px;
  margin-bottom: 12px;
  font-size: 16px;
}

p {
  margin-left: 8px;
  margin-right: 8px;
}

.logo {
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 8px;
}

.logo-center {
  display: none;
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 8px;
  margin-right: 8px;
}

.toggle-sidebar {
  background-color: transparent;
  cursor: pointer;
  border: none;
  height: 40px;
  width: 40px;
  min-width: 40px;
  background-repeat: no-repeat;
  background-size: 40px 40px;
  transition: left 0.3s ease;
  background-image: url(burger-button.png);
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 8px;
}

button.toggle-sidebar[data-status="inactive"] {
  transform: rotate(0deg);
}

button.toggle-sidebar[data-status="active"] {
  transform: rotate(90deg);
  margin-left: 5px;
  margin-top: 10px;
}

div.container[data-status="active"] {
  display: block;
  position: absolute;
  z-index: 1000;
  width: 500px;
  height: 100%;
  top: 0;
  left: 0;
  background-color: #2e1f5e;
  transition: 0.5s;
  left: 0;
}

div.sidebar a {
  min-height: 50px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 50px;
  padding-left: 8px;
}

div.sidebar a:hover {
  text-shadow: 0 0 5px #ff00ff;
  background-color: #55215b44;
}

div.sidebar[data-status="inactive"] {
  display: none;
}

div.sidebar[data-status="active"] {
  display: flex;
  flex-direction: column;
}

div.image-panel {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 12px;
  padding-left: 8px;
  padding-right: 8px;
  justify-content: space-between;
}

.float-left {
  float: left;
  margin: 8px;
}

.float-right {
  float: right;
  margin: 8px;
}

p.info-paragraph {
  margin-bottom: 8px;
  margin-inline-start: 12px;
}

.force-light-theme {
  background-color: #ffffff !important;
  mix-blend-mode: normal;
  color-scheme: only light;
}

.force-dark-theme {
  background-color: #000000 !important;
  mix-blend-mode: normal;
  color-scheme: only dark;
}

.force-dark-theme-text {
  color: #ffffff;
}

@media (max-width: 768px) {
  .logo {
    width: 150px;
    height: 41px;
  }

  footer {
    min-height: 50px;
  }

  div.image-panel {
    display: flex;
    flex-direction: column;
  }
}

@media (min-width: 521px) {
  div.container {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .logo {
    display: none;
  }

  .logo-center {
    display: block;
    width: 59px;
    height: 40px;
  }
}

@media (max-width: 520px) {
  div.container {
    display: block !important;
    width: 100% !important;
  }

  nav {
    display: none;
  }
}

.jumbotron {
  background-color: #e9ecef;
  padding: 4rem 2rem;
  margin-bottom: 2rem;
  border-radius: 0.3rem;
}

.carou-container {
  max-width: 1140px;
  margin: 0 auto;
  text-align: center;
}

.jumbotron h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: #212529;
}

.jumbotron p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #6c757d;
}

.btn {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 0.25rem;
  font-weight: bold;
}

.btn:hover {
  background-color: #0056b3;
}
