/* :root[data-theme="light"] {
  --text: #000405;
  --background: #89cfeb;
  --primary: #cbc4c2;
  --secondary: #d0d6d7;
  --accent: #766865;
}
:root[data-theme="dark"] {
  --text: #fafeff;
  --background: #145a76;
  --primary: #3d3634;
  --secondary: #282e2f;
  --accent: #9a8c89;
} */
@import url("https://fonts.googleapis.com/css?family=Pixelify Sans:700|Pixelify Sans:400");
@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,500;1,100;1,600&display=swap');

/* colors generated from https://www.realtimecolors.com/ */
/* :root {
    --text: #000405;
    --background: #89cfeb;
    --primary: #cbc4c2;
    --secondary: #d0d6d7;
    --accent: #766865;
} */
:root[data-theme="light"] {
  --text: #000405;
  --background: #89cfeb;
  --primary: #cbc4c2;
  --secondary: #d0d6d7;
  --accent: #766865;
}

:root[data-theme="dark"] {
  --text: #fafeff;
  --background: #145a76;
  --primary: #3d3634;
  --secondary: #282e2f;
  --accent: #9a8c89;
}

* {
  margin: 0;
  border: 0;
  padding: 0;
  transition: all .5s ease;
}

html {
  box-sizing: border-box;
  font-size: 75%;
  scroll-behavior: smooth;
}

body {
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
  filter: drop-shadow(0px 4px 4px var(--accent));
}

.navbar {
  display: flex;
  justify-content: flex-end;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  filter: drop-shadow(0px 4px 4px var(--accent));
  z-index: 2;
}

.list {
  list-style: none;
  display: flex;
}

.list li {
  margin: 10px;
  text-align: center;
}

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

a:hover {
  color: var(--accent);
}

#background {
  z-index: -3;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background);
}

#tsparticles {
  position: relative;
  z-index: -2;
  width: 100%;
  /* height: 100%; */
  height: 100vh;
  transition: none;
}

/* home-button code start */

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary);
  color: var(--text);
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  filter: drop-shadow(0px 4px 4px var(--accent));

}

/* home-button code end */

/* slider code start */
/* written with help from https://dev.to/ananyaneogi/create-a-dark-light-mode-switch-with-css-variables-34l8 */

.theme-switch-wrapper {
  display: flex;
  align-items: center;
}

.theme-switch {
  display: inline-block;
  height: 34px;
  position: relative;
  width: 60px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #145a76;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
}

.slider:before {
  background-color: #fff;
  bottom: 4px;
  content: "";
  height: 26px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 26px;
}

input:checked+.slider {
  background-color: #89cfeb;
}

input:checked+.slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* slider code end */