body {
  background-image: url('../images/360_F_425652429_A311W0NFAGrxzsTtmOQEkczAl3d3GlYG.jpg') !important;
  /*background-image: url('https://picsum.photos/1600/900?blur=2') no-repeat center center fixed !important;*/
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #f7f9fc !important;
  background-attachment: fixed; /*Added */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100%;
}

header {
  background-color: #313455;
  color: white;
  padding: 10px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}
.header-home {
  text-align: center;
  margin-bottom: 50px;

}


h1, h2, h3 {
  color: #313455;
}

.about-container {
  max-width: 800px;
  margin: 50px auto;
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.about-h1 {
  text-align: center;
  color: #333;
}

/* Contact Section Styles */
.contact-section {
  padding: 60px 20px;
}
.contact-container{
  background-color: white;
}
.contact-section {
  width: 80%; 
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.contact-section h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.contact-section p {
  font-size: 1.1rem;
  margin: 20px 0;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  margin-top: 5px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #333;
}


.centered {
    padding-top: 200px;
    text-align: center;
}

.content {
  padding: 80px 20px; 
  min-height: calc(100vh - 160px); 
}

.form-container {
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

footer {
  background-color: #313455; 
  color: white;
  text-align: center;
  padding: 10px 0;
  position: fixed;
  bottom: 0;
  width: 100%;
}

/******************************/
/* Nav bar syles              */
/******************************/
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 1001; /* مقدار بیشتر از fixed-subheader */
  }

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-grow: 1;
}

nav ul li {
  display: inline;
  margin: 0 15px;
}

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

nav ul li a:hover {
  text-decoration: underline;
}

.welcome {
  margin-left: auto; 
  padding-left: 20px;
}

/* dropdown */
.dropdown-menu {
  display: none; 
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.dropdown-menu li a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-menu li a:hover {
  background-color: #ddd;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.caret {
  margin-left: 5px;
}

.divider {
  height: 1px;
  background-color: #1a1818;
  margin: 8px 0;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 80px; /* Fixed position */
  bottom: 0;
}

.profile {
    text-align: center;
  }
  
.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}
  
/* Main Content */
main {
    margin-left: 270px;
    padding: 20px;
    flex: 1;
}
  
.main_d {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
  
.main h2 {
    font-size: 24px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}
  
/**********************
/* Posts  Page       */  
/*********************/
.posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px; 
}
  
.post {
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  display: flex;
  flex-direction: column; /* Vertical arrangement of content */
}

.post-img {
    display: block; 
    width: auto; 
    height: auto;
    margin: 0 auto 10px;
    margin-left: 10px;
    max-height: 200px;
    margin-bottom: 10px;
    object-fit: cover; 
    border-radius: 5px;
}

/* Social Links*/
  .social-links {
    display: flex;
    justify-content: center; 
    gap: 10px; 
    margin-top: 20px; 
}
  
.social-links svg {
    width: 24px; 
    height: 24px;
    fill: #333; 
    transition: fill 0.3s; 
}
  
.social-links a:hover svg {
    fill: #555; 
}

.dashboard-container {
    text-align: center; 
    margin-top: 20px; 
}
  
.form-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}
  
input[type="text"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}
  
textarea {
    height: 150px;
    resize: none;
}
  
input[type="file"] {
    margin-top: 10px;
}
  
input[type="text"]:focus,
textarea:focus {
    border-color: #007BFF;
    outline: none;
}

.skills {
  margin-top: 20px;
}

.skills ul {
  list-style-type: none;
  padding: 0;
}

.skills ul li {
  background-color: #f0f0f0;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
}

.skills ul li:nth-child(odd) {
  background-color: #e9e9e9;
}


/************************/
/*   Game               */
/***********************/

.game-body {
    background-color: #666060;
}
.game-container {
  width: 70%;
  margin: auto;
  text-align: center;
}

.dice {
  text-align: center;
  display: inline-block;

}

.game-h1 {
  margin: 30px;
  font-family: 'Lobster', cursive;
  text-shadow: 5px 0 #232931;
  font-size: 8rem;
  color: #4ECCA3;
}

.game-p {
  font-size: 2rem;
  color: #4ECCA3;
  font-family: 'Indie Flower', cursive;
}

.game-img {
  width: 80%;
}


