/* style.css */

body {
    font-family: "Elms Sans", sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #dfe9f3 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.container {
    text-align: center;
    width: 90%;
    max-width: 900px;
    background: #ffffffb5;
    backdrop-filter: blur(8px);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.title h1 {
    font-family: "Quicksand", sans-serif;
    font-size: 2em;
    margin-bottom: 0.3em;
    color: #2b2b2b;
}

.title h6 {
    font-weight: 500;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 2em;
}

/* --- GRID MODE --- */
.bookmarklets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1em;
    justify-items: center;
}

/* Individual bookmarklet card */
.bookmarklet a {
    display: block;
    width: 100%;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
    padding: 14px 5px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.bookmarklet a:hover {
    background: linear-gradient(135deg, #5b86e5 0%, #36d1dc 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.bookmarklet a:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hidden {
    color: rgb(247,249,252);
}

.instructions {
    cursor: pointer !important;
    border: none;
    display: block;
    width: 100%;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
    padding: 14px 5px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.instructions:hover {
    background: linear-gradient(135deg, #5b86e5 0%, #36d1dc 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.instructions:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* === Main Button Styling === */
button[href="other"],
button[href="main"],
button[href="main"]:visited {
    background: linear-gradient(90deg, #4a90e2, #357ae8);
    color: white;
    border: none;
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

button[href="other"],
button[href="main"]:hover {
    background: linear-gradient(90deg, #5aa0ff, #4a8cf0);
    transform: translateY(-2px);
}

button[href="other"],
button[href="main"]:active {
    transform: translateY(1px);
}

/* Optional: give it a centered layout if needed */
.title button[href="other"],
.title button[href="main"] {
    margin-top: 10px;
}

/* === Section Navigation Buttons === */
.section-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.section-buttons button {
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    background: var(--btn-color, #3a3f47);
}

/* Hover + Active */
.section-buttons button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

.section-buttons button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Individual colors for each section */
button[href="main"] {
    --btn-color: linear-gradient(90deg, #4a90e2, #357ae8);
}

button[href="other"] {
    --btn-color: linear-gradient(90deg, #a864ff, #7a42e4);
}

button[href="mouse-effects"] {
    --btn-color: linear-gradient(90deg, #f5a623, #f76b1c);
}

button[href="utilities"] {
    --btn-color: linear-gradient(90deg, #28a745, #20c997);
}

button[href="pranks"] {
    --btn-color: linear-gradient(90deg, #ff4757, #ff6b81);
}

button[href="security"] {
    --btn-color: linear-gradient(90deg, #1e90ff, #00bfff);
}

button[href="fun-and-games"] {
    --btn-color: linear-gradient(90deg, #ffcc00, #ff9900);
}
