/* General Reset */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
  }

  body {
	font-family: Arial, sans-serif;
	background-color: #f6f6ef;
	color: #333;
	margin: 0;
	padding: 0;
	line-height: 1.6;
  }

/* Header */
header {
	background-color: #ff6600;
	padding: 10px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
  }

  /* Logo */
  .logo {
	color: white;
	text-decoration: none;
	font-size: 20px;
	font-weight: bold;
  }

  /* Navigation Container */
  .nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
  }

  /* Dropdown for Select */
  .styled-select {
	background-color: #fff;
	color: #333;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 0.5rem;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.3s;
  }

  /* Hover Effect for Select */
  .styled-select:hover {
	border-color: #007bff;
  }

  /* Navigation List */
  .nav-list {
	display: flex;
	gap: 16px;
	align-items: center;
  }

  .nav-link {
	text-decoration: none;
	color: white;
	font-size: 14px;
  }

  .nav-link:hover {
	text-decoration: underline;
  }

  /* Hamburger Menu (Mobile) */
  .nav-toggle {
	display: none;
	background: none;
	border: none;
	color: white;
	font-size: 24px;
	cursor: pointer;
  }

  .nav-toggle-icon {
	width: 25px;
	height: 2px;
	background-color: white;
	position: relative;
	display: block;
	transition: all 0.3s ease;
  }

  .nav-toggle-icon::before,
  .nav-toggle-icon::after {
	content: '';
	position: absolute;
	width: 25px;
	height: 2px;
	background-color: white;
	transition: all 0.3s ease;
  }

  .nav-toggle-icon::before {
	top: -8px;
  }

  .nav-toggle-icon::after {
	top: 8px;
  }

  /* Mobile Navigation Styles */
  .nav-list {
	display: flex;
	gap: 16px;
	align-items: center;
  }

  .nav-list.active {
	display: flex;
	flex-direction: column;
	background-color: #ff6600;
	position: absolute;
	top: 48px;
	left: 0;
	width: 100%;
	padding: 16px 0;
  }

  .nav-list li {
	margin: 10px 0;
  }

  /* Active State for Mobile Navigation */
  .nav-toggle.active .nav-toggle-icon {
	transform: rotate(45deg);
  }

  .nav-toggle.active .nav-toggle-icon::before {
	top: 0;
	transform: rotate(90deg);
  }

  .nav-toggle.active .nav-toggle-icon::after {
	top: 0;
	transform: rotate(90deg);
  }

  /* Main Content */
.main-content {
	padding: 16px;
	max-width: 1200px;
	margin: 0 auto;
  }


  .story-list-container {
	background: white;
	border: 1px solid #e6e6e6;
	border-radius: 4px;
	padding: 16px;
  }

  .story-list {
	list-style: none;
  }

  .story-list li {
	padding: 8px 0;
	border-bottom: 1px solid #e6e6e6;
  }

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

  li.story-item {
    display: flex;
    align-items: center;
	}

  .load-more {
	display: block;
	margin: 16px auto 0;
	padding: 8px 16px;
	border: none;
	background-color: #ff6600;
	color: white;
	border-radius: 4px;
	cursor: pointer;
  }

  .load-more:hover {
	background-color: #e55a00;
  }

/* Updated Modal Styles */
.modal {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	max-width: 500px;
	height: auto;
	justify-content: center;
	align-items: center;
	z-index: 1000;
  }

  .modal-content {
	background: white;
	padding: 24px;
	border-radius: 8px;
	width: 90%;
	max-width: 500px;
	position: relative;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	animation: fadeIn 0.3s ease;
  }

  .close {
	position: absolute;
	top: 12px;
	right: 12px;
	cursor: pointer;
	font-size: 20px;
	color: #333;
	background: none;
	border: none;
  }

  @keyframes fadeIn {
	from {
	  opacity: 0;
	  transform: scale(0.9);
	}
	to {
	  opacity: 1;
	  transform: scale(1);
	}
  }

  /* Improved Register Form Styling */
  #register-form {
	background: #f9f9f9;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  #register-form .form-group {
	margin-bottom: 16px;
  }

  #register-form label {
	font-size: 14px;
	font-weight: bold;
	color: #333;
	margin-bottom: 8px;
  }

  #register-form input {
	font-size: 14px;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	width: 100%;
  }

  #register-form button {
	background-color: #ff6600;
	color: white;
	font-size: 16px;
	padding: 10px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s ease;
  }

  #register-form button:hover {
	background-color: #e55a00;
  }

  /* Credit Card Field Styling */
  #card-element {
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
  }

  #card-errors {
	color: red;
	font-size: 12px;
	margin-top: 8px;
  }

  /* Updated Register Form Styling */