/************************/
/*   Translator         */
/***********************/
select {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.translator-container {
  background-color: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 400px;
}

.translator-h1 {
  text-align: center;
  color: #333;
}

textarea {
  width: 100%;
  height: 100px;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: none;
  font-size: 14px;
}
.result {
  margin-top: 20px;
  padding: 10px;
  background-color: #e6ffe6;
  border: 1px solid #b3ffb3;
  border-radius: 4px;
  display: none;
}

.error {
  margin-top: 20px;
  padding: 10px;
  background-color: #ffe6e6;
  border: 1px solid #ffb3b3;
  border-radius: 4px;
  display: none;
}
  
/******************/
/*Dashboard Buttom*/
/******************/
.btn-dashboard {
    background-color: #2196F3;
    color: white; 
    border: none; 
    padding: 10px 15px; 
    text-align: center; 
    text-decoration: none; 
    display: inline-block; 
    font-size: 14px; 
    margin-top: 10px; 
    margin-left: 5px; 
    cursor: pointer; 
    border-radius: 5px; 
    transition: background-color 0.3s; 
}
  
.btn-dashboard:hover {
    background-color: #1976D2; 
}

/* Back Button */
.btn-back {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}
  
.btn-back:hover {
    background-color: #388E3C;
}
  
/* Creat Buttom*/
.btn-creat {
    display: inline-block;
    padding: 12px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #2196F3;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    text-decoration: none;
    margin-top: 10px;
}
  
  .btn-creat:hover {
    background-color: #1976D2;
}
  

/* Delete Button */
.btn-delete {
    background-color: #db554b; 
    color: white; 
    border: none; 
    padding: 10px 15px; 
    text-align: center; 
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin-top: 10px;
    margin-right: 500px;
    cursor: pointer; 
    border-radius: 5px;
    transition: background-color 0.3s; 
}
  
.btn-delete:hover {
    background-color: #c22412; 
}
  

button.btn {
  padding: 10px 20px;
  font-size: 1.2rem;
  background: #333;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

button.btn:hover {
  background-color: #555;
}

.secret-h1 {
  margin: 30px;
  font-family: 'Lobster', cursive;

  font-size: 8rem;
  color: #19644b;
}

.secret-p {
  font-size: 2rem;
  font-family: 'Indie Flower', cursive;
}

.secret-text {
  text-align: center;
  font-size: 2rem;
  color: #fff;
  background-color: #000;
  font-family: 'Indie Flower', cursive;
}

/* form in the middel of page */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Mobail Respounsive */
@media (max-width: 600px) {
    .main {
        padding: 15px;
    }
  
    button[type="submit"],
    .btn-back {
        font-size: 14px;
        padding: 10px;
    }
}

/**************************/
/*    Home Page           */
/**************************/
.h2-home {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 15px;
}

.p-home {
font-size: 1rem;
color: #666;
}

.title {
  font-size: 3rem;
  color: #1a73e8;
  animation: fadeInDown 1.5s ease-in-out;
  text-align: center;
  margin-bottom: 50px;

}

.subtitle {
  font-size: 1.5rem;
  color: #555;
  margin-top: 10px;
  text-align: center;
  margin-bottom: 50px;
  animation: fadeInDown 2s ease-in-out;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  width: 80%;
}

.skill-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 30%;
  padding: 20px;
  margin: 20px;
  text-align: center;
  transition: transform 0.3s ease-in-out;
  animation: popUp 1.5s ease-in-out;
}

.skill-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}


