/* Body and container */
body {

/*.meow-script-regular {
  font-family: "Meow Script", cursive;
  font-weight: 300;
  font-style: normal;
}
.raleway-glimmer{
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
} */


    font-family: 'Raleway', sans-serif;
    background-image: url('background.jpg');
    background-size: 100vw 100vh;   /* stretch to full width & height */
    background-attachment: fixed;
    height: 100vh;
    background-position: center;  /* center the image */
    background-repeat: no-repeat; /* prevent tiling */
    /*background-color: #f0f4f8;*/
    margin: 0;
    padding: 0;
}

.container {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: 'Raleway', sans-serif;
}

/* Header */
h1 {
    text-align: center;
    color: #333;
}

/* Form */
form {
    background: #ffffff;
    padding: 10px 18px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Raleway', sans-serif;
}

form input[type="text"],
form textarea {
    width: 100%;
    border-radius: 12px;
    padding: 5px;
    margin: 10px 0 10px 0;
}
form input[type="file"] {
    width: 100%;
    padding: 1px;
    margin-top: 8px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
}

form button {
    background-color: #6c63ff;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

form button:hover {
    background-color: #574fd6;
}

/* Posts container */
.posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: 'Raleway', sans-serif;
}

/* Individual post */
.post {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    position: relative;
}

.post img {
    max-width: 100%;
    border-radius: 15px;
    margin-top: 10px;
}

/* Timestamp */
.timestamp {
    font-size: 0.8rem;
    color: #888;
    margin-top: 10px;
    display: block;
}

/* Delete button */
/*.delete-form {
    position: absolute;
    top: 12px;
    right: 12px;
}

.delete-btn {
    background-color: transparent;
    color: #a0a0a0;
    border: 1px solid #ddd;
    padding: 2px 4px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.delete-btn:hover {
    background-color: #f5f5f5;
    color: #ff4d4f;
    border-color: #ffcccc;
}*/

/* Footer */
footer {
    text-align: center;
    margin-top: 50px;
    font-size: 0.85rem;
    color: black;
    font-family: 'Raleway', sans-serif;
    font-weight: 300
}

button {
    font-family: 'Raleway', sans-serif;  /* your custom font */
    font-size: 1rem;
    color: white;
    background-color: #6c63ff;
    border-radius: 12px;
    padding: 1px 1px;
    cursor: pointer;
    font-weight: 300;
}

h1 {
    font-size: 3rem;                  /* bigger size */
    font-family: 'Raleway', sans-serif; /* custom font */
    color: black;                     /* change color */
    text-align: center;               /* center on page */
    margin-top: 5px;                 /* spacing from top */
}

/* Hide the ugly native input */
input[type="file"] {
  display: none;
}

/* Apply same style as your form button */
.file-button {
  display: inline-block;
  background-color: #6c63ff;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
  text-align: center;
  font-weight: 300;
}

.file-button:hover {
  background-color: #574fd6;
}

.like-btn {
    background-color: #6c63ff;
    background-size: 50% auto;
    color: white;
    padding: 8px 10px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    transition: background 0.2s;
    margin-top: 1px;
    margin-right: 1px;
    display: inline-block;
}

.like-btn:hover {
    background-color: #574fd6;
}

/* Side Pagination Styles */
.pagination-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.pagination-content {
  position: relative;
  min-height: 400px;
}

.pagination-page {
  display: none;
  animation: paginationFadeIn 0.4s ease-in;
}

.pagination-page.active {
  display: block;
}

@keyframes paginationFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Side Pagination Styles */
.pagination-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.pagination-content {
  position: relative;
  min-height: 400px;
}

.pagination-page {
  display: none;
  animation: paginationFadeIn 0.4s ease-in;
}

.pagination-page.active {
  display: block;
}

@keyframes paginationFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Side Navigation Controls */
.pagination-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.pagination-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.pagination-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.pagination-nav.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-nav.prev {
  left: 20px;
}

.pagination-nav.next {
  right: 20px;
}

.pagination-nav svg {
  width: 24px;
  height: 24px;
  fill: #333;
}

/* Page Indicators */
.pagination-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.pagination-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.pagination-indicator:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: scale(1.2);
}

.pagination-indicator.active {
  background: #333;
  width: 30px;
  border-radius: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .pagination-nav {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    top: auto;
    bottom: 80px;
    transform: none;
    /* Safari-specific fixes */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    will-change: transform;
  }

  .pagination-nav:hover {
    transform: scale(1.1);
    -webkit-transform: scale(1.1) translate3d(0, 0, 0);
  }

  .pagination-nav:active {
    transform: scale(0.95);
    -webkit-transform: scale(0.95) translate3d(0, 0, 0);
  }

  .pagination-nav.prev {
    left: 15px;
  }
  
  .pagination-nav.next {
    right: 15px;
  }

  .pagination-nav svg {
    width: 22px;
    height: 22px;
  }

  .pagination-indicators {
    margin-top: 20px;
    margin-bottom: 20px;
  }
}