.auth-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
  }

  .form-group {
	display: flex;
	flex-direction: column;
  }

  label {
	font-size: 14px;
	margin-bottom: 8px;
	color: #555;
  }

  input,
  textarea,
  select {
	font-size: 16px;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	outline: none;
	transition: border-color 0.3s;
  }

  input:focus,
  textarea:focus,
  select:focus {
	border-color: #ff6600;
	box-shadow: 0 0 5px rgba(255, 102, 0, 0.5);
  }

  button {
	background-color: #ff6600;
	color: white;
	border: none;
	font-size: 16px;
	padding: 10px 20px;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.3s ease;
  }

  button:hover {
	background-color: #e55a00;
  }

  .comment {
	padding: 10px;
	border-bottom: 1px solid #ddd;
	margin-bottom: 10px;
  }

  .comment strong {
	font-weight: bold;
	color: #333;
  }

  .comment p {
	margin: 5px 0;
  }




  /* Responsive Design */
  @media (max-width: 768px) {
	.modal-content {
	  width: 95%;
	  padding: 16px;
	}

	#register-form input {
	  font-size: 14px;
	  padding: 8px;
	}

	#register-form button {
	  font-size: 14px;
	  padding: 8px;
	}

    .nav-list.active {
        display: flex;
    }
  }


  /* Forms */
  form {
	display: flex;
	flex-direction: column;
	gap: 12px;
  }

  .form-group {
	display: flex;
	flex-direction: column;
  }

  label {
	font-size: 14px;
	margin-bottom: 4px;
  }

  input, textarea, select, button {
	font-size: 14px;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
  }

  textarea {
	resize: vertical;
  }

  .vote-arrow{
	cursor:pointer;
  }

  button {
	background-color: #ff6600;
	color: white;
	border: none;
	cursor: pointer;
  }

  button:hover {
	background-color: #e55a00;
  }

  /* Poll Options */
  #poll-options {
	margin-top: 8px;
  }

  .poll-option {
	margin-top: 4px;
  }

  /* Responsive Design */
  @media (max-width: 768px) {
	.nav-list {
	  display: none;
	  flex-direction: column;
	  background: #ff6600;
	  position: absolute;
	  top: 48px;
	  left: 0;
	  width: 100%;
	}

	.nav-toggle {
	  display: block;
	  font-size: 0.8rem;
	}
  }


   /* Popup Overlay */
    .popup-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      z-index: 1000;
      display: none; /* Hidden by default */
    }

    .popup-container {
      position: absolute;
      top: 10%;
      left: 50%;
      transform: translateX(-50%);
      background: white;
      border-radius: 8px;
      width: 90%;
      max-width: 800px;
      max-height: 80%;
      overflow-y: auto;
      padding: 20px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .popup-close {
      position: absolute;
      top: 10px;
      right: 10px;
      font-size: 1.5rem;
      cursor: pointer;
      color: #666;
    }

    /* Story Detail Styles */
    .story-detail {
      padding: 1rem;
      background: #f6f6ef;
      border-bottom: 1px solid #ccc;
    }

    .story-title a {
      color: #2e2e2e;
      text-decoration: none;
      font-weight: bold;
    }

    .story-title a:hover {
      text-decoration: underline;
    }

    .story-meta {
      color: #888;
      font-size: 0.9rem;
    }

    .story-text {
      margin-top: 1rem;
      font-size: 1rem;
    }

    /* Comments Section */
    .comment {
      padding: 0.5rem 0;
      line-height: 1.4;
      font-size: 0.9rem;
    }

    .comment-head {
      color: #666;
      font-size: 0.8rem;
    }

    .comment-text {
      padding: 0.25rem 0;
      overflow-wrap: break-word;
    }

    .comment-actions {
      font-size: 0.8rem;
      color: #666;
    }

    .reply-form {
      margin: 0.5rem 0;
      margin-left: 2rem;
      display: none;
    }

    .reply-form textarea {
      width: 100%;
      min-height: 100px;
      margin-bottom: 0.5rem;
    }

    .comment-collapsed .comment-text,
    .comment-collapsed .comment-actions,
    .comment-collapsed .comment-thread {
      display: none;
    }

    .toggle-collapse {
      cursor: pointer;
      color: #666;
    }

    .indent-line {
      border-left: 1px solid #eee;
      margin-left: 0.5rem;
      padding-left: 1rem;
    }

    @media (max-width: 768px) {
      .popup-container {
        width: 95%;
        max-width: 100%;
        top: 5%;
      }
    }

    @media (max-width: 480px) {
      .popup-container {
        padding: 10px;
      }
    }
