body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background-image: url('Resources/Fon.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

header {
  background: rgba(255, 0, 0, 0.589);
  color: white;
  padding: 20px 10px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

header p {
  margin: 10px 0 0;
  font-size: 1.2rem;
}

main {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: rgba(105, 95, 95, 0.8);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

section {
  margin-bottom: 30px;
}

h2 {
  color: #4CAF50;
  border-bottom: 2px solid red;
  padding-bottom: 10px;
}

ol, ul {
  padding-left: 20px;
}

li {
  margin-bottom: 10px;
}

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

.fancy-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  color: white;
  background: linear-gradient(90deg, #968d8b, #db2f2f);
  border: none;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(255, 126, 95, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.fancy-button:hover {
  background: linear-gradient(90deg, #db2f2f, #968d8b);
  box-shadow: 0 6px 20px rgba(189, 2, 2, 0.719);
  transform: scale(1.05);
}

.fancy-button:active {
  transform: scale(0.95);
  box-shadow: 0 3px 10px rgba(9, 36, 155, 0.4);
}

.rounded-window {
  width: 400px;
  padding: 50px;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.rounded-window h2 {
  margin-top: 0;
  color: #333;
}

.rounded-window p {
  color: #666;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100%;
  background: linear-gradient(180deg, #8b0000, #333);
  color: white;
  transition: left 0.3s ease;
  z-index: 1000;
}

.sidebar.show {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
}

.sidebar-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.links {
  list-style: none;
  padding: 0;
}

.links li {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.links li:last-child {
  border-bottom: none;
}

.links a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.links a:hover {
  color: #ff6347;
}

.sidebar-toggle {
  position: fixed;
  top: 10px;
  left: 10px;
  background: #8b0000;
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 1001;
}

#sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background: linear-gradient(180deg, #444 0%, #666 100%);
  transition: left 0.3s ease;
  z-index: 1000;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

#sidebar.active {
  left: 0;
}

#sidebar-content {
  padding-top: 20px;
}

#sidebar-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#sidebar-content ul li {
  padding: 15px;
  border-bottom: 1px solid #555;
  transition: background-color 0.3s ease;
}

#sidebar-content ul li:hover {
  background-color: #d80404c5;
}

#sidebar-content ul li a {
  color: #ddd;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s ease;
}

#sidebar-content ul li:hover a {
  color: white;
}

#sidebar-toggle {
  position: absolute;
  top: 10px;
  right: -40px;
  width: 40px;
  height: 40px;
  background-color: #db2f2f;
  color: white;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
  border-radius: 0 5px 5px 0;
  transition: background-color 0.3s ease;
}

#sidebar-toggle:hover {
  background-color: #db2f2f;
}

@media (max-width: 480px) {
  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
  }

  main {
    padding: 10px;
    background: rgba(105, 95, 95, 0.8);
  }

  .fancy-button {
    padding: 10px 20px;
    font-size: 16px;
  }

  .rounded-window {
    width: 90%;
    padding: 20px;
  }

  .sidebar {
    width: 100%;
    left: -100%;
  }

  .sidebar.show {
    left: 0;
  }

  .sidebar-toggle {
    font-size: 1.2rem;
    padding: 0.5rem;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  header h1 {
    font-size: 2.2rem;
  }

  header p {
    font-size: 1.1rem;
  }

  main {
    padding: 15px;
    background: rgba(105, 95, 95, 0.8);
  }

  .fancy-button {
    padding: 12px 24px;
    font-size: 17px;
  }

  .rounded-window {
    width: 80%;
    padding: 30px;
  }

  .sidebar {
    width: 200px;
  }
}

@media (min-width: 1200px) {
  header h1 {
    font-size: 3rem;
  }

  header p {
    font-size: 1.5rem;
  }

  main {
    max-width: 1200px;
    padding: 30px;
    background: rgba(105, 95, 95, 0.8);
  }

  .fancy-button {
    padding: 20px 40px;
    font-size: 20px;
  }

  .rounded-window {
    width: 600px;
    padding: 60px;
  }

  .sidebar {
    width: 350px;
  }
}