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

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

body {
  overflow-x: hidden;
}

#my_profile_pic_mobile {
  padding: 0 !important;
  margin: 0 !important;
}

#my_profile_pic_mobile img {
  border-radius: 50%;
}

#account-circle {
  position: relative;
  display: inline-block; /* Umożliwia pojawianie się menu w kontekście diva */
}

#account-circle img {
  height: 70px;
  width: auto;
  border-radius: 50%;
  margin-right: 10px;
}

.account-menu {
  position: absolute;
  display: none;
  background-color: rgba(217, 217, 217, 0.8);
  padding: 10px;
  border-radius: 20px;
  top: 90%; /* Umieszczenie tuż pod obrazkiem */
  left: 50%;
  transform: translateX(-90%); /* Centrowanie */
  width: 200px; /* lub inna szerokość według potrzeb */
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2); /* Cień dla lepszego efektu */
  z-index: 1000;
}

.account-menu a {
  display: block;
  color: black; /* Kolor tekstu */
  padding: 8px 16px; /* Padding dla linków */
  text-decoration: none; /* Brak podkreślenia */
  border-bottom: 1px solid black; /* Linia rozdzielająca */
  text-align: center;
}

.account-menu a:last-child {
  border-bottom: none; /* Usuwa linię u ostatniego elementu */
}

#account-circle:hover .account-menu {
  display: block; /* Pokazuje menu po najechaniu */
}

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;
}

#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;
}

header div {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

main {
  margin-top: 120px;
  display: grid;
  justify-content: center;
  justify-items: center;
}

h1 {
  color: var(--white-color);
  text-align: center;
}

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

#add_new {
  border: 2px solid var(--white-color);
  border-radius: 20px;
  text-decoration: none;
  color: var(--white-color);
  display: flex;
  width: 80vw;
  justify-self: center;
  align-items: center;
  padding: 10px;
  transition: transform 0.5s ease-in-out;
  margin-bottom: 20px;
}

#add_new:hover {
  transform: scale(1.05);
}

#add_new img {
  height: 70px;
  width: auto;
}

#add_new span {
  font-size: 20px;
  margin-left: 20px;
}

.post {
  width: 80vw;
  border: 2px solid var(--white-color);
  margin: 10px;
  border-radius: 20px;
  transition: transform 0.5s ease-in-out;
  text-decoration: none;
  color: var(--white-color);
}

.post:hover {
  transform: scale(1.05);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.name {
  display: flex;
  align-items: center;
}

.name img {
  height: 50px;
  width: auto;
  border-radius: 50%;
  margin-right: 10px;
}

select {
  background-color: transparent;
  padding: 10px;
  border-radius: 8px;
  border: 2px solid white;
  margin: 20px;
  width: 90%;
}

.bottom {
  display: flex;
  justify-content: left;
  align-items: center;
  padding: 0 20px 20px 20px;
}

.bottom img {
  width: 200px;
  height: auto;
}

form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
}

form span {
  margin: 10px;
  text-align: center;
}

button {
  width: fit-content;
  background-color: var(--black-color);
  border: none;
  border-radius: 20px;
  padding: 10px 30px 10px 30px;
  margin: 10px;
  color: var(--white-color);
  font-size: 20px;
  cursor: pointer;
}

.content {
  margin-left: 15px;
}

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 {
    padding-right: 20px;
  }

  .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;
    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 !important;
    padding-right: unset !important;
    justify-items: center;
  }

  .burger input:checked + #menu-left-mobile {
    transform: translateX(-300px); /* 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 {
    margin-right: 0 !important;
    text-align: center;
    width: 200px;
  }

  #computer-header {
    display: none;
  }

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

  .top {
    display: grid;
  }

  .bottom {
    display: grid;
    justify-items: center;
  }

  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;
  }
}
