.container {
    max-width: 960px; /* Sets the maximum width of the container */
    margin: 0 auto; /* Centers the container */
    padding: 20px; /* Optional: adds some spacing inside the container */
}

header {
    margin-bottom: 0.2rem;
    padding: 2rem 0 1rem 0;
}

nav {
    padding: 0.5rem 0 2rem 0;
    margin: 0;
}

nav h2 {
    color: #848484;
    font-weight: 400;
    margin: 0;
    font-size: 1.1rem;
}

body {
    font-family: 'Satoshi', sans-serif;
    padding: 1rem 2rem;
    font-size: 14px;
    overflow-x: hidden;
}

h1 {
    font-family: 'Clash Display', sans-serif;
    letter-spacing: -0.01em;
    font-size: clamp(2rem, 5vw, 4rem);
    margin: 0;
    line-height: 1.1;
}

h1 svg {
    position: relative;
    top: 0.04em;
}

h1 .dot-gradient-start {
    stop-color: #ae8bff;
}

h1 .dot-gradient-end {
    stop-color: #6D28D9;
}

.tool {
    padding: 1.4rem .4rem 1.4rem 1.6rem;
    margin: 1rem 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    margin-bottom: 10px;
    border: 2px solid transparent;
    background: #f8f8f8;
}

.tool-info {
    flex: 1;
}

.external-icon {
    margin-right: 1.2rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    transform: translateX(-10px);
    transition: all 0.2s ease;
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
}

.tool:hover .external-icon {
    opacity: 0.6;
    transform: translateX(0);
}

.tool:hover {
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #ae8bff, #6D28D9) border-box;
}

.tool-entry:active {
    background-color: #c0c0c0; /* Even darker grey on click */
}

.tool-info h2{
    font-size: 1.2rem;
    margin: 0;
    padding-bottom: .2rem;
}

.tool-info p {
    margin: 0; /* Removes default margin from headings and paragraphs */
}

.tool-logo {
    margin-right: 16px; /* Adds some space between the logo and the text */
}

.tool img {
    border-radius: 12px;
}

.tool p {
    color: #666;
    font-weight: 500;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.hero-image {
    display: none;
    position: absolute;
    right: -8%;
    top: 14rem;
    width: 35vw;
    max-width: 400px;
    opacity: 1;
    pointer-events: none;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Media Queries */
@media (max-width: 768px) {
    .container {
        padding: 0.1rem 0;
        margin: 0;
    }
    header {
        padding: 1rem 0 0 0;
    }
    nav {
        padding: 0.2rem 0 1rem 0;
    }
    h1 {
        font-size: 2rem;
    }
    nav h2 {
        font-size: 1rem;
    }
    body {
        padding: 1rem 1rem;
    }
}

@media (min-width: 769px) {
    .tool {
        transition: transform 0.2s ease;
    }
    .tool:hover {
        transform: scale(1.03);
    }
    .tool:hover p {
        color: #333;
    }
    nav {
        margin-top: -1.5rem;
    }
    .hero-image {
        display: block;
    }
    .container {
        max-width: 65%;
    }
}

