* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: url(/img/5566879.jpg) no-repeat center center fixed;
  background-size: cover;
  color: #343a40;
  padding: 20px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  margin-bottom: 20px;
}

.nav ul {
  display: flex;
  list-style: none;
  font-weight: bold;
}

.nav ul li {
  margin: 0 15px;
  font-size: 14px;
}

.nav ul li a {
  color: orangered;
  text-decoration: none;
}

.nav ul li a:hover {
  text-decoration: underline; /* pridėtas efektas */
}

.hamburger {
  display: none;
  font-size: 15px;
  cursor: pointer;
}

.forum-container {
  max-width: 800px;
  margin: auto;
}

h1 {
  font-size: 2.5em;
  color: orangered;
  text-align: center;
  margin-bottom: 20px;
  font-family: Anton;
  font-weight: bold;
}

#topic {
  background-color: #f9f9f9;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.topic h2 {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: orangered;
}

.replies {
  margin-top: 10px;
  padding-left: 20px;
}

.replies div {
  margin-bottom: 10px;
  padding: 10px;
  background-color: #f1f1f1;
  border-radius: 4px;
}

.new-reply,
.new-topic {
  margin-top: 15px;
  background-color: #ececec;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.new-reply textarea,
.new-topic textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 5px;
  resize: none;
  width: 100%;
}

.new-reply textarea {
  height: 80px;
}

.new-topic h2 {
  font-size: 1.5em;
  color: black;
  margin-bottom: 10px;
  font-family: Anton;
}

.button {
  margin-top: 15px;
  padding: 10px;
  background-color: orangered;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 150px;
  text-align: center;
}

@media only screen and (max-width: 768px) {
  .nav li a {
    font-size: 10px;
  }

  .nav ul {
    display: none;
    flex-direction: row;
    gap: 8px;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  .nav ul.active {
    display: flex;
  }

  .hamburger {
    display: block;
    font-size: 15px;
  }

  body {
    padding: 10px;
  }

  .forum-container {
    max-width: 90%;
  }

  h1 {
    font-size: 2em;
  }

  .topic h2 {
    font-size: 1.6em;
  }

  .new-reply textarea,
  .new-topic textarea {
    height: 70px;
  }

  button {
    width: 100%;
    padding: 12px;
  }
}

@media only screen and (max-width: 376px) {
  h1 {
    font-size: 1.8em;
  }

  .forum-container {
    max-width: 95%;
  }

  .topic h2 {
    font-size: 1.4em;
  }

  .new-reply textarea,
  .new-topic textarea {
    height: 60px;
  }

  button {
    padding: 10px;
  }
}
