:root {
  --primary-color: #2f8ee5;
  --header-primary-color: #2f8de59f;
  --secondary-color: #56aded;
  --red-color: #fe4646;
  --dark-red-color: #ab2a2a;
  --white-color: #fff;
  --lato-font: "Lato", sans-serif;
  --playfair-font: "Playfair Display", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  background-color: var(--primary-color);
  font-family: var(--lato-font);
  width: 100vw;
}

header,
#link_back,
header nav,
header ul {
  display: flex;
  justify-content: center;
  align-items: center;
}

header {
  position: fixed;
  background-color: var(--header-primary-color);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: 100vw;
  height: auto;
  justify-content: space-between;
  top: 0;
  right: 0;
  left: 0;
  z-index: 999999;
  border-bottom: 1px solid black;
  box-sizing: border-box;
}

header nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

#link_back img {
  width: auto;
  height: 70px;
  margin: 10px;
  border-radius: 10px;
}

header div a img {
  width: auto;
  height: 70px;
  margin: 10px;
  border-radius: 10px;
}

#link_back h1 {
  color: var(--white-color);
  font-size: 25px;
  font-weight: 300;
}

header li {
  list-style: none;
}

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

nav ul {
  width: 40vw;
}

nav ul li {
  margin: 20px;
}

#log-in-header {
  border: 1px solid var(--white-color);
  padding: 15px 35px 15px 35px;
  margin-right: 20px;
  border-radius: 8px;
}

main {
  display: grid;
  margin-top: 150px;
}

#container {
  background-color: var(--secondary-color);
  border-radius: 8px;
  justify-self: center;
  padding: 20px 50px 20px 50px;
}

.form {
  background-color: #fff;
  display: block;
  padding: 1rem;
  max-width: 650px;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.form-title {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  text-align: center;
  color: #000;
}

.input-container {
  position: relative;
}

.input-container input,
.form button {
  outline: none;
  border: 1px solid #e5e7eb;
  margin: 8px 0;
}

.input-container input {
  background-color: #fff;
  padding: 1rem;
  padding-right: 3rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  width: 600px;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.input-container span {
  display: grid;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  padding-left: 1rem;
  padding-right: 1rem;
  place-content: center;
}

.input-container span svg {
  color: #9ca3af;
  width: 1rem;
  height: 1rem;
}

.submit {
  display: block;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  background-color: #4f46e5;
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  width: 100%;
  border-radius: 0.5rem;
  text-transform: uppercase;
}

.signup-link {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-align: center;
}

.signup-link a {
  text-decoration: underline;
}

footer {
  display: flex;
  width: calc(100vw - 120px);
  color: var(--white-color);
  padding: 60px;
}

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

#left-footer,
#right-footer {
  display: flex;
  flex-direction: column;
}

#left-footer {
  width: 60vw;
}

#right-footer {
  width: 40vw;
  height: 200px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
}

#left-footer h2 {
  font-size: 40px;
  font-family: var(--playfair-font);
}

#left-footer h6 {
  font-size: 20px;
  font-weight: 300;
  margin: 10px 0 10px 0;
}

#social a img {
  width: 40px;
  height: 40px;
  margin: 10px;
}

.right-footer-more {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.right-footer-more h6 {
  text-transform: uppercase;
  opacity: 0.6;
  font-size: 15px;
  font-weight: 400;
}

@media (min-width: 1000px) {
  #mobile-header {
    display: none;
  }
}

@media only screen and (max-width: 1000px) {
  #mobile-header {
    display: flex;
  }

  #mobile-header div a {
    padding-right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .burger {
    position: relative;
    width: 40px;
    height: 30px;
    background: transparent;
    cursor: pointer;
    display: block;
    margin-left: 20px;
  }

  .burger input {
    display: none;
  }

  .burger span {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    background: black;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
  }

  .burger span:nth-of-type(1) {
    top: 0px;
    transform-origin: left center;
  }

  .burger span:nth-of-type(2) {
    top: 50%;
    transform: translateY(-50%);
    transform-origin: left center;
  }

  .burger span:nth-of-type(3) {
    top: 100%;
    transform-origin: left center;
    transform: translateY(-50%);
  }

  .burger input:checked ~ span:nth-of-type(1) {
    top: 0;
    left: 5px;
    transform: rotate(405deg);
  }

  .burger input:checked ~ span:nth-of-type(2) {
    width: 0%;
    opacity: 0;
  }

  .burger input:checked ~ span:nth-of-type(3) {
    top: 28px;
    left: 5px;
    transform: rotate(-405deg);
  }

  #menu-left-mobile {
    position: fixed;
    width: 250px; /* szerokość menu */
    height: 100vh; /* pełna wysokość ekranu */
    top: 0;
    right: -300px; /* startowo ukryte poza ekranem */
    background-color: var(--primary-color); /* tło menu */
    transition: transform 0.3s ease; /* animacja wysuwania */
    z-index: 99999; /* aby menu było nad innymi elementami */
    display: grid;
    padding-right: unset !important;
    justify-items: center;
    align-items: center;
  }

  .burger input:checked + #menu-left-mobile {
    transform: translateX(-250px); /* przesunięcie menu na ekran */
  }

  #menu-left-mobile nav,
  #menu-left-mobile ul {
    display: grid;
    position: unset;
    transform: unset;
    width: 290px;
    font-size: 20px;
    text-align: center;
  }

  #menu-left-mobile a {
    text-align: center;
    width: 200px;
  }

  #menu-left-mobile div {
    justify-content: center;
    align-items: center;
  }

  ul {
    padding: 0;
  }

  #computer-header {
    display: none;
  }

  #mobile-header div h1 {
    font-size: 20px !important;
  }

  #container {
    background-color: unset;
    padding: unset;
    margin: 10px;
  }

  form {
    width: calc(100vw - 20px);
  }

  .input-container input {
    width: 90vw;
  }

  footer {
    display: grid;
    padding: unset;
    margin: 20px;
    width: unset;
    justify-content: center;
    text-align: center;
  }

  #left-footer {
    width: unset;
  }

  #right-footer {
    display: grid;
    width: unset;
    height: unset;
    justify-content: center;
  }

  #left-footer h2 {
    font-size: 30px;
  }

  footer a {
    margin: 20px;
  }

  .right-footer-more h6 {
    margin-bottom: 0;
  }
}
