body {
  font-family: 'Georgia', serif;
  background-image: url('czerwone.jpg');
  background-size: auto;
  background-position: center;
  background-repeat: repeat;
  background-attachment: fixed;
  color: black;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 100vh;
}
.karatal {
  background-color: black;
  color: red;
  animation: flash-text-steps 0.3s steps(2, end) infinite;
  font-size: 2rem;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes flash-text-steps {
  0%, 100% {
    font-size: 1.1rem;
    color: red;
  }
  50% {
    font-size: 2rem;
    color: black;
  }
}

body.admin {
  background-color: black;
  background-image: none;
  color: red;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body.admin > main {
  margin: 0;
}

.post {
  width: 75%;
  outline: 2px dotted white;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  text-align: left;
}

body.admin input {
  background-color: black;
  color: red;
  border: 1px solid rgb(149, 149, 149);
  border-radius: 5px;
  padding: 0.5rem;
}
body.admin button {
  background-color: rgb(92, 0, 0);
  border: 1px solid rgb(149, 149, 149);
  border-radius: 5px;
  color: white;
  padding: 0.5rem;
  font-size: 1.2rem;
}


body.frytka {
  background-image: url('BAJTEL2dzieciatkoktoreprzerobilonam15kiloprzerobowwspanialomyslnie.gif');
  background-size: auto;
  background-position: center;
  background-repeat: repeat;
  background-attachment: fixed;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 200vh;
  color: white;
}

nav {
  width: 250px;
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
}

nav h1 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin-bottom: 15px;
}

nav ul li a {
  font-size: 1.1rem;
  display: block;

}
img {
  max-width: 30vw;
}
#admin {
  font-size: 9px;
  color: black;
  text-decoration: none;
  opacity: 0.25;
}
#admin:hover {
  opacity: 1;
  text-decoration: underline;
}
main {
  flex: 1;
  margin-left: 250px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  min-height: 100vh;
  text-align: center;
}

main h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

main p {
  font-size: 1.2rem;
}

/* Responsive design for mobile devices */
@media (max-width: 500px) {
  body {
    flex-direction: column;
  }
  
  nav {
    width: 100%;
    height: auto;
    position: relative;
    padding: 0;
  }
  
  nav ul {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
  }
  
  nav ul li {
    margin-bottom: 0;
    margin-right: 0;
  }
  
  nav ul li:last-child {
    margin-right: 0;
  }
  
  nav ul li a {
    padding: 8px 12px;
    font-size: 1rem;
    white-space: nowrap;
  }
  
  main {
    margin-left: 0;
    padding: 20px;
    min-height: auto;
  }
  
  main h1 {
    font-size: 2rem;
  }
  
  main p {
    font-size: 1rem;
  }
}