/* Reset CSS */
body {
  font-family: Arial, sans-serif;
  background-color: #f2f2f2;
  margin: 0;
  padding: 0;
  direction: rtl; /* تنظیم راست چین برای تمام صفحه */
  position: relative; /* برای استفاده از موقعیت دهی مطلق در ::before */
  z-index: 0; /* اطمینان از قرارگیری محتوا بالای پس زمینه */
}

body::before {
  content: "";
  background: url('lg.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.3; /* تنظیم شفافیت */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* قرار دادن پس زمینه در پشت محتوا */
}

/* Container */
.container {
  max-width: 1200px;
  margin: 20px auto;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  padding: 20px;
  background-color: #42a5f5;
  color: #fff;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  text-align: center; /* مرکز‌چین کردن متن هدر */
  position: relative; /* برای استفاده از موقعیت دهی مطلق */
}

/* User Info */
.user-info {
  padding: 10px 20px;
  color: #333; /* رنگ متن */
  background-color: #f0f0f0; /* رنگ پس زمینه */
  margin-bottom: 40px;
}

/* Navigation */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center; /* مرکز‌چین کردن لیست منو */
}

nav ul li {
  display: inline;
  margin-right: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

nav ul li a:hover {
  color: #555;
}

/* Main Content */
main {
  padding: 20px;
  flex-grow: 1;
}

/* Footer */
footer {
  padding: 20px;
  background-color: #42a5f5;
  color: #fff;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  text-align: center; /* مرکز‌چین کردن متن فوتر */
}

footer button {
  background-color: #ff7043;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

footer button:hover {
  background-color: #ff5722;
}