@keyframes fadeInDown {
  from {
      opacity: 0;
      transform: translateY(-30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes popUp {
  from {
      opacity: 0;
      transform: scale(0.8);
  }
  to {
      opacity: 1;
      transform: scale(1);
  }
}

/****************/
/* online -shop */
/****************/
.products_price {
  font-size: 3rem;
  color: #0b4daa;
}

.btn-addtobasket {
  background-color: #b9cc0c; 
  color: rgb(255, 255, 255); 
  border: none; 
  padding: 10px 15px; 
  text-align: center; 
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin-top: 10px;
  margin-right: 500px;
  cursor: pointer; 
  border-radius: 5px;
  transition: background-color 0.3s; 
}

.btn-addtobasket:hover {
  background-color: #5a6d03; 
}


.products-img {
  width: 50%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.gallery {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.gallery img {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  cursor: pointer;
}


.result-label {
  color: white;
}

.purchase-item {
  color: white;
  font-weight: bold;
}

.purchase-price {
  background-color: #6791cff8;
  font-weight: bold;
  color: white;
  font-size: 25px;
}

.purchase-buy-now {
  background-color: green;
  color: white;
  border-radius: 5px;
  font-weight: bold;
  font-size: 20px;
  text-align: center;
  padding: 5px;
}

video {
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.onlineshopost {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: white;
}

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

.products_price {
  display: grid;
  grid-template-columns: auto auto auto auto;
  gap: 10px;
  background-color: rgb(13, 117, 165);
  padding: 10px;
}

.products_price > div {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid black;
  text-align: center;
  font-size: 30px;
}

.products_price p {
  font-size: 18px;
  color: #1e0a79;
  font-weight: bold;
}

.btn-success {
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
  background-color: #d8db24f8;
  color: white;
}

.sidebar {
  width: 200px; 
  background-color: #f4f4f4;
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  left: 0; 
  top: 40px; 
  bottom: 0;
}

.sidebar-right {
  width: 200px;
  background-color: #0d59a0;
  padding: 20px;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  right: 0; 
  top: 40px;
  bottom: 0; 
}

.main-content {
  margin-left: 220px; 
  margin-right: 220px; 
  margin-top: 20px; 
}
.quantity-input {
  width: 135PX;
  height: 40PX;
  left:1000; 
  font-size: 30px;
}

.fixed-subheader {
  position: fixed;
  height: 80px;
  top: 40px;
  left: 0;
  right: 0;
  background-color: #0d59a0;
  color: #fff;
  padding: 10px;
  text-align: center;
  font-size: 18px;
  z-index: 1000;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.main-content {
  margin-top: 120px;
}

.dropdown-menu li a i {
  vertical-align: middle;
  font-size: 1.1em;
}
.dropdown-menu li a {
  white-space: nowrap;
  display: flex;
  align-items: center;
}

/* Responsive for mobile devices */
@media (max-width: 600px) {
  body {
    height: auto;
    padding: 0;
    margin: 0;
    background-attachment: scroll;
  }
  header, .fixed-subheader, footer {
    position: static;
    width: 100%;
    min-width: unset;
    font-size: 1rem;
    padding: 8px 0;
  }
  nav {
    flex-direction: column;
    padding: 0 5px;
  }
  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
  nav ul li {
    margin: 8px 0;
  }
  .sidebar, .sidebar-right {
    position: static;
    width: 100%;
    box-shadow: none;
    margin-bottom: 10px;
    padding: 10px;
  }
  .main-content, main {
    margin: 0;
    padding: 10px 2px;
  }
  .posts {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .skill-card {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
  }
  .translator-container {
    width: 100%;
    padding: 10px;
  }
  .products-img, .post-img {
    width: 100%;
    max-height: 150px;
  }
  .products_price {
    grid-template-columns: 1fr 1fr;
    font-size: 1.2rem;
    padding: 5px;
  }
  .gallery img {
    width: 40px;
    height: 40px;
  }
  .centered {
    padding-top: 80px;
  }
  .title, .subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }
  .form-container, .about-container {
    padding: 10px;
    max-width: 100%;
  }
}

/* Hamburger menu styles */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #313455;
  cursor: pointer;
  z-index: 2000;
}
@media (max-width: 600px) {
  .hamburger {
    display: block;
    position: absolute;
    left: 10px;
    top: 10px;
    color: #fff !important;
  }
  nav ul#mainMenu {
    flex-direction: column;
    align-items: flex-start;
    background: #313455;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    z-index: 1500;
    padding: 0;
    display: none;
  }
  nav ul#mainMenu.show-menu {
    display: flex;
  }
  nav ul#mainMenu li {
    margin: 10px 0;
    text-align: left;
  }
  .welcome {
    display: block;
    color: #fff;
    text-align: center;
    margin: 10px 0 0 0;
    font-size: 1.1rem;
    background: #313455;
    padding: 8px 0;
  }
}

.btn {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  background: #1976d2;
  transition: background 0.2s;
}

.btn-info {
  background: #0288d1;
}

.btn-primary {
  background: #1976d2;
}

.btn-secondary {
  background: #455a64;
}

.btn-danger {
  background: #d32f2f;
}

.btn-link {
  background: none;
  color: #1976d2;
  text-decoration: underline;
  padding: 0;
}

.btn:hover, .btn-info:hover, .btn-primary:hover, .btn-secondary:hover, .btn-danger:hover {
  background: #1565c0;
}
.voucher-table-wrapper {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 32px 24px 24px 24px;
  margin: 32px auto 0 auto;
  max-width: 800px;
}
.voucher-title {
  margin-bottom: 24px;
  color: #1976d2;
  font-weight: 700;
  font-size: 2rem;
  text-align: center;
}
.voucher-table {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.voucher-table th, .voucher-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}
.voucher-table th {
  background: #f7fafd;
  color: #1976d2;
  font-weight: 600;
}
.voucher-table tr:last-child td {
  border-bottom: none;
}

.btn-info {
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 16px;
  transition: background 0.2s;
}

.btn-info:hover {
  background: #125ea2;
}

/*/////////////////////////*/
.btn-info {
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 16px;
  transition: background 0.2s;
}

.btn-info:hover {
  background: #125ea2;
}

.btn:hover, .btn-info:hover, .btn-primary:hover {
  background: #1565c0;
}

.btn {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  background: #1976d2;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #1976d2;
}

.btn-secondary {
  background: #455a64;
}

.btn-danger {
  background: #d32f2f;
}

.btn-link {
  background: none;
  color: #1976d2;
  text-decoration: underline;
  padding: 0;
}

.btn:hover, .btn-info:hover, .btn-primary:hover, .btn-secondary:hover, .btn-danger:hover {
  background: #1565c0;
}
