body {
    background-color: rgb(243, 255, 247);
}

.allert {
  background-color: orange;
}
.allert p {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: #eeeeee;
  text-align: center;
  font-weight: 600;
}
/* MENU */
.menu {
  width: 100%;
  top: 0;
  z-index: 1002;
  padding: 5px;
  transition: transform 0.28s ease;
  will-change: transform;
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
}
.menu .main-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.menu ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  margin: 0 20px;
}

.menu ul li.account-link {
  margin-left: auto;
}
.menu .account-links {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 0; /* Konto / Zaloguj się przyklejone do prawej */
}

.menu a {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  display: block;
  padding: 15px 10px;
  color: #eeeeee;
  background-color: rgb(61, 112, 112);
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.menu a:hover {
  background: rgb(97, 163, 163);
  transform: translateY(-2px);
}
.deactive {
  background-color: rgb(190, 223, 223) !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0) !important;
}
.deactive:hover {
  background-color: rgb(190, 223, 223) !important;
  transform: translateY(0px) !important;
  cursor: not-allowed !important;
}
.deactive-phone {
  color: #c1d5d5 !important;
}

/* Efekt aktywnego linku */
.menu a.active {
  background: #fff;
  color: #357ABD;
  font-weight: 600;
}

/* Responsywność */
@media (max-width: 920px) {
  .menu {
    display: none;
  }
  .menu ul {
    flex-direction: column;
    align-items: center;
  }

  .menu li {
    margin: 10px 0;
  }
}

/* HEADER */
.header {
  padding: 40px;
  background-color: #f7fffc;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  text-align: center;
}
.header h1 {
  font-family: "Slackside One";
}

/* MINI HEADER */
#small-header {
  position: fixed;
  top: -10px;
  left: 0;
  right: 0;
  background: #f7fffcdc; /* 80% przezroczystości białe */
  padding: 2px 30px 55px 2px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  transform: translateY(-120%);
  transition: transform 0.28s ease, opacity 0.28s ease;
  opacity: 0;
  z-index: 1001; /* > niż .menu */
  text-align: center;
}
#small-header a{ 
  color: #333;
  text-decoration: none;
}
@media (max-width: 920px) {
  #small-header {
  padding: 2px 2px 2px 2px;
}
  }
/* klasa która pokazuje mały header */
#small-header.show {
  transform: translateY(0);
  opacity: 1;
}

#small-header h1 {
  font-family: "Slackside One";
}
/*menu phone*/
.hamburger {
  display: none;
  position: fixed;
  top: 30px;
  left: 20px;
  width: 30px;
  height: 25px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1005;
}

.hamburger span {
  display: block;
  height: 4px;
  background: #333;
  border-radius: 2px;
}

/* Menu boczne */
.side-menu {
  display: none;
  position: fixed;
  top: 0;
  left: -250px; /* poza ekranem */
  width: 250px;
  height: 100%;
  background: #fff;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  transition: left 0.3s ease;
  z-index: 1003;
}

.side-menu ul {
  list-style: none;
  padding: 60px 20px;
}

.side-menu li {
  margin-bottom: 20px;
}

.side-menu a {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-weight: 600;
  text-decoration: none;
  color: #333;
  margin: 10px;
  padding: 10px 6px;
  font-size: 16px;
  transition: all 0.3s ease;
  border-radius: 8px;
}
#logout {
  bottom: 0 !important;
  position: absolute !important;
}

/* Aktywne menu */
.side-menu.active {
  left: 0;
}
/* Efekt X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -10px);
}

@media (max-width: 920px) {
  .side-menu {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .allert {
  background-color: orange;
  position: fixed;
  bottom: 0;
  width: 100%;
  }
}
/* LOGIN FORM */
form {
  max-width: 400px;
  margin: 50px auto;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #3d7070;
}

form input[type="text"],
form input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid #b2d8d8;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

form input[type="text"]:focus,
form input[type="password"]:focus {
  outline: none;
  border-color: #61a3a3;
  box-shadow: 0 0 5px rgba(97, 163, 163, 0.5);
}

form button {
  width: 100%;
  padding: 12px;
  background-color: rgb(61, 112, 112);
  color: #eeeeee;
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

form button:hover {
  background-color: rgb(97, 163, 163);
  transform: translateY(-2px);
}

form p.error {
  color: red;
  font-size: 14px;
  margin-bottom: 15px;
  text-align: center;
}

.account-page-cnt {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.account-page {
    text-align: center;
    align-content: center;
    max-width: 500px;
    margin: 50px 10px;
    background: #fff;
    padding: 30px;
    border-radius: 22px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
#center {
    margin: 50px auto;
}

#center-lesson {
    margin: 50px auto;
}
#center-lesson h2{
    color: #333;
}


.account-page h2, .account-page h3 {
    text-align: center;
    color: #3d7070;
}

.form-box {
    margin: 20px 0;
}

.form-box label {
    display: block;
    margin: 10px 0 5px;
    font-weight: 600;
}

.form-box input[type=text],
.form-box input[type=password],
.form-box input[type=email] {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.form-box button {
    width: 100%;
    padding: 10px;
    background: #3d7070;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.form-box button:hover {
    background: #61a3a3;
}

p.success { color: green; text-align:center; }
p.error { color: red; text-align:center; }

/* Duży przycisk Dołącz */
.btn-join {
  display: inline-block;
  padding: 18px 36px;
  font-size: 20px;
  font-weight: 600;
  background: rgb(61, 112, 112);
  color: #eeeeee;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.btn-join:hover {
  background: rgb(97, 163, 163);
  transform: translateY(-2px);
}
/* Dane użytkownika */
.user-data {
  margin: 25px;
  padding: 15px 20px;
  background: #ffffffd9;
  border: 1px solid #b2d8d8;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.user-data p {
  margin: 8px 0;
  font-size: 15px;
  color: #3d7070;
  font-weight: 500;
}

.lesson-content {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-content: center;
  align-items: center;
}

.lesson-content a {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.sideusers {
  margin: 10px;
}
.sideusers h3 {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.sideusers li {
  list-style: none;
  margin: 40px;
}
.sideusers ul {
  list-style: none;
}
.sideusers a { 
  color: #f7fffc;
  border-radius: 12px;
  padding: 12px;
  background-color: #3d7070;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}