
html {
  scroll-behavior: smooth;
}


@media (max-width: 768px) { .enlace { font-size: 14px; } }

.post-actions { margin-top: 1rem; text-align: right; }
.post-actions button { 
    margin-left: 0.5rem; 
    padding: 0.5rem 1rem; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-size: 14px;
}
.post-actions button:first-child { background: #007cba; color: white; } /* Azul para editar */
.post-actions button:last-child { background: #dc3545; color: white; } /* Rojo para borrar */
@media (max-width: 768px) { 
    .post-actions { text-align: center; } 
    .post-actions button { width: 100%; margin-bottom: 0.5rem; display: block; } 
}

#preview-btn { 
    background: #28a745; color: white; padding: 0.5rem 1rem; border: none; border-radius: 4px; cursor: pointer; margin-left: 1rem; 
}
#preview { border-radius: 8px; } 
@media (max-width: 768px) { #preview-btn { width: 100%; margin: 0.5rem 0; } }


form { max-width: 600px; margin: 2rem 0; }
label { display: block; margin: 1rem 0 0.5rem; font-weight: bold; }
input, textarea { width: 100%; padding: 0.5rem; border: 1px solid #ccc; border-radius: 4px; }
button { background: #007cba; color: white; padding: 0.75rem 1.5rem; border: none; border-radius: 4px; cursor: pointer; }
.post { border: 1px solid #ddd; padding: 1rem; margin: 1rem 0; border-radius: 8px; background: white; }
.post h3 { color: #007cba; }
.post img { max-width: 100%; height: auto; }

@media (max-width: 768px) {
    form { padding: 0 1rem; }
    .post { padding: 0.75rem; }
}


[id] {
  scroll-margin-top: 100px; 
}

body {
      font-family: 'Poppins', sans-serif;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 100vh;
      margin: 0;
      background: linear-gradient(135deg, #2c3e50, #3498db);
    }
    .container {
      text-align: center;
      padding: 40px 20px;
      max-width: 400px;
      width: 100%;
    }
   
    p {
      color: #ffffff;
      font-size: 1.1em;
      margin-bottom: 30px;
    }

    h1 {
      color: #ffffff;
      font-size: 1.5em;
      margin-bottom: 10px;
    }


    h2 {
      color: #ffffff;
      font-size: 1.5em;
      margin-bottom: 10px;
    }

    h3 {
      color: #ffffff;
      font-size: 1em;
      margin-bottom: 40px;
    }

    header {
      color: #ffffff;
      font-size: 1.5em;
      margin-bottom: 20px;
    }
    span {
      color: #ffffff;
      font-size: 0.9em;
    }
    .link-button {
      display: block;
      background-color: #1a1a1a;
      color: #ecf0f1;
      text-decoration: none;
      font-size: 1.2em;
      font-weight: 500;
      padding: 15px;
      margin: 10px 0;
      border-radius: 25px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      transition: all 0.3s ease;
    }
    .link-button:hover {
      background-color: #2ecc71;
      color: #1a1a1a;
      transform: translateY(-3px);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }

    .link-button:active {
      transform: translateY(0);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

        .copy-btn {
            background-color: #2563eb; /* Equivalent to bg-blue-600 */
            color: #ffffff; /* Equivalent to text-white */
            font-weight: 600; /* Equivalent to font-semibold */
            padding: 0.5rem 1.25rem; /* py-2 px-5 */
            border-radius: 0.5rem; /* rounded-lg */
            box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); /* shadow-md */
            transition-property: all;
            transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
            transition-duration: 300ms;
            cursor: pointer;
            border: none;
            outline: none;
            flex-shrink: 0;
        }

        .copy-btn:hover {
            background-color: #1d4ed8; /* hover:bg-blue-700 */
            transform: scale(1.05); /* hover:scale-105 */
        }

        .copy-btn:focus {
            outline: 2px solid transparent;
            outline-offset: 2px;
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.75); /* focus:ring-2 focus:ring-blue-500 focus:ring-opacity-75 */
        }

        .copy-btn.copied {
            background-color: #22c55e; /* bg-green-500 */
        }
        
        .copy-btn.copied:hover {
            background-color: #16a34a; /* hover:bg-green-600 */
        }