:root {
  --text-color: #00082f;
  --color-mode: #ffffff;
  --color-sun: #f39c12;
  --primary-color: #4263eb;
  --primary-color-dark: #364fc7;
}

* {
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@font-face {
  font-family: 'Neue Machina';
  src: url('../fonts/neue-machina-regular.otf');
}

body.dark-blue {
  --bg-color: #00082f;
  --text-color: #ffffff;
  background-image: url("../../assets/img/background-dark.svg");
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  background-image: url("../../assets/img/background-light-dio.svg");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: cover;

  display: flex;
  justify-content: center;
  align-items: center;     
  min-height: 100vh;       
  margin: 0; 
  padding: 0; 
}

.bi {
  color: var(--text-color);
}

.mode {
  display: inline-block;
  position: absolute;
  top: 0rem;
  right: 0rem;
}

.checkbox {
  opacity: 0;
  position: absolute;
}

.label {
  background-color: var(--color-mode);
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
  position: relative;
  height: 26px;
  width: 50px;
  gap: 8px;
  transform: scale(0.9);
}

.label .ball {
  background-color: var(--bg-color);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  height: 22px;
  width: 22px;
  transform: translate(0px);
  transition: transform 0.2s linear;
}

.checkbox:checked+.label .ball {
  transform: translateX(24px);
  background-color: var(--text-color);
}

.bi-moon-stars {
  color: var(--text-color);
}

.bi-sun {
  color: var(--color-sun);
}

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

a:hover {
  text-decoration: underline;
}

.main {
  margin: 1rem;
  padding: 1rem;
  border: 1px solid var(--text-color);
  border-radius: 1rem;
}

@media only screen and (min-width: 768px) {
  .main {
    max-width: 1024px;
    margin: 1rem auto;
  }
}