@import url("https://fonts.googleapis.com/css2?family=Major+Mono+Display&family=Open+Sans:wght@400;500;700&display=swap");
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* =========== Root =========== */
:root {
  /* =========== Colors =========== */
  --website-background: #e5dbf6;
  /* #9400ff dark mode */
  --elements-background: #ffffff80;
  --text-color: #000000;
  --button-background: #ffffff00;
  --button-hover: #ffffff;
  --border-radius: 0.3rem;
  --box-shadow: #00000080;
  --box-shadowHover: 0 4px 8px 0 #ffffff00;
    --second-tone: #1100ff80;
    --input-background: #ffffff80;
    --scrollbar-color: #9500ff41 #ffffff80;

  /* =========== Fonts =========== */
  /*
        font-family: 'Major Mono Display', monospace;
        font-family: 'Open Sans', sans-serif;
    */
  --navbar-font-family: 'Major Mono Display', monospace;
  --logo-font-family: 'Major Mono Display', monospace;
  --h1h2-font-family: "Open Sans", sans-serif;
  --h1h2-font-weight: 700;
  --h3h4-font-family: "Open Sans", sans-serif;
  --h3h4-font-weight: 500;
  --all-font-family: "Open Sans", sans-serif;
  --all-font-weight: 400;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* =========== Colors =========== */
    --website-background: #17191a;
    --elements-background: #181a1a80;
    --text-color: #ffffff;
    --button-background: #181a1a80;
    --button-hover: #ffffff30;
    --box-shadow: #000000;
    --box-shadowHover: 0 4px 8px 0 #0f1011;
    --second-tone: #1100ff;
    --input-background: #ffffffc0;
    --icon-tone: #9400ff;
  scrollbar-color: var(--scrollbar-color);
  }
}

/* =========== Root end =========== */

html {
  background: var(--website-background);
  background-size: cover;
    scrollbar-color: #9400ff #ffffff80;
}

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

.icon-tone {
  color: var(--icon-tone);
}

/* background */
body {
  background: var(--website-background);
  background-size: cover;
  /* #9400ff dark mode */
}

/* ============= Navbar ============= */
.navbar {
  transition: all 0.7s ease-in-out;
  background: var(--elements-background);
  font-family: 'Major Mono Display', monospace;
  font-family: var(--navbar-font-family);
  position: fixed;
  color: var(--text-color);
  backdrop-filter: blur(10px);
  width: 100%;
  height: 60px;
  display: inline;
  display: grid;
  grid-template-columns: 1fr 0% 50% 0% 1fr;
  z-index: 100;
}

.nav_logo {
  font-family: var(--logo-font-family);
  font-size: 2rem;
  display: inline;
  float: left;
  padding: 10px 0 10px 10px;
  cursor: pointer;
}

.nav_list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.2rem;
  text-align: center;
  padding: 10px 0;
}

.nav_link {
  transition: all 0.3s ease;
  font-size: large;
  display: inline;
  padding: 10px;
}

.nav_link:hover {
  cursor: pointer;
  font-size: larger;
}

.nav_btns {
  float: right;
  padding: 12px 10px 0 0;
  display: inline;
}

.nav_btn,
.mobile_login-btn {
  background-color: var(--button-background);
  border-color: var(--button-background);
  border: solid;
  border-color: var(--icon-tone);
  color: var(--text-color);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  float: right;
  padding: 6px 10PX;
  margin: 2px;
}

.icon-tone:hover,
.mobile_login-btn:hover {
  color: var(--text-color);
  border-color: var(--text-color);
}

.mobile_login-btn {
  padding: calc(2.2px);
}

.nav_btn:hover,
.mobile_login-btn:hover {
  background: var(--button-hover);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .nav_links {
    visibility: hidden;
  }

  .nav_btn {
    display: none;
  }
}

/* ============= Navbar end ============= */

/* It makes spaces to keep text awy form the age of the screen */
.text_space {
  padding: 0px 2%;
}

/* Space between the navbar and the continent @media for mobile */
.nav_space {
  padding-top: 90px;
}

/*################################### */

.title {
  font-family: var(--h1h2-font-family);
  color: var(--text-color);
  position: relative;
  font-size: 27px;
  font-weight: 600;
}

.title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 30px;
  background-color: var(--second-tone);
  border-radius: 25px;
}

.container {
  width: 100%;
  height: 100vh;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

form {
  background-color: var(--elements-background);
  backdrop-filter: blur(10px);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2vw 4vw;
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
}

form h3 {
  color: var(--text-color);
  font-weight: 800;
  margin: 20px 0px;
}

form input,
form textarea {
  border-radius: 10px;
  border: 0;
  margin: 10px 0;
  padding: 20px;
  outline: none;
  background: var(--input-background);
  backdrop-filter: blur(10px);
  font-size: 16px;
  position: relative;
  margin-top: 30px;
}

form button {
  padding: 15px;
  background-color:var(--button-background);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  color:var(--text-color);
  font-size: 18px;
  border: solid;
  cursor: pointer;
  width: 150px;
  margin: 20px auto 0;
  border-radius: 0.3rem;
}

form button:hover {
  background-color:var(--button-hover);
  backdrop-filter: blur(10px);
}

/* =========== Fonts =========== */
h1,
h2 {
  font-family: var(--h1h2-font-family);
  font-weight: var(--h1h2-font-weight);
}

h3,
h4 {
  font-family: var(--h3h4-font-family);
  font-weight: var(--h3h4-font-weight);
}

h5,
h6,
small,
p {
  font-family: var(--all-font-family);
  font-weight: var(--all-font-weight);
}

/* =========== Fonts end =========== */

/* ================================= */
/* Galaxy Fold */
@media screen and (max-width: 280px) {
  .nav_space {
    padding-top: 0px;
    margin: 0;
  }
}


/* =========== Mobile navbar =========== */
nav.mobile_nav {
  box-shadow: 0 4px 8px 0 var(--box-shadow);
  display: flex;
  position: fixed;
  color: var(--text-color);
  bottom: 0;
  font-family: "Open Sans", sans-serif;
  font-weight: 500;
  width: 100%;
  padding: 0.5rem 0;
  background: var(--elements-background);
  backdrop-filter: blur(10px);
  z-index: 100;
  margin: 0 auto;
}

.mobile_nav {
  transition: all 0.5s ease-in-out;
}

nav.mobile_nav ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0;
  justify-self: center;
  vertical-align: middle;
}

nav.mobile_nav ul li {

  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.7rem;
  flex-grow: 1;
  margin: 0;
}

nav.mobile_nav ul li a {
  color: var(--text-color);
  font-size: inherit;
}

nav.mobile_nav ul li a svg {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0 auto;
}

.s-size {
  font-size: 24px;
  display: block;
  margin-left: 3px;
}

.menu {
  margin-left: 5px;
}

.random {
  margin-left: 10px;
}

.account {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0 auto;
  cursor: pointer;
  color: var(--text-color);
}

@media screen and (min-width: 768px) {
  nav.mobile_nav {
    display: none;
  }
}