body {
  font-family: 'Roboto', sans-serif;
  background-color: #121212;
  background-image: linear-gradient(rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.8)), url('bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #E0E0E0;
  padding: 0 1rem;
}

.content-wrapper {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #1E1E1E;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

h1 {
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 0.5rem;
}

.subheading {
  text-align: center;
  color: #757575;
  margin-top: 0;
  margin-bottom: 2rem;
}

#rules-container {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.5rem;
  border-bottom: 1px solid #333;
}

.rule-item.disabled {
  color: #757575;
}

.rule-item .rule-label[title] {
  cursor: help;
  text-decoration: underline dotted;
  text-decoration-thickness: 1px;
}

.rule-group {
  border: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.rule-group legend {
  font-weight: bold;
  padding: 0.5rem 1rem;
  background-color: #333;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  color: #E0E0E0;
}

.dependent-rule {
  margin-left: 2rem;
  border-left: 2px solid #333;
}

/* The switch - a checkbox */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #4a4a4a;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #3B82F6;
}

input:checked + .slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

.friends-link-section {
  margin-top: 2rem;
}

#friends-link-input {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  box-sizing: border-box;
  background-color: #333;
  border: 1px solid #444;
  color: #E0E0E0;
  border-radius: 8px;
  transition: background-color 0.3s;
}

#toast-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #3B82F6;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

#toast-notification.show {
  opacity: 1;
  visibility: visible;
}
