no-select {
  user-select: none !important; /* Standard property */
  -webkit-user-select: none !important; /* Safari */
  -ms-user-select: none !important; /* Internet Explorer */
  -moz-user-select: none !important; /* Firefox */
}

/* Ensure buttons inside non-selectable areas remain clickable */
no-select button,
no-select a {
  pointer-events: auto !important; /* Restore pointer events for buttons and links */
}

.close-btn {
  position: absolute;
  top: 3px;
  right: 23px;
  padding: 0 5px;
  background: #282828;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 50%;
  z-index: -1;
}

.close-btn:hover {
  background: darkred;
}

.toggle-button {
  border: none;
}
/* General Reset */
body, h1, h2, h3, p, ul, ol, figure {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #121212;
  color: #8C9F92;
  margin: 0;
}

 .contain {
    max-width: 600px; /* Set maximum width for the container */
    margin: 0 auto; /* Center the container horizontally */
        padding: 10px;
   
}

.container {
  max-width: 0;
  margin: 0 auto;
  padding: 0 20px;
}

header h1 {
  font-size: 1.8rem;
  font-weight: bold;
}

/* News Section */
.news-section {
  background: linear-gradient(
    to right,
    #1A2233,
    #232B3C,
    #232B3C,
    #0A101D,
    #050811
  );
  padding:  20px;
  margin-top: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
}
.news-section h2 {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  text-align: center;
  margin-bottom: 30px;
}
/* General Article Styling */
.news-article {
  
  justify-content: space-between;
  margin-bottom: 20px;
  border: 2px solid #A3B1A8;
  border-radius: 10px;
  padding: 20px;
  background: #8C9F92;
  text-align: justify;
  font-family: "Georgia", serif;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-article p, ul {
  line-height: 1.5;
  color: #553;
}

.news-article p {
  margin-top: 15px;
}

.news-article a {
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
}
/* Title Styling */
.news-article h4 {
  margin: 0;
  font-size: 1.2em;
  text-align: left;
  color: #333;
}
.news-article.short-view{
  font-size: 11px;
}

.news-article.short-view h4 {
  font-size: 1em
}
/* Short Description */
#short-description {
  display: block;
  margin-top: 10px;
}

li {
  color: #553;
  line-height: 1.5;
}
/* Full Description */
#full-description {
  display: none;
  margin-top: 10px;
}

/* Image Styling (Short Description) */
.news-article.short-view img {
  width: 150px;
  height: 80px;
  float: left;
  margin-right: 10px;
  margin-top: 0;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
}

/* Image Styling (Full Description) */
.news-article.full-view img {
  width: 100%;
  height: 150px;
  margin-top: 10px;
  margin-right: 0;
  float: none;
  border-radius: 10px;
}

/* Toggle Button Styling */
.toggle-button {
  margin-top: 10px;
  padding: 5px 10px;
  border: none;
  background-color: #0078d7;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.toggle-button:hover {
  background-color: #005ea6;
}

/* Reaction Buttons */
.reaction-buttons {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.reaction-buttons .like-btn,
.reaction-buttons .dislike-btn {
  border: none;
  background: whi;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.reaction-buttons .like-btn:hover,
.reaction-buttons .dislike-btn:hover {
  background: #dcdcdc;
}

.news-date {
  font-size: 0.8em;
  color: #ddd;
  margin-top: 10px;
  text-align: right;
}

#desktop-hint {
  text-align: center;
  margin: 20px auto;
  padding: 15px;
  background-color: #ffe0b3;
  color: #333;
  border: 2px solid #ff9900;
  width: 80%;
  font-size: 18px;
  border-radius: 5px;
}

.filler{
  margin-top: 20px;
}
.news-section {
  padding: 15px;
  font-family: Arial, sans-serif;
}

/* News Article Container */
.news-article {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
  overflow: hidden;
}

/* Title Styling */
.news-article h4 {
  margin: 0;
  font-size: 1.2em;
}

/* Short Description Styling */
#short-description {
  display: block;
  margin-top: 10px;
}

/* Full Description Styling */
#full-description {
  display: none;
  margin-top: 10px;
}

/* Image Styling */
.news-article img {
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
}

/* Short View (Side-by-Side Layout) */
.news-article.short-view img {
  max-width: 90px;
  max-height: 70px;
  float: left;
  margin-right: 10px;
}

/* Full View (Image Above Text) */
.news-article.full-view img {
  max-width: 100%;
  max-height: 150px;
  margin: 10px 0;
  float: none;
}

/* Button Styling */
.toggle-button {
  margin-top: 10px;
  padding: 5px 10px;
  border: none;
  background-color: #0078d7;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.toggle-button:hover {
  background-color: #005ea6;
}

.read-more {
  color: #007bff;
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  font-size: 14px;
  padding:  0;
}

.read-more:hover {
  text-decoration: none;
}

.reaction-buttons {
  display: flex;
  
  margin-top: 15px;
  
}

.reaction-buttons button {
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: whitesmoke;
  color: #555;
  cursor: pointer;
  font-size: 14px;
  
}

.reaction-buttons button:hover {
  background-color: lightgray;
}

.reaction-buttons .like-btn,
.reaction-buttons .dislike-btn {
  display: flex;
  align-items: center;
}

.view-count {
  font-size: 14px;
  margin-right: auto;
  color: #555;
}


.hidden {
  display: none;
}

@media (min-width: 768px) {
  footer {
    display: none;
  }
}
/* Footer container */
.fixed-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: linear-gradient(#998e5c, black, #998e5c);
  padding: 10px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}
/* Footer button styles */
.footer-btn {
  background: none;
  border: none;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 17px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.footer-btn i {
  font-size: 20px;
  margin-bottom: 0px;
}

.footer-btn:hover {
  transform: scale(1.1);
  color: #ffdd57;
}

/* Add spacing for icons */
.footer-btn span {
  margin-top: 2px;
  font-size: 12px;
}