body {
  font-family: Arial, sans-serif;
  padding: 20px;
  background: #f6f7fb;
  margin: 0;
  color: #333;
}

h1 {
  text-align: center;
  color: #2196F3;
}

.feed-btn {
  display: flex;
  gap: 10px;
  width: 100%;
  flex-direction: row;
}

.feed-btn input[type="text"], .feed-btn button {
  font-family: monospace;
  font-size: 14px;
  margin-bottom: 10px;
  padding: 8px 10px;
  width: 100%;
  border: none;
  border-radius: 8px;
  box-sizing: border-box;
  resize:vertical;
}

.feed-btn button {
  background: #0066ff;
  color: #fff;
  cursor: pointer;
}

#feedBox {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin: 10px auto;
  max-width: 900px;
  padding: 0 10px;
}

.feed-item {
  margin-bottom: 20px;
  padding: 12px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

.feed-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.feed-item a {
  font-weight: 200;
  font-size: 18px;
  color: #2196F3;
  text-decoration: none;
}

.feed-item small {
  color: #888;
  font-size: 13px;
}

.feed-img {
  width: 100%;
  height: auto;
  margin-bottom: 8px;
  border-radius: 4px;
  object-fit: cover;
}


/* Install Button */
#installBtn {
  display: none; 
  padding: 10px;
  background-color: #0066ff; 
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 15px;
  box-shadow: 0 3px 6px rgba(33,150,243,0.4);
  transition: background-color 0.3s ease;
}

#installBtn:hover {
  background-color: #1976D2;
}


/* ========================= */
/*       MODAL (Popup)       */
/* ========================= */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0,0,0,0.6);
  padding: 0;
  overflow-y: auto;
}

.modal-box {
  background: #fff;
  width: 95%;
  max-width: 680px;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Fixed Header */
.modal-header {
  padding: 15px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
  display: flex;
  align-items: center;
}

.modal-header h2 {
  font-size: 18px;
  margin: 0;
  flex: 1;
}

/* Close Button */
.closeBtn {
  font-size: 26px;
  cursor: pointer;
  padding: 0 10px;
  color: #666;
}

.closeBtn:hover {
  color: #000;
}

/* Scrollable body */
.modal-content {
  padding: 18px;
  overflow-y: auto;
  max-height: calc(90vh - 60px);
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.modal-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 10px;
}

.modal-content * {
  word-wrap: break-word;
}


/* ========================= */
/*        PAGINATION         */
/* ========================= */

#pagination {
  margin: 25px 0;
  text-align: center;
}

#pagination button {
  padding: 8px 15px;
  font-size: 14px;
  margin: 0 10px;
  background: #2196F3;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(33,150,243,0.3);
}

#pagination span {
  font-weight: bold;
  margin: 0 10px;
}

@media (min-width: 720px){
  #feedBox {
    grid-template-columns: repeat(2, 1fr);
  }
} 
@media (min-width: 1024px){
  #feedBox {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1280px){
  #feedBox {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1536px){
  #feedBox {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width: 600px){
   .feed-btn {
     flex-direction:column;
  }
}
