/* Saytning umumiy ko‘rinishi */
body {
  background: url("img/background.jpg") no-repeat center center fixed;
  background-size: cover;
  font-family: Arial, sans-serif;
  color: #fff;
  margin: 0;
  padding: 0;
  text-align: center;
}

body {
  background-image: url("img/background.jpg"); /* Rasm joylashgan joyni ko‘rsating */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white; /* Matn rangi oq bo‘lishi uchun */
}

/* Navbar menyu */
nav {
  background: #111;
  padding: 10px;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  display: inline;
  margin-right: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}

nav ul li a:hover {
  text-decoration: underline;
}

/* "Xush kelibsiz" yozuvi */
.welcome-container h1 {
  position: absolute;
  top: 35%; /* Markazga yaqin joylashish */
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

/* Matn (Xush kelibsiz pastidagi) */
.extra-container {
  position: absolute;
  top: 50%; /* "Xush kelibsiz" tagidan keyin joylashadi */
  left: 50%;
  transform: translate(-50%, 0);
  text-align: center;
  color: white;
  font-size: 18px;
  width: 80%;
}

h1 {
  font-size: 28px;
  font-weight: bold;
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  background-color: #007bff;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
}

.btn:hover {
  background-color: #0056b3;
}

/* "Xush kelibsiz" yozuvi */

.welcome-container {
  position: absolute;
  top: 30%; /* Markazga yaqin joylashish */
  left: 50%;
  transform: translate(-50%, -50%);
  background: none; /*yarim shaffof qora rang*/
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: auto; /* Matn sig‘ishi uchun */
}

/* "Xush kelibsiz" matni */
.welcome-container h1 {
  color: #00ff00;
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 10px; /* Matn pastroqqa tushishi uchun */
}

/* She’r yoki boshqa matn */
.extra-container p {
  color: #ffffff;
  font-size: 18px;
  z-index: 2; /* matnni hisoblagichdan yuqoriga chiqarish
}

.author-photo {
  max-width: 100%; /* Rasm ekrandan chiqib ketmasligi uchun */
  height: auto; /* Rasm nisbati saqlanishi uchun */
  display: block; /* Rasm pastga tushib qolmasligi uchun */
  margin: 0 auto; /* Rasmni markazga joylashtirish */
  border-radius: 10px; /* Agar burchaklarini yumaloq qilish kerak bo‘lsa */
}

/* Faqat telefon ekranlari uchun (600px dan kichik ekranlarda rasmni kichraytiramiz) */
@media (max-width: 600px) {
  .author-photo {
    width: 80%; /* Telefon ekrani uchun 80% hajmda ko‘rsatish */
  }
}

@supports (-o-object-fit: cover) {
  /* Opera brauzeri uchun maxsus stillar */
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  margin-top: 50px;
  padding: 10px 0;
  z-index: 1; /* matndan pastda chiqishi uchun pastroq qiymat
  */
}

.footer-text {
  position: relative;
  z-index: 2; /* matnni hisoblagichdan yuqoriga chiqarish
*/
}
.sher {
  background-color: #ffe4b5; /* Sariq-jigarrang (Moccasin) */
  padding: 15px;
  border-radius: 10px;
}

.poem-content {
  background-color: #f5deb3; /* Ochiq jigarrang (Wheat) */
  padding: 20px;
  border-radius: 10px;
  color: #333;
  font-family: "Caveat", cursive; /* Qo'lyozmaga o‘xshash shrift */
  font-size: 22px;
  width: 80%;
  margin: 20px auto;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.sher h1 {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
}

.btn {
  display: inline-block;
  margin: 10px 5px;
  padding: 8px 15px;
  background-color: #333;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
}

.btn:hover {
  background-color: #555;
}

/* Mundarija sahifasi uchun fon */
.mundarija-body {
  background: url("img/poem-fon.jpg") no-repeat center center fixed;
  background-size: cover;
  font-family: Arial, sans-serif;
  color: white;
}
.mundarija-body h2 {
  font-size: 28px;
}

.mundarija-body a {
  font-size: 22px;
}
/* She'rlar sahifasi uchun fon */
/*
.poem-body {
  background: url("img/poem-fon.jpg") no-repeat center center fixed;
  background-size: cover;
  color: #4800ff;

  font-family: "Playfair Display", serif;
  font-size: 16px;
  line-height: 1.2;
}
*/
/* Umumiy konteyner (matn joylashadigan joy) */
.container {
  max-width: 800px;
  margin: 50px auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Yengil qora shaffof fon */
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
/*
.poem-content {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  line-height: 1.8;
  color: #222;
}
*/
.poem-body {
  background-color: #d2b48c; /* Ochiq jigarrang (Tan color) */
  font-family: "Dancing Script", cursive; /* Qo‘lyozmaga o‘xshash shrift */
  color: #3e2723; /* To‘q jigarrang matn rangi */
  text-align: center;
  padding: 20px;
}

.poem-content {
  font-size: 22px;
  line-height: 1.8;
  max-width: 800px;
  margin: auto;
  background: rgba(255, 255, 255, 0.8); /* Matn orqasida ozgina oq fon */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}
