* {
  box-sizing: border-box;
}

body {
  font-family: "Exo 2", sans-serif;
  background: url('https://i.imgur.com/JP1znKU.png') repeat;
  background-size: 95px 90px;

  color: #333;
  margin: 0;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}


.container {
  width: 100%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;

  align-items: stretch;

}


.logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.logo {
  width: 250px;
  height: 250px;
  object-fit: cover;
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-top: 10px;
}

h1,
h2 {
  text-align: center;
  margin-bottom: 20px;
}

form#new-thread-form {
  margin-bottom: 30px;
  background: #c6e1fa;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  box-sizing: border-box;
  font-size: 18px;
}



.threads {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  max-height: 1400px;
  overflow: auto;
  width: 100%;
}

#new-thread-section {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 10px;
}

#new-thread-form {
  width: 100%;
}


@media (max-width: 600px) {

  form#new-thread-form,
  .thread {
    padding: 15px;
    margin-bottom: 20px;
  }

  .container {
    padding: 10px;
  }

  #new-thread-form input,
  #new-thread-form textarea {
    font-size: 14px;
    padding: 10px;
  }
}


input:not(#thread-title),
textarea:not(#thread-content) {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  resize: vertical;
}


button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #007BFF;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}

.thread {
  background: #f1f8fd;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  max-height: 1400px;
  overflow: auto;
  width: 100%;
}

.thread h3 {
  margin-top: 0;
  color: #0056b3;
  font-weight: bold;
}

.thread p {
  font-weight: bold;
}

.intro-text {
  text-align: center;
}

.reply {
  margin-top: 15px;
  padding: 12px;
  background: #f1f3f5;
  border-left: 4px solid #007BFF;
  border-radius: 8px;
}

.reply-form {
  margin-top: 15px;
}

small {
  color: #777;
}


.link-button-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.link-button {
  padding: 12px 24px;
  font-size: 16px;
  background-color: #9ec4ec;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.link-button:hover {
  background-color: #0056b3;
}




#scrollTopBtn {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  position: fixed;
  bottom: 40px;
  right: 40px;
  font-size: 25px;
  background-color: #8792ce;
  color: rgb(53, 180, 117);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
}

#scrollTopBtn:hover {
  background-color: #e7d31a;
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}



#auth-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

#auth-buttons {
  display: flex;
  gap: 10px;
}

.auth-button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  color: white;
  cursor: pointer;
  width: 180px;

  text-align: center;
  box-sizing: border-box;

  transition: background-color 0.3s;
}

.auth-button.google {
  background-color: #d93025;

}

.auth-button.facebook {
  background-color: #4b4d4e;

}

.auth-button:hover {
  opacity: 0.9;
}


#user-info {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  width: 100%;
}

#user-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

#user-name {
  font-weight: bold;
  display: block;
  margin: 0 auto;
}

#user-info button {
  display: none;
}

.neuroLock {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}



form#new-thread-form input,
form#new-thread-form textarea {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid #ccc;
}


#topics-section {
  margin-top: 30px;

  margin-bottom: 30px;

}

#topics-section h2 {
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 15px;
  color: #222;
}

#topics-list {
  background-color: #e8f8e5;
  padding: 10px 20px;
  border-radius: 5px;

  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}


#topics-list a {
  display: block;
  padding: 6px 0;
  color: #0066cc;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  transition: color 0.3s ease;
}

#topics-list a:hover {
  text-decoration: underline;
  color: #004999;
}

#loading-message {
  text-align: center;
}
